/* Signal — homepage styles
   Palette: warm ivory #EEE9DD, near-black #191914, muted copper #BB8859.
   Copper is reserved for the logo dot, small accents, links, and key actions. */

:root {
  --ivory: #EEE9DD;        /* page ivory */
  --ivory-2: #E6E0D2;      /* alternate ivory (entry band, hover) */
  --ink: #191914;          /* near-black */
  --ink-2: #2E2B25;        /* rules on dark */
  --ink-3: #4A463D;        /* panel borders on dark */
  --field-border: #766E60; /* form-control borders on dark (≥3:1) */
  --copper: #BB8859;       /* copper on dark surfaces and for marks */
  --copper-deep: #875729;  /* copper for small text on ivory (≥4.5:1) */
  --rule: #CFC7B7;         /* hairlines on ivory */
  --muted: #5C554A;        /* secondary text on ivory (≈6.4:1) */
  --muted-dark: #A8A094;   /* secondary text on ink (≈6.9:1) */
  --body-dark: #D9D3C6;    /* body text on ink */

  --container: 1280px;
  --gutter: 48px;
  --nav-h: 76px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); }
/* Smooth in-page scrolling is switched on by app.js after load, so a direct link to a
   section (…/#contact) lands instantly instead of animating down the whole page. */
html.smooth-scroll { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html.smooth-scroll { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--copper-deep); outline-offset: 3px; }
.on-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--copper); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--copper); color: var(--ink); padding: 12px 16px; font-size: 13px; font-weight: 600; min-height: 44px;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---- */
.eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--copper-deep); margin-bottom: 22px; }
.on-ink .eyebrow { color: var(--copper); }
.label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
h1 { font-size: clamp(2.375rem, 1.5rem + 3.2vw, 3.75rem); font-weight: 500; letter-spacing: -.022em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 500; letter-spacing: -.018em; line-height: 1.15; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -.012em; line-height: 1.3; }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 600px; }
.on-ink h2, .on-ink h3 { color: var(--ivory); }
.on-ink .lede { color: var(--muted-dark); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 30px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font); line-height: 1;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-copper { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.btn-copper:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(238, 233, 221, .55); }
.btn-ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.hero .btn-copper:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: var(--ivory); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--ink-2); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; padding: 8px 0; min-width: 0; }
.logo img { width: 275px; max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); padding: 12px 0; transition: color .15s; }
.nav a:hover { color: var(--ivory); }
.nav .btn { min-height: 42px; padding: 0 20px; margin-left: 10px; color: var(--ivory); }
.nav .btn:hover { color: var(--ink); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--ink-3); color: var(--ivory);
  width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; background: var(--ivory); color: var(--ink); }
.hero-media { position: absolute; inset: 0; pointer-events: none; background: var(--ivory-2); }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%;
  filter: saturate(.72);
}
.hero-media video { opacity: 0; transition: opacity 1.6s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-media .veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(238, 233, 221, .97) 0%,
    rgba(238, 233, 221, .94) 36%,
    rgba(238, 233, 221, .74) 56%,
    rgba(238, 233, 221, .40) 78%,
    rgba(238, 233, 221, .26) 100%);
}
.hero .container { position: relative; padding-top: clamp(80px, 10vw, 148px); padding-bottom: clamp(72px, 9.5vw, 140px); }
.hero-copy { max-width: min(660px, 62%); }
.hero-copy .eyebrow { margin-bottom: 30px; }
.hero-copy h1 { max-width: 620px; }
.hero-copy .lede { margin-top: 30px; max-width: 580px; }
.audience { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; }
.motion-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule); transition: color .15s, text-decoration-color .15s;
}
.motion-toggle:hover { color: var(--ink); text-decoration-color: var(--copper-deep); }
.motion-toggle[hidden] { display: none; }

/* ---- visitor entry points ---- */
.entry { background: var(--ivory-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.entry .container { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 56px; padding-top: 22px; padding-bottom: 22px; }
.entry-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 10px 0; }
.entry-links { display: flex; flex-wrap: wrap; gap: 4px 44px; list-style: none; padding: 0; }
.entry-links a {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 44px;
  font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .15s, color .15s;
}
.entry-links a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--copper-deep); flex: none; }
.entry-links a:hover { border-bottom-color: var(--copper-deep); color: var(--copper-deep); }

