/* Fagom — tokens from tempered spring steel: zinc paper, graphite, temper blue, brand red, straw */
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Archivo"; src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "osifont"; src: url(/fonts/osifont.ttf) format("truetype"); font-display: swap; }

:root {
  --paper: #e9ecee; --sheet: #f6f7f8; --ink: #1c2126; --ink-2: #4a535c; --line: #b9c0c6;
  --blue: #2f4a7a; --red: #dd3333; --red-ink: #b4232a; --straw: #c8a246;
  --display: "Archivo", "Arial Narrow", sans-serif; --body: "Archivo", system-ui, sans-serif; --iso: "osifont", "Archivo", sans-serif;
  --wrap: 1240px; --gut: clamp(16px, 4vw, 40px); --sp: clamp(56px, 8vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); font-stretch: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* type */
h1, h2, h3, .h-page, .h-section { font-family: var(--display); font-stretch: 125%; font-weight: 780; letter-spacing: -.015em; line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1, .h-page { font-size: clamp(2.05rem, 4vw, 3.4rem); }
h2, .h-section { font-size: clamp(1.55rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.2rem; font-stretch: 112%; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 36em; }
.eyebrow, .iso { font-family: var(--iso); font-size: 1.05rem; letter-spacing: .02em; color: var(--blue); margin: 0 0 .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--straw); vertical-align: middle; margin-right: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: .7em 1.25em; font: 650 1rem/1.1 var(--body); font-stretch: 108%; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand img { height: 60px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-stretch: 106%; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--red); }
.lang-switch { font-family: var(--iso); font-size: 1rem; color: var(--ink-2); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; font: 600 1rem var(--body); background: none; border: 2px solid var(--ink); padding: 8px 14px; min-height: 44px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sheet); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lang-switch { padding: 14px 0; }
}

/* sections */
.section { padding-block: var(--sp); }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 44px; }
.section__head p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) var(--sp); }
.hero__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__sheet { margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); padding: clamp(10px, 2vw, 22px); position: relative; }
.hero__sheet::before, .hero__sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--ink); }
.hero__sheet::before { top: -8px; left: -8px; border-width: 0 1.5px 1.5px 0; }
.hero__sheet::after { bottom: -8px; right: -8px; border-width: 1.5px 0 0 1.5px; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }

