/* ==========================================================================
   websites.guama.dev — stylesheet
   Tokens, base, components, and responsive behavior.
   Desktop layout is pixel-matched to the original; tablet/mobile reflow below.
   ========================================================================== */

:root {
  /* cool modern — paper / near-white with blue undertone */
  --bone: #F2F4F8;
  --bone-deep: #E5E9F0;
  --bone-soft: #F8FAFC;

  /* deep ink — cool near-black with navy undertone */
  --ink: #0F172A;
  --ink-90: #1E293B;
  --ink-soft: #334155;
  --mute: #64748B;
  --mute-light: #94A3B8;

  /* electric cobalt accent */
  --terra: #2563EB;
  --terra-deep: #1D4ED8;
  --terra-light: #60A5FA;

  /* lines & tints */
  --line: rgba(15, 23, 42, 0.10);
  --line-soft: rgba(15, 23, 42, 0.05);
  --line-strong: rgba(15, 23, 42, 0.20);
  --terra-tint: rgba(37, 99, 235, 0.08);
  --terra-tint2: rgba(37, 99, 235, 0.14);

  /* type stacks */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* shared layout values */
  --pad-x: clamp(24px, 4vw, 56px);
  --section-y: clamp(56px, 6vw, 80px);
  --container: 1800px;
}

/* ── reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bone); overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img { max-width: 100%; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--terra); color: var(--bone); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.15); border-radius: 5px; border: 2px solid var(--bone); }
::-webkit-scrollbar-thumb:hover { background: rgba(15, 23, 42, 0.3); }

.container { max-width: var(--container); margin: 0 auto; }

/* ── keyframes ──────────────────────────────────────────────────────────── */
@keyframes atPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.35); } }
@keyframes atBlink { 50% { opacity: 0; } }
@keyframes atSpin { to { transform: rotate(360deg); } }
@keyframes atMarqueeSlow { to { transform: translateX(-33.333%); } }
@keyframes atCarouselFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── shared primitives ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.is-light { color: var(--terra-light); }
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 3px;
  background: currentColor;
  display: inline-block;
}

.caret {
  color: var(--terra);
  animation: atBlink 1.1s steps(1) infinite;
  font-weight: 300;
  font-style: normal;
  display: inline-block;
  margin-left: 2px;
}

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo svg { flex-shrink: 0; }
.logo .logo-word {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.6px;
  font-weight: 400;
  line-height: 1;
}
.logo .logo-word em { color: var(--terra); font-style: italic; }
.logo.on-dark { color: var(--bone); }

/* nav links */
.at-nav-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 2px;
  transition: color .18s ease;
}
.at-nav-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--terra-deep);
  transform-origin: left; transform: scaleX(0);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.at-nav-link:hover { color: var(--terra-deep); }
.at-nav-link:hover::after { transform: scaleX(1); }

