/* ─────────────────────────────────────────────────────────────
   tsoyasin — portfolio
   ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:    #AC64FF;
  --pink-d:  #9348E8;
  --ink:     #111111;
  --ink-2:   #3a3a3a;
  --grey-1:  #6b6b6b;
  --grey-2:  #9a9a9a;
  --grey-3:  #c7c7c7;
  --line:    rgba(0,0,0,0.10);
  --line-2:  rgba(0,0,0,0.06);
  --card:    #ececea;
  --bg:      #f5f4f2;
  --white:   #ffffff;
  --ph-stripe: rgba(0,0,0,0.035);
  --radius:  20px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --fast:    cubic-bezier(0.4, 0, 0.2, 1);
  --sans:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: var(--sans);
  --disp-spacing: -0.03em;
  --disp-weight: 700;
}

/* ── Mood palettes (Tweak) ───────────────────────────── */
[data-mood="editorial"] {
  --pink:   #1a1a1a;  --pink-d: #000000;
  --bg:     #ffffff;  --card:   #e9e9e7;
  --line:   rgba(0,0,0,0.13); --line-2: rgba(0,0,0,0.06);
  --grey-3: #cfcfcf;
}
[data-mood="noir"] {
  --ink:    #f3f2f0;  --ink-2:  #cbc9c5;
  --grey-1: #9b9a97;  --grey-2: #6e6d6a;  --grey-3: #5a5a5d;
  --bg:     #0d0d0e;  --card:   #1b1b1d;  --white: #18181a;
  --line:   rgba(255,255,255,0.13); --line-2: rgba(255,255,255,0.07);
  --ph-stripe: rgba(255,255,255,0.05);
}
[data-mood="noir"] .nav-pill { box-shadow: 0 6px 6px rgba(0,0,0,0.4), 0 0 20px rgba(0,0,0,0.3); }
[data-mood="noir"] .glass-tint { background: rgba(26, 26, 30, 0.45); }
[data-mood="noir"] .glass-shine { box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 1px 1px rgba(255,255,255,0.06); }
[data-mood="noir"] .badge    { box-shadow: none; }
[data-mood="noir"] .modal-wrap { background: rgba(13,13,14,0.55); }
[data-mood="noir"] .ins-cat  { color: var(--pink); }

/* ── Headline voices (Tweak) ─────────────────────────── */
[data-voice="serif"] { --display: "Newsreader", Georgia, serif; --disp-spacing: -0.01em; --disp-weight: 600; }
[data-voice="mono"]  { --display: "Space Mono", ui-monospace, Menlo, monospace; --disp-spacing: -0.02em; --disp-weight: 700; }

