/* ==========================================================================
   Fora - main.css
   All design tokens + components. Single stylesheet, no framework.
   Sections:
     1. Tokens (:root)
     2. Reset & base
     3. Grain texture overlay
     4. Layout: container, grid, section
     5. Typography helpers
     6. Buttons & links
     7. Reveal / motion
     8. Navigation
     9. Hero
    10. Selected work
    11. Services
    12. Process
    13. About
    14. Contact
    15. Footer
    16. Case study template
    17. Responsive
    18. Reduced motion
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Color */
  --color-bg: #F7F5F2;
  --color-surface: #EFEDE9;
  --color-border: #E2DDD8;
  --color-ink-primary: #1C1917;
  --color-ink-secondary: #6B6560;
  --color-ink-tertiary: #757068;
  --color-charcoal: #252220;
  --color-black: #0F0E0D;
  --color-accent: #B8734A;
  --color-accent-muted: #D4A88A;
  --color-white: #FDFCFB;

  /* Type - three-tier system:
     Fraunces (editorial headlines) · Space Grotesk (sharp UI/labels) · Inter (body) */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --t-display: clamp(3.5rem, 7vw, 6.5rem);
  --t-h1: clamp(2.5rem, 5vw, 4.5rem);
  --t-h2: clamp(1.75rem, 3vw, 2.75rem);
  --t-h3: clamp(1.25rem, 2vw, 1.75rem);
  --t-body-lg: 1.125rem;
  --t-body: 1rem;
  --t-caption: 0.8125rem;
  --t-label: 0.6875rem;

  /* Spacing scale (8px base, editorial jumps) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --sp-11: 192px;
  --sp-12: 256px;

  /* Section rhythm */
  --section-padding-y: clamp(80px, 12vw, 160px);
  --section-padding-x: clamp(24px, 6vw, 80px);

  /* Grid */
  --content-max: 1280px;
  --gutter: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --dur-fast: 150ms;
  --dur-mid: 300ms;
  --dur-slow: 600ms;
  --dur-entrance: 900ms;

  --nav-h: 72px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink-primary);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-ink-primary);
}

/* Fraunces reads best a touch tighter and darker for display use */
.display, .h1, .h2 { font-family: var(--font-heading); font-weight: 600; }
.h3 { font-family: var(--font-heading); font-weight: 500; }

::selection {
  background: var(--color-accent-muted);
  color: var(--color-ink-primary);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--color-ink-primary);
  color: var(--color-white);
  border-radius: 2px;
  transition: top var(--dur-mid) var(--ease-out);
}
.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   3. Grain texture overlay
   The tactile layer. Applied to <body> once so it covers all sections.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Keep page content above the grain */
.nav,
main,
.footer {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   4. Layout: container, grid, section
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
}

.section {
  padding-block: var(--section-padding-y);
}

