/* ============================================================
   Shobhit Titus — UI/UX Leader Portfolio
   Original code. Spec-matched to measured design tokens:
   Archivo · #FAF7F3 · container 1180 · headings 600 · -2% tracking
   ============================================================ */

:root {
  --bg: #faf7f3;
  --ink: #111111;
  --ink-75: rgba(17, 17, 17, 0.78);
  --muted: rgba(17, 17, 17, 0.52);
  --line: rgba(17, 17, 17, 0.14);
  --dark: #111111;
  --card-dark: #111111;
  --field-dark: #1d1d1d;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --container: 1180px;
  --pad: clamp(20px, 3.4vw, 40px);
  --accent: #8b7cff;
  /* Display face: headings & big numbers */
  --font: "Bricolage Grotesque", "Archivo", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  /* Body face: Manrope (Google Fonts) */
  --font-body: "Manrope", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* Neue Montreal — licensed files supplied by site owner, in /fonts */
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Light.woff2") format("woff2"), url("fonts/NeueMontreal-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-LightItalic.woff2") format("woff2"), url("fonts/NeueMontreal-LightItalic.otf") format("opentype");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Regular.woff2") format("woff2"), url("fonts/NeueMontreal-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Italic.woff2") format("woff2"), url("fonts/NeueMontreal-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Medium.woff2") format("woff2"), url("fonts/NeueMontreal-Medium.otf") format("opentype");
  font-weight: 500 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-MediumItalic.woff2") format("woff2"), url("fonts/NeueMontreal-MediumItalic.otf") format("opentype");
  font-weight: 500 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-Bold.woff2") format("woff2"), url("fonts/NeueMontreal-Bold.otf") format("opentype");
  font-weight: 700 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Montreal";
  src: url("fonts/NeueMontreal-BoldItalic.woff2") format("woff2"), url("fonts/NeueMontreal-BoldItalic.otf") format("opentype");
  font-weight: 700 800; font-style: italic; font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Display face for headings and large numerals */
h1, h2, h3, h4,
.hero-year, .bio-left .hey, .footer-tagline, .footer-watermark,
.case-stats .stat b, .nav-name {
  font-family: var(--font);
}