.hero-title, .section-h, .about-h, .faq-h, .foot-h, .detail-title, .wordmark, .modal-title, .modal-done h3 {
  font-family: var(--display);
  letter-spacing: var(--disp-spacing);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background .5s var(--ease), color .5s var(--ease);
}
/* Ambient glow at the top of the viewport — gives the glass nav something to refract */
body::before {
  content: '';
  position: fixed;
  top: -60px; left: -5%; right: -5%;
  height: 300px;
  background:
    radial-gradient(ellipse 55% 55% at 38% 25%, rgba(172, 100, 255, 0.26) 0%, transparent 65%),
    radial-gradient(ellipse 40% 45% at 68% 15%, rgba(100, 160, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1; /* stays behind all page content; nav backdrop-filter still sees it */
}
html[data-mood="noir"] body::before {
  background:
    radial-gradient(ellipse 55% 55% at 38% 25%, rgba(172, 100, 255, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse 40% 45% at 68% 15%, rgba(80, 130, 255, 0.22) 0%, transparent 60%);
}
img { display: block; width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

.page {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-left: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
}

/* reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"]{ transition-delay:.08s } [data-delay="2"]{ transition-delay:.16s }
[data-delay="3"]{ transition-delay:.24s } [data-delay="4"]{ transition-delay:.32s }

/* ───────────────── Nav ───────────────── */
nav {
  position: fixed;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 40px);
  max-width: 400px;
  transition: max-width .55s var(--ease);
}
nav.shrunk { max-width: 220px; }
.nav-links {
  display: flex; align-items: center; gap: 2px; list-style: none; margin-left: auto;
  overflow: hidden;
  max-width: 420px; opacity: 1;
  padding: 0;
  transition: max-width .55s var(--ease), opacity .4s var(--ease), margin .55s var(--ease);
}
nav.shrunk .nav-links { max-width: 0; opacity: 0; margin-left: 0; pointer-events: none; }
nav.shrunk .glass-content { padding: 9px 12px 9px 14px; }
.nav-typing {
  display: flex; align-items: center; gap: 5px; margin-left: auto; padding-right: 4px;
  max-width: 0; opacity: 0; overflow: visible;
  transition: max-width .55s var(--ease), opacity .4s var(--ease), padding .55s var(--ease);
}
nav.shrunk .nav-typing { max-width: 40px; opacity: 1; padding-right: 10px; }
.nav-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-1); animation: typing 1.4s infinite ease-in-out; }
.nav-typing i:nth-child(2) { animation-delay: .18s; }
.nav-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,60%,100%{ transform: translateY(0); opacity:.35 } 30%{ transform: translateY(-4px); opacity:1 } }
.nav-pill {
  position: relative;
  border-radius: 100px;
  overflow: hidden;
  will-change: transform;
  /* Match original GlassEffect component shadow exactly */
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
}
/* ── Liquid glass layers — values taken directly from the GlassEffect component ── */
.glass-backdrop {
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
  /* 3px blur — the DISTORTION (filter below) creates the liquid look, not heavy blur */
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.glass-tint {
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: 1;
  background: rgba(255, 255, 255, 0.25);
}
.glass-shine {
  position: absolute; inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}
.glass-content {
  position: relative;
  z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 9px 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #C28FFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
  overflow: hidden;
}
.nav-avatar img, .av img, .faq-card-av img, .modal-id .av img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink); padding: 0 12px;
  height: 36px; line-height: 36px;
  border-radius: 100px; transition: background .2s, color .2s; white-space: nowrap;
}
.nav-links a:hover { background: rgba(0,0,0,0.05); }
.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 1.5px solid rgba(0,0,0,0.18) !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  height: auto !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.nav-cta:hover { background: var(--ink) !important; color: var(--bg) !important; border-color: var(--ink) !important; }

/* ── Mobile nav: integrated pill that expands ────── */
/* Hidden on desktop */
.mob-toggle { display: none; }
.mob-menu   { display: none; }

/* Toggle button visual — identical to .nav-typing dots */
.mob-dots { display: flex; align-items: center; gap: 5px; }
.mob-dots i {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grey-1);  /* same grey as desktop scroll-dots */
  animation: typing 1.4s infinite ease-in-out;
}
.mob-dots i:nth-child(2) { animation-delay: .18s; }
.mob-dots i:nth-child(3) { animation-delay: .36s; }
.mob-close { display: none; font-size: 15px; font-weight: 400; color: var(--grey-1); }

/* ───────────────── Hero (flowing) ───────────────── */
.hero-proj { position: relative; }
.hp-hero {
  max-width: 680px;
  padding: clamp(150px, 22vh, 240px) 64px 80px;
  min-height: 70vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  align-items: flex-start;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 100px; padding: 7px 16px 7px 12px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04); margin-bottom: 30px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #35c759; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(53,199,89,.4) } 50%{ box-shadow:0 0 0 6px rgba(53,199,89,0) } }

.hero-title {
  font-size: clamp(50px, 6.6vw, 96px);
  font-weight: var(--disp-weight); line-height: 0.95;
  margin-bottom: 26px;
}
.hero-title .light { color: var(--grey-2); display: block; font-weight: 600; }
.hero-title .dark  { color: var(--ink);   display: block; }

.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.kicker .spark { color: var(--pink-d); }
.hero-desc { font-size: 16.5px; line-height: 1.6; color: var(--grey-1); max-width: 380px; margin-bottom: 12px; }
.hero-desc strong { color: var(--ink); font-weight: 600; }
.hero-desc.last { margin-bottom: 30px; }

.btn-dark {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--bg);
  padding: 13px 24px 13px 13px; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transition: transform .2s var(--fast), background .2s;
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-dark .av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  overflow: hidden;
}
.btn-dark .av svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 1.8; }

/* image placeholder treatment */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(135deg, var(--ph-stripe) 0 2px, transparent 2px 11px),
    var(--card);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.04em; color: var(--grey-2);
  text-transform: uppercase; padding: 0 10px; text-align: center;
}

