/* ── FONT TOKENS (edit fonts.css to change typefaces everywhere) ── */
@import url('./fonts.css');

/* ── DARK MODE (default) ── */

:root {

  --bg: #090909;
  --bg2: #141414;
  --bg3: #1e1e1e;

  --fg: #f0ede6;
  --fg2: #cccccc;
  --fg3: #999999;
  --fg4: #666666;

  --border: rgba(240, 237, 230, .10);

  --accent: #c8f060;
  --accent-text: #090909;
  --card-bg: #0f0f0f;

  --pill-border: rgba(240, 237, 230, .28);
  --pill-text: #bbbbbb;

  /* font tokens → see fonts.css */

  --CW: 588px;
  --CH: 576px;
  --CR: 24px;
  --FW: 408px;
  /* flip-card own width token — decoupled from --CW (hero photo) */

}

/* ── LIGHT MODE ── */

body.light {

  --bg: #f5f4f0;
  --bg2: #ece9e3;
  --bg3: #e0ddd7;

  --fg: #1a1a1a;
  --fg2: #333333;
  --fg3: #666666;
  --fg4: #999999;

  --border: rgba(0, 0, 0, .12);

  --accent: #4a7a00;
  --accent-text: #ffffff;
  --card-bg: #ffffff;

  --pill-border: rgba(0, 0, 0, .22);
  --pill-text: #444444;

}

/* =====================================================================

     BASE

     ===================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  scrollbar-color: transparent transparent
}

::-webkit-scrollbar {
  display: none;
  width: 0
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--S);
  overflow-x: hidden;
  cursor: none;
  transition: background .3s, color .3s;
  scrollbar-width: none
}

body.locked {
  overflow: hidden
}

/* =====================================================================

     CONTAINER — max-width wrapper used inside full-bleed sections

     ===================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 5rem)
}

#nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%
}

.hero-container {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 80px
}

#h-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%
}

/* =====================================================================

     CURSOR

     ===================================================================== */

#cur {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: exclusion;
  transition: width .2s, height .2s
}

#cur-r {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 240, 96, .35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: exclusion
}

body.hov #cur {
  width: 48px;
  height: 48px
}

body.hov #cur-r {
  opacity: 0
}

#ct-cur {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 240, 96, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity .3s;
  will-change: transform
}

body.ct-active #ct-cur {
  opacity: 1
}

body.ct-active #cur,
body.ct-active #cur-r {
  opacity: 0
}

/* =====================================================================

     PROGRESS BAR

     ===================================================================== */

#prog {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 300;
  width: 0
}

/* =====================================================================

     INTRO OVERLAY

     ===================================================================== */

#intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all
}

#intro.gone {
  display: none
}

/* The single animated flip object */

#flip-wrap {
  position: fixed;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 210;
  pointer-events: none
}

#flip-front,
#flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden
}

/* Front face = card */

#flip-front {
  background: var(--card-bg);
  border: 1px solid rgba(200, 240, 96, .15);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
  background-image: linear-gradient(rgba(200, 240, 96, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 240, 96, .022) 1px, transparent 1px);
  background-size: 22px 22px
}

#flip-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 0 0 3px 3px;
  opacity: .7;
  z-index: 1
}

/* Back face = portrait photo */

#flip-back {
  transform: rotateY(180deg);
  background: var(--bg2)
}

#flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(100%);
  display: block
}

/* Card content */

#card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  pointer-events: all
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px
}

#card-avatar {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(200, 240, 96, .25);
  position: relative
}

#card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  filter: grayscale(100%)
}

.av-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 6px rgba(74, 222, 128, .5)
}

.c-nr {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

.c-name {
  font-family: var(--F);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--fg);
  white-space: nowrap
}

.c-role {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6
}

.c-div {
  height: 1px;
  background: var(--border);
  margin: 12px 0
}

.c-bio {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 14px
}

.c-bio strong {
  color: var(--fg);
  font-weight: 600
}

/* Pills — ONE LINE on all screen sizes */

.c-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 14px;
  overflow: hidden
}

.cpill {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pill-text);
  border: 1px solid var(--pill-border);
  border-radius: 100px;
  padding: 4px 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px
}

.pill-arrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0;
  font-style: normal;
  opacity: .9
}

/* Stats */

.c-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px
}

.csn {
  background: var(--card-bg);
  padding: 9px 6px;
  text-align: center
}

