/* ============ 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(28px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 32px;
  max-width: 22ch;
  overflow-wrap: break-word;
  word-break: keep-all;
  hyphens: manual;
  text-wrap: balance;
}
.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; }

/* ============ Chat widget ============ */
.chat { position: fixed; bottom: 24px; right: 24px; z-index: 90; }

.chat__bubble {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  box-shadow: 0 14px 40px rgba(10, 10, 10, 0.28), 0 3px 10px rgba(10, 10, 10, 0.1);
  transition: transform var(--t-fast), background var(--t-fast);
  animation: chat-attn 4s ease-in-out 1.5s infinite;
}
.chat__bubble:hover { transform: translateY(-2px) scale(1.04); animation-play-state: paused; }
.chat__bubble:active { transform: translateY(0) scale(1); }
.chat__bubble.is-pulse { animation: chat-pulse 1.2s ease-out 1, chat-attn 4s ease-in-out 1.5s infinite; }
.chat__bubble-icon { display: inline-flex; }
.chat__bubble-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e34c3a;
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  border: 2px solid var(--paper);
  z-index: 1;
}
.chat__bubble-badge.is-visible { display: flex; }
@keyframes chat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0.5), 0 14px 40px rgba(10, 10, 10, 0.28); }
  100% { box-shadow: 0 0 0 22px rgba(10, 10, 10, 0), 0 14px 40px rgba(10, 10, 10, 0.28); }
}
@keyframes chat-attn {
  0%, 90%, 100% { transform: translateY(0); }
  93%          { transform: translateY(-4px); }
  96%          { transform: translateY(0); }
}

/* lock the page when chat is open on small screens */
body.chat-open { overflow: hidden; }

.chat__drawer {
  position: fixed;
  bottom: 88px; right: 20px;
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(10, 10, 10, 0.18), 0 4px 16px rgba(10, 10, 10, 0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.28s var(--t-med), transform 0.28s var(--t-med);
}
body.chat-open .chat__drawer {
  opacity: 1; pointer-events: auto;
  transform: none;
}

.chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.chat__header-meta { display: flex; align-items: center; gap: 12px; }
.chat__avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-family: var(--f-sans);
}
.chat__avatar-dot { color: var(--ink-30); margin-left: 1px; }
.chat__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.chat__sub {
  font-size: 11px;
  color: var(--ink-50);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.chat__live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
  animation: chat-live-pulse 2s infinite;
}
@keyframes chat-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}
.chat__close {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0; background: transparent;
  color: var(--ink-70);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: rgba(10, 10, 10, 0.08);
}
.chat__close:hover { background: var(--line-soft); color: var(--ink); }
.chat__close:active { background: var(--line); }

.chat__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  background: var(--paper);
}

.chat__greet {
  background: var(--cream);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-90);
}
.chat__greet p { margin: 0; }
.chat__greet p + p { margin-top: 6px; }

