/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* ============ Tokens ============ */
:root {
  --ink: #0a0a0a;
  --ink-90: #1a1a1a;
  --ink-70: #3a3a38;
  --ink-50: #6b6b66;
  --ink-30: #a8a8a0;
  --line: #e5e2da;
  --line-soft: #efece4;
  --paper: #fafaf7;
  --cream: #f3eee4;
  --warm: #ece5d4;
  --accent: #0a0a0a;

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);

  --t-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-med: 400ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}

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

/* ============ Custom cursor ============ */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  * { cursor: none !important; }
}
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform, width, height;
  transition: width var(--t-fast), height var(--t-fast), background var(--t-fast);
}
.cursor__dot { width: 6px; height: 6px; background: var(--paper); }
.cursor__ring { width: 36px; height: 36px; border: 1px solid rgba(250, 250, 247, 0.5); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: rgba(250, 250, 247, 0.9); }
.cursor.is-hover .cursor__dot { width: 0; height: 0; }

/* ============ Layout ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ============ Typography ============ */
/* "Accent" — Inter italic, slightly lighter weight for editorial whisper effect */
.serif-italic {
  font-family: var(--f-sans);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-50);
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.section__label {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-50);
  margin-bottom: 24px;
}
.section__h2 {
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 18ch;
}
.section__h2 .serif-italic { font-weight: 400; color: var(--ink-70); }
.section__sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 56ch;
  margin-bottom: 64px;
}

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  background: rgba(250, 250, 247, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__logo { display: inline-block; }
.logo { font-size: 20px; letter-spacing: -0.02em; font-weight: 500; }
.logo__dot { color: var(--ink-50); }
.nav__logo:hover .logo__dot { color: var(--ink); transition: color var(--t-fast); }
.nav__links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.nav__links a { position: relative; padding: 6px 0; color: var(--ink-70); transition: color var(--t-fast); }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 999px;
  margin-right: -6px;
}
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t-med), top var(--t-med), opacity var(--t-fast);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ============ Mobile menu drawer ============ */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: 100px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--t-med), transform 0.5s var(--t-med);
}
.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.mobile-menu__links {
  display: flex; flex-direction: column;
  gap: 8px;
}
.mobile-menu__links a {
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  padding: 12px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--t-fast);
}
.mobile-menu__links a:hover { color: var(--ink-50); }
.mobile-menu__cta {
  display: inline-flex; align-items: baseline; gap: 12px;
  margin-top: 24px;
  border-bottom: 0 !important;
}
.mobile-menu__cta span { font-style: italic; font-size: 0.75em; font-weight: 400; color: var(--ink-50); }
.mobile-menu__footer {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.mobile-menu__footer a { color: var(--ink-70); }
.mobile-menu__footer a:hover { color: var(--ink); }

body.menu-open { overflow: hidden; }

/* ============ Floating CTA ============ */
.fcta {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  display: flex; align-items: stretch; gap: 0;
  background: var(--ink);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 12px 36px rgba(10, 10, 10, 0.18), 0 2px 8px rgba(10, 10, 10, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.45s var(--t-med), transform 0.45s var(--t-med);
}
.fcta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.fcta__icon, .fcta__main {
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--t-fast);
}
.fcta__icon {
  width: 44px;
  justify-content: center;
  position: relative;
}
.fcta__icon::after {
  content: "";
  position: absolute;
  right: -2px; top: 30%; bottom: 30%;
  width: 1px;
  background: rgba(250, 250, 247, 0.16);
  pointer-events: none;
}
.fcta__icon:hover { background: rgba(250, 250, 247, 0.1); }
.fcta__main {
  gap: 8px;
  padding: 0 22px 0 18px;
  margin-left: 4px;
}
.fcta__main:hover { background: rgba(250, 250, 247, 0.1); }
.fcta__arrow { display: inline-block; transition: transform var(--t-fast); }
.fcta__main:hover .fcta__arrow { transform: translateX(4px); }

@media (max-width: 480px) {
  .fcta { bottom: 14px; right: 14px; padding: 3px; }
  .fcta__icon, .fcta__main { height: 40px; }
  .fcta__icon { width: 40px; }
  .fcta__main { padding: 0 18px 0 14px; font-size: 13px; gap: 6px; }
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-90); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: 13px; background: var(--ink); color: var(--paper); }
.btn--small:hover { background: var(--ink-90); }
.btn__arrow { display: inline-block; transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  padding: clamp(110px, 16vh, 200px) var(--gutter) clamp(56px, 7vw, 100px);
  display: flex; align-items: center;
  position: relative;
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 96px; padding-bottom: 56px; }
  .hero__cta { margin-bottom: 64px; }
}
.hero::before {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 1px; background: var(--line); opacity: 0.5;
}
.hero__inner { width: 100%; max-width: var(--container); margin: 0 auto; }

