/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-amber {
  background: var(--amber-500);
  color: var(--bg);
}
.btn-amber:hover { background: var(--amber-400); transform: translateY(-2px); box-shadow: 0 10px 24px var(--amber-tint); }
.btn-amber .arrow { transition: transform var(--dur-fast) var(--ease); }
.btn-amber:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink-0);
}
.btn-ghost:hover { border-color: var(--ink-1); background: var(--surface); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* ============================================
   CANVAS, NAV, AND HERO
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  background: var(--amber-500);
  transform: translateY(100%);
}

html.is-navigating .page-transition {
  animation: page-wipe 0.42s var(--ease) forwards;
}

@keyframes page-wipe {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition { display: none; }
}

.canvas {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  overflow: hidden;
}

html.intro-active,
html.intro-active body {
  overflow: hidden;
  height: 100%;
}

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.7s ease;
}

#intro-overlay.is-leaving {
  transform: translateY(-100%);
  opacity: 0;
}

html.skip-intro #intro-overlay {
  display: none !important;
}

.intro-inner {
  text-align: center;
  font-family: var(--f-mono);
  color: var(--ink);
}

.intro-loading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.intro-loading .dot {
  display: inline-block;
  animation: pulse-dot 1.1s ease-in-out infinite;
}

.intro-loading .dot:nth-child(2) { animation-delay: 0.15s; }
.intro-loading .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse-dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

.intro-greeting {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 500;
  color: var(--ink);
}

.intro-greeting .line { display: inline-flex; align-items: center; }

.intro-greeting .line.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--magenta);
  animation: blink-cursor 0.9s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.intro-accent {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intro-accent.is-visible { opacity: 1; }

.intro-accent span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.intro-accent span:nth-child(1) { background: var(--magenta); }
.intro-accent span:nth-child(2) { background: var(--yellow); }
.intro-accent span:nth-child(3) { background: var(--green); }

@media (max-width: 480px) {
  .intro-greeting { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 48px) 0;
  position: relative;
  z-index: 5;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__logo { width: 30px; height: 30px; flex-shrink: 0; }
.nav__links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color .2s ease;
  position: relative;
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--ink); }
.nav__links a:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 4px; border-radius: 3px; }
.nav__right { display: flex; align-items: center; gap: 18px; }
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: var(--card-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 96px) clamp(20px, 5vw, 48px) 120px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  z-index: 2;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  font-style: normal;
}
.headline-wrap {
  position: relative;
  max-width: 780px;
  padding: 46px clamp(18px, 4vw, 40px);
}
.headline-wrap::before,
.headline-wrap::after,
.crop-tr,
.crop-bl {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.headline-wrap::before {
  top: 0;
  left: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.headline-wrap::after {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.crop-tr { top: 0; right: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.crop-bl { bottom: 0; left: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.headline {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.62em;
  display: block;
  margin-top: 0.35em;
}
.annotation {
  position: absolute;
  left: -18px;
  bottom: -78px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transform: rotate(-2deg);
}
.annotation svg { width: 70px; height: 60px; flex-shrink: 0; margin-top: 6px; }
.annotation p {
  font-family: var(--f-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--amber-500);
  margin: 0;
  white-space: nowrap;
}
.shape-cluster {
  position: absolute;
  top: 14%;
  right: 6%;
  width: 210px;
  height: 210px;
  z-index: 1;
}
.shape-rect {
  position: absolute;
  width: 96px;
  height: 130px;
  background: var(--amber-500);
  border-radius: 14px;
  top: 0;
  right: 40px;
  transform: rotate(14deg);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,0.25);
  animation: float-slow 7s ease-in-out infinite;
}
.shape-block {
  position: absolute;
  width: 74px;
  height: 74px;
  background: var(--yellow);
  border-radius: 12px;
  top: 96px;
  right: 130px;
  transform: rotate(-8deg);
  box-shadow: 0 14px 24px -10px rgba(0,0,0,0.2);
  animation: float-slow 8s ease-in-out infinite 0.4s;
}
.shape-circle {
  position: absolute;
  width: 88px;
  height: 88px;
  background: var(--green);
  border-radius: 50%;
  bottom: -10px;
  right: -10px;
  box-shadow: 0 14px 24px -10px rgba(0,0,0,0.2);
  animation: float-slow 6.5s ease-in-out infinite 0.8s;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-10px) rotate(var(--r, 0deg)); }
}
.shape-rect { --r: 14deg; }
.shape-block { --r: -8deg; }
.polaroid {
  position: absolute;
  right: clamp(16px, 6vw, 90px);
  bottom: 48px;
  width: 168px;
  background: var(--card-bg);
  padding: 10px 10px 22px;
  border-radius: 4px;
  transform: rotate(6deg);
  box-shadow: 0 22px 40px -14px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.08);
  z-index: 3;
}
.polaroid::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto 6px;
  height: 0;
  border-top: 2px dotted var(--nav-border);
  opacity: 0;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 3/3.6;
  object-fit: contain;
  border-radius: 2px;
  filter: grayscale(0.08) contrast(1.02);
  height: auto;
}
.polaroid figcaption {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .nav__links a {
    font-size: 0.88rem;
  }

  .annotation { position: static; margin: 18px auto 0; transform: none; justify-content: center; }
  .polaroid { position: static; margin: 32px auto 0; transform: rotate(3deg); }
}
@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }

  .nav__links {
    gap: 12px;
  }

  .polaroid {
    display: none;
  }
}