/* project stage — scroll-linked grid that gathers into a hero pile */
.latest { position: relative; padding: 40px 64px 120px; }
.latest-h {
  font-size: clamp(34px, 5vw, 64px); font-weight: var(--disp-weight);
  font-family: var(--display); letter-spacing: var(--disp-spacing);
  line-height: 1.0; margin-bottom: 40px;
}
.latest-h .muted { color: var(--grey-2); }
.proj-hint { display: none; }
.proj-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 26px);
  max-width: 1120px; margin: 0 auto;
}
.proj-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; cursor: pointer;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  will-change: transform;
  background: var(--card);
}
.proj-card .pc-media { position: absolute; inset: 0; }
.proj-card .pc-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(0,0,0,0.78); color: #fff; backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 100px;
}
.proj-card .pc-grad {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.62), transparent 46%);
}
.proj-card .pc-title {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  color: #fff; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
}
.proj-card .pc-view {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  color: #fff; font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; opacity: .9;
}
.proj-card { cursor: none; }
#projStage:not(.expanded) .proj-card { pointer-events: none; }
.proj-card:hover .pc-view { opacity: 1; }

/* thumbnail zoom on hover */
.proj-card .pc-media img {
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.proj-card:hover .pc-media img {
  transform: scale(1.1);
}

/* custom follow cursor */
.card-cursor {
  position: fixed; pointer-events: none; z-index: 9999;
  background: rgba(255,255,255,0.95); color: #111;
  padding: 7px 16px; border-radius: 100px;
  font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  transform: translate(-50%, -50%) scale(0.82);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0,0,0,0.13);
  top: 0; left: 0;
}
.card-cursor.show {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* fade card text on hover and hide when piled */
.proj-card .pc-tag,
.proj-card .pc-title,
.proj-card .pc-view,
.proj-card .pc-grad {
  transition: opacity 0.4s ease;
}
#projStage:not(.expanded) .proj-card .pc-tag,
#projStage:not(.expanded) .proj-card .pc-title,
#projStage:not(.expanded) .proj-card .pc-view,
#projStage:not(.expanded) .proj-card .pc-grad {
  opacity: 0;
}
.proj-card:hover .pc-tag,
.proj-card:hover .pc-title,
.proj-card:hover .pc-view,
.proj-card:hover .pc-grad {
  opacity: 0;
}

/* hover video preview */
.pc-preview {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.5s ease; pointer-events: none; z-index: 1;
}
.pc-preview.ready { opacity: 1; }
/* landscape (16:9) video in 4:3 card */
.pc-preview iframe {
  position: absolute; top: 0; height: 100%;
  left: -16.67%; width: 133.34%;
  border: none;
}
/* portrait (9:16) video in 4:3 card */
.pc-preview.portrait iframe {
  width: 100%; height: 237%;
  left: 0; top: 50%;
  transform: translateY(-50%);
}

.proj-tail {
  position: relative; margin: 56px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; transition: opacity .5s var(--ease);
}
.proj-tail.show { opacity: 1; }
.view-all { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.view-all:hover { color: var(--pink-d); }
.mail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08); transition: .2s var(--fast);
}
.mail-btn:hover { background: var(--ink); transform: translateY(-2px); }
.mail-btn:hover svg { stroke: var(--bg); }
.mail-btn svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; transition: stroke .2s; }

/* ───────────────── Trusted by ───────────────── */
.trusted {
  border-top: 1px solid var(--line-2);
  padding: 30px 64px;
  display: flex; align-items: center; gap: 30px;
  overflow: hidden; position: relative;
}
.trusted-label { font-size: 17px; font-weight: 500; color: var(--ink); white-space: nowrap; position: relative; z-index: 2; padding-right: 22px; }
.trusted-label b { font-weight: 700; }
.trusted-wrap { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trusted-track { display: flex; align-items: center; gap: 54px; width: max-content; }
.logo-word {
  font-size: 22px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--grey-3); white-space: nowrap; flex-shrink: 0;
  font-family: var(--sans);
}
.logo-img {
  height: 32px; width: auto; flex-shrink: 0;
  object-fit: contain; mix-blend-mode: multiply;
}