.section--tight {
  padding-block: clamp(48px, 8vw, 96px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

/* Column span helpers (desktop) */
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.divider {
  height: 1px;
  width: 100%;
  background: var(--color-border);
  border: 0;
}

/* ==========================================================================
   5. Typography helpers
   ========================================================================== */
.eyebrow {
  font-family: var(--font-ui);
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-tertiary);
}

.display {
  font-size: var(--t-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.h1 {
  font-size: var(--t-h1);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.body-lg {
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--color-ink-secondary);
}

.body {
  font-size: var(--t-body);
  line-height: 1.65;
}

.caption {
  font-family: var(--font-ui);
  font-size: var(--t-caption);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-ink-secondary);
}

.text-secondary { color: var(--color-ink-secondary); }
.text-tertiary { color: var(--color-ink-tertiary); }
.accent { color: var(--color-accent); }

/* ==========================================================================
   6. Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition:
    background-color var(--dur-mid) var(--ease-in-out),
    color var(--dur-mid) var(--ease-in-out),
    transform var(--dur-mid) var(--ease-spring),
    box-shadow var(--dur-mid) var(--ease-in-out),
    border-color var(--dur-mid) var(--ease-in-out);
}

/* Primary solid */
.btn--primary {
  padding: 14px 32px;
  background: var(--color-ink-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-charcoal);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15);
}

/* Charcoal solid (contact) */
.btn--charcoal {
  padding: 16px 32px;
  background: var(--color-charcoal);
  color: var(--color-white);
  width: 100%;
  justify-content: center;
}
.btn--charcoal:hover {
  background: #322e2b;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.18);
}

/* Outlined (nav CTA) */
.btn--outline {
  padding: 10px 20px;
  border: 1px solid var(--color-ink-primary);
  color: var(--color-ink-primary);
  font-size: 0.875rem;
}
.btn--outline:hover {
  background: var(--color-ink-primary);
  color: var(--color-white);
}

/* Secondary text link with accent arrow */
.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink-secondary);
  font-size: 0.9375rem;
  transition: color var(--dur-fast) var(--ease-in-out);
}
.link-secondary .arrow {
  color: var(--color-accent);
  transition: transform var(--dur-mid) var(--ease-out);
}
.link-secondary:hover {
  color: var(--color-ink-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-secondary:hover .arrow {
  transform: translateX(3px);
}

/* Ghost link - accent underline slides in from left */
.link-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-ink-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 2px;
}
.link-ghost::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.link-ghost:hover::after {
  transform: scaleX(1);
}
.link-ghost .arrow {
  transition: transform var(--dur-mid) var(--ease-out);
}
.link-ghost:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   7. Reveal / motion
   ========================================================================== */
/* Hidden initial state only applies when JS is present (html.js).
   Without JS, .reveal content stays fully visible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   8. Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-in-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--color-border);
}

.nav__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-ink-primary);
  line-height: 1;
}
.logo__mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--color-ink-primary);
}
.logo__mark svg { width: 100%; height: 100%; display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--color-ink-secondary);
  padding-bottom: 3px;
  transition: color var(--dur-fast) var(--ease-in-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-ink-primary);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 210;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--color-ink-primary);
  transition: transform var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-in-out),
              background-color var(--dur-mid) var(--ease-in-out);
}

/* Mobile full-screen overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-5);
  padding: var(--section-padding-x);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
.nav__overlay.is-open {
  transform: translateY(0);
  visibility: visible;
}
.nav__overlay a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--t-h2);
  letter-spacing: -0.02em;
  color: var(--color-white);
  transition: color var(--dur-fast) var(--ease-in-out);
}
.nav__overlay a:hover {
  color: var(--color-accent-muted);
}
.nav__overlay-close {
  position: absolute;
  top: 22px;
  right: var(--section-padding-x);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-white);
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   9. Hero
   ========================================================================== */
.hero {
  padding-top: 200px;
  padding-bottom: clamp(64px, 10vw, 128px);
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}
.hero__left {
  grid-column: span 7;
}
.hero__right {
  grid-column: 9 / span 4;
}
.hero__eyebrow {
  margin-bottom: var(--sp-5);
}
.hero__headline {
  font-size: var(--t-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--color-ink-primary);
}
/* word-split spans for entrance */
.hero__headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
html.js .hero__headline .word > span {
  display: inline-block;
  transform: translateY(32px);
  opacity: 0;
}
.hero.is-entered .hero__headline .word > span {
  transform: translateY(0);
  opacity: 1;
  transition: transform var(--dur-entrance) var(--ease-out),
              opacity var(--dur-entrance) var(--ease-out);
}

html.js .hero__eyebrow,
html.js .hero__lead,
html.js .hero__cta {
  opacity: 0;
}
.hero.is-entered .hero__eyebrow {
  animation: fade-in 400ms var(--ease-out) 100ms forwards;
}
.hero.is-entered .hero__lead {
  animation: fade-up 600ms var(--ease-out) 600ms forwards;
}
.hero.is-entered .hero__cta {
  animation: fade-in 600ms var(--ease-out) 800ms forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--color-ink-secondary);
  margin-bottom: var(--sp-6);
}
.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-8);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.scroll-indicator.is-hidden {
  opacity: 0;
}
.scroll-indicator__line {
  position: relative;
  width: 1px;
  height: 40px;
  background: var(--color-border);
  overflow: hidden;
}
.scroll-indicator__dot {
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: scroll-travel 2s var(--ease-in-out) infinite;
}
@keyframes scroll-travel {
  0% { transform: translateY(-6px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ==========================================================================
   10. Selected work
   ========================================================================== */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-card {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
}
.work-card + .work-card {
  border-top: 1px solid var(--color-border);
}
.work-card--reverse .work-card__media {
  order: 2;
}
.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.work-card__media img,
.work-card__media .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.work-card:hover .work-card__media img,
.work-card:hover .work-card__media .placeholder {
  transform: scale(1.03);
}
.work-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
}
.work-card__title {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.work-card__outcome {
  font-size: var(--t-body-lg);
  color: var(--color-ink-secondary);
}
.work-card__outcome strong {
  color: var(--color-ink-primary);
  font-weight: 600;
}

/* Decorative placeholder blocks (stand-in for WebP imagery) */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, var(--color-surface) 0%, #E7E3DE 100%);
  color: var(--color-ink-tertiary);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(1rem, 2vw, 1.4rem);
}
.placeholder--dark {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-black) 100%);
  color: var(--color-ink-tertiary);
}