.csn-v {
  font-family: var(--F);
  font-size: 23px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: var(--fg)
}

.csn-l {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-top: 3px
}

/* CTAs */

.c-ctas {
  display: flex;
  gap: 8px;
  margin-top: auto
}

.cb-p {
  flex: 1;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 10px;
  text-align: center;
  border: none;
  cursor: none
}

.cb-s {
  flex: 1;
  border: 1px solid rgba(240, 237, 230, .18);
  color: var(--fg);
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 10px;
  text-align: center;
  background: none;
  cursor: none
}

/* Floating chips (around card) */

.fc {
  position: fixed;
  font-family: var(--M);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg2);
  border: 1px solid rgba(240, 237, 230, .22);
  border-radius: 100px;
  padding: 6px 14px;
  background: rgba(9, 9, 9, .75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform, opacity
}

.fc.show {
  opacity: 1
}

/* Scroll cue — pill style with real em dashes (not HTML entities) */

#sc-cue {

  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);

  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;

  color: var(--accent);
  border: 1px solid rgba(200, 240, 96, .35);
  border-radius: 100px;

  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 8px;

  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 205;

  background: rgba(200, 240, 96, .06);
  white-space: nowrap;

}

#sc-cue.show {
  opacity: 1
}

/* Use actual Unicode em dashes — not HTML entities */

#sc-cue::before {
  content: '\2014';
  font-size: 10px;
  opacity: .6
}

#sc-cue::after {
  content: '\2014';
  font-size: 10px;
  opacity: .6
}

/* =====================================================================

     NAV

     ===================================================================== */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 20px
}

#nav {
  background: rgba(9, 9, 9, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px)
}

#nav::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  z-index: -1;
  pointer-events: none
}

body.light #nav {
  background: rgba(245, 244, 240, .92)
}

#nav-logo {
  font-family: var(--F);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -.02em;
  visibility: hidden;
  cursor: none
}

#nav-logo.show {
  visibility: visible
}

.n-links {
  display: flex;
  gap: 36px;
  list-style: none;
  opacity: 0;
  transition: opacity .5s
}

.n-links a {
  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg2);
  text-decoration: none;
  transition: color .2s;
  cursor: none
}

.n-links a:hover {
  color: var(--accent)
}

.n-right {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity .5s
}

#nav.show .n-links,
#nav.show .n-right {
  opacity: 1
}

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  cursor: none;
  color: var(--fg2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent)
}

.n-cta {
  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity .5s, transform .2s;
  cursor: none
}

.n-cta:hover {
  transform: scale(1.05)
}

.n-resume {
  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: background .2s, color .2s, transform .2s;
  cursor: none
}

.n-resume:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.05)
}

#resume-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 12px 20px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999
}

#resume-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

/* =====================================================================

     HERO

     ===================================================================== */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}

.h-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(200, 240, 96, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 240, 96, .025) 1px, transparent 1px);
  background-size: 80px 80px
}

body.light .h-grid {
  background-image: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px)
}

.h-glow {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 240, 96, .035), transparent 70%);
  pointer-events: none
}

/* Photo — same width as card, anchored right */

#h-photo {
  position: relative;
  flex-shrink: 0;
  transform: scale(0.75) perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  width: var(--CW);
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  visibility: hidden;
  z-index: 1;
  border: 1px solid var(--border)
}

#h-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  filter: grayscale(100%);
  display: block
}

#h-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(9, 9, 9, .28));
  pointer-events: none
}

/* Hero text — enter from off-screen via CSS transitions */

#h-tag {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  margin-top: 0;
  visibility: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.16, 1, .3, 1)
}

#h-tag.vis {
  opacity: 1;
  transform: translateX(0)
}

.hero-hl {
  font-family: var(--F);
  font-size: clamp(30px, 4.6vw, 72px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transform: translateY(70px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1)
}

.hero-hl.vis {
  opacity: 1;
  transform: translateY(0)
}

.hero-hl em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300
}

#h-desc {
  max-width: 400px;
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 28px;
  visibility: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .7s ease .1s, transform .7s cubic-bezier(.16, 1, .3, 1) .1s
}

#h-desc strong {
  color: var(--fg);
  font-weight: 600
}

#h-desc.vis {
  opacity: 1;
  transform: translateX(0)
}