/* drawings */
.drawing { width: 100%; }
.dw-wire, .dw-core { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dw-wire { stroke: var(--ink); }
.dw-core { stroke: var(--sheet); }
.dw-hiddenline { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.dw-center { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 22 5 3 5; opacity: .55; }
.dw-ext { stroke: var(--blue); stroke-width: .9; opacity: .8; }
.dw-dim line, .dw-dim path { stroke: var(--blue); stroke-width: 1.2; fill: none; }
.dw-arrowhead { fill: var(--blue); }
.dw-label { font-family: var(--iso); font-size: 22px; fill: var(--blue); }
.dw-note { font-size: 18px; }
.dw-sub { font-size: 15px; }
.dw-caption { font-family: var(--iso); font-size: 12px; fill: var(--ink-2); }
.dw-f { stroke: var(--red); stroke-width: 2.2; }
.dw-force text { fill: var(--red); }
.dw-force { opacity: 0; }
.dw-clamp { fill: var(--sheet); stroke: var(--ink); stroke-width: 2.5; }
.drawing--card .dw-caption, .drawing--card .dw-note { display: none; }
.drawing--card .dw-label { font-size: 26px; }

/* signature moment: dimensions draw in, spring takes load once */
@media (prefers-reduced-motion: no-preference) {
  .drawing--hero .dw-dim line, .drawing--hero .dw-dim path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dw-draw .9s cubic-bezier(.6,0,.2,1) forwards; }
  .drawing--hero .dw-dim:nth-of-type(2) line { animation-delay: .25s; }
  .drawing--hero .dw-dim:nth-of-type(3) line { animation-delay: .5s; }
  .drawing--hero .dw-dim text, .drawing--hero .dw-note { opacity: 0; animation: dw-fade .5s ease .9s forwards; }
  .drawing--hero .dw-body { transform-box: view-box; transform-origin: 70px 0; animation: dw-load 1.6s cubic-bezier(.45,0,.25,1) 1.5s 1 both; }
  .drawing--hero .dw-force { animation: dw-force 1.6s cubic-bezier(.45,0,.25,1) 1.5s 1 both; }
}
@media (prefers-reduced-motion: reduce) { .dw-force { display: none; } }
@keyframes dw-draw { to { stroke-dashoffset: 0; } }
@keyframes dw-fade { to { opacity: 1; } }
@keyframes dw-load { 0%, 100% { transform: scaleX(1); } 45%, 55% { transform: scaleX(.84); } }
@keyframes dw-force { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 45%, 55% { opacity: 1; transform: translateX(-69px); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }

/* process: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: step; padding: 22px 24px 4px 0; position: relative; }
.steps li::before { content: counter(step); font-family: var(--iso); font-size: 1.6rem; color: var(--blue); display: block; margin-bottom: 8px; }
.steps li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* products */
.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.product-card a { display: flex; flex-direction: column; height: 100%; background: var(--sheet); color: var(--ink); text-decoration: none; padding: 18px 18px 22px; }
.product-card a:hover { background: #fff; }
.product-card a:hover .product-card__name { color: var(--red-ink); }
.product-card__fig { display: block; aspect-ratio: 16 / 11; margin: -4px -6px 14px; }
.product-card__fig svg { width: 100%; height: 100%; }
.product-card__name { font-family: var(--display); font-stretch: 115%; font-weight: 720; font-size: 1.12rem; line-height: 1.2; margin-bottom: 6px; }
.product-card__desc { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } .product-card a { padding: 12px 12px 16px; } }

/* spec table */
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec div { padding: 18px 20px 20px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.spec div:first-child { padding-left: 0; }
.spec div:last-child { border-right: 0; }
.spec dt { font-family: var(--iso); color: var(--blue); font-size: 1rem; margin-bottom: 4px; }
.spec dd { margin: 0; font-weight: 650; font-stretch: 108%; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 800px) { .spec { grid-template-columns: 1fr 1fr; } .spec div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; } }

/* split media */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split picture img { width: 100%; border: 1px solid var(--line); }
.split .spec { grid-template-columns: 1fr 1fr; }
.split .spec div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
.split .spec div:nth-child(odd) { padding-right: 20px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* posts */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card a { display: block; color: var(--ink); text-decoration: none; }
.post-card__img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.post-card time { display: block; font-family: var(--iso); color: var(--blue); margin: 14px 0 4px; }
.post-card__title { font-weight: 680; font-stretch: 106%; font-size: 1.12rem; line-height: 1.3; }
.post-card a:hover .post-card__title { color: var(--red-ink); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .posts { grid-template-columns: 1fr; } }

/* call to action band */
.cta-band { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 88px); }
.cta-band__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #c9cfd4; margin: 0; }
.cta-band .actions { margin-top: 0; justify-content: flex-end; }
.cta-band .btn--line { border-color: #fff; color: #fff; }
.cta-band .btn--line:hover { background: #fff; color: var(--ink); }
@media (max-width: 800px) { .cta-band__in { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* page header + prose */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.crumbs { font-family: var(--iso); font-size: 1rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.prose { max-width: 70ch; font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .75em; }
.prose li::marker { font-family: var(--iso); color: var(--blue); }
.post { padding-block: clamp(32px, 5vw, 64px) var(--sp); }
.post__head { max-width: 900px; }
.post__date { font-family: var(--iso); color: var(--blue); }
.post__img { display: block; max-width: 900px; margin: 28px 0 40px; }
.post__img img { width: 100%; border: 1px solid var(--line); }
.cta-box { max-width: 70ch; margin-top: 48px; padding: 24px 26px; border: 1.5px solid var(--ink); background: var(--sheet); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-box p { margin: 0; font-weight: 650; font-stretch: 108%; font-size: 1.15rem; }

/* product page */
.product-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-hero .hero__sheet { order: 2; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } .product-hero .hero__sheet { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 2px; background: var(--straw); }
.checklist b { font-weight: 650; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 0; display: grid; border-top: 1.5px solid var(--ink); }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--iso); color: var(--blue); }
.contact-list dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.form { background: var(--sheet); border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 620; font-size: .98rem; }
.field .hint { font-family: var(--iso); color: var(--ink-2); font-size: .95rem; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 2px; padding: 11px 12px; min-height: 48px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.field input[type=file] { padding: 10px; background: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-state=ok] { color: #1d6b3a; }
.form-status[data-state=error] { color: var(--red-ink); }

/* footer = drawing title block */
.site-footer { padding-block: 56px 28px; }
.titleblock { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); background: var(--sheet); }
.tb { padding: 10px 14px 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 2px; font-size: .98rem; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.tb a { color: var(--ink); }
.tb__k { font-family: var(--iso); color: var(--blue); font-size: .92rem; }
.tb--name { grid-row: span 2; justify-content: center; gap: 10px; }
.tb--name img { width: 150px; }
.tb--name span { font-weight: 650; font-stretch: 108%; }
.titleblock > :nth-child(5), .titleblock > :nth-child(9) { border-right: 0; }
.titleblock > :nth-child(n+6) { border-bottom: 0; }
.tb--sheet span:last-child { font-weight: 700; font-stretch: 110%; }
.footer-meta { font-family: var(--iso); color: var(--ink-2); margin: 14px 0 0; }
.footer-meta a { color: var(--ink-2); }
@media (max-width: 900px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb--name { grid-column: 1 / -1; grid-row: auto; }
  .titleblock > * { border-right: 1px solid var(--ink) !important; border-bottom: 1px solid var(--ink) !important; }
  .titleblock > :nth-child(odd):not(.tb--name) { border-right: 0 !important; }
  .titleblock > :last-child { border-bottom: 0 !important; grid-column: 1 / -1; }
}

/* sitemap / misc */
.sitemap-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.sitemap-list { padding-left: 1.1em; }
.sitemap-list li { margin-bottom: .4em; }
@media (max-width: 700px) { .sitemap-cols { grid-template-columns: 1fr; } }

.split--top { align-items: start; }
.prose picture { margin-top: 28px; }
.prose picture img { width: 100%; border: 1px solid var(--line); background: #fff; }
.page-intro { max-width: 60ch; }
.notfound { padding-block: var(--sp); }

.spec--stack { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
.spec--stack div { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
