/* ==========================================================================
   MICHEL WIEGANDT — visual aide / research & art branding
   styles.css — editorial, restrained, image-first
   --------------------------------------------------------------------------
   Signature idea: "THE APERTURE PLATE"
   Every image is presented as a plate: a single chamfered corner cut from the
   frame, a hairline rule, a light tonal grade. On hover the chamfer OPENS —
   the cut grows and the grade lifts. Section heads carry oversized outlined
   numerals. Nothing else shouts.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Inter:wght@300;400;500;600&display=swap');

/* ==========================================================================
   01 — TOKENS
   ========================================================================== */
:root {
  /* ---- palette: 3 base tones + ONE accent ---- */
  --ink:            #12151a;
  --ink-2:          #1b2027;
  --ink-3:          #39424b;
  --ink-4:          #6a727c;

  --cream:          #f5f2eb;
  --cream-2:        #ebe5d9;
  --paper:          #fffdf9;

  --muted:          #8b8577;
  --muted-2:        #a8a294;

  --accent:         #0d7f92;
  --accent-2:       #3fb3c6;
  --accent-deep:    #07434f;

  /* ---- hairlines ---- */
  --line:           rgba(18, 21, 26, 0.13);
  --line-2:         rgba(18, 21, 26, 0.30);
  --line-inv:       rgba(245, 242, 235, 0.16);
  --line-inv-2:     rgba(245, 242, 235, 0.36);

  /* ---- typography ---- */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* modular scale, ratio 1.2 (rem) */
  --fs-2xs: 0.578rem;
  --fs-xs:  0.694rem;
  --fs-sm:  0.833rem;
  --fs-0:   1rem;
  --fs-1:   1.2rem;
  --fs-2:   1.44rem;
  --fs-3:   1.728rem;
  --fs-4:   2.074rem;
  --fs-5:   2.488rem;
  --fs-6:   2.986rem;
  --fs-7:   3.583rem;
  --fs-8:   4.3rem;

  /* ---- 8pt spacing scale ---- */
  --s-1:  0.5rem;
  --s-2:  1rem;
  --s-3:  1.5rem;
  --s-4:  2rem;
  --s-5:  2.5rem;
  --s-6:  3rem;
  --s-7:  4rem;
  --s-8:  5rem;
  --s-9:  6rem;
  --s-10: 8rem;
  --s-11: 10rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell:  1280px;

  /* ---- elevation (block-offset, editorial — never soft/blurry) ---- */
  --elev-1: 0 1px 0 rgba(18, 21, 26, 0.04), 10px 10px 0 rgba(18, 21, 26, 0.045);
  --elev-2: 0 2px 0 rgba(18, 21, 26, 0.05), 22px 22px 0 rgba(18, 21, 26, 0.06);
  --elev-3: 0 40px 80px -50px rgba(18, 21, 26, 0.75);
  --elev-inv: 14px 14px 0 rgba(0, 0, 0, 0.28);

  /* ---- aperture plate cuts ---- */
  --cut-sm: clamp(14px, 1.8vw, 26px);
  --cut-md: clamp(24px, 3.2vw, 52px);
  --cut-lg: clamp(34px, 4.4vw, 76px);
  --cut-open: 34px;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- grain ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* ==========================================================================
   02 — RESET / BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-underline-offset: 0.25em;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  counter-reset: sec;
}

/* grain — sits above everything, never intercepts pointer events */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.035;
  mix-blend-mode: multiply;
}

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

img { height: auto; }

figure { margin: 0; }

p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--s-6) 0;
}

::selection {
  background: var(--accent);
  color: var(--cream);
}

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

/* ==========================================================================
   03 — TYPE
   ========================================================================== */
h1, .h1,
h2, .h2,
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 110, "SOFT" 0;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1, .h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
  margin: 0 0 var(--s-4);
}

h2, .h2 {
  font-size: clamp(1.85rem, 4.3vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  margin: 0 0 var(--s-3);
}

h3, .h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-3);
}