#h-stats {
  width: 310px;
  visibility: hidden;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .7s ease .18s, transform .7s cubic-bezier(.16, 1, .3, 1) .18s
}

#h-stats.vis {
  opacity: 1;
  transform: translateX(0)
}

#h-stats .csn {
  background: var(--bg2)
}

#h-stats .csn-v {
  font-size: 23px
}

#h-stats .csn-l {
  font-size: 12px;
  color: var(--fg2)
}

.h-sh {
  position: absolute;
  right: 0;
  bottom: 86px;
  writing-mode: vertical-lr;
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg3);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .6s ease .3s, transform .6s cubic-bezier(.16, 1, .3, 1) .3s
}

.h-sh.vis {
  visibility: visible;
  opacity: 1;
  transform: translateX(0)
}

.h-sh::after {
  content: '';
  width: 1px;
  height: 52px;
  background: var(--fg3);
  animation: sln 2s ease-in-out infinite
}

@keyframes sln {

  0%,
  100% {
    transform: scaleY(1);
    opacity: .4
  }

  50% {
    transform: scaleY(.4);
    opacity: 1
  }
}

.h-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  z-index: 2
}

.h-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -30%;
  width: 25%;
  height: 100%;
  background: var(--accent);
  animation: sw 4s ease-in-out infinite
}

@keyframes sw {
  0% {
    left: -25%
  }

  100% {
    left: 130%
  }
}

/* =====================================================================

     MARQUEE

     ===================================================================== */

.mq {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap
}

.mq-t {
  display: inline-flex;
  animation: mqr 24s linear infinite
}

.mq-t span {
  font-family: var(--F);
  font-size: 30px;
  font-style: italic;
  font-weight: 300;
  color: var(--fg3);
  padding: 0 32px
}

.mq-t span.ac {
  color: var(--accent);
  font-style: normal;
  font-weight: 700
}

@keyframes mqr {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.slbl {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px
}

.slbl::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent)
}

/* =====================================================================

     WORK — 2×2 GRID (desktop) / 1-column (mobile)

     ===================================================================== */

#ww {
  padding-block: 120px 80px;
  border-top: 1px solid var(--border)
}

.cs-section-hd {
  margin-bottom: 48px
}

.cs-section-title {
  font-family: var(--F);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95
}

.cs-section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.cs-card-wrap {
  border-radius: 14px;
  padding: 1px;
  background: var(--border);
  cursor: none
}

.cs-card {
  border-radius: 13px;
  background: var(--bg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 38% 62%;
  height: 260px
}

.cs-thumb-col {
  overflow: hidden
}

.cs-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block
}

.cs-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center
}

.cs-title {
  font-family: var(--F);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--fg)
}

.cs-quote {
  font-family: var(--F);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.5;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin: 0
}

/* Shared — used in modal */

.wnum {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--fg3);
  margin-bottom: 4px
}

.wtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 0
}

.wtag {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  transition: border-color .2s, color .2s
}

.wname {
  font-family: var(--F);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 6px;
  color: var(--fg)
}

.wchal {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.8;
  margin-bottom: 0;
  max-width: none
}

.wchal strong {
  color: var(--fg);
  font-weight: 600
}

.wq {
  font-family: var(--F);
  font-size: 16px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.45;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 0
}

.wcta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  transition: transform .2s, gap .2s;
  cursor: none
}

.wcta:hover {
  transform: scale(1.04);
  gap: 14px
}

.wcta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap
}

.wcta-row .wcta {
  margin-top: 0
}

.wcta-s {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
  cursor: none;
  background: none
}

.wcta-s:hover {
  border-color: var(--accent);
  color: var(--accent)
}

/* Case study preview modal */

#m-cs {
  align-items: center;
  justify-content: center;
  padding: 0
}

.cs-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(70vw, 1400px);
  max-height: 85vh;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6)
}

.cs-modal-x {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--fg3);
  cursor: none;
  line-height: 1;
  padding: 4px 8px;
  transition: color .2s
}

.cs-modal-x:hover {
  color: var(--fg)
}

.cs-modal-left {
  overflow: hidden
}

.cs-modal-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block
}

.cs-modal-right {
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto
}

/* Gallery panel */

.cs-gallery-panel {
  display: none;
  flex-direction: column;
  width: min(70vw, 1400px);
  max-height: 85vh;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .6)
}

.cs-gallery-panel.active {
  display: flex
}

