/* PEOPL — test design "Groundline".
   Austere: one grey ground, ink, one display face, images doing the talking.
   The whole animation inventory: a once-per-session intro, a page fade,
   blur-up image loading, 0.4s hover reveals, the menu. Nothing else moves.

   1  Tokens & reset          6  Home: panels & statement
   2  Typography              7  Work grid
   3  Masthead                8  Project pages & studio
   4  Menu                    9  Contact form
   5  Intro                  10  Footer, utilities, motion  */

/* 1 — Tokens & reset ------------------------------------------------------ */
:root {
  color-scheme: only light;     /* opt out of Edge/Chrome Auto Dark inversion */
  --paper: #ccc;             /* foomann's grey, exactly; light theme always */
  --ink: #4d4d4d;            /* dark version of the ground, not black */
  --line: rgba(77, 77, 77, .35);
  --accent: #3f6b47;         /* eucalypt — links & focus only */
  --font-text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Syne', 'Arial Black', sans-serif;
  --pad: clamp(1.1rem, 3vw, 2rem);
  /* The banner logo (wordmark + mound + ground line, 2304:82.4).
     Sized by the wordmark; 12.39 = full banner ÷ wordmark width, .443 = banner height ÷ wordmark width.
     max(…, 100vw) guarantees the line reaches the right border on any screen. */
  --wordmark: clamp(6.5rem, 18vw, 16rem);
  --banner-w: max(calc(var(--wordmark) * 12.39), 100vw);
  --banner-h: calc(var(--wordmark) * .443);
  --brand-top: calc(var(--pad) * .75);
  --mast-h: calc(var(--banner-h) + var(--pad) * 1.4);
}
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;                    /* nothing may widen the page — fixed chrome stays reachable */
  scrollbar-width: none;               /* no scrollbar drawn — the page still scrolls */
}
html::-webkit-scrollbar { display: none; }
html:has(.page-home) { scroll-snap-type: y proximity; }
body {
  margin: 0;
  font: 400 1.0625rem/1.55 var(--font-text);
  background: var(--paper);
  color: var(--ink);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

/* page fade — the only load animation besides images */
html.js body { opacity: 0; transition: opacity .4s; }
html.js body.is-ready { opacity: 1; }

/* 2 — Typography ---------------------------------------------------------- */
.display {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.label {
  font: 600 .75rem/1.4 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.lede { font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.45; }

/* 3 — Masthead ------------------------------------------------------------
   The permanent logo IS the full banner: wordmark on its ground line, the
   line running border to border. The burger sits top-right above the line. */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--mast-h);
  background: var(--paper);
  color: #fff;                         /* white logo and burger on the light ground */
  overflow: hidden;                    /* the line may run past the right edge */
}
/* where full-bleed imagery opens the page, it runs up behind the logo — no band */
.page-home .masthead, .page-project .masthead { background: transparent; }
.page-studio .masthead { display: none; }   /* the practice page carries its logo mid-hero instead */
.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: block;
  line-height: 0;
  width: clamp(11rem, 28vw, 18rem);   /* the container carries the size — the img fills it */
}
.hero-logo img { width: 100%; height: auto; aspect-ratio: 160 / 78; }
/* scrolling down slides the banner out of sight; scrolling up brings it back */
.masthead { transition: transform .35s ease; }
body.mast-hidden:not(.menu-open) .masthead { transform: translateY(-102%); }
.brand {
  position: absolute;
  left: 0;
  top: var(--brand-top);
  display: block;
  line-height: 0;
  color: inherit;
  /* the click target is the wordmark + mound only — the rest of the line is inert */
  width: calc(var(--wordmark) * 2.4);
  height: var(--banner-h);
  overflow: visible;
}
.brand img { width: var(--banner-w); max-width: none; height: auto; aspect-ratio: 2304 / 82.4; display: block; pointer-events: none; }
.menu-toggle {
  color: #fff;                         /* white over imagery and grey alike */
  position: fixed;
  right: var(--pad);
  top: var(--brand-top);
  z-index: 110;                        /* above the menu overlay */
  border: 0;
  background: none;
  cursor: pointer;
  padding: .4rem 0;
}
.burger { position: relative; display: block; width: 26px; height: 20px; }
.burger img {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 20px;
  transition: opacity .3s;
}
.burger .burger-i--close { opacity: 0; }
body.menu-open .burger .burger-i--open { opacity: 0; }
body.menu-open .burger .burger-i--close { opacity: 1; }