/* ───────────────── Services ───────────────── */
#services { padding: 110px 64px; }
.section-h {
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 600;
  line-height: 1.08;
}
.section-h .muted { color: var(--grey-2); }
.toolbox-label { font-size: 14px; color: var(--grey-1); margin: 40px 0 16px; }
.toolbox { display: flex; flex-wrap: wrap; gap: 10px; }
.tool {
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.svc-head { margin-bottom: 40px; }
.svc-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.svc-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.svc-ic {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.svc-ic svg { width: 17px; height: 17px; stroke: var(--bg); fill: none; stroke-width: 1.7; }
.svc-card-title { font-size: 17px; font-weight: 600; }
.svc-card-desc { font-size: 14.5px; line-height: 1.65; color: var(--grey-1); flex: 1; }
.svc-card-tag {
  font-size: 12px; font-weight: 600; color: var(--grey-2);
  letter-spacing: 0.02em;
}
.svc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svc-card-link {
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity .2s;
}
.svc-card-link:hover { opacity: 0.6; }
.svc-card--ugc { border-color: rgba(0,0,0,0.13); }

/* ───────────────── About ───────────────── */
#about { padding: 70px 64px 110px; }
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.about-h { font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; line-height: 1.1; grid-column: 1 / -1; margin-bottom: 46px; }
.about-h .muted { color: var(--grey-2); }
.about-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 18px 44px rgba(0,0,0,0.12); position: relative; }
.about-social { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 3; }
.about-social a { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.about-social svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 1.7; }
.about-name { font-size: 15px; font-weight: 600; margin-top: 16px; }
.about-role { font-size: 13.5px; color: var(--grey-2); margin-top: 2px; }
.about-body p { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; }
.about-body p strong { font-weight: 600; }
.about-body p:first-child { font-size: 17px; }

/* ───────────────── FAQ ───────────────── */
#faq { padding: 70px 64px 110px; }
.faq-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 48px; align-items: start; }
.faq-h { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.08; margin-bottom: 40px; }
.faq-h .muted { color: var(--grey-2); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.faq-item.open { border-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 19px 22px; font-size: 15.5px; font-weight: 500; text-align: left;
  transition: padding .25s var(--ease);
}
.faq-item.open .faq-q { padding-bottom: 14px; }
.faq-num { font-size: 12px; color: var(--grey-2); font-variant-numeric: tabular-nums; width: 18px; }
.faq-q .faq-txt { flex: 1; }
.faq-sign { font-size: 20px; font-weight: 400; color: var(--grey-1); width: 18px; text-align: center; line-height: 1; transition: color .2s; }
.faq-item.open .faq-sign { color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 22px 22px 56px; font-size: 14.5px; line-height: 1.65; color: var(--grey-1); }

.faq-card { background: var(--white); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px; box-shadow: 0 8px 26px rgba(0,0,0,0.05); }
.faq-card-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--pink),#c97d88); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; margin-bottom: 18px; overflow: hidden; }
.faq-card-sm { font-size: 14px; color: var(--grey-1); }
.faq-card-h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 18px; }
.faq-card .btn-dark { padding: 11px 20px 11px 11px; font-size: 14px; }
.faq-card .btn-dark .av { width: 26px; height: 26px; }