.cs-gallery-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px
}

.cs-gal-back {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fg3);
  background: none;
  border: none;
  cursor: none;
  transition: color .2s;
  padding: 0;
  white-space: nowrap
}

.cs-gal-back:hover {
  color: var(--fg)
}

.cs-gal-title {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--fg3);
  flex: 1;
  text-align: center
}

.cs-gal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--fg3);
  cursor: none;
  padding: 4px 8px;
  transition: color .2s
}

.cs-gal-close:hover {
  color: var(--fg)
}

/* ── Snapshot grid ────────────────────────── */

.cs-quilted-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 16px;
  position: relative
}

.cs-quilted-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cs-quilted-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(255, 255, 255, .04)
}

.cs-quilted-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity .2s
}

.cs-quilted-item:hover img {
  opacity: .85
}

/* ── Lightbox (overlays gallery panel) ─────── */

.cs-lightbox {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg);
  flex-direction: column;
  z-index: 10;
}

.cs-lightbox.open {
  display: flex
}

.cs-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}

.cs-lb-back {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--fg3);
  background: none;
  border: none;
  cursor: none;
  transition: color .2s;
  padding: 0;
  white-space: nowrap
}

.cs-lb-back:hover {
  color: var(--fg)
}

.cs-lb-counter {
  font-family: var(--M);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--fg3);
  flex: 1;
  text-align: center
}

.cs-lb-x {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--fg3);
  cursor: none;
  padding: 4px 8px;
  transition: color .2s
}

.cs-lb-x:hover {
  color: var(--fg)
}

.cs-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
}

.cs-lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block
}

.cs-lb-arr {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  color: var(--fg);
  font-size: 18px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}

.cs-lb-arr:hover {
  border-color: var(--accent);
  background: rgba(200, 240, 96, .08)
}

.cs-lb-arr:disabled {
  opacity: .25;
  pointer-events: none
}

.cs-gallery-loading,
.cs-gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg3);
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  width: 100%
}

.cs-snap-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 60px 24px;
  width: 100%;
}

/* Mobile expand */

.cs-mobile-extra {
  display: none
}

/* ── 3D tilt targets ──────────────────────── */

#flip-front {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
}

.cs-card-wrap {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
}

.port {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
}


.cs-modal-thumb {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
}

/* =====================================================================

     ABOUT — text LEFT, image RIGHT (desktop)

     ===================================================================== */

#about {
  padding-block: 140px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.ar {
  padding-top: 32px
}

.abio {
  font-size: 17px;
  line-height: 1.85;
  color: var(--fg2);
  margin-bottom: 40px
}

.abio p {
  margin-bottom: 20px
}

.abio em {
  font-style: italic;
  color: var(--accent)
}

.abio strong {
  font-weight: 600;
  color: var(--fg)
}

.aphil {
  font-family: var(--F);
  font-size: 24px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 40px;
  color: var(--fg)
}

.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px
}

.trait {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 14px;
  transition: border-color .3s
}

.trait:hover {
  border-color: rgba(200, 240, 96, .3)
}

.ti {
  font-size: 17px;
  margin-bottom: 7px;
  color: var(--accent)
}

.tn {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--fg)
}

.td {
  font-size: 13px;
  color: var(--fg3);
  line-height: 1.5
}

.spills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.sp {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg2);
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 100px
}

.al {
  position: sticky;
  top: 120px
}

.att {
  font-family: var(--F);
  font-size: clamp(36px, 3.3vw, 54px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--fg);
  white-space: nowrap
}

.att em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent)
}

.port {
  width: 400px;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border)
}

.port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}

/* =====================================================================

     EXPERIENCE

     ===================================================================== */

#exp {
  padding-block: 110px;
  border-bottom: 1px solid var(--border)
}

.exph {
  margin-bottom: 64px
}

.extt {
  font-family: var(--F);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--fg)
}

.extt em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300
}

.exr {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s, transform .6s
}

.exr.vis {
  opacity: 1;
  transform: translateY(0)
}

.eco {
  font-family: var(--F);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fg)
}

.epe {
  font-family: var(--M);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--fg3);
  margin-top: 5px
}

.ero {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--fg)
}

.ede {
  font-size: 17px;
  color: var(--fg2);
  line-height: 1.8;
  max-width: 500px
}