/* 4 — Menu ------------------------------------------------------------------
   Two full-height ink panels slide in from top and bottom; a thin seam line
   grows from both ends to meet in the middle. The masthead stays above it. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;                         /* below the masthead: the logo stays visible */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.menu[hidden] { display: none; }       /* the hidden attribute must always win */
.menu::before, .menu::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: #fff;
  width: 0;
  transition: width .8s;
  z-index: 1;
}
.menu::before { left: 0; }
.menu::after { right: 0; }
.menu.is-open::before, .menu.is-open::after { width: 50%; }
.menu nav { height: 100%; }
.menu-list { display: flex; flex-direction: column; height: 100%; }
.menu-list li {
  height: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s ease;
}
.menu-list li:first-child { transform: translateY(-100%); }
.menu-list li:last-child { transform: translateY(100%); }
.menu.is-open .menu-list li { transform: none; }
.menu-list a {
  color: #fff;
  -webkit-text-stroke: 1.5px #fff;  /* invisible while filled; carries the hover outline */
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s;
}
.menu-list a:hover, .menu-list a:focus-visible, .menu-list a[aria-current="page"] {
  color: transparent;                  /* fill drains away, leaving outlined letters */
}

/* 5 — Intro (home, every load) ---------------------------------------------
   The banner logo wipes in border to border at centre screen, holds a beat,
   then lifts to the top and lands exactly where the masthead's banner sits —
   so it appears to become the permanent logo. The paper backdrop then clears. */
.intro { display: none; }
html.js .page-home .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  color: #fff;
  pointer-events: none;
  animation: intro-clear .35s ease 2.55s forwards;
}
.intro__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;                    /* the ground line runs past the right edge */
  clip-path: inset(0 100% 0 0);
  animation: intro-wipe 1.5s cubic-bezier(.65, 0, .25, 1) .15s forwards;
}
.intro__frame img {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--banner-w);              /* identical to the masthead banner */
  max-width: none;
  height: auto;
  aspect-ratio: 2304 / 82.4;
  transform: translateY(calc(50svh - 50%));
  animation: intro-lift .6s cubic-bezier(.65, 0, .25, 1) 1.9s forwards;
}
@keyframes intro-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-lift { to { transform: translateY(var(--brand-top)); } }
@keyframes intro-clear { to { background-color: transparent; visibility: hidden; } }