@media (max-width: 900px) {
  .shape-cluster { display: none; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--amber-500);
  color: #1A1204;
  padding: var(--sp-4) 0;
  transform: rotate(-1.2deg);
  margin: calc(-1 * var(--sp-6)) 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 28s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: var(--sp-5); padding-right: var(--sp-5); }
.marquee-track span {
  font-family: var(--f-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.marquee-track .dot { font-family: var(--f-body); font-size: 0.9rem; opacity: 0.6; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: var(--sp-10) 0; position: relative; }
.about-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: var(--sp-9);
  align-items: center;
}
.about-visual { position: relative; display: flex; justify-content: center; }
.about-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  width: min(100%, 340px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}
.about-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  object-fit: cover;
  max-height: 360px;
}
.about-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--ink-1);
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 3px var(--mint-tint); }
.about-orbit {
  position: absolute;
  top: -14px;
  right: -18px;
}
.orbit-chip {
  background: var(--mint-500);
  color: #06231C;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.5em 0.9em;
  border-radius: var(--r-pill);
  display: inline-block;
  transform: rotate(4deg);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  text-transform: uppercase;
  line-height: 1.08;
  margin: var(--sp-3) 0 var(--sp-5);
  letter-spacing: 0.01em;
}
.hl-mint { color: var(--mint-500); }
.about-p { color: var(--ink-1); max-width: 40rem; margin-bottom: var(--sp-4); font-size: 1.02rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.badge {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.5em 1em;
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; text-align: left; }
  .about-visual { margin-bottom: var(--sp-4); }
}

/* ============================================
   WORK
   ============================================ */
.work { padding: var(--sp-9) 0 var(--sp-10); }
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-7);
  gap: var(--sp-5);
}
.hl-amber { color: var(--amber-500); }
.work-nav { display: flex; gap: var(--sp-3); }
.work-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 1.1rem;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.work-arrow:hover { background: var(--amber-500); color: #1A1204; transform: translateY(-2px); }

.work-track {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--edge) var(--sp-4);
  scrollbar-width: none;
}
.work-track::-webkit-scrollbar { display: none; }
.work-card {
  scroll-snap-align: start;
  flex: 0 0 min(88vw, 460px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-med) var(--ease);
}
.work-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.device-frame { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-strong); }
.device-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #191E2A;
  padding: 0.55rem 0.8rem;
}
.device-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.device-bar span:first-child { background: var(--clay-500); }
.device-bar span:nth-child(2) { background: var(--amber-500); }
.device-bar span:nth-child(3) { background: var(--mint-500); }
.device-bar p { font-family: var(--f-mono); font-size: 0.7rem; color: var(--ink-2); margin-left: var(--sp-3); }
.device-screen { width: 100%; display: block; }