/* ==========================================================================
   11. Services
   ========================================================================== */
/* Teaser grid (home) */
.services-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--sp-8);
}
.service-card {
  padding: var(--sp-6);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color var(--dur-fast) var(--ease-in-out),
              border-color var(--dur-fast) var(--ease-in-out);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 220px;
}
.service-card:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.service-card__num {
  font-family: var(--font-ui);
  font-size: var(--t-caption);
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.service-card__name {
  font-size: var(--t-h3);
  font-weight: 500;
  color: var(--color-ink-primary);
}
.service-card__desc {
  font-size: var(--t-body);
  color: var(--color-ink-secondary);
}

/* Full service entries (services page) */
.service-entry {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
}
.service-entry + .service-entry {
  border-top: 1px solid var(--color-border);
}
.service-entry__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 5vw, 64px);
}
.service-entry__ghost-num {
  font-family: var(--font-ui);
  font-size: 6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.03em;
}
.service-entry__name {
  font-size: var(--t-h2);
  margin-bottom: var(--sp-5);
}
/* Big, outcome-led statement replacing feature lists */
.service-entry__statement {
  font-family: var(--font-heading);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-ink-primary);
  max-width: 40ch;
  margin-bottom: var(--sp-5);
}
.service-entry__desc {
  font-size: var(--t-body-lg);
  color: var(--color-ink-secondary);
  margin-bottom: var(--sp-6);
  max-width: 48ch;
}
.deliverables {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.deliverables li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--t-body);
  color: var(--color-ink-secondary);
}
.deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--color-accent);
}
.service-entry__price {
  font-size: var(--t-body);
  color: var(--color-ink-tertiary);
  text-align: right;
}