/* ---- expertise ---- */
.expertise { background: var(--ivory); }
.expertise .container { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 80px; align-items: start; }
.section-head h2 { max-width: 15ch; }
.section-intro { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 470px; padding-top: 38px; }
.section-intro p + p { margin-top: 1em; }
.services { margin-top: 72px; border-top: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 192px minmax(0, 5fr) minmax(0, 7fr); gap: 16px 64px; align-items: center;
  padding: 36px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 12px;
}
/* Service illustrations: 4:3 artwork on the same cream as the page, shown whole (contain), never cropped or framed.
   Hovering (or focusing) an illustration on a pointer device enlarges it in place; clicking opens it full size. */
.service-visual { position: relative; z-index: 1; margin: 0; width: 192px; max-width: 100%; aspect-ratio: 4 / 3; }
.service-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-decoration: none; }
.service-zoom img { width: 100%; height: 100%; object-fit: contain; transform-origin: left center; transition: transform .22s ease, box-shadow .22s ease; }
@media (hover: hover) and (min-width: 901px) {
  .service-visual:hover, .service-visual:focus-within { z-index: 6; }
  .service-zoom:hover img, .service-zoom:focus-visible img {
    transform: scale(1.3); background: var(--ivory);
    box-shadow: 0 1px 0 var(--rule), 0 10px 26px rgba(25, 25, 20, .16);
  }
}

/* Full-size view (opened by clicking an illustration). */
.lightbox { position: fixed; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: min(92vw, 1040px); max-height: none; padding: 0; border: 0; background: transparent; color: var(--ivory); }
.lightbox::backdrop { background: rgba(25, 25, 20, .94); }
.lightbox :focus-visible { outline-color: var(--copper); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 6px; }
.lightbox-caption { font-size: 13px; letter-spacing: .04em; color: var(--muted-dark); }
.lightbox-close { min-width: 44px; min-height: 44px; background: none; border: 0; padding: 10px 0 10px 14px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--copper); cursor: pointer; }
.lightbox-close:hover { color: var(--ivory); }
.lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: 84vh; background: var(--ivory); }
.service h3 { max-width: 380px; overflow-wrap: break-word; transition: color .15s; }
.service:target h3 { color: var(--copper-deep); }
.service p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 600px; }
.project-types { margin-top: 44px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.project-types .label { display: block; color: var(--copper-deep); margin-bottom: 10px; }

/* ---- selected experience ---- */
.experience { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.experience .container { position: relative; padding-top: clamp(80px, 10vw, 144px); padding-bottom: clamp(80px, 10vw, 144px); }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 96px; align-items: start; }
.attribution { font-size: 13px; line-height: 1.5; letter-spacing: .04em; color: var(--muted-dark); margin: -6px 0 24px; }
.case h2 { max-width: 560px; }
.case-body { padding-top: 6px; }
.case-body p { font-size: 19px; line-height: 1.65; color: var(--body-dark); max-width: 540px; }
.case-close { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--ink-3); font-weight: 500; }
.case-body .case-facts { margin-top: 22px; font-size: 13px; line-height: 1.5; letter-spacing: .04em; color: var(--muted-dark); }
.case-figure { grid-column: 1 / -1; margin: 8px 0 0; }
.case-figure img { width: 100%; height: auto; border: 1px solid var(--ink-3); background: var(--ink-2); }
.case-figure figcaption { margin-top: 14px; font-size: 13px; letter-spacing: .04em; color: var(--muted-dark); }

/* ---- about ---- */
.about { background: var(--ivory); border-top: 1px solid var(--rule); }
.about .container { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 116px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 80px; align-items: start; }
.about-grid h2 { max-width: 480px; }
.about-grid .lede { font-size: 19px; max-width: 600px; }
.about-principal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 600px; }
.about-attribution { font-size: 15px; line-height: 1.5; font-weight: 600; letter-spacing: .01em; color: var(--ink); }
.about-location { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---- contact ---- */
.contact { position: relative; overflow: hidden; background: var(--ink); border-top: 1px solid var(--ink-2); }
.contact .container { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px 80px; padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); }
.contact .lede { margin-top: 26px; max-width: 420px; }
.contact-location { margin-top: 44px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }
.contact-form { max-width: 640px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.form[hidden] { display: none; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); font-weight: 600; }
.field .req { color: var(--copper); margin-left: 2px; }
.field .hint { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted-dark); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; color: var(--muted-dark); cursor: pointer; }
.consent input {
  flex: none; width: 18px; height: 18px; margin: 3px 0 0; cursor: pointer; position: relative;
  appearance: none; -webkit-appearance: none; border: 1px solid var(--field-border); border-radius: 0; background: var(--ink);
}
.consent input:checked { background: var(--copper); border-color: var(--copper); }
.consent input:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent input:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.consent:hover input { border-color: var(--copper); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--field-border); color: var(--ivory); border-radius: 0;
  padding: 14px 16px; font-size: 16px; font-family: var(--font); line-height: 1.4; min-height: 50px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--copper); outline: 2px solid var(--copper); outline-offset: 0; }