/* ───────────────── Insights ───────────────── */
#insights { padding: 70px 64px 110px; }
.ins-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; }
.ins-view { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ins-view:hover { color: var(--pink-d); }
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ins-card { background: var(--white); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ins-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.ins-media { height: 180px; }
.ins-body { padding: 18px 20px 22px; }
.ins-cat { font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-d); }
.ins-title { font-size: 16px; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }

/* ───────────────── Footer ───────────────── */
footer { background: #111111; color: rgba(255,255,255,0.6); position: relative; overflow: hidden; }
.foot-top { padding: 90px 64px 50px; position: relative; }
.foot-h { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; line-height: 1.0; color: #fff; }
.foot-h .muted { color: rgba(255,255,255,0.35); }
.foot-meta { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-top: 56px; }
.foot-email-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; }
.foot-email { font-size: 19px; color: #fff; font-weight: 500; margin-top: 6px; }
.foot-email:hover { color: var(--pink); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; transition: .2s; }
.foot-social a:hover { background: rgba(255,255,255,0.1); }
.foot-social svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.7; }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 64px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; color: rgba(255,255,255,0.4); }
.foot-legal a { color: rgba(255,255,255,0.4); }
.foot-legal a:hover { color: #fff; }
.wordmark {
  font-size: clamp(80px, 22vw, 320px); font-weight: 800;
  color: #AC64FF; line-height: 0.78; text-align: center;
  padding: 0 10px; overflow: hidden; user-select: none;
  transform: translateY(20%);
}

/* ───────────────── Project Detail (bottom→top) ───────────────── */
.detail {
  position: fixed; inset: 0; z-index: 480;
  background: var(--bg);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .62s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}
.detail.open { clip-path: inset(0 0 0 0); visibility: visible; }
.detail-inner { max-width: 1100px; margin: 0 auto; padding: 90px 48px 80px; opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.detail.open .detail-inner { opacity: 1; transform: none; }
.detail-close {
  position: fixed; top: 26px; right: 30px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.detail-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--grey-1); margin-bottom: 26px; }
.detail-back:hover { color: var(--ink); }
.detail-tag { font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink-d); }
.detail-title { font-size: clamp(40px, 6vw, 76px); font-weight: var(--disp-weight); line-height: 0.98; margin: 14px 0 22px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 36px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.detail-meta .m-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-2); margin-bottom: 5px; }
.detail-meta .m-v { font-size: 15px; font-weight: 500; }
.detail-hero { height: 460px; border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.detail-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 720px; margin-bottom: 40px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-gallery .ph { height: 320px; border-radius: 14px; }
.detail-gallery .wide { grid-column: 1 / -1; }
.detail-gallery .wide .ph { height: 420px; }

.detail-more { margin-top: 80px; padding-top: 52px; border-top: 1px solid var(--line); }
.detail-more-h {
  font-size: clamp(30px, 4.4vw, 56px); font-weight: var(--disp-weight);
  font-family: var(--display); letter-spacing: var(--disp-spacing);
  line-height: 1.0; margin-bottom: 32px;
}
.detail-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-more-tail { text-align: center; padding: 54px 0 6px; }
.detail-more-tail .view-all { justify-content: center; }

/* ───────────────── Contact Modal ───────────────── */
.modal-wrap {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(245,244,242,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal-wrap.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  width: min(540px, 100%);
  background: transparent; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  transform: translateY(16px) scale(0.98); transition: transform .35s var(--ease);
}
.modal-wrap.open .modal { transform: none; }

/* ── Liquid glass layers — exact same values as nav pill ── */
.modal-glass-back {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  overflow: hidden;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0);
}
.modal-glass-tint {
  position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: rgba(255, 255, 255, 0.25);
}
.modal-glass-shine {
  position: absolute; inset: 0; border-radius: inherit; z-index: 2;
  pointer-events: none; overflow: hidden;
  box-shadow:
    inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}
.modal-inner {
  position: relative; z-index: 3;
  padding: 34px; max-height: 90vh; overflow-y: auto;
}
[data-mood="noir"] .modal-glass-tint { background: rgba(26, 26, 30, 0.45); }
[data-mood="noir"] .modal-glass-shine { box-shadow: inset 2px 2px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 1px 1px rgba(255,255,255,0.06); }

.modal-close { position: absolute; top: 16px; right: 18px; font-size: 22px; color: var(--ink); width: 30px; height: 30px; }
.modal-title { font-size: 30px; font-weight: 700; }
.modal-sub { font-size: 15px; color: var(--grey-1); margin-top: 4px; }
.modal-id { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; }
.modal-id .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--pink),#c97d88); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; overflow: hidden; }
.modal-id .nm { font-size: 14px; font-weight: 600; }
.modal-id .em { font-size: 13px; color: var(--grey-2); }
.field { margin-top: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { color: var(--grey-2); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 14.5px; background: var(--bg); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; cursor: pointer;
}
.field select option[value=""] { color: var(--grey-2); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(172,100,255,0.18); }
.field textarea { min-height: 110px; }
.modal-submit {
  width: 100%; margin-top: 24px; background: var(--ink); color: var(--bg);
  padding: 15px; border-radius: 100px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2); transition: transform .2s var(--fast);
}
.modal-submit:hover { transform: translateY(-2px); }
.modal-submit svg { width: 15px; height: 15px; stroke: var(--bg); fill: none; stroke-width: 2; }
.modal-done { text-align: center; padding: 30px 0 10px; }
.modal-done .chk { width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; }
.modal-done h3 { font-size: 22px; font-weight: 700; }
.modal-done p { font-size: 14.5px; color: var(--grey-1); margin-top: 6px; }

