/* North of Irving: black, white and gray only. One bold move: the meridian. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/bodoni-moda-latin-opsz-normal.woff2) format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(fonts/bodoni-moda-latin-opsz-italic.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
:root {
  --paper: #ffffff;
  --ink: #000000;
  --graphite: #3a3a3a;
  --stone: #767676;   /* passes 4.5:1 on white */
  --mist: #e4e4e4;
  --haze: #f5f5f5;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --axis: 42vw;          /* where the meridian runs */
  --gap: clamp(1.75rem, 3.5vw, 3.5rem); /* space either side of it */
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: var(--edge); top: .75rem; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--edge);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--mist);
}
.mark {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--display); font-size: 1.6rem; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.mark-needle {
  position: relative; width: 1px; height: 1.55rem; background: var(--ink); margin-top: -.25rem;
}
.mark-needle::before {
  content: ""; position: absolute; left: -2px; top: -3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink);
}
.bar nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.bar nav a {
  font-size: .95rem; text-decoration: none; color: var(--graphite);
  padding: .25rem 0; border-bottom: 1px solid transparent;
}
.bar nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* The meridian: one hairline from the north dot down the whole page */
main { position: relative; }
.meridian {
  position: absolute; top: 0; bottom: 0; left: var(--axis);
  width: 1px; pointer-events: none;
}
.meridian::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: top;
  animation: draw 1.6s cubic-bezier(.6,.05,.2,1) .2s both;
}
.north {
  position: absolute; left: -4px; top: clamp(3rem, 8vw, 6rem);
  width: 9px; height: 9px; border-radius: 50%; background: var(--ink); z-index: 1;
}
@keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Two-sided layout around the axis */
.hero, .row {
  display: grid;
  grid-template-columns: calc(var(--axis) - var(--gap)) 1fr;
  column-gap: calc(var(--gap) * 2);
  padding-right: var(--edge);
}

/* Hero: the wordmark splits across the needle, like the N|I monogram */
.hero { padding-top: clamp(5rem, 13vw, 10rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
.wordmark {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: subgrid;
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.25rem, 7vw, 8.5rem);
  line-height: .9; letter-spacing: -.02em; color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.wm-left { text-align: right; padding-left: var(--edge); white-space: nowrap; }
.wm-right { text-align: left; }
.hero-copy { grid-column: 2; max-width: var(--measure); margin-top: clamp(2.5rem, 5vw, 4rem); }
.lede {
  font-family: var(--display); font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.3; color: var(--ink); margin: 0 0 1.1rem;
}
.hero-copy p:not(.lede) { margin: 0 0 2rem; }

.button {
  display: inline-block; cursor: pointer;
  font: 500 1rem/1 var(--text);
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 1rem 1.6rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.button:hover { background: var(--paper); color: var(--ink); }
.button[disabled] { opacity: .5; cursor: progress; }

/* Sections */
.row { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--mist); }
.row h2 {
  margin: 0; text-align: right; padding-left: var(--edge);
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; color: var(--stone);
}
.row-body { max-width: var(--measure); }
.row-body > p { margin: 0 0 1.25rem; }
.statement {
  font-family: var(--display); color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.22;
  margin: 0 0 1.75rem !important;
}
.origin { color: var(--stone); font-style: italic; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2.75rem 0 0; }
.facts div { border-top: 1px solid var(--ink); padding-top: .9rem; }
.facts dt { font-family: var(--display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.facts dd { margin: .35rem 0 0; font-size: .92rem; color: var(--stone); line-height: 1.45; }

.services { list-style: none; margin: 0; padding: 0; }
.services li { padding: 1.6rem 0; border-bottom: 1px solid var(--mist); }
.services li:first-child { padding-top: 0; }
.services h3 {
  margin: 0 0 .45rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; color: var(--ink);
}
.services p { margin: 0; }

/* Form */
.contact { margin-top: 2.5rem; display: grid; gap: 1.4rem; }
.field label { display: block; font-size: .92rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--stone); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--haze); border: 1px solid var(--haze); border-bottom-color: var(--stone);
  border-radius: 0; padding: .8rem .9rem;
}
.field input:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 8rem; }
.field .error { display: block; margin-top: .35rem; font-size: .88rem; color: var(--ink); }
.field.invalid input, .field.invalid textarea { border-color: var(--ink); border-width: 2px; }
.contact .button { justify-self: start; }
.form-status { margin: 0; min-height: 1.6em; color: var(--ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 2rem var(--edge); border-top: 1px solid var(--mist);
  font-size: .9rem; color: var(--stone);
}
.foot p { margin: 0; }

/* Narrow screens: the meridian moves to the left edge and everything hangs off it */
@media (max-width: 760px) {
  :root { --axis: 1.25rem; --gap: 1.25rem; }
  .hero, .row { grid-template-columns: 1fr; padding-left: calc(var(--axis) + var(--gap)); padding-right: 1.25rem; }
  .wordmark { display: block; font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .wm-left, .wm-right { display: block; text-align: left; padding: 0; }
  .hero-copy { grid-column: 1; }
  .row h2 { text-align: left; padding: 0; margin-bottom: 1.25rem; }
  .facts { grid-template-columns: 1fr; gap: 1rem; }
  .north { top: 2.4rem; }
  .bar nav a { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meridian::after { animation: none; }
}