.hero__h1 {
  font-size: clamp(44px, 9.5vw, 152px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 32px 0 40px;
  max-width: 14ch;
}
.hero__h1 .serif-italic {
  display: inline;
  font-size: 1em;
  letter-spacing: -0.05em;
  font-weight: 400;
  color: var(--ink-70);
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 60ch;
  margin-bottom: 48px;
}
.hero__sub strong { color: var(--ink); font-weight: 500; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 96px; }

.hero__services {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 880px;
}
.hero__svc {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 28px 32px 28px 0;
  color: var(--ink);
  border-right: 1px solid var(--line);
  transition: padding-left var(--t-med);
}
.hero__svc:last-child { border-right: 0; padding-left: 32px; padding-right: 0; }
.hero__svc:hover { padding-left: 8px; }
.hero__svc:last-child:hover { padding-left: 40px; }
.hero__svc-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-50);
  padding-top: 4px;
  flex-shrink: 0;
}
.hero__svc-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero__svc-name {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.hero__svc-arrow {
  font-family: var(--f-sans);
  font-size: 0.72em;
  font-weight: 400;
  color: var(--ink-50);
  transition: transform var(--t-med), color var(--t-med);
  display: inline-block;
}
.hero__svc:hover .hero__svc-arrow { transform: translateX(6px); color: var(--ink); }
.hero__svc-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 36ch;
}

@media (max-width: 640px) {
  .hero__services { grid-template-columns: 1fr; }
  .hero__svc { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__svc:last-child { padding-left: 0; padding-right: 0; border-bottom: 0; padding-bottom: 0; }
  .hero__svc:hover, .hero__svc:last-child:hover { padding-left: 0; }
}

/* ============ Marquee ============ */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 96px;
  z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
  gap: 0;
}
.marquee__group { display: flex; align-items: center; gap: 56px; padding-right: 56px; flex-shrink: 0; }

.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink);
  white-space: nowrap;
  transition: transform var(--t-med), opacity var(--t-med);
  opacity: 0.78;
}
.marquee__item:hover { opacity: 1; transform: translateY(-2px); }

.marquee__logo {
  width: 36px; height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  flex-shrink: 0;
  display: block;
}
.marquee__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marquee__name {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@media (max-width: 720px) {
  .marquee__label { display: none; }
  .marquee__track { padding-left: 24px; }
  .marquee__group { gap: 36px; padding-right: 36px; }
  .marquee__name { font-size: 18px; }
  .marquee__logo { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ============ Manifesto ============ */
.manifesto {
  padding-block: var(--section-y);
  background: var(--cream);
}
.manifesto .section__h2 { max-width: 16ch; }
.manifesto__body {
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-90);
  max-width: 28ch;
  margin-left: auto;
  display: flex; flex-direction: column; gap: 1.2em;
}
.manifesto__body p { margin: 0; }
.manifesto__body em { font-style: italic; font-weight: 500; color: var(--ink); }
.manifesto__body strong { font-weight: 500; }

@media (min-width: 1024px) {
  .manifesto .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
  }
  .manifesto .section__label,
  .manifesto .section__h2 { grid-column: 1; }
  .manifesto__body { grid-column: 2; grid-row: span 2; margin-left: 0; }
}

/* ============ Method ============ */
.method { padding-block: var(--section-y); }
.method__steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  padding: 48px 40px 48px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; padding-right: 0; }
.step:not(:first-child) { padding-left: 40px; }
.step__num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 24px;
}
.step__h3 {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 500;
}
.step__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-70);
  margin-bottom: 24px;
}
.step__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.step__list li {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
  letter-spacing: 0.01em;
}
.step__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 1px; background: var(--ink);
}

