/* ANC Design — site styles
   Layout concept: the logo sits on its native black band; pages are quiet,
   snow-white and photo-led; wide-set capitals echo the logo's "D E S I G N".
   One light look on purpose (no dark mode), every color set explicitly. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --ink: #1b1e20;        /* logo black: header, footer, headings */
  --snow: #f4f6f7;       /* page ground, a cool off-white */
  --paper: #ffffff;      /* raised surfaces */
  --slate: #525e66;      /* secondary text (6.1:1 on snow) */
  --line: #d6dde1;       /* hairlines */
  --cedar: #87461f;      /* accent, from the cedar siding in the hero (7:1 on snow) */
  --cedar-dark: #6a3517;
  --band: #000000;   /* header + footer band (pure black) */
  --on-ink: #f4f6f7;
  --on-ink-muted: #b9c2c7;
  --ph-bg: #fff1a8;      /* placeholder highlight */
  --ph-fg: #4a3b00;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem);

  /* Space */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 72rem;
  --header-h: 4.5rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cedar); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cedar-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cedar); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: #ffffff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 105%; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-stretch: 125%;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--slate);
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.6rem 1rem;
  font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { top: calc(1rem + env(safe-area-inset-top, 0px)); }

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

/* ---------- Placeholders: easy to spot, easy to search for "[PLACEHOLDER" ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-fg);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-size: 0.9em;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.draft-flag {
  display: inline-block;
  justify-self: start;
  background: var(--ph-bg);
  color: var(--ph-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

/* ---------- Header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--band);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--band);
  color: var(--on-ink);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  min-height: var(--header-h);
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: block; flex: none; }
.brand img { width: 118px; height: auto; }
.nav-toggle {
  display: none;
  font: 600 var(--step--1) / 1 var(--font-display);
  font-stretch: 125%;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 3px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-stretch: 118%;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--on-ink-muted);
  text-decoration: none;
  padding-block: 0.6rem;
  display: inline-block;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: #ffffff; border-bottom-color: rgba(255,255,255,0.5); }
.site-nav a[aria-current="page"] { color: #ffffff; border-bottom-color: #ffffff; }

@media (max-width: 860px) {
  .nav-toggle:not([hidden]) { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--band);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-left: var(--gutter); padding-right: var(--gutter-r); padding-block: 0.5rem 1.25rem;
  }
  .js .site-nav[data-open="false"] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { font-size: 0.95rem; padding-block: 0.85rem; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.08); box-shadow: inset 3px 0 0 #fff; padding-left: 0.75rem; }
}

/* ---------- Page frame ---------- */
main { flex: 1 0 auto; }
.page {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: clamp(2.5rem, 6vh, 4.5rem) clamp(3rem, 7vh, 5rem);
}
.page-head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.75rem, 4vh, 2.75rem); max-width: 46rem; }
.page-head .lede { font-size: var(--step-1); color: var(--slate); max-width: 40rem; }
.prose { display: grid; gap: 1.1rem; max-width: 38rem; }
.prose p { font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-stretch: 120%;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 0.95rem 1.4rem;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn-solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-solid:hover { background: #000; color: #fff; }
.btn-light { background: #ffffff; color: var(--ink); border-color: #ffffff; }
.btn-light:hover { background: transparent; color: #ffffff; }
.btn-ghost-light { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.8); }
.btn-ghost-light:hover { background: #ffffff; color: var(--ink); }

/* ---------- Home hero ---------- */
.home main { display: flex; }
.hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
  color: #ffffff;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12,14,15,0.88) 0%, rgba(12,14,15,0.62) 38%, rgba(12,14,15,0.12) 70%, rgba(12,14,15,0) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  align-self: flex-end;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  padding-block: 4rem calc(clamp(2.5rem, 8vh, 5rem) + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 1.4rem;
}
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.1rem);
  font-weight: 620;
  max-width: 17ch;
  text-shadow: 0 1px 24px rgba(0,0,0,0.35);
}
.hero .hero-line { font-size: var(--step-1); max-width: 36rem; color: #e9eef0; text-shadow: 0 1px 12px rgba(0,0,0,0.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero-pause {
  position: absolute; z-index: 3;
  right: calc(var(--gutter-r) + 0px);
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  background: rgba(12,14,15,0.45);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 600px) {
  .hero-pause { bottom: auto; top: 0.75rem; }
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.8vw, 12px);
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--line);
  cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery button:hover img { transform: scale(1.035); }