.eyebrow::before {
  content: "";
  width: clamp(22px, 4vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: 0 0 auto;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 46ch;
  margin: 0 0 var(--s-5);
  text-wrap: pretty;
}

/* ==========================================================================
   04 — LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  counter-increment: sec;
  padding-block: clamp(3.5rem, 8vw, 8rem);
  scroll-margin-top: 6rem;
}

.section-head {
  max-width: 62ch;
  margin: 0 0 clamp(2.25rem, 5vw, 4.25rem);
}

.section-head > p,
.section-head .lede { margin-bottom: 0; }

/* oversized outlined section numeral — the typographic device */
.section-head::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  margin-bottom: var(--s-3);
  user-select: none;
}

/* ==========================================================================
   05 — SKIP LINK
   ========================================================================== */
.skip-link {
  position: fixed;
  top: var(--s-1);
  left: var(--s-1);
  z-index: 10000;
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transform: translateY(calc(-100% - 1rem));
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   06 — HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(245, 242, 235, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 4.5rem;
  padding-block: var(--s-2);
}

/* ---- brand ---- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
  transition: background 0.4s var(--ease);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: var(--accent);
  transition: transform 0.5s var(--ease), background 0.4s var(--ease);
}

.brand:hover .brand-mark { background: var(--accent-deep); }
.brand:hover .brand-mark::after { transform: scale(0.55) rotate(45deg); background: var(--cream); }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: var(--fs-2xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* ---- mobile toggle ---- */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.nav-toggle-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-toggle-label:hover { background: var(--cream-2); border-color: var(--ink); }

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), background 0.3s;
}

/* open state */
.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(1),
.header-inner:has(.nav-toggle:checked) .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-toggle-label .nav-toggle-bar:nth-child(2),
.header-inner:has(.nav-toggle:checked) .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---- nav panel ---- */
.primary-nav {
  position: absolute;
  left: calc(var(--gutter) * -1);
  right: calc(var(--gutter) * -1);
  top: calc(100% + 1px);
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-inline: var(--gutter);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.3s ease, visibility 0.35s;
}

.nav-toggle:checked ~ .primary-nav,
.header-inner:has(.nav-toggle:checked) .primary-nav {
  max-height: 80vh;
  opacity: 1;
  visibility: visible;
  padding-block: var(--s-4);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}

.nav-list a:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--s-4);
  padding: 0.85rem 1.35rem;
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.nav-cta:hover { background: var(--accent); color: var(--cream); }

/* desktop nav */
@media (min-width: 980px) {
  .nav-toggle,
  .nav-toggle-label { display: none; }

  .primary-nav {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: var(--s-4);
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-4);
  }

  .nav-list a {
    position: relative;
    padding: 0.4rem 0;
    border-bottom: 0;
    color: var(--ink-3);
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
  }

  .nav-list a:hover { padding-left: 0; }
  .nav-list a:hover::after { transform: scaleX(1); }

  .nav-cta { margin-top: 0; }
}

/* ==========================================================================
   07 — HERO
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -12%;
  width: 46rem;
  height: 46rem;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(13, 127, 146, 0.10), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ---- buttons ---- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: color 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
}
.btn--primary::after { background: var(--accent); }
.btn--primary:hover {
  --btn-fg: var(--cream);
  --btn-bd: var(--accent);
}
.btn--primary:hover::after { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-2);
}
.btn--ghost:hover {
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
}
.btn--ghost:hover::after { transform: translateY(0); }

/* ---- hero facts strip ---- */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) clamp(1.5rem, 4vw, 3.25rem);
  list-style: none;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-facts strong,
.hero-facts b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- hero plate ---- */
.hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--elev-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)),
                     calc(100% - var(--cut-lg)) 100%, 0 100%);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.94);
  transform: scale(1.001);
  transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease);
}

.hero-figure:hover img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1.04);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(18, 21, 26, 0.06) 0%,
              rgba(18, 21, 26, 0) 38%,
              rgba(18, 21, 26, 0.58) 100%);
  mix-blend-mode: multiply;
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  left: clamp(1rem, 2.4vw, 2.25rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  width: clamp(76px, 9vw, 112px);
  height: clamp(76px, 9vw, 112px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.8);
}