.work-meta { padding: var(--sp-5) var(--sp-3) var(--sp-2); }
.work-title-row { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.work-title-row h3 { font-family: var(--f-display); font-size: 1.7rem; text-transform: uppercase; }
.work-year { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.work-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.work-tags span {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--amber-500);
  background: var(--amber-tint);
  border-radius: var(--r-pill);
  padding: 0.3em 0.75em;
}
.work-desc { color: var(--ink-1); font-size: 0.95rem; margin-bottom: var(--sp-4); }
.work-link { font-weight: 600; font-size: 0.9rem; border-bottom: 1.5px solid var(--amber-500); padding-bottom: 2px; }

/* ============================================
   WORK GRID FLIP CARDS
   ============================================ */
.works-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 40px);
}
.works-heading {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}
.works-sub {
  color: var(--ink-1);
  margin: 0 0 40px;
  max-width: 480px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 720px) {
  .works-grid { grid-template-columns: 1fr; }
}
.card {
  position: relative;
  aspect-ratio: 4 / 3;
  perspective: 1600px;
  border-radius: 28px;
}
.card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  border-radius: inherit;
}
.card:hover .card-flipper,
.card.is-flipped .card-flipper {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(33, 28, 22, 0.22);
}
.card-face--back {
  transform: rotateY(180deg);
}
.card-face--front {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}
.front-artwork {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.front-content {
  position: relative;
  z-index: 1;
}
.front-title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.front-tagline {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0;
}
.flip-toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}





.card:hover .card-face--front,
.card.is-flipped .card-face--front {
  pointer-events: none;
}

.card-face--back {
  z-index: 3;
}

.case-study-link {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}





.card:hover .flip-toggle,
.card.is-flipped .flip-toggle {
  pointer-events: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.card-face--back {
  background: #0f172a;
  color: var(--cream);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.back-summary {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #E9E3D8;
  margin: 0 0 16px;
}
.back-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px
}
.back-tags li {
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.back-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.78rem;
  color: #C9C2AC;
  margin-bottom: auto;
}
.back-stats dt {
  font-weight: 600;
  color: #F0EADD;
}
.back-stats dd { margin: 0; }
.case-study-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  text-decoration: none;
  padding-top: 12px;
  border-top: 1px dotted rgba(255,255,255,0.2);
  transition: gap 0.2s ease;
}
.case-study-link:hover,
.case-study-link:focus-visible { gap: 10px; }
.case-study-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .card-flipper { transition: none; }
}

@media (max-width: 900px) {
  .work-head { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
}

/* ============================================
   PROCESS
   ============================================ */
.process { padding: var(--sp-10) 0; }
.process-list { margin-top: var(--sp-8); border-top: 1px solid var(--line); }
.process-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease);
}
.process-row:hover { background: var(--surface); }
.process-num {
  font-family: var(--f-display);
  font-size: 2.2rem;
  color: var(--ink-3);
  transition: color var(--dur-fast) var(--ease);
}
.process-row:hover .process-num { color: var(--amber-500); }
.process-body h3 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--sp-2);
}
.process-body p { color: var(--ink-1); max-width: 42rem; }

/* ============================================
   TOOLKIT
   ============================================ */