/* 6 — Home: panels & statement -------------------------------------------- */
.panel {
  position: relative;
  display: block;
  height: 100svh;
  scroll-snap-align: start;
  overflow: hidden;
}
.panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
a.panel::after {                       /* quiet scrim so the caption reads */
  content: "";
  position: absolute;
  inset: 60% 0 0 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
}
.panel__caption {
  position: absolute;
  left: var(--pad); right: calc(var(--pad) + 5.5em); bottom: var(--pad);
  flex-wrap: wrap;  /* corner stays clear for the scroll hint */
  z-index: 1;
  color: #fff;
  display: flex;
  gap: 1.2em;
  align-items: baseline;
  font-size: .9rem;
}
.panel__caption strong { font-weight: 600; }
@media (hover: hover) and (min-width: 900px) {
  .panel__caption { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
  a.panel:hover .panel__caption, a.panel:focus-visible .panel__caption { opacity: 1; transform: none; }
}
.panel--statement {
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  padding: var(--pad);
}
.statement {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  max-width: 24ch;
}
.statement-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem clamp(1.2rem, 4vw, 2.2rem); max-width: 100%; }
.statement-links a {
  font: 600 .8rem/1 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: .35em;
}
.statement-links a:hover { border-color: var(--accent); color: #fff; }
.scroll-hint {
  position: fixed;
  right: var(--pad); bottom: var(--pad);
  z-index: 50;
  color: #fff;
  font: 600 .7rem/1 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
  transition: opacity .4s;
}
.scroll-hint.is-hidden { opacity: 0; }
.page-home .site-footer { display: none; }
.page-home main { display: block; }

/* 7 — Work grid --------------------------------------------------------------
   Edge-to-edge gutterless squares: 2 across on small screens, 4 across from
   800px. Title + "+ View project" sit just below each square, on hover. */
.work-grid {
  margin: 0;
  padding: var(--mast-h) 0 calc(var(--pad) * 5);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
/* continuous horizontal white bars above every row (including the first) —
   foomann's vertical grid lines, rotated to match our ground-line theme */
.work-item { position: relative; border-top: 2px solid #fff; }
.work-item:hover, .work-item:focus-within { z-index: 3; }
.work-item a { display: block; text-decoration: none; }
.work-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--line);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-details {
  display: grid;
  gap: .15em;
  font: 600 .8rem/1.3 var(--font-text);
  padding: .6em 1em 1.1em;
}
@media (hover: hover) and (min-width: 800px) {
  .work-details {
    position: absolute;              /* over the void below — every tile has one */
    top: calc(100% + .5em);
    left: 1em;
    right: 1em;
    z-index: 2;
    padding: 0;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .4s, transform .4s;
  }
  .work-item:hover .work-details, .work-item:focus-within .work-details { opacity: 1; transform: none; }
}

/* 8 — Project pages & studio ----------------------------------------------- */
.project-head {
  display: grid;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(var(--mast-h) + var(--pad) * 1.5) var(--pad) calc(var(--pad) * 1.5);
}
.project-meta { font-size: .9rem; opacity: .75; }
/* project page: full-bleed hero with the title over it, then alternating
   half-width cells — text left, photos zig-zagging right/left, the other half
   of each row empty. Thin horizontal bars separate rows; cells stack on small
   screens. */
.project-hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.project-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .18);      /* quiet scrim so the title reads */
}
.project-hero h1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  color: #fff;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid #fff;
}
.cell { margin: 0; border-bottom: 2px solid #fff; }   /* the horizontal theme line */
.cell--left { grid-column: 1; }
.cell--right { grid-column: 2; }
.cell--full { grid-column: 1 / -1; }
.cell img { width: 100%; object-fit: cover; display: block; }
.cell--full img { max-height: 92svh; }  /* tall images crop rather than tower */
.cell figcaption {
  font: 600 .7rem/1.5 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .65;
  padding: .8em var(--pad) 1em;
}
.cell--text {
  align-self: stretch;
  padding: calc(var(--pad) * 2) var(--pad);
  display: grid;
  gap: 1rem;
  align-content: center;
}
.project-note { font-size: 1.05rem; }
.cell--text > *, .cell--details > * { max-width: 56ch; }
.cell--details {
  align-self: stretch;
  padding: calc(var(--pad) * 2) var(--pad);
  display: grid;
  gap: 1rem;
  align-content: center;
  justify-items: start;
  font-size: .85rem;
}
.cell-label {
  font: 600 .75rem/1.4 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.cell--details dl { display: grid; gap: .7rem; }
.cell--details dt { font-weight: 600; }
.cell--details dd { margin: 0; opacity: .8; }
/* side-by-side pairs share a row; the full-width cells span both columns */
@media (max-width: 799px) {
  .project-grid { display: block; }    /* cells stack in order; empty halves vanish */
  .cell--text, .cell--details { padding: calc(var(--pad) * 1.5) var(--pad); }
}

/* per-project opening: the title on paper between two horizontal lines that
   reach in from the screen edges, hold, then withdraw as the page reveals */
.project-intro { display: none; }
html.js .page-project .project-intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  color: #fff;
  overflow: hidden;                    /* clips the line overhangs */
  pointer-events: none;
  animation: intro-clear .4s ease 2.15s forwards;
}
/* identical rules to .project-hero h1, so the title never moves at handoff */
.project-intro p {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in .5s ease .4s forwards;
}
/* the lines grow in from the screen edges and stop exactly at the text */
.project-intro p span { position: relative; }
.project-intro p span::before, .project-intro p span::after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -1px;
  height: 2px;
  width: 100vw;
  background: currentColor;
  transform: scaleX(0);
  animation: project-lines 2.1s ease-in-out .15s forwards;
}
.project-intro p span::before { right: calc(100% + .8em); transform-origin: left center; }
.project-intro p span::after { left: calc(100% + .8em); transform-origin: right center; }
@keyframes project-lines {
  25% { transform: scaleX(1); }
  75% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
.pager {
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(var(--pad) * 2) var(--pad) calc(var(--pad) * 1.5);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .9rem;
}
.pager a { text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: .3em; }
.pager a:hover { border-color: var(--accent); }

.studio { max-width: 1300px; margin: 0 auto; }
.studio-body { max-width: 54ch; padding: 0 var(--pad) calc(var(--pad) * 2); display: grid; gap: 1.4rem; }
.studio-body .label { padding-top: 1.2rem; }
.stages { display: grid; gap: .5rem; counter-reset: stage; }
.stages li { padding-left: 2.2rem; position: relative; }
.stages li::before {
  counter-increment: stage;
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 0;
  font: 600 .7rem/2.2 var(--font-text);
  letter-spacing: .1em;
  opacity: .6;
}

/* 9 — Contact form ---------------------------------------------------------- */
.contact { max-width: 1300px; margin: 0 auto; }
.contact-form { max-width: 34rem; padding: 0 var(--pad); display: grid; gap: 1.6rem; }
.cf-turnstile, .cf-turnstile iframe { max-width: 100%; }
.field { display: grid; gap: .45rem; }
.field label {
  font: 600 .75rem/1.4 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
}
.field .optional { text-transform: none; letter-spacing: 0; opacity: .6; }
.field input, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  padding: .45em 0;
  border-radius: 0;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}