.hero-stamp::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(18, 21, 26, 0.42);
  animation: stamp-spin 26s linear infinite;
}

@keyframes stamp-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }

  .hero-figure { aspect-ratio: 5 / 6; }
}

/* ==========================================================================
   08 — WORK / EDITORIAL GALLERY
   ========================================================================== */
.section--work { background: var(--cream); }

.gallery-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.tile {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-2);
  filter: grayscale(0.2) saturate(0.9) contrast(1.04);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-md)),
                     calc(100% - var(--cut-md)) 100%, 0 100%);
  transition: clip-path 0.6s var(--ease), filter 0.7s var(--ease);
}

.tile:hover img,
.tile:focus-within img {
  filter: grayscale(0) saturate(1.06) contrast(1.08);
  clip-path: polygon(0 0, 100% 0,
                     100% calc(100% - var(--cut-md) - var(--cut-open)),
                     calc(100% - var(--cut-md) - var(--cut-open)) 100%,
                     0 100%);
}

.tile--wide img { aspect-ratio: 16 / 9; }

.tile-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  padding-top: var(--s-2);
  margin-top: var(--s-2);
  border-top: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}

.tile:hover .tile-caption { border-color: var(--line-2); }

.tile-client {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}

.tile:hover .tile-client { color: var(--accent); }

.tile-type {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}

@media (min-width: 720px) {
  .gallery-editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .tile { grid-column: span 6; }
  .tile--wide { grid-column: span 12; }

  .tile:nth-child(6n + 1) { grid-column: span 7; }
  .tile:nth-child(6n + 2) { grid-column: span 5; }
  .tile:nth-child(6n + 3) { grid-column: span 5; }
  .tile:nth-child(6n + 4) { grid-column: span 7; }
  .tile:nth-child(6n + 5) { grid-column: span 8; }
  .tile:nth-child(6n + 6) { grid-column: span 4; }

  .tile--wide,
  .tile--wide:nth-child(n) { grid-column: span 12; }

  .tile:nth-child(6n + 2) img,
  .tile:nth-child(6n + 6) img { aspect-ratio: 1 / 1; }
}

@media (min-width: 1100px) {
  .tile:nth-child(6n + 1),
  .tile:nth-child(6n + 4) { transform: translateY(-1.75rem); }
}

/* ==========================================================================
   09 — FACTS (studio in numbers)
   ========================================================================== */
.section--facts {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.fact-list {
  list-style: none;
  counter-reset: fact;
  border-top: 1px solid var(--line-2);
}

.fact {
  position: relative;
  counter-increment: fact;
  padding: clamp(1.25rem, 3vw, 2.1rem) 0 clamp(1.25rem, 3vw, 2.1rem) clamp(2.25rem, 6vw, 4.25rem);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-4);
  transition: padding-left 0.5s var(--ease), color 0.4s var(--ease);
}

.fact::before {
  content: counter(fact, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: clamp(1.5rem, 3.2vw, 2.35rem);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  transition: color 0.4s var(--ease);
}

.fact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.fact:hover { padding-left: clamp(2.75rem, 6.5vw, 4.75rem); color: var(--ink-3); }
.fact:hover::after { transform: scaleX(1); }

.fact strong,
.fact b,
.fact h3,
.fact .fact-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

@media (min-width: 900px) {
  .split-editorial {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .section-head--sticky {
    position: sticky;
    top: 7rem;
    margin-bottom: 0;
  }
}

/* ==========================================================================
   10 — SERVICES
   ========================================================================== */
.section--services { background: var(--paper); }

.service-list {
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem var(--s-3);
  padding: clamp(1.4rem, 3.2vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), background 0.5s var(--ease);
}

.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}

.service:hover {
  padding-left: clamp(0.9rem, 2vw, 1.6rem);
  background: linear-gradient(90deg, rgba(13, 127, 146, 0.07), rgba(13, 127, 146, 0) 62%);
}

.service:hover::before { transform: scaleY(1); }

.service-index {
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--muted-2);
  padding-top: 0.15em;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease);
}