.ede-list {
  font-size: 17px;
  color: var(--fg2);
  line-height: 1.8;
  max-width: 560px;
  margin: 10px 0 0 0;
  padding-left: 18px;
  list-style: disc
}

.ede-list li {
  margin-bottom: 8px
}

.ewin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--M);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .06em
}

.ewin::before {
  content: '★';
  font-size: 9px
}

.ebadge {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap
}

/* =====================================================================

     CONTACT

     ===================================================================== */

#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: 100px
}

.ctl {
  position: absolute;
  inset: -60px;
  pointer-events: none;
  will-change: transform
}

.ctl1 {
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(200, 240, 96, .05), transparent 70%)
}

.ctl2 {
  background-image: linear-gradient(rgba(200, 240, 96, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 240, 96, .025) 1px, transparent 1px);
  background-size: 56px 56px
}

.ctf {
  position: absolute;
  font-family: var(--M);
  font-size: 8px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(200, 240, 96, .06);
  white-space: nowrap
}

/* Grid particle canvas */

#ct-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: .85
}

.ct-con {
  position: relative;
  z-index: 2
}

.ct-lbl {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px
}

.ct-tt {
  font-family: var(--F);
  font-size: clamp(50px, 8vw, 128px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .9;
  margin-bottom: 40px;
  color: var(--fg)
}

.ct-tt em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent)
}

.ct-mail {
  font-family: var(--M);
  font-size: 14px;
  color: var(--fg2);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
  display: block;
  margin-bottom: 50px
}

.ct-mail:hover {
  color: var(--fg)
}

.ct-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center
}

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform .2s;
  cursor: none
}

.btn-p:hover {
  transform: scale(1.04)
}

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  cursor: none
}

.btn-s:hover {
  border-color: rgba(240, 237, 230, .3);
  background: rgba(240, 237, 230, .04)
}

/* =====================================================================

     FOOTER & MODALS

     ===================================================================== */

footer {
  padding-block: 26px;
  border-top: 1px solid var(--border)
}

.fc-c {
  font-family: var(--M);
  font-size: 10px;
  color: var(--fg3);
  letter-spacing: .06em
}

.fc-l {
  display: flex;
  gap: 24px
}

.fc-l a {
  font-family: var(--M);
  font-size: 10px;
  color: var(--fg3);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s
}

.fc-l a:hover {
  color: var(--fg)
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, .97);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 80px 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s
}

.modal.open {
  opacity: 1;
  pointer-events: all
}

.mi {
  max-width: 740px;
  width: 100%;
  transform: translateY(36px);
  transition: transform .4s
}

.modal.open .mi {
  transform: translateY(0)
}

.mx {
  position: fixed;
  top: 28px;
  right: 48px;
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg3);
  background: none;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: none;
  transition: color .2s, border-color .2s
}

.mx:hover {
  color: var(--fg);
  border-color: rgba(240, 237, 230, .3)
}

.mlbl {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px
}

.mttl {
  font-family: var(--F);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: .95;
  margin-bottom: 10px;
  color: var(--fg)
}

.msub {
  font-family: var(--M);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 36px
}

.mhr {
  height: 1px;
  background: var(--border);
  margin: 32px 0
}

.mst {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg3);
  margin-bottom: 12px
}

.mtx {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fg2);
  margin-bottom: 24px
}

.mtx strong {
  color: var(--fg);
  font-weight: 600
}

.mhl {
  font-family: var(--F);
  font-size: 21px;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 32px 0;
  line-height: 1.45
}

.mpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px
}

.mpill {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 100px
}

.ct-info {
  display: flex;
  flex-direction: column;
  gap: 0
}

.ct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .2s;
  cursor: none
}

.ct-row:first-child {
  border-top: 1px solid var(--border)
}

.ct-row:hover {
  background: rgba(200, 240, 96, .04)
}

.ct-row-lbl {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg3)
}

.ct-row-val {
  font-family: var(--S);
  font-size: 15px;
  color: var(--fg);
  transition: color .2s
}

.ct-row:hover .ct-row-val {
  color: var(--accent)
}

/* Gallery modal */

.gal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px
}

.gal-grid img,
.gal-grid video {
  width: 100%;
  border-radius: 8px;
  display: block;
  background: var(--bg2)
}

.gal-empty {
  font-family: var(--M);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg3);
  text-align: center;
  padding: 60px 0
}

/* =====================================================================

     3D CAROUSEL — SHOWCASE

     ===================================================================== */