@media (max-width: 900px) {
  .method__steps { grid-template-columns: 1fr; }
  .step { padding: 32px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* ============ Services ============ */
.services {
  padding-block: var(--section-y);
  background: var(--cream);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  padding: 48px 40px;
  background: var(--paper);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform var(--t-med);
}
.service:hover { transform: translateY(-4px); }
.service__head { margin-bottom: 32px; }
.service__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  display: block;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.service__h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.service__lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-70);
  margin-bottom: 28px;
}
.service__list {
  list-style: none;
  margin-bottom: auto;
  display: flex; flex-direction: column;
  gap: 10px;
}
.service__list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-90);
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}
.service__list li span { color: var(--ink-30); }
.service__cta {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  align-self: flex-start;
  display: inline-flex;
  gap: 6px;
  transition: gap var(--t-fast);
}
.service__cta:hover { gap: 14px; }

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { padding: 32px 24px; min-height: 0; }
}

/* ============ Work ============ */
.work { padding-block: var(--section-y); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.case {
  padding: 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background var(--t-med);
  overflow: hidden;
}
.case::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform var(--t-slow);
  z-index: 0;
}
.case:hover::after { transform: translateY(0); }
.case:hover { color: var(--paper); }
.case > * { position: relative; z-index: 1; }
.case__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 16px; }
.case__brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.case__logo-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: border-color var(--t-med);
}
.case__logo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.case:hover .case__logo-wrap { border-color: rgba(255, 255, 255, 0.1); }
.case__domain {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: color var(--t-med);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case:hover .case__domain { color: var(--paper); }
.case__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-50);
  text-transform: uppercase;
  transition: color var(--t-med);
}
.case:hover .case__tag { color: var(--ink-30); }
.case__h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 12px;
  max-width: 20ch;
}
.case__body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-70);
  margin-bottom: auto;
  max-width: 36ch;
  transition: color var(--t-med);
}
.case:hover .case__body { color: var(--ink-30); }
.case__cta {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: gap var(--t-fast), letter-spacing var(--t-fast);
  align-self: flex-start;
}
.case__cta-text { opacity: 0; transform: translateX(-8px); transition: opacity var(--t-med), transform var(--t-med); display: inline-block; }
.case:hover .case__cta-text { opacity: 1; transform: none; }
.case:hover .case__cta { gap: 14px; letter-spacing: 0.06em; }

.work__more {
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-50);
  text-align: center;
}
.work__more a {
  font-family: var(--f-mono);
  border-bottom: 1px solid var(--ink-30);
  padding-bottom: 1px;
  transition: border-color var(--t-fast), color var(--t-fast);
  color: var(--ink-70);
}
.work__more a:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 900px) {
  .work__grid { grid-template-columns: 1fr; }
  .case { min-height: 220px; padding: 24px; }
}

/* ============ FAQ ============ */
.faq {
  padding-block: var(--section-y);
  background: var(--cream);
}
.faq__list { max-width: 880px; }
.faq__item {
  border-top: 1px solid var(--line);
  padding-block: 6px;
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color var(--t-fast);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 0; top: 24px;
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-50);
  transition: transform var(--t-med), color var(--t-fast);
}
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq__item summary:hover { color: var(--ink); }
.faq__item p {
  padding: 0 40px 28px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 64ch;
}

/* ============ Contact ============ */
.contact { padding-block: var(--section-y); }
.contact .section__h2 { max-width: 14ch; }
.form {
  margin-top: 56px;
  max-width: 720px;
  display: flex; flex-direction: column; gap: 24px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.field input, .field textarea {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 17px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color var(--t-fast);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-30); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 88px; }

.form__bottom { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-top: 12px; }
.form__alt { font-size: 14px; color: var(--ink-50); }
.form__alt a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.form__status { font-size: 14px; color: var(--ink-70); min-height: 1.4em; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-err { color: #B91C1C; }

@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 64px;
  background: var(--paper);
}
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px;
  flex-wrap: wrap; gap: 16px;
}
.footer__logo .logo { font-size: clamp(40px, 8vw, 96px); letter-spacing: -0.03em; }
.footer__tag {
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-70);
  max-width: 14ch;
  line-height: 1.2;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.footer__grid p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-90);
}
.footer__grid a:hover { color: var(--ink); border-bottom: 1px solid var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: var(--ink-50);
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  flex-wrap: wrap; gap: 16px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============ Reveal animations ============ */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal="fade"] { transition: opacity 0.9s var(--t-slow); }
[data-reveal="fade-up"] { transform: translateY(28px); transition: opacity 1s var(--t-slow), transform 1s var(--t-slow); }
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal="split"] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80%);
  will-change: opacity, transform;
}
[data-reveal="split"].is-in .char {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 22ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal="split"] .char { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