.field--trap { position: absolute; left: -9999px; }
.form-actions button {
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  cursor: pointer;
  font: 600 .8rem/1 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 1em 1.6em;
}
.form-actions button:hover { border-color: var(--accent); color: var(--accent); }
.form-actions button:disabled { opacity: .5; cursor: default; }
.form-status:empty { display: none; }
.form-status { font-size: .9rem; }
.form-status.is-err { color: #9e3a2e; }
.form-status.is-ok { color: var(--accent); }
.contact-alt { padding: calc(var(--pad) * 1.5) var(--pad); font-size: .9rem; max-width: 1300px; margin: 0 auto; }

/* 10 — Footer, utilities, motion -------------------------------------------- */
.site-footer { padding: var(--pad); }
.site-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: .4em 2em;
  font-size: .78rem;
  opacity: .75;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: .8em 1.2em;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* blur-up image loading (class added in markup, cleared by JS on load) */
html.js img.blur-up { opacity: 0; filter: blur(14px); }
html.js img.blur-up.is-loaded { opacity: 1; filter: none; transition: opacity .6s, filter .6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .page-home .intro { display: none; }
  html.js .page-project .project-intro { display: none; }
  html.js body { opacity: 1; }
  html.js img.blur-up { opacity: 1; filter: none; }
  html:has(.page-home) { scroll-snap-type: none; }
}