/* ==========================================================================
   12. Process
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  margin-top: var(--sp-8);
}
.process-step {
  position: relative;
  padding-block: var(--sp-6);
}
.process-step__ghost {
  font-family: var(--font-ui);
  font-size: var(--t-display);
  font-weight: 500;
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.03em;
}
.process-step__name {
  font-size: var(--t-h3);
  font-weight: 500;
  margin-top: calc(var(--sp-6) * -1);
  position: relative;
  margin-bottom: var(--sp-4);
}
.process-step__desc {
  font-size: var(--t-body);
  color: var(--color-ink-secondary);
  max-width: 34ch;
}
/* connector line between steps */
.process-connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  margin-top: 40px;
}
.process-connector__line {
  width: 100%;
  height: 1px;
  background: var(--color-border);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
html.js .process-connector__line {
  transform: scaleX(0);
}
.process-connector.is-visible .process-connector__line {
  transform: scaleX(1);
}
.process-connector__arrow {
  position: absolute;
  color: var(--color-ink-tertiary);
  font-size: 0.875rem;
  background: var(--color-bg);
  padding-inline: 4px;
}

/* ==========================================================================
   13. About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}
.about__photo img,
.about__photo .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) sepia(0.08);
}
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.about__copy p + p {
  margin-top: var(--sp-4);
}
.about__copy .body-lg {
  color: var(--color-ink-primary);
}
.pull-quote {
  margin-top: var(--sp-6);
  padding-left: var(--sp-5);
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-ink-tertiary);
}

/* ==========================================================================
   14. Contact
   ========================================================================== */
.contact {
  max-width: 640px;
  margin-inline: auto;
}
.contact__header {
  text-align: left;
  margin-bottom: var(--sp-8);
}
.contact__header .h1 {
  margin-block: var(--sp-4) var(--sp-4);
}

.form-field {
  position: relative;
  margin-bottom: var(--sp-7);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--color-ink-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  transition: border-color var(--dur-mid) var(--ease-in-out);
}
.form-field textarea {
  resize: vertical;
  min-height: 96px;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' fill='none' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-bottom-color: var(--color-ink-primary);
}
/* Float label */
.form-field label {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: var(--t-body);
  color: var(--color-ink-tertiary);
  pointer-events: none;
  transition: transform var(--dur-mid) var(--ease-out),
              font-size var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out);
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field select:focus + label,
.form-field select[data-filled="true"] + label {
  transform: translateY(-22px);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
}
.form-field select + label {
  /* select always shows a value; keep label floated */
  transform: translateY(-22px);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
}

/* Loading spinner in submit button */
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(253, 252, 251, 0.35);
  border-top-color: var(--color-white);
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact__secondary {
  margin-top: var(--sp-7);
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.copy-email {
  position: relative;
  font-size: var(--t-caption);
  color: var(--color-ink-secondary);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-in-out);
}
.copy-email:hover { color: var(--color-ink-primary); }
.copy-email__tooltip {
  position: absolute;
  top: -30px;
  left: 0;
  background: var(--color-ink-primary);
  color: var(--color-white);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-in-out),
              transform var(--dur-fast) var(--ease-in-out);
}
.copy-email.is-copied .copy-email__tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-7);
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}
.footer__copy {
  text-align: center;
  font-size: var(--t-caption);
  color: var(--color-ink-tertiary);
  letter-spacing: 0.04em;
}
.footer__social {
  display: flex;
  gap: var(--sp-4);
  justify-content: flex-end;
}
.footer__social a {
  color: var(--color-ink-tertiary);
  transition: color var(--dur-fast) var(--ease-in-out);
  display: inline-flex;
}
.footer__social a:hover {
  color: var(--color-ink-primary);
}
.footer__tagline {
  text-align: center;
  margin-top: var(--sp-5);
  font-size: var(--t-caption);
  color: var(--color-ink-tertiary);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   16. Case study template
   ========================================================================== */
.case-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.case-hero img,
.case-hero .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(37, 34, 32, 0.85) 100%);
}
.case-hero__caption {
  position: absolute;
  left: var(--section-padding-x);
  bottom: clamp(48px, 8vw, 96px);
  color: var(--color-white);
  z-index: 2;
}
.case-hero__client {
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-muted);
  margin-bottom: var(--sp-3);
}
.case-hero__title {
  font-size: var(--t-h1);
  color: var(--color-white);
}

.case-callout {
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: var(--sp-6);
  border-radius: 0 4px 4px 0;
  font-size: var(--t-h3);
  font-weight: 500;
  color: var(--color-ink-primary);
  max-width: 60ch;
}

