@font-face {
  font-family: "DM Serif Text";
  src: url("fonts/dm-serif-text-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Text";
  src: url("fonts/dm-serif-text-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f8f7f2;
  --ink: #202b32;
  --muted: #46545a;
  --line: #c9cdc5;
  --blue: #365e77;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, input:focus-visible + span { outline: 3px solid #ae5a16; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.page-width { width: min(76rem, 88%); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .75rem 1rem; background: white; z-index: 3; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { min-height: 5.3rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: .24em; text-decoration: none; font-family: var(--serif); font-size: 1.54rem; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.wordmark small { font: 500 .59em var(--sans); letter-spacing: -.025em; }
.mark { align-self: center; width: 1.7rem; height: 1.7rem; display: flex; align-items: end; justify-content: center; gap: 2px; padding: 5px 3px; background: var(--blue); margin-right: .35rem; }
.mark i { background: var(--paper); width: 3px; height: 31%; }
.mark i:nth-child(2) { height: 55%; }
.mark i:nth-child(3) { height: 73%; }
.mark i:nth-child(4) { height: 97%; }
nav { display: flex; gap: clamp(1.1rem, 3vw, 2.6rem); }
nav a { font-size: .88rem; font-weight: 550; text-decoration: none; padding-block: .82rem; }
nav a:hover, .text-link:hover, .profile:hover, .phone:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr); gap: clamp(2.8rem, 6.4vw, 6.5rem); align-items: center; padding-block: clamp(3rem, 5.6vw, 5.75rem); }
.eyebrow, .sheet-class { color: var(--blue); font: 400 .71rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .085em; }
.eyebrow { display: flex; align-items: center; gap: .72rem; }
.rule { display: inline-block; width: 1.75rem; height: 2px; background: var(--blue); }
h1 { margin-block: 1.25rem 1.35rem; font-size: clamp(3.5rem, 5.7vw, 5.2rem); line-height: .99; letter-spacing: -.051em; }
h1 em, .contact em { color: var(--blue); font-weight: 400; }
h1 em { display: block; }
.intro { font-size: clamp(1.04rem, 1.26vw, 1.19rem); line-height: 1.58; color: var(--muted); max-width: 34rem; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.45rem; padding-block: .35rem; text-decoration: none; border-bottom: 1px solid #8c9ea5; font-size: .87rem; font-weight: 650; }
.text-link span { font-size: 1.04rem; color: var(--blue); }
.worksheet { padding: clamp(1.25rem, 2.1vw, 2rem); border: 1px solid #acbbc1; border-top: 3px solid var(--blue); background: #edf2f2; box-shadow: 4px 4px 0 -1px var(--paper), 4px 4px 0 0 #bfc8c9; }
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem .45rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 1px solid #bbc9cc; }
.sheet-class, .sample { font-size: .65rem; }
.sample { color: #53636b; font-family: var(--mono); }
.worksheet h2 { font-size: clamp(1.5rem, 2.15vw, 2.05rem); line-height: 1.1; letter-spacing: -.035em; }
.sheet-intro { color: var(--muted); line-height: 1.5; margin-top: .5rem; font-size: .88rem; max-width: 25rem; }
.horizon { min-width: 0; margin: 1rem 0 .95rem; padding: 0; border: 0; }
.horizon legend, .plot-row > span { font: 400 .71rem/1.4 var(--mono); color: #3c505a; }
.horizon legend { margin-bottom: .45rem; padding: 0; }
.options { display: flex; gap: .3rem; }
.options label { position: relative; flex: 1; }
.options input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.options span { display: grid; place-items: center; min-height: 2rem; border: 1px solid #aabbbf; background: #f5f8f7; text-align: center; color: #334c5a; font: .73rem var(--mono); }
.options input:checked + span { background: var(--blue); border-color: var(--blue); color: white; }
.options input:hover:not(:checked) + span { background: #e1e9ea; }
.plot { --label-width: 6.9rem; margin-block: 1.3rem .95rem; }
.plot-row { display: grid; grid-template-columns: var(--label-width) 1fr; align-items: center; }
.track { height: 1.9rem; display: flex; align-items: center; border-right: 1px solid #c0cdd0; background: repeating-linear-gradient(90deg, #bfcccf 0 1px, transparent 1px 33.333333%); }
.bar { display: flex; justify-content: flex-end; align-items: center; height: 1.16rem; padding-inline: .3rem; background: #597c8e; color: #fff; min-width: 2ch; }
.bar b { font: .69rem var(--mono); }
.stock { width: 58.333333%; background: #3e535c; }
.demand { width: 66.666667%; background: repeating-linear-gradient(135deg, #57798b 0 3px, #476a80 3px 5px); }
.ticks { position: relative; height: 1rem; margin-left: var(--label-width); font: .63rem var(--mono); color: #4c656d; }
.ticks span { position: absolute; top: .15rem; transform: translateX(-50%); }
.ticks span:nth-child(2) { left: 33.333333%; }
.ticks span:nth-child(3) { left: 66.666667%; }
.ticks span:last-child { left: 100%; }
.sheet-result { display: grid; gap: .14rem; border-top: 1px solid #bbc9cc; padding-top: .65rem; }
.sheet-result strong { font: 400 1.35rem/1.2 var(--serif); color: #294f65; }
.sheet-result > span { font-size: .84rem; line-height: 1.45; }
figcaption { margin-top: .75rem; color: #52616a; font: .64rem/1.5 var(--mono); }
.section, .contact { scroll-margin-top: 1.5rem; }
.work { padding: .65rem 0 clamp(3.2rem, 6vw, 5.25rem); }
.section-heading { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.7rem; }
.section-heading span { flex: 1; height: 1px; background: var(--line); }
.section-heading h2, .cap-lead h2, .contact h2 { font-size: clamp(2.05rem, 3.4vw, 3.2rem); line-height: 1.06; letter-spacing: -.045em; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cases article { padding-inline: clamp(1.2rem, 2.4vw, 2.4rem); border-left: 1px solid var(--line); }
.cases article:first-child { padding-left: 0; border: 0; }
.cases article:last-child { padding-right: 0; }
.cases h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); margin-block: .7rem; line-height: 1.12; letter-spacing: -.031em; text-wrap: balance; }
.cases article > p:last-child, dd, .contact-details p { line-height: 1.63; color: var(--muted); }
.capabilities { background: #e9edeb; border-block: 1px solid var(--line); }
.cap-inner, .contact { display: grid; grid-template-columns: .85fr 1.35fr; gap: clamp(2rem, 7vw, 7.5rem); padding-block: clamp(2.8rem, 5.3vw, 5rem); }
.cap-lead h2, .contact h2 { margin-top: .85rem; }
.cap-inner dl > div { display: grid; grid-template-columns: .8fr 1.35fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #bcc7c3; }
.cap-inner dl > div:first-child { padding-top: 0; border: 0; }
.cap-inner dl > div:last-child { padding-bottom: 0; }
dt { font-weight: 650; font-size: .98rem; line-height: 1.4; }
dd { font-size: .9rem; }
.contact { align-items: end; grid-template-columns: 1.25fr .8fr; }
.phone { display: inline-block; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; font: 400 clamp(1.65rem, 2.35vw, 2.2rem) var(--serif); letter-spacing: -.025em; }
.contact-details p { margin: .7rem 0 0; max-width: 22rem; }
.profile { color: var(--ink); text-decoration-color: #a7b2b3; text-underline-offset: .19em; }
.in-icon { display: inline-block; margin-left: .27em; vertical-align: .12em; font: 700 .67em/1.1 var(--sans); padding: .02em .12em; color: var(--paper); background: var(--blue); }
@media (max-width: 63rem) {
  .hero { gap: 2.4rem; grid-template-columns: 1fr 1fr; }
  .page-width { width: 90%; }
  .cap-inner { grid-template-columns: .72fr 1.4fr; gap: 2rem; }
}
@media (max-width: 47rem) {
  .page-width { width: min(90%, 35rem); }
  .masthead { min-height: 4.35rem; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 2.4rem; padding-block: 2.9rem 3.2rem; }
  h1 { font-size: clamp(3.25rem, 9.4vw, 4.1rem); }
  .worksheet { padding: 1.35rem; }
  .options span { min-height: 2.75rem; }
  .cases, .cap-inner, .contact { grid-template-columns: 1fr; }
  .section-heading { margin-bottom: 1.3rem; gap: .95rem; }
  .cases article, .cases article:first-child { padding: 1.3rem 0; border: 0; border-top: 1px solid var(--line); }
  .cases article:first-child { padding-top: 0; border: 0; }
  .cases article:last-child { padding-bottom: 0; }
  .cases h3 { margin: .4rem 0; }
  .cap-lead h2 br { display: none; }
  .cap-inner { gap: 1.6rem; }
  .contact { gap: 1.45rem; align-items: start; }
}
@media (max-width: 34rem) {
  .masthead { flex-wrap: wrap; gap: .3rem .7rem; padding-block: .95rem .65rem; }
  .wordmark { font-size: 1.3rem; }
  .mark { width: 1.35rem; height: 1.35rem; padding: 4px 3px; gap: 1.5px; margin-right: .1rem; }
  nav { gap: .78rem; }
  nav a { font-size: .76rem; }
  .cap-inner dl > div { grid-template-columns: 1fr; gap: .4rem; }
  .plot { --label-width: 6.4rem; }
}
@media (max-width: 25rem) {
  .masthead { align-items: start; flex-direction: column; }
  nav { gap: 1.25rem; }
  nav a { padding-block: .5rem; }
}
@media print {
  nav, .skip, .text-link { display: none; }
  .page-width { width: 100%; }
  .worksheet, .cases article, .cap-inner dl > div { break-inside: avoid; }
}
