/* ═══════════════════════════════════
   RESET
═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { line-height: 1.7; }

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 960px) {
  .logo img { height: 56px; }
  .hero-sticky { top: 96px; height: calc(100vh - 96px); }
}

@media (min-width: 1280px) {
  .logo img { height: 68px; }
  .hero-sticky { top: 108px; height: calc(100vh - 108px); }
}

.nav-right { display: flex; align-items: center; gap: 2.5rem; }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--dark); }

.nav-cta {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.625rem 1.25rem;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* ═══════════════════════════════════
   HERO — STICKY + SCROLL REVEAL
═══════════════════════════════════ */
.hero-wrapper {
  height: 220vh;
  position: relative;
}

.hero-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 0 clamp(3rem, 8vw, 9rem);
  background: var(--bg);
  background-image: var(--grid-light);
  background-size: var(--grid-size-light);
  overflow: hidden;
  will-change: transform;
  touch-action: pan-y;
}

/* annotation label above headline */
.hero-anno {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}
.hero-anno::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* coordinates — bottom-right of hero */
.hero-coords {
  position: absolute;
  bottom: 3rem;
  right: clamp(3rem, 8vw, 9rem);
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
  opacity: 0.6;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* Line 1: cycling headline */
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.15em;
}

.cycle-word {
  display: inline-block;
  font-style: italic;
  color: var(--muted);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cycle-word.fading {
  opacity: 0;
  transform: translateY(-10px);
}

/* Line 2: payoff */
.hero-payoff-line {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--dark);
  max-width: 50%;
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Line 3: sub-payoff */
.hero-sub-payoff {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.75rem;
  max-width: 50%;
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
}

/* CTAs */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-dark { background: var(--accent); color: var(--white); }
.btn-dark:hover { opacity: 0.88; }
.btn-outline { border: 1px solid var(--dark2); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark2); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); width: 100%; text-align: center; }
.btn-accent:hover { opacity: 0.88; }

/* ═══════════════════════════════════
   CLIENTS STRIP
═══════════════════════════════════ */
#clients {
  background: var(--slate);
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  padding: 2rem var(--gutter);
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 150;
  transform: translateY(-100%);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
#clients.is-visible {
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 960px) { #clients { top: 96px; } }
@media (min-width: 1280px) { #clients { top: 108px; } }

.clients-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.clients-label {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  white-space: nowrap;
}
.clients-names { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
.client-name {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-inverse-muted);
}

/* ═══════════════════════════════════
   SHARED SECTION
═══════════════════════════════════ */
.section-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--gutter);
}

/* Scroll drift-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.section-tag::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  display: block;
  flex-shrink: 0;
}
.section-anno {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
#services .section-anno { color: var(--ink-inverse-muted); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════
   SERVICES — BLUEPRINT MOMENT
═══════════════════════════════════ */
#services {
  background: var(--slate);
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  color: var(--white);
}
#services .section-title { color: var(--white); }
.title-light { font-weight: 400; font-style: italic; }
#services .section-tag { color: var(--ink-inverse-muted); }
#services .section-tag::before { background: rgba(255,255,255,0.2); }

