/* Jedro Labs — Bone & Clay, edged
   Drop-in replacement for the :root block in public/styles/global.css.
   Geometry: the mark is a right triangle, 19 wide x 38 tall, slope 0.5.
   Luff vertical, foot horizontal. Never rotate, never round, never outline. */

:root {
  /* surfaces */
  --bone: #F7F4EE;
  --sand: #EBE5D9;
  --ink: #17140F;

  /* accents */
  --clay: #CA4B20;          /* action, links, emphasis */
  --clay-bright: #E6653C; /* clay on ink only */
  --steel: #007BB2;        /* data, charts, meta only */
  --steel-dark: #006CA2;

  /* semantic */
  --bg: var(--bone);
  --surface: var(--sand);
  --text: var(--ink);
  --muted: rgba(23, 20, 15, 0.7);
  --border: rgba(23, 20, 15, 0.16);
  --hairline: rgba(23, 20, 15, 0.12);

  /* type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* scale — no 24-40px tier, on purpose */
  --size-display-1: 98px;
  --size-display-2: 62px;
  --size-display-3: 42px;
  --size-heading: 21px;
  --size-body: 16px;
  --size-label: 10px;
  --track-label: 0.18em;

  /* geometry */
  --radius: 0;
  --rake: 14deg;
  --chamfer: 22px;
  --maxw: 1280px;
}

/* the one shape rule: cut corners, never round them */
.chamfer-tr { clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%); }
.rake-foot  { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }

a { color: var(--clay); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; }

/* ---------- self-hosted fonts (OFL) — zero third-party requests ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400-italic-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure { margin: 0; }

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

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 0;
}

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

/* display type — Instrument Serif has one weight; never bold it */
.display-1, .display-2, .display-3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.display-1 { font-size: clamp(46px, 9vw, var(--size-display-1)); }
.display-2 { font-size: clamp(38px, 5.5vw, var(--size-display-2)); }
.display-3 { font-size: clamp(32px, 3.8vw, var(--size-display-3)); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: rgba(23, 20, 15, 0.45);
}
.on-ink .eyebrow { color: var(--bone); opacity: 0.55; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* ---------- buttons — nothing lifts, glows, or bounces ---------- */
.btn {
  display: inline-block;
  background: var(--clay);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 15px 24px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
}
.btn:hover {
  background: color-mix(in srgb, var(--clay), var(--ink) 14%);
  text-decoration: none;
}
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink), var(--bone) 12%); }

/* ---------- header ---------- */
header { border-bottom: 1px solid var(--hairline); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px; /* clear space ≥ a third of the mark's width */
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { text-decoration: none; }
.brand svg { color: var(--clay); flex: none; } /* on bone the mark is clay */
.brand span {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.17em;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 5fr 2fr; /* never 50/50 — the page should lean */
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px);
}
.hero h1 { margin: 18px 0 26px; max-width: 12.5ch; }
.hero h1 em {
  font-style: italic;
  color: var(--clay);
}
.hero .lead {
  font-style: italic;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 34px;
}
.hero-cta .mono { display: block; margin-top: 14px; color: var(--muted); }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; width: 100%; }
.portrait figcaption { margin-top: 12px; }
.portrait .caption-name { font-size: 12.5px; font-weight: 600; }
.portrait .mono { display: block; margin-top: 6px; color: var(--muted); }

/* ---------- full-bleed bands ---------- */
.band { padding-block: clamp(48px, 7vw, 88px); }
.band--ink { background: var(--ink); color: var(--bone); }
.band--sand { background: var(--sand); }
.band--clay { background: var(--clay); color: var(--bone); }

/* ---------- record band ---------- */
.record-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin-block: 34px 44px;
}
.record-item .display-2 { margin-bottom: 12px; }
.record-item p { color: rgba(247, 244, 238, 0.75); }

.awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 244, 238, 0.16); /* hairlines between cells */
  border-block: 1px solid rgba(247, 244, 238, 0.16);
}
.award {
  background: var(--ink);
  padding: 28px 26px 32px;
}
.award .award-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.award .award-label svg { color: var(--clay-bright); flex: none; } /* on ink, the mark is clay-bright */
.award h3 { margin-bottom: 10px; }
.award p { color: rgba(247, 244, 238, 0.75); }
.record-close { margin-top: 44px; max-width: 42ch; }

/* ---------- services ---------- */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.services-head .mono { color: var(--muted); }
.service {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding-block: 30px;
  border-top: 1px solid var(--hairline);
}
.service:last-of-type { border-bottom: 1px solid var(--hairline); }
.service .index {
  font-family: var(--font-display);
  font-size: var(--size-display-3);
  line-height: 0.98;
  color: var(--clay);
}
.service h3 { font-size: var(--size-heading); font-weight: 600; margin-bottom: 8px; }
.service p { color: var(--muted); max-width: 62ch; }
.service .mono { color: var(--muted); white-space: nowrap; }

/* ---------- result ---------- */
.result-grid {
  display: grid;
  grid-template-columns: 5fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.result-grid .display-2 { margin-block: 18px 16px; max-width: 18ch; }
.result-grid .result-body { color: rgba(247, 244, 238, 0.75); max-width: 52ch; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 28px;
}
.bar-item { display: flex; flex-direction: column; justify-content: flex-end; }
.bar { width: 76px; }
.bar--before { height: 220px; background: var(--steel); }    /* steel is always the "before" — data only */
.bar--after { height: 33px; background: var(--clay-bright); } /* 15% of before — clay always the "after" */
.bar-item .mono { margin-top: 10px; color: var(--bone); opacity: 0.55; }

/* ---------- gracedays proof ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: 2fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.proof-grid .display-3 { margin-block: 18px 14px; }
.proof-grid p { color: var(--muted); }
.proof-link { display: inline-flex; align-items: center; margin-top: 16px; font-weight: 600; min-height: 44px; }
.shots {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 18px;
}
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--border); }
.shots figcaption { margin-top: 10px; color: var(--muted); }
/* unequal widths, unequal bottom offsets — they should NOT line up */
.shots .shot-1 { width: 260px; margin-bottom: 0; }
.shots .shot-2 { width: 218px; margin-bottom: 30px; }
.shots .shot-3 { width: 246px; margin-bottom: 12px; }

/* ---------- close (footer) ---------- */
.close-band {
  clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
  padding-block: clamp(64px, 9vw, 112px) clamp(48px, 7vw, 80px);
}
.close-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.close-grid .display-2 { max-width: 14ch; margin-bottom: 30px; }
.close-meta { text-align: right; }
.close-meta .mono { display: block; margin-top: 8px; color: var(--bone); opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .result-grid, .proof-grid { grid-template-columns: 1fr; align-items: start; }
  .record-wide { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .shots { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service .index { font-size: 32px; }
  .close-grid { flex-direction: column; align-items: flex-start; }
  .close-meta { text-align: left; }
  /* landscape tiles stack on small screens, still deliberately unequal */
  .shots { flex-direction: column; align-items: flex-start; gap: 22px; }
  .shots .shot-1 { width: 100%; margin-bottom: 0; }
  .shots .shot-2 { width: 76%; margin-bottom: 0; align-self: flex-end; }
  .shots .shot-3 { width: 88%; margin-bottom: 0; }
  .bar { width: 58px; }
  .bar--before { height: 170px; }
  .bar--after { height: 26px; } /* keeps the 15% ratio */
}

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