/* ───────────────── Responsive ───────────────── */
@media (max-width: 880px) {
  /* Nav: compact pill that expands inline — no separate dropdown */
  nav {
    width: -webkit-fit-content;
    width: fit-content;
    min-width: 220px;
    max-width: calc(100% - 40px);
    transition: width 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  }
  nav.mob-open { width: 220px; }
  /* Never apply the desktop shrink behaviour */
  nav.shrunk { max-width: calc(100% - 40px); }

  /* Pill: allow wrapping so mob-menu sits on a new row */
  .glass-content {
    flex-wrap: wrap;
    row-gap: 0;
    height: auto !important;
    padding: 9px 10px 9px 14px !important;
  }
  /* Border-radius: snap to card on open, delay snap-back until after close animation */
  .nav-pill { transition: border-radius 0s 0.38s; }
  nav.mob-open .nav-pill { border-radius: 24px; transition: border-radius 0s; }

  /* Hide desktop-only nav elements */
  .nav-links  { display: none !important; }
  .nav-typing { display: none !important; }

  /* Show mobile toggle (dots / X) — no background, bare */
  .mob-toggle {
    display: flex; align-items: center; justify-content: center;
    padding: 4px 10px 4px 2px; flex-shrink: 0;
    margin-left: auto; background: none;
    position: relative;
  }
  /* Dots: fade + rotate out when open */
  .mob-dots {
    transition: opacity 0.2s ease, transform 0.24s ease;
  }
  /* Close (✕): always rendered, fades + spins in */
  .mob-close {
    display: block;
    position: absolute;
    font-size: 16px; color: var(--grey-1);
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
    transition: opacity 0.22s ease 0.06s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.04s;
    pointer-events: none;
  }
  nav.mob-open .mob-dots {
    opacity: 0; transform: scale(0.5) rotate(45deg); pointer-events: none;
  }
  nav.mob-open .mob-close {
    opacity: 1; transform: rotate(0deg) scale(1); pointer-events: auto;
  }

  /* Mobile menu: always in flow, animates open with max-height + opacity */
  .mob-menu {
    display: flex; flex-direction: column; gap: 0;
    width: 100%;
    max-height: 0; overflow: hidden;
    opacity: 0;
    padding-top: 0; margin-top: 0;
    border-top: 1px solid transparent;
    transition:
      max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
      opacity    0.28s ease,
      padding-top 0.32s ease,
      margin-top  0.32s ease,
      border-color 0.32s ease;
  }
  nav.mob-open .mob-menu {
    max-height: 200px; opacity: 1;
    padding-top: 4px; margin-top: 6px;
    border-top-color: rgba(255,255,255,0.2);
  }
  .mob-link {
    display: block; font-size: 16px; font-weight: 600; color: var(--ink);
    padding: 9px 4px; border-radius: 10px; transition: background .15s;
  }
  .mob-link:hover, .mob-link:active { background: rgba(255,255,255,0.12); }
  .mob-cta {
    margin-top: 8px; width: 100%; padding: 12px;
    background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.75);
    color: var(--ink); border-radius: 100px;
    font-size: 15px; font-weight: 600;
    transition: background .2s, color .2s;
  }
  .mob-cta:hover { background: rgba(255,255,255,0.75); }

  /* Remove side borders on the page wrapper on mobile */
  .page { border-left: none; border-right: none; }

  /* Hero — full-width text, no card overlap */
  .hp-hero {
    padding: 110px 24px 48px !important;
    max-width: none; min-height: auto;
  }
  .hero-title { font-size: clamp(44px, 11vw, 68px); }
  .btn-dark { width: auto !important; }

  /* Latest projects — plain grid below hero, no animation */
  .latest { padding: 32px 20px 80px !important; }
  .proj-stage {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: none;
  }
  .proj-card .pc-view, .pp-card .pc-view { display: none; }
  /* Always show the view-all link (animation won't run) */
  .proj-tail { opacity: 1; padding: 32px 0 !important; }

  /* Trusted by */
  .trusted { padding: 24px 20px !important; gap: 20px; }
  .trusted-label { font-size: 14px; }

  /* Hero CTA — keep buttons on one line */
  .hero-cta { flex-wrap: nowrap; }

  /* Services */
  .svc-cards { grid-template-columns: 1fr; gap: 12px; }
  #services { padding: 70px 24px; }

  /* About */
  #about { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-h { margin-bottom: 28px; }

  /* FAQ */
  #faq { padding-left: 24px; padding-right: 24px; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Footer */
  .foot-top { padding: 60px 24px 40px; }
  .foot-legal { padding: 20px 24px; }
  .wordmark { font-size: clamp(60px, 18vw, 160px); }

  /* Detail page (project.html) */
  .detail-inner { padding: 80px 22px 60px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-more-grid { grid-template-columns: 1fr; }
  .detail-hero { height: 260px; }

  /* Modal */
  .modal-inner { padding: 26px; }
}