.services-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
  align-items: start;
}
.services-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 130px;
}
.services-header-sub {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--ink-inverse-body);
  max-width: 52ch;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.service-card {
  background: transparent;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

/* Card inner wrapper + front/back faces */
.sc-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sc-front {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
  position: relative;
}
.sc-back {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.service-card:hover .sc-back, .service-card:focus-within .sc-back { pointer-events: auto; }

.sc-illus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: 78%;
  height: 240px;
  object-fit: contain;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.service-card:hover .sc-illus, .service-card:focus-within .sc-illus { opacity: 0; }
.service-card:hover, .service-card:focus-within { background: rgba(255,255,255,0.04); }

.sc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: block;
  transition: opacity 0.2s;
}
.service-card:hover .sc-dot, .service-card:focus-within .sc-dot { opacity: 0; }
.sc-num {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
}

.sc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 0 1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.service-card:hover .sc-body,
.service-card:focus-within .sc-body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sc-name {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  margin-bottom: 0.875rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 0.625rem;
}
.sc-desc {
  font-size: 0.8125rem;
  color: var(--ink-inverse-body);
  line-height: 1.72;
  margin-bottom: 1rem;
}
.sc-bullets { list-style: disc; padding-left: 1.1rem; margin-bottom: 1.5rem; }
.sc-bullets li {
  font-size: 0.8125rem;
  color: var(--ink-inverse-body);
  line-height: 1.8;
}
.sc-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.sc-cta:hover { opacity: 0.85; }

.sc-foot { transition: opacity 0.2s; }
.service-card:hover .sc-foot, .service-card:focus-within .sc-foot { opacity: 0; }

/* Touch: card sizes to content — sc-front is illustration background, sc-back is in flow */
@media (hover: none) {
  /* Block layout lets card shrink-wrap its content */
  .service-card { min-height: 0; cursor: pointer; display: block; }
  .sc-inner { display: block; position: relative; }
  .service-card:active { opacity: 0.8; transition: opacity 0.1s; }

  /* Front: decorative background only — floats behind */
  .sc-front {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
  }
  .sc-illus { opacity: 0.12; }

  /* Back: in normal flow — defines the card height */
  .sc-back {
    position: relative;
    inset: auto;
    transform: none;
    background: transparent;
    padding: 3.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
  }
  .sc-back .sc-body {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .sc-name { font-size: var(--text-label); margin-bottom: 0.75rem; }
  .sc-desc { margin-bottom: 0.75rem; }
  .sc-bullets { margin-bottom: 1.5rem; }

  /* Hide button and duplicate footer */
  .sc-cta { display: none; }
  .sc-foot { display: none; }

  /* Arrow tap hint — sits at bottom-right of sc-back */
  .sc-back::after {
    content: '→';
    display: block;
    text-align: right;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    margin-top: 0.25rem;
  }
}
.sc-icon {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.sc-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}
/* one-line teaser visible before any interaction */
.sc-front .sc-label::after {
  content: attr(data-teaser);
  display: block;
  font-family: var(--sans);
  font-size: var(--text-small);
  color: var(--ink-inverse-muted);
  margin-top: 0.375rem;
  line-height: var(--leading-body);
  text-transform: none;
  letter-spacing: 0;
}

/* ═══════════════════════════════════
   PROCESS
═══════════════════════════════════ */
#process { background: var(--bg); position: relative; overflow: hidden; }

.illus-process-bg {
  position: absolute;
  right: calc(-1 * var(--gutter));
  top: 50%;
  transform: translateY(-50%);
  width: 80%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}
#process .section-container { position: relative; z-index: 1; }

.process-header { margin-bottom: 5rem; }
.process-header p:not(.section-anno) {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.7;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.process-step {
  background: rgba(245, 240, 232, 0.78);
  border: 1px solid var(--border);
  padding: 3rem 2.5rem;
}

.step-num {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.7;
}
.step-num::before,
.step-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 20px;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.72;
}

/* ═══════════════════════════════════
   WORK — BLUEPRINT MOMENT
═══════════════════════════════════ */
#work {
  background: var(--slate);
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  color: var(--white);
  padding-bottom: 5rem;
}
#work .section-container { padding-bottom: 0; }
#work .section-title { color: var(--white); }
#work .section-tag { color: var(--ink-inverse-muted); }
#work .section-tag::before { background: rgba(255,255,255,0.2); }

.work-framing { margin-bottom: 1.5rem; }
.work-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-inverse-body);
  margin-top: 1.25rem;
}

.ticker-wrapper {
  overflow: hidden;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
}
.ticker-wrapper:active { cursor: grabbing; }
.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.ticker-inner {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink-inverse-muted);
  padding-right: 2rem;
  flex-shrink: 0;
}
.ticker-sep {
  color: rgba(255,255,255,0.2);
  margin: 0 0.75rem;
}

/* ═══════════════════════════════════
   ABOUT
═══════════════════════════════════ */
#about { background: var(--light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: start;
}
.about-left .section-title { margin-top: 1.5rem; }

.about-right p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 1.5rem;
}
.about-right p strong { color: var(--dark); font-weight: 500; }
.about-right p:last-child { margin-bottom: 0; }

.about-subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.55;
  transition: opacity 0.2s ease;
  margin-bottom: 0;
  display: block;
}
.about-toggle:hover { opacity: 1; }

.about-story {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s ease;
}
.about-story.is-open {
  max-height: 120rem;
}
.about-story p:first-child { margin-top: 1.75rem; }

.about-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.about-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

.about-stat {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ═══════════════════════════════════
   CONTACT — BLUEPRINT MOMENT
═══════════════════════════════════ */
#contact {
  background: var(--slate);
  background-image: var(--grid-dark);
  background-size: var(--grid-size);
  color: var(--white);
}
#contact .section-tag { color: var(--ink-inverse-muted); }
#contact .section-tag::before { background: rgba(255,255,255,0.2); }
#contact .section-title { color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}
.contact-left p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--ink-inverse-body);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 36ch;
}
.contact-detail {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.contact-detail p {
  font-size: 0.875rem;
  color: var(--ink-inverse-muted);
  line-height: 1.85;
}
.contact-detail a { color: var(--ink-inverse-body); transition: color 0.15s; }
.contact-detail a:hover { color: var(--white); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-group { margin-bottom: 1.5rem; }
label {
  display: block;
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  margin-bottom: 0.625rem;
}
input, textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 0.875rem 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--white);
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--placeholder-inverse); }
input:focus-visible, textarea:focus-visible {
  border-color: var(--border-inverse-strong);
  outline: var(--focus-ring-inverse);
  outline-offset: 0;
}
textarea { height: 140px; resize: vertical; }
.form-submit { margin-top: 2rem; }

