/* North Fork America — site styles
   One typeface (Archivo, variable: weight 100–900, width 62–125%).
   White sheet, black ink, one highlighter yellow for the few things that matter. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --sheet: #f2f2ef;
  --ink: #000000;
  --text: #262626;
  --muted: #666666;
  --line: #d9d9d4;
  --mark: #ffd233;
  --viewport: #212121;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;   /* 14 */
  --step-0: 1.0625rem;   /* 17 */
  --step-1: 1.25rem;     /* 20 */
  --step-2: 1.5rem;      /* 24 */
  --step-3: 1.875rem;    /* 30 */
  --step-4: 2.5rem;      /* 40 */
  --step-5: 3.5rem;      /* 56 */

  --gutter: 1.5rem;
  --margin: 1.25rem;
  --measure: 62ch;
  --max: 84rem;
}

@media (min-width: 48em) {
  :root {
    --step-0: 1.125rem;  /* 18 */
    --step-1: 1.375rem;  /* 22 */
    --step-2: 1.625rem;  /* 26 */
    --step-3: 2.125rem;  /* 34 */
    --step-4: 3rem;      /* 48 */
    --step-5: 4.5rem;    /* 72 */
    --margin: 3rem;
  }
}

@media (min-width: 80em) {
  :root { --step-5: 5.75rem; /* 92 */ --margin: 4rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  font-variation-settings: "wdth" 100;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--step-5); line-height: 0.96; letter-spacing: -0.03em; font-variation-settings: "wdth" 104; }
h2 { font-size: var(--step-4); letter-spacing: -0.025em; font-variation-settings: "wdth" 102; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }

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