.toolkit { padding: var(--sp-10) 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolkit-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-9); }
.toolkit-groups { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.toolkit-group h4 {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: var(--sp-4);
}
.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.pill {
  font-size: 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 0.5em 1em;
  color: var(--ink-1);
}
.pill-amber { border-color: transparent; background: var(--amber-tint); color: var(--amber-500); }

@media (max-width: 900px) {
  .toolkit-inner { grid-template-columns: 1fr; }
  .toolkit-groups { grid-template-columns: 1fr 1fr; }
  .process-row { grid-template-columns: 60px 1fr; }
}
@media (max-width: 560px) {
  .toolkit-groups { grid-template-columns: 1fr; }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--sp-10) 0;
  background: var(--bg-soft);
}
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--edge);
}
.faq-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--sp-5);
}
.faq-heading {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0.01em;
  margin: 0;
  min-height: 1.2em;
  color: var(--ink);
}
.type-cursor::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.85em;
  margin-left: 3px;
  background: var(--amber-500);
  animation: blink 0.9s step-end infinite;
  vertical-align: -0.1em;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.faq-timestamp {
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 4px;
}
.faq-subtitle {
  color: var(--ink-1);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 0 var(--sp-5);
  min-height: 1.5em;
}
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { display: flex; flex-direction: column; }
.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.faq-question:focus-visible .bubble--question,
.faq-question:focus-visible .toggle-icon {
  outline: 2px solid var(--amber-500);
  outline-offset: 2px;
}
.bubble {
  position: relative;
  border-radius: 20px;
  padding: 14px 20px;
  line-height: 1.45;
  font-size: 0.98rem;
}
.bubble--question {
  background: var(--surface);
  flex: 1;
  font-weight: 500;
  border-bottom-left-radius: 6px;
}
.bubble--question::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--surface);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.q-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.95rem;
}
.toggle-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.faq-item.is-open .toggle-icon {
  background: var(--amber-500);
  border-color: var(--amber-500);
}
.plus {
  position: relative;
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 1px;
}
.plus::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.plus::after {
  top: 50%;
  left: 0;
  height: 2px;
  width: 100%;
  transform: translateY(-50%);
}
.faq-item.is-open .plus { transform: rotate(45deg); }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  margin-left: 52px;
}
.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner-pad { padding-top: 12px; }
.typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 10px 16px;
  width: fit-content;
}
.faq-item.is-typing .typing-indicator { display: flex; }
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft);
  animation: typing-pulse 1s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-2px); }
}
.bubble--answer {
  display: none;
  position: relative;
  background: var(--surface-2);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bubble--answer::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: var(--surface-2);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.faq-item.is-answered .bubble--answer {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 560px) {
  .faq-header { flex-direction: column; }
  .faq-answer-wrap { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer-wrap, .bubble--answer, .plus, .toggle-icon {
    transition-duration: 0.01ms !important;
  }
  .type-cursor::after { animation: none; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.custom-cursor.is-visible { opacity: 1; }

.cursor-arrow {
  display: block;
  width: 20px;
  height: 20px;
  fill: var(--amber-500);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: fill 0.25s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 4px 4px;
}

.custom-cursor.is-interactive .cursor-arrow {
  transform: scale(0.85);
}
.custom-cursor.is-active .cursor-arrow {
  transform: scale(0.7);
}

.cursor-badge {
  position: absolute;
  top: 16px;
  left: 14px;
  display: flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--amber-500);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  transition: background-color 0.3s ease, width 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.cursor-badge span {
  display: inline-block;
  transition: opacity 0.15s ease;
}

.custom-cursor.state-role .cursor-badge { background: var(--yellow); color: var(--ink); }
.custom-cursor.state-role .cursor-arrow { fill: var(--yellow); }

.custom-cursor.state-text .cursor-badge { background: var(--green); }
.custom-cursor.state-text .cursor-arrow { fill: var(--green); }

.custom-cursor.is-interactive:not(.state-role):not(.state-text) .cursor-badge {
  opacity: 0;
  transform: scale(0.6);
}

.cursor-measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0 10px;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact { position: relative; padding: var(--sp-10) 0 0; overflow: hidden; }
.contact-lattice {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 55%;
  height: 100%;
  background-image: url('../assets/lattice.svg');
  background-size: 110px 110px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 55% 55% at 30% 70%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 30% 70%, black 0%, transparent 75%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  margin: var(--sp-4) 0 var(--sp-5);
}
.contact-sub {
  color: var(--ink-1);
  font-size: 1.05rem;
  margin-bottom: var(--sp-7);
}
.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-8);
}
.btn-lg {
  font-size: 1rem;
  padding: 1.1rem 2rem;
  justify-content: center;
  gap: 0.7rem;
  white-space: nowrap;
}

.contact-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.3s ease;
}

.icon-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--amber-500);
  color: var(--bg);
  border-color: var(--amber-500);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.24);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .contact-icons {
    gap: 1rem;
  }

  .icon-btn {
    width: 48px;
    height: 48px;
  }

  .icon-btn svg {
    width: 22px;
    height: 22px;
  }
}

.site-footer { padding: var(--sp-5) 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.footer-top { transition: color var(--dur-fast) var(--ease); }
.footer-top:hover { color: var(--amber-500); }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-item:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
  .hero {
    padding: 38px 18px 72px;
  }

  .headline-wrap {
    padding: 30px 16px;
    max-width: 100%;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .annotation {
    margin: 16px auto 0;
  }

  .annotation p {
    font-size: 1.35rem;
    white-space: normal;
  }

  .polaroid {
    width: min(92vw, 180px);
    margin: 26px auto 0;
  }

  .work-track {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .works-sub {
    max-width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
    gap: 12px;
  }

  .contact-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--sp-2);
  }

  .contact-item:last-child {
    border-bottom: none;
  }

  .contact-value {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