#showcase {
  padding-block: 110px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-align: center
}

.sc-header {
  margin-bottom: 64px
}

.sc-header .slbl {
  justify-content: center
}

.sc-tt {
  font-family: var(--F);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--fg);
  margin-bottom: 16px
}

.sc-tt em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300
}

.sc-sub {
  font-size: 16px;
  color: var(--fg2);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto
}

.carousel-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto
}

.carousel-scene {
  perspective: 1200px;
  height: 400px;
  position: relative;
  overflow: visible
}

.carousel-drum {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  transform-style: preserve-3d;
  transition: none
}

.c3d-card {
  position: absolute;
  width: 260px;
  height: 340px;
  left: 50%;
  top: 50%;
  margin-left: -130px;
  margin-top: -170px;
  cursor: none;
  transform-style: preserve-3d
}

.c3d-front,
.c3d-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden
}

.c3d-front {
  background: var(--card-bg);
  border: 1px solid var(--border)
}

.c3d-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  pointer-events: none
}

.c3d-back-icon {
  font-size: 36px;
  opacity: .18
}

.c3d-back-label {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--fg4)
}

.c3d-img {
  width: 100%;
  height: 210px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center
}

.c3d-card:hover .c3d-img {
  filter: brightness(1.1);
  transition: filter .3s
}

.c3d-img-icon {
  font-size: 48px;
  opacity: .25
}

.c3d-info {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left
}

.c3d-cat {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent)
}

.c3d-name {
  font-family: var(--F);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fg)
}

.c3d-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9, 9, 9, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 15px;
  font-family: var(--S);
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color .2s, background .2s;
  z-index: 10
}

body.light .c3d-arr {
  background: rgba(245, 244, 240, .75)
}

.c3d-arr:hover {
  border-color: var(--accent);
  background: rgba(200, 240, 96, .08)
}

.c3d-prev {
  left: -22px
}

.c3d-next {
  right: -22px
}

.c3d-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 12px;
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(200, 240, 96, .3);
  border-radius: 100px;
  cursor: none;
  transition: background .2s, border-color .2s
}

.c3d-cta:hover {
  background: rgba(200, 240, 96, .08);
  border-color: var(--accent)
}

body.light .c3d-cta:hover {
  background: rgba(74, 122, 0, .08)
}


#showcase .sc-header,
#showcase .carousel-wrap {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1)
}

#showcase .sc-header.vis,
#showcase .carousel-wrap.vis {
  opacity: 1;
  transform: translateY(0)
}

/* =====================================================================

     MOBILE OVERRIDES (max-width: 900px)

     Desktop is completely untouched above this line

     ===================================================================== */