.skip {
  position: absolute; left: var(--margin); top: -4rem;
  padding: 0.6rem 0.9rem; background: var(--ink); color: #fff; z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

.lede { font-size: var(--step-1); line-height: 1.4; color: var(--ink); max-width: 36ch; }
.grid h2 + .lede { margin-top: 1.25rem; }
.small { font-size: var(--step--1); line-height: 1.45; }
.muted { color: var(--muted); }

/* Wide-set small text: used for the few labels that must stay small, instead of caps. */
.label {
  font-size: var(--step--1);
  font-weight: 500;
  font-variation-settings: "wdth" 116;
  letter-spacing: 0.01em;
  color: var(--ink);
}

mark {
  background: var(--mark);
  color: var(--ink);
  padding: 0.05em 0.25em;
  margin-inline: -0.1em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  font: inherit; font-weight: 600; font-size: var(--step-0); line-height: 1.1;
  color: var(--ink); background: var(--mark);
  border: 2px solid var(--ink); border-radius: 0; text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }
.button-ghost { background: transparent; }
.button-ghost:hover { background: var(--ink); color: #fff; }
.button-ink { background: var(--ink); color: #fff; }
.button-ink:hover { background: var(--mark); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.brand-name span { display: block; font-weight: 450; font-size: 0.78rem; font-variation-settings: "wdth" 114; letter-spacing: 0.04em; margin-top: 0.22rem; color: var(--text); }

.site-nav { display: none; }
.site-nav a { text-decoration: none; font-weight: 500; padding: 0.4rem 0; margin-inline: 0.9rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta { display: none; }

.menu-button {
  font: inherit; font-weight: 600; font-size: 1rem; background: none; border: 2px solid var(--ink);
  padding: 0.5rem 0.9rem; color: var(--ink); cursor: pointer;
}
.menu-panel { display: none; border-top: 2px solid var(--ink); background: var(--paper); }
.menu-panel[data-open="true"] { display: block; }
.menu-panel ul { list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel a { display: block; padding: 1rem var(--margin); font-size: var(--step-1); font-weight: 600; text-decoration: none; color: var(--ink); }

@media (min-width: 56em) {
  .site-nav { display: flex; align-items: center; margin-left: auto; }
  .header-cta { display: inline-flex; padding: 0.6rem 1rem; font-size: 1rem; }
  .menu-button, .menu-panel { display: none !important; }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section + .section { border-top: 2px solid var(--ink); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.grid > * { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 56em) {
  /* span sets the end, start sets the start, so the two combine (.span-6.start-7 = columns 7-12) */
  .grid > * { grid-column: auto / span 12; }
  .span-2 { grid-column-end: span 2; }
  .span-3 { grid-column-end: span 3; }
  .span-4 { grid-column-end: span 4; }
  .span-5 { grid-column-end: span 5; }
  .span-6 { grid-column-end: span 6; }
  .span-7 { grid-column-end: span 7; }
  .span-8 { grid-column-end: span 8; }
  .start-7 { grid-column-start: 7; }
  .start-8 { grid-column-start: 8; }
  .start-9 { grid-column-start: 9; }
}

/* Section heading in the margin column, content to the right */
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.75rem; }
.sheet-head { grid-column: span 12; }
.sheet-body { grid-column: span 12; }
.sheet-head h2 { max-width: 14ch; }
.sheet-head .lede { margin-top: 1.25rem; }
@media (min-width: 56em) {
  .sheet-head { grid-column: span 4; position: sticky; top: 6rem; align-self: start; }
  .sheet-body { grid-column: 5 / span 8; }
}

/* Hero */
.hero { padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { max-width: none; }
.hero-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; margin-top: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.hero-copy { grid-column: span 12; }
.hero-facts { grid-column: span 12; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.75rem; align-items: center; }
.hero-actions .phone { font-weight: 600; text-decoration: none; padding: 0.85rem 0; color: var(--ink); }
.hero-actions .phone:hover { text-decoration: underline; }
.facts { list-style: none; display: grid; gap: 0.45rem; font-size: var(--step--1); line-height: 1.45; padding-top: 1rem; border-top: 2px solid var(--ink); }
.facts li { padding-left: 1rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--ink); }
@media (min-width: 56em) {
  .hero-copy { grid-column: span 7; }
  .hero-facts { grid-column: 9 / span 4; }
}

/* The pair: measured and calculated */
.pair { margin-top: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 1.25rem; }
.pair-item { display: grid; gap: 0.75rem; }
.figure { margin: 0; }
.media { position: relative; border: 2px solid var(--ink); background: var(--sheet); overflow: hidden; }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media.ratio-2 { aspect-ratio: 2 / 1; }
.media.ratio-21 { aspect-ratio: 21 / 9; }
.media.ratio-16 { aspect-ratio: 16 / 9; }
.media.ratio-3 { aspect-ratio: 3 / 2; }
.media.ratio-24 { aspect-ratio: 16 / 9; }
.media.ratio-45 { aspect-ratio: 4 / 5; }
@media (min-width: 56em) { .media.ratio-24 { aspect-ratio: 12 / 5; } }
.media.ratio-24 > video { object-position: 100% 50%; }
.media.contain > img, .media.contain > video { object-fit: contain; }
.media.dark { background: var(--viewport); }
.media.lab { background: #d2dcde; } /* matches the analysis background in the simulation captures */
.caption { font-size: var(--step--1); line-height: 1.45; color: var(--text); max-width: 52ch; }
.caption strong { color: var(--ink); font-weight: 600; }
.pair-note { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.pair-note p { max-width: 60ch; }
@media (min-width: 56em) {
  .pair { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .pair-note { grid-column: span 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .pair-note p { grid-column: 5 / span 8; }
}

/* Play control over a video poster */
.play {
  position: absolute; inset: auto 0.75rem 0.75rem auto;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.9rem; font: inherit; font-weight: 600; font-size: 0.95rem;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); cursor: pointer;
}
.play:hover { background: var(--mark); }
.play svg { width: 0.8rem; height: 0.8rem; }
.media[data-playing="true"] .play { display: none; }

/* Two kinds of work */
.two { display: grid; gap: 2.5rem; }
.two > div { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.two h3 { margin-bottom: 0.75rem; }
.two ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.3rem; font-size: var(--step--1); line-height: 1.45; }
.two li { padding-left: 1rem; position: relative; }
.two li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; background: var(--ink); }
@media (min-width: 56em) { .two { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }

/* Project entries */
.project { display: grid; row-gap: 1.25rem; column-gap: var(--gutter); padding-block: 2.25rem; border-top: 2px solid var(--ink); }
.projects > .project:first-child { border-top: 0; padding-top: 0; }
.section-intro { margin-bottom: 1.5rem; }
.section-intro .sheet-head { position: static; }
.section-intro .lede { max-width: 48ch; }
.project-media { display: grid; gap: 0.75rem; }
.project-media.duo { grid-template-columns: 1fr 1fr; }
.project-text h3 { max-width: 24ch; }
.project-text .where { margin-top: 0.3rem; color: var(--muted); }
.project-text p { margin-top: 1rem; }
.project-meta { margin-top: 1.25rem; display: grid; gap: 0.5rem 1.25rem; font-size: var(--step--1); line-height: 1.45; }
.project-meta div { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem; }
.project-meta dt { font-weight: 600; color: var(--ink); }
.project-meta dd { margin: 0; }
.project .result { margin-top: 1rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
@media (min-width: 56em) {
  .project { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .project-media { grid-column: span 7; }
  .project-text { grid-column: 8 / span 5; }
  .project.flip .project-media { grid-column: 6 / span 7; grid-row: 1; }
  .project.flip .project-text { grid-column: 1 / span 4; grid-row: 1; }
}

.more { margin-top: 2rem; }

/* Services */
.services { display: grid; gap: 2rem; }
.service { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.service h3 { max-width: 16ch; }
.service p { margin-top: 0.75rem; }
.service ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.3rem; font-size: var(--step--1); line-height: 1.45; }
.service li { padding-left: 1rem; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; background: var(--ink); }
@media (min-width: 56em) { .services { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 3rem; } }

.service-figures { margin-top: 3rem; display: grid; gap: 2rem; }
.service-figures .figure { display: grid; gap: 0.75rem; }
@media (min-width: 56em) { .service-figures { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }

/* Process (a real sequence, so it is numbered) */
.steps { list-style: none; display: grid; gap: 1.75rem; counter-reset: step; }
.steps li { padding-top: 1rem; border-top: 2px solid var(--ink); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-size: var(--step-4); font-weight: 300; line-height: 1;
  font-variation-settings: "wdth" 80; color: var(--ink); margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.steps p { font-size: var(--step--1); line-height: 1.5; }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(4, 1fr); column-gap: var(--gutter); } }

/* Principal profiles (unnamed) */
.principals { display: grid; gap: 2rem; margin-bottom: 3rem; }
.principal { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.principal h3 { font-size: var(--step-1); max-width: 24ch; }
.principal ul { list-style: none; margin-top: 1rem; display: grid; gap: 0.5rem; font-size: var(--step--1); line-height: 1.5; max-width: 60ch; }
.principal li { padding-left: 1rem; position: relative; }
.principal li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4rem; height: 0.4rem; background: var(--ink); }
@media (min-width: 56em) { .principals { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }

/* Title block: the credentials strip, laid out like a drawing sheet's title block */
.about { margin-bottom: 3rem; align-items: start; }
.titleblock {
  margin: 0; display: grid; grid-template-columns: 1fr;
  border: 2px solid var(--ink); background: var(--ink); gap: 1px;
}
.titleblock > div { background: var(--paper); padding: 0.9rem 1rem 1rem; }
.titleblock dt { font-weight: 600; color: var(--ink); font-size: var(--step--1); margin-bottom: 0.3rem; }
.titleblock dd { margin: 0; font-size: var(--step--1); line-height: 1.45; color: var(--text); }
@media (min-width: 40em) { .titleblock { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56em) { .titleblock { grid-template-columns: repeat(4, 1fr); } .about figure { margin: 0; } }
.bio p + p { margin-top: 1em; }
.bio .lede { margin-top: 1.25rem; }

/* Contact */
.contact-details { display: grid; gap: 1.5rem; align-content: start; }
.contact-details a.big { display: block; font-size: var(--step-2); font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; word-break: break-word; }
.contact-details a.big:hover { text-decoration: underline; }
.contact-details .where { color: var(--text); }

.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--ink); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-0); color: var(--ink);
  padding: 0.75rem 0.85rem; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8a8a8a; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

/* Footer */
.site-footer { border-top: 2px solid var(--ink); padding-block: 2.5rem 7rem; font-size: var(--step--1); line-height: 1.5; }
.site-footer .grid { row-gap: 1.75rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 4.5rem; height: auto; flex: none; }
.footer-brand strong { display: block; font-size: var(--step-0); color: var(--ink); }
@media (min-width: 56em) { .site-footer { padding-bottom: 3rem; } }

/* Phone action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-top: 2px solid var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 0.75rem; font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1rem; }
.action-bar a + a { background: var(--mark); border-left: 2px solid var(--ink); }
@media (min-width: 56em) { .action-bar { display: none; } }

/* Work page */
.page-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head h1 { max-width: 14ch; }
.page-head .lede { margin-top: 1.25rem; max-width: 44ch; }
.group-head { padding-top: 2.5rem; padding-bottom: 0.5rem; }
.group-head h2 { font-size: var(--step-3); }
.group-head p { margin-top: 0.5rem; }
.figure-grid { display: grid; gap: 0.75rem; }
.figure-grid .figure { display: grid; gap: 0.5rem; }
@media (min-width: 40em) { .figure-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* Thanks / 404 */
.plain { min-height: 60vh; padding-block: clamp(3rem, 8vw, 7rem); }
.plain h1 { max-width: 16ch; }
.plain .lede { margin-top: 1.25rem; }
.plain .button { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .action-bar, .menu-panel, .play, .form { display: none !important; }
  .section + .section { border-top-width: 1px; }
}