/* buttons */
.at-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
  font-family: inherit; font-size: 15px; font-weight: 500; letter-spacing: -0.1px;
  cursor: pointer; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  overflow: hidden; isolation: isolate;
}
.at-btn svg { transition: transform .25s ease; }
.at-btn:hover svg { transform: translate(2px, -2px); }
.at-btn-pri { background: var(--ink); color: var(--bone); }
.at-btn-pri:hover { background: var(--terra-deep); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5); }
.at-btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.at-btn-ghost:hover { border-color: var(--ink); background: rgba(15, 23, 42, 0.04); }
.at-btn-light { background: var(--bone); color: var(--ink); }
.at-btn-light:hover { background: #fff; transform: translateY(-1px); }

/* arrow link */
.at-arrow {
  display: inline-flex; align-items: center; gap: 6px; color: var(--terra-deep);
  text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent;
  transition: border-color .18s, color .18s; padding-bottom: 2px;
}
.at-arrow svg { transition: transform .2s; }
.at-arrow:hover { border-color: currentColor; }
.at-arrow:hover svg { transform: translate(3px, -3px); }

/* footer links */
.at-foot-link {
  position: relative; display: inline-flex; align-items: center;
  color: rgba(241, 233, 218, 0.65);
  text-decoration: none; font-size: 14px;
  padding: 6px 0;
  transition: color .18s, padding-left .25s;
}
.at-foot-link::before {
  content: '→'; position: absolute; left: -18px; opacity: 0;
  transition: opacity .2s, left .25s; color: var(--terra-light);
}
.at-foot-link:hover { color: var(--bone); padding-left: 18px; }
.at-foot-link:hover::before { opacity: 1; left: 0; }

/* ════════════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 18px 32px;
  background: rgba(242, 244, 248, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
}
.nav-logo { text-decoration: none; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 28px; }
.nav-cta { padding: 10px 18px; font-size: 13px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(6px, 1vw, 12px) clamp(24px, 4vw, 56px) 48px;
  max-width: var(--container); margin: 0 auto;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; min-height: 640px; align-items: start;
}
.hero-left { padding-top: 2px; position: relative; z-index: 2; }
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 8.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -3px;
  font-weight: 400;
  margin: 32px 0 56px;
  color: var(--ink);
}
.hero-type-wrap { position: relative; display: inline-block; padding-bottom: 0.12em; white-space: nowrap; }
.hero-type { font-style: italic; color: var(--terra-deep); }
.hero-lede {
  font-size: 20px; line-height: 1.5;
  color: var(--ink-soft); max-width: 540px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-clients { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-clients-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.hero-client {
  font-family: var(--serif); font-size: 19px; letter-spacing: -0.3px;
  color: var(--ink-soft);
}
.hero-client.is-italic { font-style: italic; }
.hero-client-dot { width: 3px; height: 3px; border-radius: 2px; background: var(--mute-light); }

.hero-right { position: relative; min-height: 640px; }
.hero-right-label {
  position: absolute; bottom: 10px; right: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-right-label .rule { width: 20px; height: 1px; background: var(--line); }

/* hero carousel */
.carousel { position: relative; height: 560px; perspective: 1400px; }
.carousel-card {
  position: absolute; top: 80px; left: 50%;
  width: 400px; margin-left: -200px;
  transform-origin: 50% 50%;
  transition: transform .7s cubic-bezier(.2, .7, .3, 1), opacity .5s ease, box-shadow .35s;
  border-radius: 8px; overflow: hidden; background: #fff;
  cursor: pointer; text-decoration: none; color: inherit;
  will-change: transform;
}
.carousel-card.pos-center {
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 3; opacity: 1; filter: none;
  box-shadow: 0 28px 56px -18px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.carousel-card.pos-center:hover {
  transform: translate3d(0, -8px, 0) scale(1);
  box-shadow: 0 40px 70px -22px rgba(15, 23, 42, 0.42), 0 0 0 1px rgba(15, 23, 42, 0.10);
}
.carousel-card.pos-left {
  transform: translate3d(-180px, -70px, 0) scale(0.74);
  z-index: 1; opacity: 0.5; filter: saturate(0.85);
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.carousel-card.pos-right {
  transform: translate3d(180px, 70px, 0) scale(0.74);
  z-index: 1; opacity: 0.5; filter: saturate(0.85);
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.carousel-shot { height: 250px; position: relative; overflow: hidden; }
.carousel-shot img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  display: block;
}
.carousel-live {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  display: none; align-items: center; gap: 6px;
  padding: 3px 9px 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72); font-family: var(--mono); font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.carousel-card.pos-center .carousel-live { display: inline-flex; }
.carousel-live .dot { width: 6px; height: 6px; border-radius: 3px; background: #8BE49A; box-shadow: 0 0 6px rgba(139, 228, 154, 0.7); animation: atPulse 1.6s ease-in-out infinite; }

.carousel-dots {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.carousel-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 4px; border: 0;
  background: rgba(15, 23, 42, 0.18);
  transition: width .4s cubic-bezier(.2, .7, .3, 1), background .3s;
  cursor: pointer; padding: 0; overflow: hidden;
}
.carousel-dot.is-active { width: 36px; background: var(--terra); }
.carousel-dot .fill {
  position: absolute; inset: 0; background: rgba(255, 255, 255, 0.55);
  transform-origin: left; transform: scaleX(0);
}
.carousel-dot.is-active.is-running .fill { animation: atCarouselFill 3.8s linear forwards; }

/* browser bar (hero frames) */
.browser-bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: #22201C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-bar .lights { display: flex; gap: 6px; }
.browser-bar .lights span { width: 10px; height: 10px; border-radius: 5px; }
.browser-bar .lights .r { background: #E26D5C; }
.browser-bar .lights .y { background: #D8B26E; }
.browser-bar .lights .g { background: #8BA872; }
.browser-bar .url {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255, 255, 255, 0.55); letter-spacing: 0.5px;
}
.browser-bar .menu { display: none; }

/* stats row */
.hero-stats {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr repeat(4, auto);
  gap: 48px; align-items: baseline;
}
.hero-stats-label {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 2px; text-transform: uppercase;
}
.hero-stat { text-align: right; }
.hero-stat .n { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -1.2px; color: var(--ink); }
.hero-stat .l { font-size: 12px; color: var(--mute); margin-top: 6px; letter-spacing: 0.2px; }

/* ════════════════════════════════════════════════════════════════════════
   MARQUEE
   ════════════════════════════════════════════════════════════════════════ */
.marquee {
  background: var(--ink); color: var(--bone);
  padding: 20px 0; overflow: hidden;
  border-top: 1px solid var(--ink-90);
  border-bottom: 1px solid var(--ink-90);
}
.marquee-track {
  display: flex; width: max-content; white-space: nowrap;
  animation: atMarqueeSlow 15.6s linear infinite;
  font-family: var(--serif); font-size: 28px; font-style: italic;
  letter-spacing: -0.5px;
}
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-sep { color: var(--terra); margin: 0 32px; font-family: sans-serif; font-size: 16px; font-style: normal; }

/* ════════════════════════════════════════════════════════════════════════
   SECTION HEAD (shared title block patterns)
   ════════════════════════════════════════════════════════════════════════ */
.section {
  padding: clamp(34px, 3.4vw, 50px) var(--pad-x) var(--section-y);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 48px;
}
.section-title {
  font-family: var(--serif); font-size: clamp(48px, 6.2vw, 92px);
  line-height: 0.96; letter-spacing: -2.2px; font-weight: 400;
  margin: 24px 0 0; color: var(--ink);
}
.section-title em { color: var(--terra-deep); font-style: italic; }
.section-head-sub {
  font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  max-width: 440px; justify-self: end; margin: 0;
}

/* ── SERVICES ──────────────────────────────────────────────────────────── */
.services { background: var(--bone); }
.services-list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service-row {
  width: 100%; background: transparent; border: none;
  padding: 36px 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 80px 1fr auto; gap: 32px;
  align-items: center; font-family: inherit; color: inherit;
}
.service-num { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.service-name {
  font-family: var(--serif); font-size: clamp(44px, 5.4vw, 76px);
  letter-spacing: -2px; line-height: 1; color: var(--ink);
  transition: color .3s, font-style .3s;
}
.service-row:hover .service-name { color: var(--terra-deep); }
.service.is-open .service-name { color: var(--terra-deep); font-style: italic; }
.service-plus {
  width: 46px; height: 46px; border-radius: 23px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  transition: all .3s ease;
}
.service.is-open .service-plus { background: var(--ink); color: var(--bone); }
.service-plus .v { transform-origin: center; transition: transform .25s ease; }
.service.is-open .service-plus .v { transform: scaleY(0); }
.service-panel {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.2, .7, .3, 1), opacity .3s ease;
}
.service.is-open .service-panel { max-height: 520px; opacity: 1; }
.service-panel-grid {
  display: grid; grid-template-columns: 80px 1.3fr 1fr;
  gap: 32px; padding-bottom: 40px; padding-top: 4px;
}
.service-kicker {
  font-family: var(--mono); font-size: 10px; color: var(--terra);
  letter-spacing: 2px; text-transform: uppercase;
}
.service-desc { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 24px; max-width: 520px; }
.service-bullets li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0; font-size: 15px; color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
}
.service-bullets li:last-child { border-bottom: none; }
.service-bullets li::before { content: '→'; color: var(--terra); font-family: var(--mono); font-size: 11px; }
.service-meta { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.service-meta .m { font-family: var(--mono); font-size: 12px; color: var(--mute); padding: 6px 0; letter-spacing: 0.5px; }
.service-meta .at-arrow { margin-top: 20px; font-size: 14px; }

/* ── WORK ──────────────────────────────────────────────────────────────── */
.work { background: var(--bone-deep); position: relative; }
.work-head .section-head-sub-wrap { justify-self: end; text-align: right; }
.work-head .meta {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}
.work-head .blurb { font-size: 16px; color: var(--ink-soft); margin: 0; max-width: 360px; line-height: 1.5; }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: auto; gap: 24px; }
.work-tile {
  position: relative; background: var(--bone); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s;
  transform: translateY(0); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
  display: block; grid-column: span 3;
}
.work-tile.span-4 { grid-column: span 4; }
.work-tile.span-2 { grid-column: span 2; }
.work-tile:hover { transform: translateY(-6px) scale(1.025); z-index: 2; box-shadow: 0 36px 72px -24px rgba(15, 23, 42, 0.28); }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-shot-inner { position: absolute; inset: 0; }
.work-shot-inner img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.work-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 0;
  padding: 0; border-radius: 999px; background: none; backdrop-filter: none;
  font-size: 0; letter-spacing: 0;
}
.work-badge .dot {
  width: 7px; height: 7px; border-radius: 999px; background: #7FE08A;
  box-shadow: 0 0 0 3px rgba(127, 224, 138, 0.22), 0 1px 4px rgba(0, 0, 0, 0.35);
  animation: atPulse 1.6s ease-in-out infinite;
}
.work-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--bone); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6) rotate(-45deg);
  transition: all .3s cubic-bezier(.2, .7, .3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.work-tile:hover .work-arrow { opacity: 1; transform: scale(1) rotate(0); }
.work-info { padding: 20px 22px 22px; border-top: 1px solid var(--line-soft); }
.work-info-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.work-client {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.6px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto;
}
.work-tile.span-4 .work-client { font-size: 28px; }
.work-yeartag {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.work-url { font-family: var(--mono); font-size: 11px; color: var(--terra); letter-spacing: 0.5px; margin-bottom: 10px; }
.work-desc { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.5; }
.work-stack { font-family: var(--mono); font-size: 10px; color: var(--mute-light); letter-spacing: 0.5px; }
.work-foot { text-align: center; margin-top: 64px; }
.work-foot .at-arrow { font-size: 15px; }

/* generic preview compositions */
.preview { position: absolute; inset: 0; overflow: hidden; }
.preview-pattern { position: absolute; inset: 0; }
.preview-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.preview-dots { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; }
.preview-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); }
.preview-center {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.preview-title {
  font-family: var(--serif); font-size: 54px; font-style: italic;
  color: #F7F3E4; letter-spacing: -1.2px; line-height: 0.95;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}
.preview-kind {
  font-family: var(--mono); font-size: 10px; margin-top: 14px;
  color: rgba(255, 255, 255, 0.65); letter-spacing: 2px; text-transform: uppercase;
}
.preview-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px; border-top: 1px solid rgba(247, 243, 228, 0.15);
  font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, 0.5);
  display: flex; justify-content: space-between;
}

/* ── PROCESS ───────────────────────────────────────────────────────────── */
.process { background: var(--ink); color: var(--bone); position: relative; overflow: hidden; }
.process .section-title { color: var(--bone); }
.process .section-title em { color: var(--terra-light); }
.process-seal { position: absolute; top: 48px; right: 48px; width: 96px; height: 96px; animation: atSpin 44s linear infinite; opacity: 0.5; }
.process-intro { max-width: 760px; margin-bottom: 88px; }
.process-intro .lede { font-size: 19px; line-height: 1.55; color: rgba(241, 233, 218, 0.72); max-width: 560px; margin: 0; }
.process-intro .section-title { margin: 24px 0 24px; }
.process-timeline { position: relative; }
.process-rule { position: absolute; top: 44px; left: 0; right: 0; height: 1px; background: rgba(241, 233, 218, 0.18); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-step { position: relative; }
.process-num {
  width: 88px; height: 88px; border-radius: 44px;
  background: var(--ink); border: 1px solid rgba(241, 233, 218, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-style: italic;
  color: var(--terra-light); margin-bottom: 32px;
  position: relative; z-index: 2; letter-spacing: -0.8px;
}
.process-tag { font-family: var(--mono); font-size: 10px; color: var(--terra-light); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.process-step h3 { font-family: var(--serif); font-size: 40px; font-weight: 400; letter-spacing: -1px; margin: 0 0 14px; color: var(--bone); }
.process-step p { font-size: 15px; line-height: 1.55; color: rgba(241, 233, 218, 0.65); margin: 0; max-width: 260px; }
.process-quote {
  margin-top: 120px; padding-top: 48px;
  border-top: 1px solid rgba(241, 233, 218, 0.18);
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}
.process-quote-label { font-family: var(--mono); font-size: 11px; color: rgba(241, 233, 218, 0.5); letter-spacing: 2px; text-transform: uppercase; }
.process-quote blockquote {
  font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25; letter-spacing: -0.8px; font-style: italic;
  color: var(--bone); margin: 0; font-weight: 400;
}
.process-quote cite { display: block; margin-top: 24px; font-family: var(--mono); font-size: 12px; color: rgba(241, 233, 218, 0.6); letter-spacing: 0.5px; font-style: normal; }

/* ── ABOUT ─────────────────────────────────────────────────────────────── */
.about { background: var(--bone-soft); position: relative; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 96px; align-items: start; }
.about-intro .col-right { padding-top: 24px; }
.about-statement { font-family: var(--serif); font-size: 28px; line-height: 1.35; letter-spacing: -0.6px; color: var(--ink); margin: 0 0 20px; }
.about-statement em { color: var(--terra-deep); }
.about-statement-sub { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 540px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px; }
.team-card { background: var(--bone); border: 1px solid var(--line); border-radius: 8px; padding: 36px 32px 32px; position: relative; overflow: hidden; }
.team-portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: 4px; margin-bottom: 24px; position: relative; overflow: hidden; }
.team-portrait::after {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 8px);
}
.team-portrait .init {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 96px; font-style: italic;
  color: rgba(15, 23, 42, 0.22); letter-spacing: -3px;
}
.team-portrait .cap {
  position: absolute; bottom: 14px; left: 16px; right: 16px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px;
  color: rgba(15, 23, 42, 0.5); text-transform: uppercase;
  display: flex; justify-content: space-between; z-index: 1;
}
.team-role { font-family: var(--mono); font-size: 10px; color: var(--terra); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.team-name { font-family: var(--serif); font-size: 32px; letter-spacing: -0.8px; color: var(--ink); margin-bottom: 10px; line-height: 1.05; }
.team-bio { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.about-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.about-strip dt { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.about-strip dd { font-family: var(--serif); font-size: 22px; line-height: 1.3; color: var(--ink); white-space: pre-line; letter-spacing: -0.3px; margin: 0; }

/* ── CONTACT ───────────────────────────────────────────────────────────── */
.contact { background: var(--bone); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-h2 {
  font-family: var(--serif); font-size: clamp(56px, 7.2vw, 112px);
  line-height: 0.94; letter-spacing: -2.6px; font-weight: 400;
  margin: 24px 0 32px; color: var(--ink);
}
.contact-h2 em { color: var(--terra-deep); font-style: italic; }
.contact-lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 440px; margin-bottom: 48px; }
.contact-details { display: grid; gap: 28px; }
.contact-detail { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: baseline; }
.contact-detail dt { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 2px; text-transform: uppercase; }
.contact-detail dd { margin: 0; }
.contact-detail .val { font-family: var(--serif); font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.contact-detail a.val { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.contact-detail a.val:hover { color: var(--terra-deep); border-color: var(--terra); }

.contact-form-wrap { background: var(--bone-soft); border: 1px solid var(--line); border-radius: 8px; padding: 44px 44px 40px; position: relative; overflow: hidden; }
.form-flag {
  font-family: var(--mono); font-size: 10px; color: var(--terra);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.form-flag .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--terra); animation: atPulse 2s ease-in-out infinite; }
.form-fields { display: grid; gap: 28px; }
.field-label {
  font-family: var(--mono); font-size: 10px; color: var(--mute);
  letter-spacing: 2px; text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.field-label .err { color: var(--terra); display: none; }
.field-label .optional { color: var(--mute-light); }
.field-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  padding: 16px 4px 12px; font-family: inherit; font-size: 17px;
  color: var(--ink); outline: none; transition: border-color .2s;
}
textarea.field-input { resize: vertical; min-height: 100px; }
.field.has-error .field-input { border-bottom-color: var(--terra); }
.field.has-error .field-label .err { display: inline; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink-soft); font-family: inherit; font-size: 13px;
  cursor: pointer; transition: all .18s;
}
.chip.is-selected { border-color: var(--ink); background: var(--ink); color: var(--bone); }
.form-submit { width: 100%; justify-content: center; padding: 18px 24px; font-size: 15px; margin-top: 12px; }
.form-error { font-family: var(--mono); font-size: 11px; color: var(--terra); letter-spacing: 0.5px; text-align: center; margin-top: -4px; display: none; }
.form-note { font-family: var(--mono); font-size: 10px; color: var(--mute); letter-spacing: 0.5px; text-align: center; margin-top: -8px; }
.form-note a { color: var(--terra-deep); text-decoration: underline; }

.form-success {
  display: none; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  min-height: 540px; padding: 20px;
}
.contact-form-wrap.is-sent form { display: none; }
.contact-form-wrap.is-sent .form-success { display: flex; }
.form-success .check {
  width: 80px; height: 80px; border-radius: 40px;
  background: var(--terra-tint2); color: var(--terra-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 32px;
}
.form-success .title { font-family: var(--serif); font-size: 40px; letter-spacing: -1px; color: var(--ink); margin-bottom: 16px; }
.form-success .title em { color: var(--terra-deep); font-style: italic; }
.form-success p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 360px; margin: 0 0 28px; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: var(--bone);
  padding: var(--section-y) var(--pad-x) 32px;
  position: relative; overflow: hidden;
}
.footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(241, 233, 218, 0.14);
}
.footer-about { font-size: 15px; line-height: 1.55; color: rgba(241, 233, 218, 0.65); margin: 24px 0 32px; max-width: 340px; }
.footer-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid rgba(241, 233, 218, 0.2);
  font-family: var(--mono); font-size: 11px; color: rgba(241, 233, 218, 0.75); letter-spacing: 1px;
}
.footer-status .dot { width: 7px; height: 7px; border-radius: 4px; background: #7FE08A; animation: atPulse 2s ease-in-out infinite; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; color: rgba(241, 233, 218, 0.5); letter-spacing: 2px; text-transform: uppercase; margin: 0 0 20px; font-weight: 400; }
.footer-col .links { display: flex; flex-direction: column; gap: 2px; }
.footer-wordmark { padding: 24px 0 56px; text-align: center; position: relative; overflow: hidden; }
.footer-wordmark svg { display: block; width: 100%; height: auto; user-select: none; }
.footer-fine {
  padding-top: 28px; border-top: 1px solid rgba(241, 233, 218, 0.14);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.5px; color: rgba(241, 233, 218, 0.5);
}
.footer-fine .meta { display: flex; gap: 24px; }

/* visually-hidden but available to screen readers / crawlers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE  —  desktop above is untouched; these only apply at breakpoints
   ════════════════════════════════════════════════════════════════════════ */

/* ---- Tablet / small laptop ( ≤ 1024px ) ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; min-height: 0; }
  .hero-right { min-height: 520px; margin-top: 24px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .hero-stats-label { grid-column: 1 / -1; }
  .hero-stat { text-align: left; }

  .section-head { gap: 32px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-tile, .work-tile.span-4, .work-tile.span-2 { grid-column: span 1; }
  .work-tile.span-4 .work-shot { aspect-ratio: 16 / 10; }

  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .process-rule { display: none; }
  .process-quote { grid-template-columns: 1fr; gap: 16px; }
  .process-intro { margin-bottom: 56px; }

  .about-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .about-intro .col-right { padding-top: 0; }
  .team { grid-template-columns: repeat(2, 1fr); }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---- Tablet nav → hamburger before things get squeezed ( ≤ 900px ) ---- */
@media (max-width: 900px) {
  /* nav → lowkey: logo + tucked-away menu toggle */
  .nav { gap: 16px; padding: 16px 24px; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 0; padding: 8px 24px 16px;
    background: rgba(242, 244, 248, 0.97);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.menu-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links .at-nav-link { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); cursor: pointer; padding: 0;
  }
  .nav-toggle svg { display: block; }
  .nav-toggle .x { display: none; }
  .nav.menu-open .nav-toggle .burger { display: none; }
  .nav.menu-open .nav-toggle .x { display: block; }
}

/* ---- Phone ( ≤ 640px ) ---- */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-links { padding: 8px 20px 16px; }

  /* hero */
  .hero { padding: 8px 20px 32px; }
  .hero-h1 { margin: 24px 0 32px; letter-spacing: -1.5px; }
  .hero-lede { font-size: 17px; margin-bottom: 28px; }
  .hero-actions .at-btn { flex: 1 1 auto; justify-content: center; }
  .hero-clients { margin-top: 36px; padding-top: 20px; }
  .hero-right { min-height: 0; margin-top: 32px; }
  .hero-right-label { display: none; }

  /* carousel collapses to one upright card that slides horizontally between the 3 sites */
  .carousel { display: grid; grid-template-columns: 1fr; height: auto; perspective: none; align-items: start; overflow: hidden; }
  .carousel-card {
    grid-column: 1; grid-row: 1;
    position: relative; top: 0; left: 0; width: 100%; margin-left: 0;
    filter: none !important;
    box-shadow: 0 16px 34px -18px rgba(15, 23, 42, 0.32), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
    display: block;
    transform: translate3d(calc(100% + 9px), 0, 0) !important;
    transition: transform .62s cubic-bezier(.4, 0, .2, 1) !important;
    will-change: transform; backface-visibility: hidden;
    pointer-events: none;
  }
  /* incoming card slides in from the right */
  .carousel-card.pos-center {
    transform: translate3d(0, 0, 0) !important;
    z-index: 2; pointer-events: auto;
  }
  /* outgoing card is pushed out to the left */
  .carousel-card.pos-left {
    transform: translate3d(calc(-100% - 9px), 0, 0) !important;
  }
  /* the waiting card snaps to the right edge with no animation,
     so it never streaks across the screen on the wrap-around */
  .carousel-card.pos-right {
    transform: translate3d(calc(100% + 9px), 0, 0) !important;
    transition: none !important;
  }
  .carousel-card.pos-center:hover { transform: translate3d(0, 0, 0) !important; }
  .carousel-shot { height: auto; aspect-ratio: 16 / 10; }
  .carousel-dots { grid-row: 2; position: relative; bottom: 0; margin-top: 20px; }

  .hero-stats { margin-top: 36px; padding-top: 20px; gap: 24px 16px; }
  .hero-stat .n { font-size: 34px; }

  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 22px; }

  /* sections */
  .section { padding: 48px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .section-head-sub, .work-head .section-head-sub-wrap { justify-self: start; text-align: left; max-width: none; }
  .work-head .blurb { max-width: none; }

  /* services */
  .service-row { grid-template-columns: 1fr auto; gap: 16px; padding: 24px 0; }
  .service-num { display: none; }
  .service-panel-grid { grid-template-columns: 1fr; gap: 20px; }
  .service.is-open .service-panel { max-height: 900px; }
  .service-desc { font-size: 16px; }
  .service-meta { padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid var(--line-soft); }

  /* work */
  .work-grid { grid-template-columns: 1fr; gap: 16px; }
  .work-foot { margin-top: 40px; }

  /* process */
  .process-steps { grid-template-columns: 1fr; gap: 36px; }
  .process-seal { display: none; }
  .process-num { width: 64px; height: 64px; border-radius: 32px; font-size: 26px; margin-bottom: 20px; }
  .process-step h3 { font-size: 32px; }
  .process-step p { max-width: none; }
  .process-quote { margin-top: 56px; padding-top: 32px; }

  /* about */
  .team { grid-template-columns: 1fr; gap: 16px; }
  .about-statement { font-size: 23px; }
  .about-strip { grid-template-columns: 1fr; gap: 28px; }

  /* contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-h2 { letter-spacing: -1.5px; }
  .contact-form-wrap { padding: 28px 22px 26px; }
  .form-success { min-height: 0; padding: 40px 12px; }
  .contact-detail { grid-template-columns: 64px 1fr; gap: 16px; }
  .contact-detail .val { font-size: 22px; }

  /* footer */
  .footer { padding: 48px 20px 28px; }
  .footer-cols { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-wordmark { padding: 32px 0 40px; }
  .footer-fine { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-fine .meta { flex-direction: column; gap: 4px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