@media(max-width:900px) {

  /* NAV */

  #nav {
    padding-block: 18px
  }

  .n-links {
    display: none
  }

  .n-resume {
    display: none
  }

  /* INTRO — scroll cue lower */

  #sc-cue {
    bottom: 14px
  }

  /* HERO — stack vertically: tag → headline → desc → stats → photo */

  #hero {

    flex-direction: column;

    min-height: auto;

  }

  .hero-container {

    flex-direction: column;

    align-items: stretch;

    justify-content: flex-start;

    gap: 0;

    padding-top: 100px;

    padding-bottom: 60px;

    min-height: auto;

  }

  #h-text {
    display: contents;
  }

  #h-photo {

    transform: none;

    width: 100%;

    height: 260px;

    margin-top: 28px;

    order: 5;

    visibility: visible !important;

  }

  #h-tag {
    order: 1;
    margin-top: 0
  }

  #hero-hl {
    order: 2
  }

  #h-desc {
    order: 3
  }

  #h-stats {
    order: 4;
    width: 100%
  }

  #h-stats .csn-v {
    font-size: 20px
  }

  .h-sh {
    display: none
  }

  /* no room on mobile */

  .h-line {
    display: none
  }

  /* WORK — single column on mobile */

  #ww {
    padding-block: 80px 60px
  }

  .cs-grid {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .cs-card {
    grid-template-columns: 40% 60%;
    height: 190px
  }

  .cs-body {
    padding: 18px 16px;
    gap: 8px
  }

  .cs-card-wrap {
    cursor: auto
  }

  .wtags {
    display: none
  }

  .wtag {
    font-size: 10px;
    padding: 3px 8px;
    letter-spacing: .06em
  }

  .cs-card-wrap.expanded .wtags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px
  }

  /* Expanded card */

  .cs-card-wrap.expanded .cs-card {
    grid-template-columns: 1fr;
    height: auto
  }

  .cs-card-wrap.expanded .cs-thumb-col {
    height: 260px
  }

  .cs-card-wrap.expanded .cs-body {
    padding: 24px 20px;
    gap: 14px
  }

  .cs-card-wrap.expanded .cs-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 14px
  }

  /* Modal */

  .cs-modal-card {
    grid-template-columns: 1fr;
    width: 92vw;
    max-height: 90vh
  }

  .cs-modal-left {
    height: 220px
  }

  .cs-modal-right {
    padding: 28px 24px
  }

  .cs-gallery-panel {
    width: 92vw;
    max-height: 90vh
  }

  .cs-quilted-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  /* ABOUT — on mobile: title → text → image */

  /* Desktop: .ar (text) first, .al (title+image) second (grid col order) */

  /* Mobile: reorder using CSS order */

  #about {

    padding-block: 80px;

  }

  .about-grid {

    grid-template-columns: 1fr;

    gap: 0;

  }

  .al {

    position: static;

    order: 1;
    /* title + image at top */

    padding-bottom: 40px;

  }

  .ar {

    order: 2;
    /* text below */

    padding-top: 0;

  }

  .att {
    font-size: clamp(36px, 10vw, 56px);
    white-space: normal
  }

  .port {
    width: 100%
  }

  .traits {
    grid-template-columns: 1fr 1fr
  }

  /* EXPERIENCE */

  #exp {
    padding-block: 80px
  }

  .exr {
    grid-template-columns: 1fr;
    gap: 12px
  }

  /* CONTACT / FOOTER */

  #contact {
    padding-block: 80px
  }

  footer {
    padding-block: 24px
  }

  footer .container {
    flex-direction: column;
    gap: 12px;
    text-align: center
  }

  .modal {
    padding: 60px 22px
  }

  .mx {
    right: 22px
  }

  /* Intro card: stack pills vertically, enlarge stats */

  .c-pills {
    flex-direction: column;
    gap: 6px
  }

  .cpill {
    justify-content: center
  }

  .c-stats {
    margin-bottom: 16px
  }

  .csn {
    padding: 12px 6px
  }

  .csn-v {
    font-size: 28px
  }

  .csn-l {
    font-size: 10px;
    margin-top: 4px
  }

  /* 3D CAROUSEL — mobile */

  #showcase {
    padding-block: 80px
  }

  .carousel-scene {
    height: 340px;
    perspective: 900px
  }

  .c3d-card {
    width: 200px;
    height: 310px;
    margin-left: -100px;
    margin-top: -155px
  }

  .c3d-img {
    height: 165px
  }

  .c3d-name {
    font-size: 16px
  }

  .c3d-prev {
    left: 8px
  }

  .c3d-next {
    right: 8px
  }

  .c3d-arr {
    width: 38px;
    height: 38px;
    font-size: 14px;
    cursor: auto
  }

  .c3d-card {
    cursor: auto
  }

  /* Hide custom cursor on mobile/touch */

  #cur,
  #cur-r,
  #ct-cur {
    display: none
  }

  body {
    cursor: auto
  }

  .wcta,
  .wcard,
  a,
  button {
    cursor: auto
  }

}

/* ── BUX GALLERY MODAL ────────────────────────────────────────────────────────────────────────────────────────── */

.no-trans {
  transition: none !important
}

.bux-modal {
  padding: 0;
  background: rgba(6, 6, 8, .52);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start
}

.bux-modal .mx {
  display: none
}

.bux-glass {
  background: rgba(8, 8, 10, .55);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .14)
}

body.light .bux-glass {
  background: rgba(255, 255, 255, .45);
  border-color: rgba(255, 255, 255, .55)
}

/* Top bar */

.bux-topbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 20px;
  border-radius: 100px;
  z-index: 40;
  max-width: calc(100vw - 100px);
  white-space: nowrap
}

.bux-hcat {
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0
}

.bux-sep {
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, .18);
  flex-shrink: 0
}

.bux-htitle {
  font-family: var(--F);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis
}

.bux-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
  margin-left: 4px
}

.bux-close-btn:hover {
  background: rgba(200, 240, 96, .14);
  color: var(--accent);
  border-color: rgba(200, 240, 96, .3)
}