.form-success {
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 2.5rem 0;
}
.form-success.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.form-success-anno {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  margin-bottom: 1.25rem;
}
.form-success-heading {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1rem;
}
.form-success-body {
  font-size: 0.95rem;
  color: var(--ink-inverse-body);
  line-height: 1.7;
  max-width: 38ch;
}

/* ═══════════════════════════════════
   FOOTER — SLATE
═══════════════════════════════════ */
footer {
  background: var(--slate);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem var(--gutter);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo img { height: 20px; width: auto; opacity: 0.35; filter: invert(1); }
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════
   SVG ILLUSTRATIONS
═══════════════════════════════════ */
/* Hero — right-anchored line work; text sits at top-left of image */
.illus-hero {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 78%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.1s,
    opacity   0.5s ease 0.1s;
  pointer-events: none;
}
.illus-hero.is-revealed {
  opacity: 0.1;
  clip-path: inset(0 0% 0 0);
}

/* Process — drawing compass, top-right of header */
.illus-process {
  position: absolute;
  top: 4.5rem;
  right: var(--gutter);
  height: 155px;
  width: auto;
  opacity: 0.22;
  pointer-events: none;
}

/* About — compass rose centered behind left-column heading */
#about { position: relative; overflow: hidden; }
.about-left { position: relative; }
.illus-about {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 260px;
  width: auto;
  opacity: 0.14;
  pointer-events: none;
}

/* Contact — annotation callout, bottom-right of contact-left */
#contact { position: relative; overflow: hidden; }
.contact-left { position: relative; }
.illus-contact {
  position: absolute;
  bottom: -0.5rem;
  right: -1rem;
  height: 105px;
  width: auto;
  opacity: 0.28;
  pointer-events: none;
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 960px) {
  .services-layout { grid-template-columns: 1fr; gap: 3rem; }
  .services-header { position: static; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 360px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-step { position: relative; min-height: 280px; }
  .step-num, .step-title { transition: opacity 0.25s ease; }
  .step-desc {
    display: block;
    position: absolute;
    top: 3rem;
    left: 2.5rem;
    right: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .process-step:hover .step-num,
  .process-step.is-open .step-num,
  .process-step:hover .step-title,
  .process-step.is-open .step-title { opacity: 0; }
  .process-step:hover .step-desc,
  .process-step.is-open .step-desc { opacity: 1; pointer-events: auto; }
}

/* scroll hint — mobile only */
.hero-scroll-hint {
  display: none;
}
@media (max-width: 600px) {
  .hero-scroll-hint {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    top: 2rem;
    right: clamp(1.25rem, 4vw, 2rem);
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  .hero-scroll-hint.is-hidden {
    opacity: 0;
  }
  .scroll-hint-label {
    font-family: var(--mono);
    font-size: var(--text-label);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
    white-space: nowrap;
  }
  .scroll-hint-arrow {
    font-size: 0.9rem;
    color: var(--muted);
    opacity: 0.5;
    animation: scroll-bob 1.6s ease-in-out infinite;
  }
  @keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
  }
}

@media (max-width: 600px) {
  .illus-hero, .illus-process, .illus-about, .illus-contact { display: none; }
  .nav-links { display: none; }
  .hero-wrapper { height: 150vh; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero-payoff-line { max-width: 100%; font-size: clamp(2.5rem, 11vw, 4rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .hero-coords { display: none; }
}

/* Mobile touch overrides — placed after all breakpoints to win cascade */
@media (hover: none) {
  /* Service cards: shrink-wrap to content */
  .service-card { min-height: 0; display: block; }
  .sc-inner { display: block; position: relative; }

  /* Process illustration: hide on mobile — height:100% reflows every frame during accordion transition */
  .illus-process-bg { display: none; }

  /* Process steps: compact accordion */
  .process-steps { border-top: 1px solid var(--border); }
  .process-step {
    min-height: 0;
    padding: 1.1rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
  }
  /* Keep num + title always visible — #process raises specificity above the 960px fade rule */
  .step-num, .step-title { transition: none; }
  #process .step-num,
  #process .step-title { opacity: 1; }

  /* Hide the — 01 — line motif; just show the number */
  .step-num::before,
  .step-num::after { display: none; }
  .step-num { font-size: var(--text-label); margin-bottom: 0.1rem; opacity: 0.5; }

  /* Title row with → indicator */
  .step-title {
    font-size: 1rem;
    margin-top: 0.1rem;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .step-title::after {
    content: '→';
    font-family: var(--mono);
    font-size: var(--text-label);
    color: var(--muted);
    opacity: 0.45;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  .process-step.is-open .step-title::after {
    transform: rotate(90deg);
  }

  /* Description: hidden until tapped */
  .step-desc {
    position: static;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, max-height 0.4s ease;
    margin-top: 0;
  }
  .process-step.is-open .step-desc {
    opacity: 1;
    max-height: 20rem;
    pointer-events: auto;
    margin-top: 0.75rem;
    padding-bottom: 0.25rem;
  }
}