/* before/after slider */
.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  --pos: 50%;
}
.compare__layer {
  position: absolute;
  inset: 0;
}
.compare__layer .placeholder { width: 100%; height: 100%; }
.compare__after {
  clip-path: inset(0 0 0 var(--pos));
}
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--color-white);
  pointer-events: none;
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare__tag {
  position: absolute;
  bottom: 12px;
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: rgba(37, 34, 32, 0.7);
  padding: 4px 10px;
  border-radius: 2px;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; }

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.result-stat__num {
  font-family: var(--font-ui);
  font-size: var(--t-h1);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-stat__label {
  font-family: var(--font-ui);
}
.result-stat__label {
  margin-top: var(--sp-3);
  font-size: var(--t-body);
  color: var(--color-ink-secondary);
}

.next-project {
  display: block;
  padding-block: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--color-border);
  transition: background-color var(--dur-mid) var(--ease-in-out),
              color var(--dur-mid) var(--ease-in-out);
}
.next-project:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
}
.next-project:hover .next-project__eyebrow {
  color: var(--color-accent-muted);
}
.next-project__eyebrow {
  color: var(--color-ink-tertiary);
  transition: color var(--dur-mid) var(--ease-in-out);
}
.next-project__title {
  font-size: var(--t-h1);
  margin-top: var(--sp-3);
  color: inherit;
}

/* ==========================================================================
   16b. Trust band · Testimonial · CTA band (sales components)
   ========================================================================== */
/* Stat strip */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  border-block: 1px solid var(--color-border);
  padding-block: clamp(32px, 5vw, 56px);
}
.trust__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.trust__num {
  font-family: var(--font-ui);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-ink-primary);
}
.trust__num .accent { color: var(--color-accent); }
.trust__label {
  font-family: var(--font-ui);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--color-ink-secondary);
}

/* Big testimonial */
.testimonial {
  max-width: 24ch;
}
.testimonial__quote {
  font-family: var(--font-heading);
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-ink-primary);
  max-width: 20ch;
}
.testimonial__quote .accent { color: var(--color-accent); }
.testimonial__cite {
  margin-top: var(--sp-5);
  font-family: var(--font-ui);
  font-size: var(--t-caption);
  letter-spacing: 0.04em;
  color: var(--color-ink-tertiary);
  font-style: normal;
}
.testimonial__cite strong { color: var(--color-ink-secondary); font-weight: 500; }

/* Full-bleed dark CTA band */
.cta-band {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 6px;
  padding: clamp(48px, 8vw, 96px);
  text-align: center;
}
.cta-band h2 {
  color: var(--color-white);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}
.cta-band .eyebrow { color: var(--color-accent-muted); margin-bottom: var(--sp-4); }
.cta-band .btn--light {
  padding: 16px 36px;
  background: var(--color-white);
  color: var(--color-ink-primary);
}
.cta-band .btn--light:hover {
  background: var(--color-accent-muted);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero__left { grid-column: span 12; }
  .hero__right { grid-column: span 12; margin-top: var(--sp-6); }
  .hero { padding-top: 140px; }

  .services-teaser { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; gap: var(--sp-6); }
  .process-connector { display: none; }
  .process-step__name { margin-top: calc(var(--sp-7) * -1); }

  .service-entry__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .service-entry__price { text-align: left; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 340px; }

  .work-card,
  .work-card--reverse .work-card__media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .work-card__media { order: -1; }

  .results { grid-template-columns: 1fr; gap: var(--sp-6); }
  .trust { grid-template-columns: 1fr; gap: var(--sp-6); text-align: left; }
  .testimonial, .testimonial__quote { max-width: none; }

  .footer__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__social { justify-content: center; }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

/* Column helpers collapse on small screens */
@media (max-width: 720px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: span 12;
  }
}

/* ==========================================================================
   18. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__headline .word > span { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__lead, .hero__cta { opacity: 1; }
  .scroll-indicator__dot { animation: none; opacity: 1; }
}