.bux-close-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

/* Controls bar */

.bux-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 40;
  white-space: nowrap;
  background: rgba(8, 8, 10, .55);
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: 8px 10px
}

.bux-proj-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0
}

.bux-proj-btn:hover {
  background: rgba(200, 240, 96, .12);
  border-color: var(--accent);
  color: var(--accent)
}

.bux-proj-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.bux-proj-btn:disabled {
  opacity: .25;
  pointer-events: none
}

.bux-layout-toggle {
  height: 36px;
  min-width: 120px;
  padding: 0 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .65);
  font-family: var(--M);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s
}

.bux-layout-toggle:hover {
  background: rgba(200, 240, 96, .12);
  border-color: rgba(200, 240, 96, .4);
  color: var(--accent)
}

.bux-layout-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.bux-layout-toggle[aria-pressed="true"] {
  background: rgba(200, 240, 96, .1);
  border-color: rgba(200, 240, 96, .45);
  color: var(--accent)
}

/* Scattered canvas */

.bux-scatter {
  position: absolute;
  inset: 0;
  overflow: hidden
}

@keyframes bux-shimmer {
  from {
    background-position: -600px 0
  }

  to {
    background-position: 600px 0
  }
}

.bux-skel-img {
  background: linear-gradient(90deg, #d8d8d8 25%, #ebebeb 50%, #d8d8d8 75%);
  background-size: 600px 100%;
  animation: bux-shimmer 1.3s infinite linear;
  border-radius: 4px;
  display: block
}

.bux-photo--skel {
  pointer-events: none;
  cursor: default !important
}

.bux-photo {
  position: absolute;
  background: #fff;
  padding: 10px 10px 34px;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .45), 0 1px 4px rgba(0, 0, 0, .25);
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: box-shadow .2s
}

.bux-photo:hover {
  box-shadow: 0 14px 44px rgba(0, 0, 0, .65) !important
}

.bux-photo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px
}

.bux-photo.dragging {
  cursor: grabbing;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .75) !important;
  transition: none !important
}

.bux-photo img,
.bux-photo video {
  display: block;
  pointer-events: none;
  border-radius: 4px
}

/* Grid view */

.bux-grid-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 130px 20px 60px;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  align-content: start
}

.bux-grid-view.active {
  display: grid
}

.bux-grid-item {
  background: #fff;
  padding: 8px 8px 28px;
  border-radius: 6px;
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(var(--tilt-s, 1));
  transition: transform .15s, box-shadow .15s
}

.bux-grid-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, .55)
}

.bux-grid-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.bux-grid-item img,
.bux-grid-item video {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 4px
}

/* Empty state */

.bux-empty {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5
}

.bux-empty-icon {
  font-size: 36px;
  opacity: .2
}

.bux-empty-txt {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35)
}

/* Lightbox */

.bux-lightbox {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px
}

.bux-lightbox.open {
  display: flex
}

.bux-lb-media {
  max-width: min(90vw, 1000px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.bux-lb-media img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .6)
}

.bux-lb-media video {
  max-width: 100%;
  max-height: 88vh;
  outline: none
}

.bux-lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
  transition: background .2s, color .2s, border-color .2s
}

.bux-lb-close:hover {
  background: rgba(200, 240, 96, .18);
  color: var(--accent);
  border-color: rgba(200, 240, 96, .35)
}

.bux-lb-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.bux-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  overflow: hidden
}

.bux-lb-arr {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 210;
  transition: background .2s, color .2s, border-color .2s
}

.bux-lb-arr:hover {
  background: rgba(200, 240, 96, .18);
  color: var(--accent);
  border-color: rgba(200, 240, 96, .35)
}

.bux-lb-arr:disabled {
  opacity: .25;
  pointer-events: none
}

@media(max-width:900px) {
  .bux-topbar {
    max-width: calc(100vw - 80px)
  }

  .bux-htitle {
    font-size: 12px
  }

  .bux-close-btn,
  .bux-proj-btn,
  .bux-layout-toggle {
    cursor: auto
  }

  .bux-grid-view {
    padding: 130px 12px 60px
  }

  .bux-grid-item img,
  .bux-grid-item video {
    height: 120px
  }

  .bux-controls {
    gap: 7px
  }

  .bux-layout-toggle {
    min-width: 100px;
    font-size: 8px
  }
}