::selection { background: var(--ink); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(310px, calc(100vw - 40px));
  /* the wrapper is just a positioning box — the hidden menu keeps its layout
     space inside it, which was silently swallowing hovers/clicks on content
     scrolling underneath. Let hits pass through; re-enable on the pill. */
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  background: var(--ink);
  border-radius: 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.nav-name {
  color: #faf7f3;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-toggle {
  width: 46px;
  height: 38px;
  border: none;
  border-radius: 10px;
  background: #faf7f3;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}
.nav-toggle:hover { transform: scale(1.06); }

.nav-toggle .dots { display: flex; gap: 4px; }
.nav-toggle .dots span {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #111;
  transition: transform 0.3s ease;
}
.nav.open .nav-toggle .dots span:nth-child(1) { transform: translateX(9px); }
.nav.open .nav-toggle .dots span:nth-child(3) { transform: translateX(-9px); }

.nav-menu {
  margin-top: 8px;
  background: var(--ink);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.nav.open .nav-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-menu a {
  color: #f1efe9;
  font-size: 15.5px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}
.nav-menu a:hover { background: #222; }
.nav-menu a .idx { color: #6f6f6f; font-size: 12px; font-weight: 600; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(96px, 15vh, 168px);
  overflow: hidden;
}

/* hanging-words curtain behind/below the hero title */
#curtain {
  position: absolute;
  inset: 0;
  z-index: 2;            /* below title (z 6), above background */
  pointer-events: none; /* never blocks clicks; cursor read globally */
}
/* portrait now lives only in the About section */
.hero-portrait { display: none; }

.hero-title {
  font-family: var(--font-body); /* Manrope for the hero display text */
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(58px, 10.9vw, 190px);
  position: relative;
  z-index: 6; /* title renders above the travelling portrait */
  pointer-events: none;
}
.hero-title .row { display: block; overflow: hidden; }
.hero-title .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .row:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes riseUp { to { transform: translateY(0); } }

.hero-portrait {
  position: relative;
  z-index: 3;
  width: clamp(150px, 12.5vw, 200px);
  aspect-ratio: 300 / 342;
  margin: clamp(-44px, -3.2vw, -18px) auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  animation: fadeIn 1s 0.5s ease both;
}
.hero-portrait svg { width: 100%; height: auto; display: block; }

/* photo fills its frame on all portrait surfaces */
.hero-portrait img,
.bio-card img,
.tc-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}
/* static fallback (no travel animation): hero stays B/W, bio in colour */
body:not(.travel-on) .hero-portrait img { filter: grayscale(1); }
/* About portrait mirrored to face the other way */
.bio-card img { transform: scaleX(-1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } }
@keyframes fadeOp { from { opacity: 0; } }

/* ============ TRAVELLING PORTRAIT CARD ============ */
.travel-card {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform, width, height;
  display: none;
}
body.travel-on .travel-card {
  display: block;
  animation: fadeOp 1s 0.5s both;
}
.tc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}
.tc-face svg { width: 100%; height: 100%; }
.tc-back { transform: rotateY(180deg); }
/* while travel is active, the two slots become invisible placeholders */
body.travel-on .hero-portrait,
body.travel-on .bio-card { box-shadow: none; }
body.travel-on .hero-portrait svg,
body.travel-on .hero-portrait img,
body.travel-on .bio-card svg,
body.travel-on .bio-card img { visibility: hidden; }

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(22px, 4vh, 44px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-year {
  font-size: clamp(38px, 4.25vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-since {
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-75);
}

/* floating decorative shapes */
.shape {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}
.shape-star {
  width: clamp(120px, 13.2vw, 212px);
  top: 20%;
  left: clamp(3%, 9vw, 11%);
  animation: floatyStar 6.5s ease-in-out infinite;
}
.shape-bolt {
  width: clamp(92px, 10.2vw, 164px);
  top: 48%;
  right: clamp(3%, 10vw, 12%);
  /* different path, duration and a negative delay → out of phase with the star */
  animation: floatyBolt 9.3s ease-in-out infinite;
  animation-delay: -3.4s;
}
@keyframes floatyStar {
  0%   { transform: translateY(0) rotate(-5deg); }
  50%  { transform: translateY(-18px) rotate(4deg); }
  100% { transform: translateY(0) rotate(-5deg); }
}
@keyframes floatyBolt {
  0%   { transform: translateY(-8px) rotate(6deg); }
  30%  { transform: translateY(12px) rotate(-4deg); }
  65%  { transform: translateY(-10px) rotate(3deg); }
  100% { transform: translateY(-8px) rotate(6deg); }
}

/* ============ SECTION BASICS ============ */
section { position: relative; }

.section-pad { padding: clamp(70px, 9vw, 130px) 0; }

.h-giant {
  font-size: clamp(46px, 4.75vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ BIO ============ */
#bio { min-height: 100vh; display: flex; align-items: center; }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  width: 100%;
}

.bio-left .hey {
  font-size: clamp(52px, 4.75vw, 76px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: clamp(48px, 8vw, 150px);
}
.bio-left p {
  font-size: clamp(15.5px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.bio-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  max-width: 390px;
  aspect-ratio: 340 / 420;
  margin: 0 auto;
}
.bio-card svg { width: 100%; height: auto; display: block; }

.bio-right p {
  font-size: clamp(15.5px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.cta-inline {
  font-family: var(--font); /* Bricolage */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  margin-top: 10px;
}
.cta-inline .arrow {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.cta-inline:hover .arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}

/* ============ STATEMENT (scroll-fill text, pinned) ============ */
.statement { height: 200vh; }
.statement-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.5vw, 40px);
}
.statement p {
  max-width: 900px;
  text-align: center;
  font-size: clamp(22px, 2.25vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.statement p .w { color: rgba(0, 0, 0, 0.1); transition: color 0.3s ease; }
.statement p .w.lit { color: var(--ink); }

/* ============ SERVICES ============ */
.services-head { margin-bottom: clamp(24px, 3.4vw, 48px); }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s ease;
}
.service-row:first-of-type { border-top: 1px solid var(--line); }
.service-row:hover { padding-left: 14px; }

.service-row h3 {
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: clamp(12.5px, 0.95vw, 15px);
  font-weight: 400;
}
.service-tags span.dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

/* ============ WORK EXPERIENCE (hover to expand) ============ */
.exp-row {
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-row:first-of-type { border-top: 1px solid var(--line); }
.exp-row:hover,
.exp-row.open { padding-left: 14px; }

.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3vw, 40px) 0;
}
.exp-head h3 {
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
/* company logo replaces the company name in the right-side tag */
.service-tags .tag-logo {
  display: inline-flex;
  align-items: center;
  /* shared height keeps every wordmark the same size; widths vary naturally */
  height: 22px;
}
.service-tags .tag-logo img {
  height: 100%;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
}

/* collapsed by default; expands on hover (desktop) or .open (tap) */
.exp-detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease, margin 0.5s ease;
  margin-bottom: 0;
}
.exp-detail > * { overflow: hidden; min-height: 0; }
.exp-row:hover .exp-detail,
.exp-row.open .exp-detail {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-bottom: clamp(24px, 3vw, 38px);
}
.exp-detail p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-75);
  max-width: 760px;
}
.exp-list {
  list-style: none;
  max-width: 780px;
  display: grid;
  gap: 9px;
}
.exp-list li {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1;
  font-weight: 500;
  color: var(--ink-75);
}

/* ============ WORK ============ */
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 56px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15.5px;
  white-space: nowrap;
}
.link-arrow .arrow {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.link-arrow:hover .arrow {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(45deg);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 4vw, 56px) 16px;
}

.work-card { display: block; }
.work-cover {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 582 / 401;
  position: relative;
}
.work-cover svg,
.work-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-cover svg,
.work-card:hover .work-cover img { transform: scale(1.045); }

.work-meta { padding: 16px 2px 0; }
.work-meta h3 {
  font-size: clamp(19px, 1.65vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.work-meta p { color: var(--muted); font-size: 15px; margin-top: 2px; }

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(30px, 4vw, 56px);
}

.testi-card {
  perspective: 1200px;
  min-height: 340px;
}
.testi-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.testi-card.flipped .testi-flip { transform: rotateY(180deg); }

.testi-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 20px;
  background: var(--card-dark);
  color: #ececec;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testi-face.front {
  align-items: center;
  justify-content: center;
}
.testi-face.front svg { width: 60px; height: 60px; opacity: 0.95; }
.testi-face.back { transform: rotateY(180deg); }

.testi-face .quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: #eceae4;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #101010;
  flex: none;
}
.testi-person .who b { display: block; font-size: 14.5px; font-weight: 600; }
.testi-person .who span { font-size: 12.5px; color: #9b988f; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.contact-left .sub {
  margin-top: 16px;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  color: var(--ink-75);
  max-width: 440px;
  line-height: 1.55;
}

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.07);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.socials a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.contact-form {
  background: var(--card-dark);
  border-radius: 16px;
  padding: clamp(18px, 1.8vw, 26px);
  color: #faf7f3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  max-width: 500px;
  justify-self: end;
  width: 100%;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 8px;
  color: #f1efe9;
}
.contact-form .field { margin-bottom: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--field-dark);
  border: 1px solid #333;
  color: #faf7f3;
  border-radius: 8px;
  padding: 12px 14px;
  height: 44px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8d8a83; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #777; }
.contact-form textarea { min-height: 130px; height: auto; resize: vertical; }
.contact-form button {
  width: 100%;
  background: #faf7f3;
  color: #111;
  border: none;
  border-radius: 8px;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.contact-form button:hover { background: #fff; transform: translateY(-2px); }
.form-note { font-size: 12px; color: #8d8a83; margin-top: 12px; text-align: center; }

/* honeypot — kept out of view and out of the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
/* submit status message */
.form-status {
  font-size: 13.5px;
  line-height: 1.45;
  margin-top: 12px;
  text-align: center;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { color: #7fd6a2; }
.form-status.err { color: #f0a3a3; }

/* success panel — replaces the form after a message is sent */
.form-success {
  background: var(--card-dark);
  border-radius: 16px;
  padding: clamp(34px, 4vw, 44px) clamp(24px, 3vw, 34px);
  text-align: center;
  color: #faf7f3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  max-width: 500px;
  justify-self: end;
  width: 100%;
  animation: fadeIn 0.5s ease both;
}
.form-success .fs-badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(139, 124, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.form-success .fs-badge svg { width: 32px; height: 32px; }
.form-success h3 {
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.form-success p {
  color: #b8b5ad;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 300px;
}
.form-success .fs-again {
  background: transparent;
  color: #faf7f3;
  border: 1px solid #333;
  border-radius: 8px;
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-success .fs-again:hover { border-color: #777; background: #1d1d1d; }
/* on the contact grid, the success panel sits where the form was */
.contact-grid .form-success { align-self: start; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: #faf7f3;
  margin-top: clamp(60px, 8vw, 120px);
  padding: clamp(64px, 8vw, 110px) 0 0;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
}
/* quick links + contact columns start level with the tagline's second line */
.footer-grid > div:nth-child(2),
.footer-grid > div:nth-child(3) {
  padding-top: clamp(34px, 4.25vw, 68px);
}

.footer-tagline {
  font-size: clamp(32px, 4.25vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer h4 {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px; max-width: 300px; }
.footer-links a {
  background: #faf7f3;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 15px;
  border-radius: 8px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.footer-links a:hover { transform: translateY(-2px); background: #fff; }

.footer-contact a {
  color: #d8d5cc;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: #fff; }

.footer-watermark {
  margin-top: clamp(30px, 4vw, 60px);
  text-align: center;
  font-size: clamp(64px, 14.8vw, 245px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.72;
  color: rgba(250, 247, 243, 0.1);
  user-select: none;
  transform: translateY(0.1em);
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 20px;
  font-size: 12.5px;
  color: #8b887f;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ============ WORK DETAIL PAGE ============ */
.case-hero { padding: clamp(130px, 17vh, 190px) 0 0; }
.case-hero h1 {
  font-size: clamp(44px, 4.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin: clamp(22px, 2.8vw, 38px) 0;
}
.case-meta .item span {
  display: block;
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.5);
  margin-bottom: 2px;
}
.case-meta .item b { font-size: 17.5px; font-weight: 400; }
.case-meta .slash { color: var(--muted); font-size: 20px; }

/* AI hero button: match the vertical rhythm of case-study .case-meta */
.case-hero .btn-live { margin: clamp(22px, 2.8vw, 38px) 0; }

/* back breadcrumb above the case/AI page title */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: clamp(16px, 2vw, 24px);
  transition: color 0.2s ease, gap 0.2s ease;
}
.case-back svg { width: 15px; height: 15px; flex: none; }
.case-back:hover { color: var(--ink); gap: 11px; }

.case-intro {
  max-width: none;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: clamp(30px, 3.8vw, 52px);
}

.case-cover {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: clamp(44px, 5.5vw, 84px);
}
.case-cover svg,
.case-cover img { width: 100%; height: auto; display: block; }

.case-body { max-width: none; }
.case-body h2 {
  font-size: clamp(32px, 3.25vw, 52px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: clamp(40px, 5vw, 64px) 0 24px;
  line-height: 1.25;
}
.case-body p {
  font-size: clamp(15.5px, 1.15vw, 18px);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 10px;
}
.case-stats .stat {
  background: var(--card-dark);
  color: #f0eee8;
  border-radius: 16px;
  padding: 20px 18px;
}
.case-stats .stat b {
  display: block;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.case-stats .stat span { font-size: 13px; color: #a09d94; }

.case-img {
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
}
.case-img svg { width: 100%; height: auto; display: block; }

.more-work { margin-top: clamp(64px, 8vw, 110px); }
.more-work h2 {
  font-size: clamp(38px, 4.25vw, 68px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: clamp(22px, 2.8vw, 40px);
}

/* ============ CASE STUDY EXTENDED BLOCKS ============ */
.case-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6420;
  margin: clamp(48px, 5.4vw, 78px) 0 12px;
}
.case-eyebrow + h2 { margin-top: 0; }

.case-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0; }
.case-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0; }

.case-card {
  background: #f3f0e8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-75);
}
.case-card strong {
  display: block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.case-callout {
  background: var(--card-dark);
  color: #f0eee8;
  border-radius: 16px;
  padding: 30px 32px;
  margin: 34px 0;
}
.case-callout .cq-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b9aeff;
  margin-bottom: 10px;
}
.case-callout p {
  font-family: var(--font);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: #f0eee8;
  margin: 0;
}

.case-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
.case-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
}
.case-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-75); }
.case-table td:first-child { color: var(--ink); font-weight: 500; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.badge.shared { background: rgba(139, 124, 255, 0.16); color: #5b4ce0; }
.badge.flex { background: rgba(200, 148, 58, 0.16); color: #8a6420; }
.badge.unique { background: rgba(17, 17, 17, 0.08); color: var(--muted); }

.case-solution {
  background: #f3f0e8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.case-solution .sn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8a6420;
  margin-bottom: 8px;
}
.case-solution h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.case-solution p { font-size: 14.5px; line-height: 1.65; color: var(--ink-75); margin: 0; }
.impact-chip {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #5b4ce0;
  background: rgba(139, 124, 255, 0.13);
  padding: 6px 12px;
  border-radius: 8px;
}
.case-solution .shot { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.case-solution .shot img { width: 100%; height: auto; display: block; }

.case-flow { display: flex; align-items: stretch; gap: 8px; margin: 26px 0; }
.case-flow .step {
  flex: 1;
  background: var(--card-dark);
  color: #eceae4;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
}
.case-flow .step .prod {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9aeff;
  margin-bottom: 6px;
}
.case-flow .step b { display: block; font-size: 14px; margin-bottom: 4px; }
.case-flow .step span { font-size: 12px; color: #9b988f; line-height: 1.5; }
.case-flow .arr { align-self: center; font-size: 18px; color: var(--muted); flex: none; }

.case-stats.stats-4 { grid-template-columns: repeat(4, 1fr); }

.case-outcome { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-outcome:last-child { border-bottom: none; }
.case-outcome b { font-size: 15.5px; margin-bottom: 4px; }
.case-outcome p { font-size: 14px; margin: 0; }

.case-quote {
  background: #f3f0e8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  margin: 26px 0;
}
.case-quote p {
  font-family: var(--font);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 auto;
  max-width: 680px;
}

.tok-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tok-row:last-child { border-bottom: none; }
.tok-swatch { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.tok-name { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--ink); flex: 1; }
.tok-val { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--muted); }

@media (max-width: 980px) {
  .case-grid2, .case-grid3 { grid-template-columns: 1fr; }
  .case-stats.stats-4 { grid-template-columns: 1fr 1fr; }
  .case-flow { flex-direction: column; }
  .case-flow .arr { transform: rotate(90deg); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-card { max-width: 380px; }
  .bio-left .hey { margin-bottom: 24px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { justify-self: start; }
  .contact-grid .form-success { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) { padding-top: 0; }
  .case-stats { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .service-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .work-head { flex-direction: column; align-items: flex-start; }
  .statement { height: 160vh; }
}

/* ============ GALLERY MARQUEE (two auto rows) ============ */
.gallery {
  padding: clamp(50px, 7vw, 100px) 0;
  overflow: hidden;
}
.marquee {
  overflow: hidden;
  width: 100%;
}
.marquee + .marquee { margin-top: clamp(12px, 1.6vw, 20px); }

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track img {
  height: clamp(150px, 20vw, 240px);
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-right: clamp(12px, 1.6vw, 20px);
  flex: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* the track holds two identical halves; -50% lands seamlessly */
.marquee-left  { animation: marqueeLeft 55s linear infinite; }
.marquee-right { animation: marqueeRight 55s linear infinite; }

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marqueeRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (max-width: 640px) {
  .marquee-left, .marquee-right { animation-duration: 38s; }
}

/* ============ AI PROJECTS SLIDER ============ */
.ai-slider {
  overflow: hidden;
  margin-top: clamp(30px, 4vw, 56px);
}
.ai-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ai-slider {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  padding-left: max(var(--pad), calc((100vw - var(--container)) / 2));
}
.ai-slider.dragging { cursor: grabbing; }
.ai-slider.dragging .work-cover img { transition: none; }
.ai-card { flex: none; width: clamp(300px, 32vw, 460px); margin-right: 32px; }

/* live-link button on AI project pages */
.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #faf7f3;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 12px;
  margin: 4px 0 14px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-live:hover { transform: translateY(-2px); background: #000; }
.btn-live 