.gallery button:focus-visible { outline-offset: 2px; }

.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  background: rgba(10,11,12,0.94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox::backdrop { background: rgba(10,11,12,0.94); }
.lightbox figure { margin: 0; display: grid; place-items: center; min-height: 0; padding: 4.5rem max(16px, 4vw) 1rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox-bar {
  display: flex; justify-content: center; align-items: center; gap: 1rem;
  padding: 0.5rem 16px calc(1.25rem + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-display); font-size: var(--step--1); letter-spacing: 0.12em; color: #c9d1d5;
  font-variant-numeric: tabular-nums;
}
.lb-btn {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
  cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,0.12); }
.lb-close { position: absolute; top: calc(1rem + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- Testimonials ---------- */
.quotes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem 2.5rem;
}
.quote { margin: 0; border-top: 2px solid var(--ink); padding-top: 1.25rem; display: grid; gap: 1rem; align-content: start; }
.quote blockquote { margin: 0; font-size: 1.2rem; line-height: 1.5; font-style: italic; }
.quote figcaption { font-family: var(--font-display); font-size: var(--step--1); font-stretch: 112%; letter-spacing: 0.06em; color: var(--slate); }
.quote figcaption strong { color: var(--ink); font-weight: 650; }

/* ---------- Team ---------- */
.team { display: grid; gap: clamp(2rem, 5vh, 3rem); }
.person {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.person:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.person:nth-of-type(even) .person-photo { order: 2; }
.person-photo { margin: 0; aspect-ratio: 4 / 5; max-width: 17rem; width: 100%; background: var(--line); overflow: hidden; border-radius: 2px; }
.person:nth-of-type(even) .person-photo { justify-self: end; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-text { display: grid; gap: 0.75rem; min-width: 0; max-width: 36rem; }
.person-text .role { color: var(--cedar); }
.person-text p { font-size: 1.1rem; }
@media (max-width: 720px) {
  .person, .person:nth-of-type(even) { grid-template-columns: 1fr; }
  .person:nth-of-type(even) .person-photo { order: 0; justify-self: start; }
  .person-photo { max-width: 15rem; }
}

/* ---------- Split (Who We Are) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split-photo { position: static; } .split-photo img { aspect-ratio: 3 / 2; } }

/* ---------- Process ---------- */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 2.5rem;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 1.6rem; } }
.steps li { counter-increment: step; display: grid; gap: 0.5rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-stretch: 125%; font-weight: 700;
  font-size: var(--step-2); line-height: 1; color: var(--cedar);
  font-variant-numeric: tabular-nums;
}
.steps h2 { font-size: var(--step-1); font-stretch: 105%; }
.steps p { color: var(--slate); font-size: 1.02rem; }
.closing { margin-top: clamp(2rem, 5vh, 3rem); font-size: var(--step-1); max-width: 40rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact-direct { display: grid; gap: 1.5rem; }
.contact-direct dl { margin: 0; display: grid; gap: 1.25rem; }
.contact-direct dt { margin-bottom: 0.2rem; }
.contact-direct dd { margin: 0; font-family: var(--font-display); font-size: var(--step-1); font-stretch: 108%; font-weight: 550; }
.contact-direct dd a { color: var(--ink); text-decoration-color: var(--line); }

.form { display: grid; gap: 1.15rem; background: var(--paper); padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 3px; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; font-stretch: 105%; }
.field .hint { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #9aa6ad; border-radius: 3px;
  padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--cedar); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #a3261d; }
.field-error { color: #a3261d; font-family: var(--font-display); font-size: 0.9rem; font-weight: 550; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--slate); }
.form-status { font-family: var(--font-display); font-weight: 550; }
.form-status.is-error { color: #a3261d; }
.form-done { display: grid; gap: 0.75rem; background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-top: 3px solid var(--cedar); border-radius: 3px; }
.form-done:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--band); color: var(--on-ink-muted); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  font-family: var(--font-display); font-size: 0.9rem; font-stretch: 108%;
}
.footer-inner img { width: 96px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-contact a { color: var(--on-ink); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .gallery button:hover img { transform: none; }
}