.form-status { font-size: 15px; line-height: 1.5; color: var(--copper); }
.form-status[hidden] { display: none; }
.sent { border: 1px solid var(--ink-3); padding: 44px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.sent[hidden] { display: none; }
.sent p { font-size: 17px; color: var(--muted-dark); }
.sent button { background: none; border: 0; padding: 8px 0; margin-top: 4px; font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--copper); cursor: pointer; align-self: flex-start; }
.sent button:hover { color: var(--ivory); }

/* ---- footer ---- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); border-top: 1px solid var(--ink-2); }
.site-footer .container { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding-top: 36px; padding-bottom: 36px; }
.site-footer .logo img { width: 232px; opacity: .92; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .nav { gap: 24px; }
  .hero-copy { max-width: min(600px, 66%); }
  .section-head, .about-grid { column-gap: 40px; }
  .contact .container { column-gap: 40px; }
  .case { column-gap: 48px; }
  .service { grid-template-columns: 180px minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px; }
  .service-visual { width: 180px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .site-header .container { gap: 12px; }
  .site-header .logo { flex: 1 1 auto; padding: 6px 0; margin-right: 0; }
  .site-header .logo img { width: min(246px, 100%); }
  .site-footer .logo img { width: min(232px, 100%); }
  .js .menu-toggle { display: inline-flex; flex: none; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-2);
    padding: 8px var(--gutter) 24px;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 16px 0; border-bottom: 1px solid var(--ink-2); font-size: 13px; }
  .js .nav .btn { margin: 20px 0 0; border-bottom: 1px solid rgba(238, 233, 221, .55); justify-content: center; min-height: 50px; }
  html:not(.js) .site-header .container { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 12px; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 4px 20px; width: 100%; }
  html:not(.js) .nav .btn { margin-left: 0; }

  /* Stacked hero: a deliberate photo crop, then the copy on solid ivory. */
  .hero { display: flex; flex-direction: column; }
  .hero-media { position: relative; inset: auto; height: clamp(200px, 56vw, 300px); aspect-ratio: auto; order: -1; }
  .hero-media .veil { background: linear-gradient(180deg, rgba(238, 233, 221, .06) 0%, rgba(238, 233, 221, .16) 100%); }
  .hero .container { padding-top: 40px; padding-bottom: 48px; }
  .hero-copy { max-width: none; }
  .hero-copy .eyebrow { margin-bottom: 22px; }
  .hero-copy h1 { max-width: none; }
  .hero-copy .lede { margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .section-head, .about-grid, .contact .container { grid-template-columns: minmax(0, 1fr); }
  .section-head { gap: 24px; }
  .section-intro { padding-top: 0; }
  .section-head h2, .about-grid h2 { max-width: none; }
  .case { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .entry .container { align-items: flex-start; flex-direction: column; gap: 2px; padding-top: 18px; padding-bottom: 12px; }
  .entry-label { padding: 6px 0 4px; }
  .entry-links { flex-direction: column; gap: 0; width: 100%; }
  .entry-links li { border-top: 1px solid var(--rule); }
  .entry-links li:first-child { border-top: 0; }
  .entry-links a { width: 100%; min-height: 52px; border-bottom: 0; }
  .entry-links a:hover { color: var(--copper-deep); }

  .expertise .container, .about .container { padding-top: 64px; padding-bottom: 72px; }
  .services { margin-top: 44px; }
  .service { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; padding: 30px 0 34px; }
  .service-visual { width: min(100%, 320px); }
  .service h3 { font-size: 20px; max-width: 28ch; }
  .service p { max-width: 56ch; margin-top: -8px; }
  .project-types { margin-top: 36px; }
  .experience .container, .contact .container { padding-top: 72px; padding-bottom: 80px; }
  .case-body p { font-size: 18px; }
  .case-figure { margin-top: 8px; }
  .contact .container { gap: 44px; }
  .contact-location { margin-top: 32px; }
  .form-actions .btn { width: 100%; }
  .sent { padding: 32px 24px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