.service:hover .service-index {
  color: var(--accent);
  transform: translateX(-0.2rem);
}

.service h3,
.service .h3 { grid-column: 2; }

.service > *:not(.service-index):not(h3):not(.h3) {
  grid-column: 2;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-4);
  max-width: 62ch;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 4.5rem minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 0 clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }

  .service-index { grid-row: 1; padding-top: 0.35em; }

  .service h3,
  .service .h3 { grid-column: 2; grid-row: 1; margin-bottom: 0; }

  .service > *:not(.service-index):not(h3):not(.h3) {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    padding-top: 0.2em;
  }
}

/* ==========================================================================
   11 — IMMERSIVE / 360
   ========================================================================== */
.section--immersive {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.section--immersive h2,
.section--immersive h3,
.section--immersive .h2,
.section--immersive .h3 { color: var(--cream); }

.section--immersive .section-head::before,
.section--cta .section-head::before {
  -webkit-text-stroke-color: var(--line-inv-2);
}

.section--immersive .eyebrow,
.section--cta .eyebrow { color: var(--accent-2); }

.section--immersive .lede,
.section--cta .lede { color: rgba(245, 242, 235, 0.68); }

.immersive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.immersive-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(150deg, var(--accent-deep) 0%, #05171c 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)),
                     calc(100% - var(--cut-lg)) 100%, 0 100%);
  transition: clip-path 0.7s var(--ease);
}

.immersive-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
  transform: scale(1.002);
  transition: filter 0.9s var(--ease), transform 1.4s var(--ease-out);
}

.immersive-figure:hover img {
  filter: grayscale(0.15) contrast(1.06) brightness(1);
  transform: scale(1.05);
}

.immersive-copy { position: relative; }

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: var(--s-4) 0 0;
}

.tag-list li {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-inv);
  color: rgba(245, 242, 235, 0.74);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
              background 0.35s var(--ease), transform 0.35s var(--ease);
}

.tag-list li:hover {
  color: var(--ink);
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.section--immersive .btn--ghost,
.section--cta .btn--ghost {
  --btn-fg: var(--cream);
  --btn-bd: var(--line-inv-2);
}
.section--immersive .btn--ghost::after,
.section--cta .btn--ghost::after { background: var(--cream); }
.section--immersive .btn--ghost:hover,
.section--cta .btn--ghost:hover {
  --btn-fg: var(--ink);
  --btn-bd: var(--cream);
}

@media (min-width: 960px) {
  .immersive-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2.5rem, 5vw, 5.5rem);
  }
}

/* ==========================================================================
   12 — REASSURE / Q&A
   ========================================================================== */
.section--reassure {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.reassure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.qa-list {
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.qa {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4.5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}

.qa::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.qa:hover { padding-left: clamp(2.4rem, 5vw, 3.75rem); }
.qa:hover::after { transform: scaleX(1); }

.qa-question {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.qa-question::before {
  content: "+";
  position: absolute;
  left: clamp(-2rem, -4.5vw, -1.85rem);
  top: 0.05em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent);
  transition: transform 0.5s var(--ease), color 0.35s var(--ease);
}

.qa:hover .qa-question::before {
  transform: rotate(135deg);
  color: var(--ink);
}

.qa-answer {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-4);
  max-width: 60ch;
  margin: 0;
}

@media (min-width: 900px) {
  .reassure-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

/* ==========================================================================
   13 — CTA
   ========================================================================== */
.section--cta {
  background: var(--ink-2);
  color: var(--cream);
  overflow: hidden;
}

.section--cta::before {
  content: "";
  position: absolute;
  right: -14rem;
  bottom: -18rem;
  width: 40rem;
  height: 40rem;
  max-width: 88vw;
  max-height: 88vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 127, 146, 0.30), transparent 64%);
  pointer-events: none;
}

.section--cta h2,
.section--cta .h2,
.section--cta h3,
.section--cta .h3 { color: var(--cream); }

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: start;
}