.chat__msg {
  max-width: 82%;
  min-width: 0;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  position: relative;
}
.chat__msg--me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.chat__msg--them {
  align-self: flex-start;
  background: var(--warm);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat__msg--sys {
  align-self: center;
  background: transparent;
  color: var(--ink-50);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  max-width: 100%;
}
.chat__bubble-text { white-space: pre-wrap; }
.chat__msg-time {
  font-size: 10px;
  font-family: var(--f-mono);
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}
.chat__msg--them .chat__msg-time { text-align: left; }
.chat__msg--sys .chat__msg-time { display: none; }

.chat__form {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat__input {
  flex: 1;
  border: 0;
  resize: none;
  background: transparent;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
  max-height: 120px;
  min-height: 36px;
}
.chat__input::placeholder { color: var(--ink-30); }
.chat__send {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.chat__send:hover { transform: translateY(-1px); }
.chat__send svg { transform: translateX(-1px); }

.chat__alt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-50);
  text-align: center;
  padding: 0 12px 10px;
  letter-spacing: 0.02em;
}
.chat__alt a { color: var(--ink); border-bottom: 1px solid var(--ink-30); }
.chat__alt a:hover { border-bottom-color: var(--ink); }

/* ---- contact gate ---- */
.chat__gate {
  padding: 14px 14px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat__gate-lede {
  font-size: 12.5px;
  color: var(--ink-70);
  margin-bottom: 10px;
  line-height: 1.4;
}
.chat__gate-form {
  display: flex; flex-direction: column; gap: 8px;
}
.chat__gate-name,
.chat__gate-contact {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--f-sans);
  font-size: 13.5px;
  color: var(--ink);
  padding: 9px 12px;
  outline: none;
  transition: border-color var(--t-fast);
}
.chat__gate-name:focus,
.chat__gate-contact:focus { border-color: var(--ink); }
.chat__gate-name::placeholder,
.chat__gate-contact::placeholder { color: var(--ink-30); }
.chat__gate-btn {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 2px;
  transition: transform var(--t-fast);
}
.chat__gate-btn:hover { transform: translateY(-1px); }

/* ---- bubble preview (Shopify-Inbox style) ---- */
.chat__preview {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(300px, calc(100vw - 40px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.18), 0 4px 12px rgba(10, 10, 10, 0.06);
  padding: 10px 36px 10px 10px;
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.32s var(--t-med), transform 0.32s var(--t-med);
}
.chat__preview.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.chat__preview-avatar {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.chat__preview-dot { color: var(--ink-30); margin-left: 1px; }
.chat__preview-body { min-width: 0; flex: 1; }
.chat__preview-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-70);
  letter-spacing: 0.01em;
}
.chat__preview-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat__preview-close {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 0; background: transparent;
  color: var(--ink-50);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.chat__preview-close:hover { background: var(--line-soft); color: var(--ink); }

@media (max-width: 640px) {
  .chat {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: 14px;
  }
  .chat__bubble { width: 54px; height: 54px; }

  /* full-screen bottom sheet on mobile — bottom-anchored slide */
  .chat__drawer {
    bottom: 0; right: 0; left: 0;
    width: 100vw;
    height: 100dvh;            /* dynamic viewport — accounts for iOS URL bar */
    max-height: 100dvh;
    border-radius: 18px 18px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    transform: translateY(100%);
    transform-origin: center bottom;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body.chat-open .chat__drawer { transform: translateY(0); }

  /* hide bubble + preview while drawer is open (sheet covers them anyway) */
  body.chat-open .chat__bubble,
  body.chat-open .chat__preview { display: none; }

  .chat__preview {
    bottom: 70px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .chat__header {
    padding: 14px 16px 12px;
    padding-top: max(14px, env(safe-area-inset-top));
  }

  /* swipe-friendly grab handle hint on mobile sheet */
  .chat__drawer::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    width: 36px; height: 4px;
    background: var(--ink-30);
    border-radius: 2px;
    transform: translateX(-50%);
    opacity: 0.6;
  }
  .chat__header { padding-top: 18px; }
}

/* ============ 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.7; transition: opacity var(--t-fast); display: inline-block; }
.case:hover .case__cta-text { opacity: 1; }
.case:hover .case__cta { gap: 12px; 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(3, 1fr);
  gap: 32px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer__ext {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-50);
  margin-left: 4px;
  vertical-align: 2px;
}
.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; }
}

/* ============ Blog ============ */
.blog {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: var(--section-y);
}
.blog__intro { max-width: 720px; margin-bottom: 80px; }
.blog__h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
  text-wrap: balance;
}
.blog__h1 .serif-italic { color: var(--ink-70); }
.blog__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-70);
  line-height: 1.55;
  max-width: 56ch;
}

.blog__list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.blog__card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding-left var(--t-fast);
}
.blog__card:hover { padding-left: 12px; }
.blog__card-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 8px;
  white-space: nowrap;
}
.blog__card-body { min-width: 0; }
.blog__card-h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.blog__card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 60ch;
}
.blog__card-arrow {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink-50);
  padding-top: 6px;
  transition: transform var(--t-fast), color var(--t-fast);
}
.blog__card:hover .blog__card-arrow {
  color: var(--ink);
  transform: translateX(6px);
}
@media (max-width: 720px) {
  .blog__card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .blog__card:hover { padding-left: 0; }
  .blog__card-meta { padding-top: 0; }
  .blog__card-arrow { padding-top: 0; font-size: 16px; }
}

/* ============ Article ============ */
.article {
  padding-top: clamp(120px, 14vw, 180px);
  padding-bottom: var(--section-y);
}
.article__inner { max-width: 720px; margin: 0 auto; }
.article__breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 24px;
}
.article__breadcrumb a { color: var(--ink-50); transition: color var(--t-fast); }
.article__breadcrumb a:hover { color: var(--ink); }
.article__h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-wrap: balance;
}
.article__h1 .serif-italic { color: var(--ink-70); }
.article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.04em;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article__meta-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-30);
}

.article__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-90);
}
.article__body p { margin-bottom: 1.4em; }
.article__body p:last-child { margin-bottom: 0; }
.article__body strong { color: var(--ink); font-weight: 600; }
.article__body em { font-style: italic; color: var(--ink-70); }
.article__body a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-30);
  transition: border-color var(--t-fast);
}
.article__body a:hover { border-bottom-color: var(--ink); }

.article__body h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--ink);
  text-wrap: balance;
}
.article__body h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  color: var(--ink);
}

.article__body ul, .article__body ol {
  margin: 0 0 1.4em 0;
  padding-left: 1.4em;
}
.article__body li { margin-bottom: 0.5em; }
.article__body ul li::marker { color: var(--ink-30); }

.article__body blockquote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  color: var(--ink-70);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
}

.article__body code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  background: var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.article__body pre {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 20px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: 13px;
  line-height: 1.55;
}
.article__body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.article__body th {
  font-weight: 600;
  color: var(--ink);
  background: var(--line-soft);
}

.article__body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3em 0;
}

.article__cta {
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}
.article__cta-h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.article__cta-p {
  font-size: 15px;
  color: var(--ink-70);
  margin-bottom: 20px;
  line-height: 1.55;
}

.article__more {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article__more-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 20px;
}
.article__more-list { display: grid; gap: 16px; }
.article__more-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: padding-left var(--t-fast);
}
.article__more-list a:hover { padding-left: 8px; }
.article__more-list a span:last-child {
  color: var(--ink-50);
  font-family: var(--f-mono);
  font-size: 14px;
}