@media (max-width: 560px) {
  nav { top: 22px; }
  .proj-stage { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }
  .latest-h { font-size: clamp(28px, 8vw, 40px); }
}

/* ───────────────── Added: FAB / blur / projects page / word-swap ───────────────── */
.fab {
  position: fixed; left: 50%; bottom: 30px; z-index: 440;
  width: 60px; height: 60px; border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.9);
  background-clip: padding-box;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px var(--line-2), 0 14px 34px rgba(0,0,0,0.22);
  opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.85); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s;
}
.fab.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.fab:hover { transform: translateX(-50%) translateY(-3px); }
.fab svg { width: 22px; height: 22px; stroke: var(--bg); fill: none; stroke-width: 1.8; }

.bottom-blur {
  position: fixed; left: 0; right: 0; bottom: 0; height: 88px; z-index: 300;
  pointer-events: none;
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  -webkit-mask: linear-gradient(to top, #000 10%, transparent);
  mask: linear-gradient(to top, #000 10%, transparent);
}

/* word-swap in footer */
.swap { position: relative; display: inline-block; vertical-align: top; }
.swap-size { visibility: hidden; }
.swap-word {
  position: absolute; left: 0; top: 0;
  opacity: 0; transform: translateY(46%);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.swap-word.active { opacity: 1; transform: none; }
.swap-word.exit { opacity: 0; transform: translateY(-46%); }

/* ── All-projects overlay page ── */
.projects-page {
  position: fixed; inset: 0; z-index: 420;
  background: var(--bg);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .62s var(--ease);
  overflow-y: auto; visibility: hidden;
}
.projects-page.open { clip-path: inset(0 0 0 0); visibility: visible; }
.projects-close {
  position: fixed; top: 26px; right: 30px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.pp-inner { max-width: 1180px; margin: 0 auto; padding: 92px 48px 70px; opacity: 0; transform: translateY(28px); transition: opacity .5s var(--ease) .16s, transform .5s var(--ease) .16s; }
.projects-page.open .pp-inner { opacity: 1; transform: none; }
.pp-head { text-align: center; margin-bottom: 48px; }
.pp-title { font-size: clamp(34px, 5vw, 60px); font-weight: var(--disp-weight); font-family: var(--display); letter-spacing: var(--disp-spacing); line-height: 1.0; }
.pp-sub { font-size: 15.5px; color: var(--grey-1); margin-top: 12px; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pp-card {
  position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  cursor: pointer; background: var(--card);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
  opacity: 0; transform: translateY(24px);
  transition: transform .6s var(--ease), box-shadow .3s, opacity .6s var(--ease);
}
.pp-card.in { opacity: 1; transform: none; }
.pp-card:hover { box-shadow: 0 22px 50px rgba(0,0,0,0.18); }
.pp-card:hover .pc-view { opacity: 1; }
.pp-cta { text-align: center; padding: 80px 0 30px; }
.pp-cta-sm { font-size: 15px; color: var(--grey-1); }
.pp-cta-h { font-size: clamp(28px, 3.4vw, 40px); font-weight: var(--disp-weight); font-family: var(--display); letter-spacing: var(--disp-spacing); margin: 4px 0 22px; }
.pp-cta-h .spark { color: var(--pink-d); }
.pp-cta .btn-dark { margin: 0 auto; }

@media (max-width: 880px) {
  .pp-inner { padding: 84px 22px 50px; }
  .pp-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .fab { bottom: 20px; width: 52px; height: 52px; }
}
@media (max-width: 560px) {
  .pp-grid { grid-template-columns: 1fr; }
}

/* ── Page transitions ── */
@keyframes page-enter {
  from { transform: translateY(48px); }
  to   { transform: none; }
}
@keyframes page-leave {
  to { opacity: 0; transform: translateY(-24px); }
}
main {
  animation: page-enter .5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.page-leaving main {
  animation: page-leave .28s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}