.cta-copy .hero-actions { margin-bottom: 0; }

.cta-aside {
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  border: 1px solid var(--line-inv);
  background: rgba(255, 255, 255, 0.028);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: var(--elev-inv);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-md)),
                     calc(100% - var(--cut-md)) 100%, 0 100%);
}

.contact-list {
  list-style: none;
  display: grid;
  gap: var(--s-4);
}

.contact-list li {
  display: grid;
  gap: 0.35rem;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-inv);
}

.contact-list li:last-child { padding-bottom: 0; border-bottom: 0; }

.contact-label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.contact-list a,
.contact-list address,
.contact-list span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.contact-list a {
  border-bottom: 1px solid var(--line-inv);
  padding-bottom: 2px;
  display: inline-block;
  justify-self: start;
  word-break: break-word;
}

.contact-list a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.studio-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-inv);
}

.person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.person img {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: filter 0.5s var(--ease);
}

.person:hover img { filter: grayscale(0) contrast(1); }

.person strong,
.person b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.person span,
.person p {
  display: block;
  font-size: var(--fs-xs);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.58);
  margin: 0;
}

@media (min-width: 560px) {
  .studio-duo { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); }
}

@media (min-width: 900px) {
  .cta-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }
}

/* ==========================================================================
   14 — FOOTER
   ========================================================================== */
.site-footer {
  background: #0a0d11;
  color: rgba(245, 242, 235, 0.7);
  padding-block: clamp(2.75rem, 5vw, 4.5rem) var(--s-5);
  border-top: 1px solid var(--line-inv);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--line-inv);
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin: 0;
  max-width: 22ch;
}

.footer-top a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 242, 235, 0.62);
  border-bottom: 1px solid var(--line-inv);
  padding-bottom: 0.3rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-top a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.footer-brand {
  max-width: 34ch;
}

.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-sub { color: rgba(245, 242, 235, 0.45); }

.footer-brand p {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(245, 242, 235, 0.55);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 var(--s-3);
}

.footer-nav {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.footer-nav a {
  display: inline-block;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: rgba(245, 242, 235, 0.68);
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.35s var(--ease);
}

.footer-nav a:hover {
  color: var(--cream);
  transform: translateX(4px);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-3);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-inv);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.42);
}

.footer-base a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease);
}

.footer-base a:hover { color: var(--accent-2); }

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
  }
}

/* ==========================================================================
   15 — MOTION / SCROLL REVEAL
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* hero entrance */
  .hero-copy > * {
    animation: rise-in 0.9s var(--ease-out) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.30s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.38s; }

  .hero-figure {
    animation: plate-in 1.1s var(--ease-out) 0.1s both;
  }

  .hero-stamp {
    animation: rise-in 0.8s var(--ease-out) 0.7s both;
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1.35rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)),
                       calc(100% - var(--cut-lg)) 100%, 0 100%);
  }
}

/* scroll-driven reveals where supported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .tile,
    .fact,
    .service,
    .qa,
    .immersive-figure,
    .immersive-copy,
    .cta-copy,
    .cta-aside {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }

    .tile:nth-child(even) { animation-range: entry 2% cover 30%; }
    .fact:nth-child(even) { animation-range: entry 6% cover 28%; }
    .qa:nth-child(even)   { animation-range: entry 6% cover 28%; }
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-stamp::before { animation: none; }
}

/* ==========================================================================
   16 — UTILITY / EDGE CASES
   ========================================================================== */
.section--immersive .service-index,
.section--cta .contact-label { color: var(--accent-2); }

.section--immersive .tag-list + * { margin-top: var(--s-4); }

.section--work .section-head,
.section--services .section-head { max-width: 54ch; }

.gallery-editorial + .tile { margin-top: 0; }

@media (min-width: 1100px) {
  .section { padding-block: clamp(5rem, 9vw, 9rem); }
}

/* keeps long client names from breaking the tile rhythm */
.tile-client,
.tile-type { min-width: 0; overflow-wrap: anywhere; }