/* SpringProd Labs — site styles
   Drafting-minimal sketchbook: hairline rules, cut-corner frames, light type.
   Light and dark follow the system setting; [data-theme] on <html> overrides it. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-400-latin.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: "Geist"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/geist-variable-latin.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: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/geist-mono-400-latin.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: "Outfit"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/outfit-variable-latin.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; }

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #0f2a4c;
  --text: #1f2f47;
  --muted: #5e6c83;
  --line: rgba(15, 42, 76, .34);
  --line-soft: rgba(15, 42, 76, .12);
  --hatch: rgba(15, 42, 76, .3);
  --gold: #c9950f;
  --gold-fill: #f0b429;
  --note: #44597b;
  --btn: #f0b429;
  --btn-ink: #0f2a4c;

  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-note: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-brand: "Outfit", "Geist", system-ui, sans-serif;

  --wrap: 1120px;
  --edge: 12px;                          /* guide rule distance from the viewport edge */
  --pad: clamp(18px, 4vw, 44px);         /* content inset from the guide rules */
  --section: clamp(56px, 9vw, 104px);
  --cut: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081221;
    --surface: #081221;
    --ink: #f4f6fa;
    --text: #dce3ee;
    --muted: #93a3bb;
    --line: rgba(255, 255, 255, .32);
    --line-soft: rgba(255, 255, 255, .12);
    --hatch: rgba(255, 255, 255, .3);
    --gold: #f6c549;
    --gold-fill: #f6c549;
    --note: #b4c2d8;
    --btn: #f6c549;
    --btn-ink: #081221;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081221;
  --surface: #081221;
  --ink: #f4f6fa;
  --text: #dce3ee;
  --muted: #93a3bb;
  --line: rgba(255, 255, 255, .32);
  --line-soft: rgba(255, 255, 255, .12);
  --hatch: rgba(255, 255, 255, .3);
  --gold: #f6c549;
  --gold-fill: #f6c549;
  --note: #b4c2d8;
  --btn: #f6c549;
  --btn-ink: #081221;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold-fill); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Layout: page column with hairline guide rules ---------- */
.wrap { width: min(100% - 2 * var(--edge), var(--wrap)); margin-inline: auto; padding-inline: var(--pad); }
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.guides::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: min(100% - 2 * var(--edge), var(--wrap)); transform: translateX(-50%); border-inline: 1px solid var(--line-soft); }
main, .site-header, .site-footer { position: relative; z-index: 1; }

.section { padding-block: var(--section); }
.rule { position: relative; }
.rule::before { content: ""; position: absolute; top: 0; left: 50%; width: min(100% - 2 * var(--edge), var(--wrap)); transform: translateX(-50%); border-top: 1px solid var(--line-soft); }
/* small registration crosses where a section rule meets the guide rules */
.rule > .wrap { position: relative; }
.rule > .wrap::before, .rule > .wrap::after {
  content: ""; position: absolute; top: calc(-1 * var(--section) - 5px); width: 11px; height: 11px;
  background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
}
.rule > .wrap::before { left: -6px; }
.rule > .wrap::after { right: -6px; }

/* ---------- Type ---------- */
.label { font: 400 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.note { font: italic 400 17px/1.35 var(--f-note); color: var(--note); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
h1, h2, h3 { color: var(--ink); font-weight: 400; }
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
h1 em, h2 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--gold-fill); text-decoration-thickness: 2px; text-underline-offset: .14em; }
h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; }
.lead { font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 48ch; }
.muted { color: var(--muted); }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 60ch; }
.dim { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 7px; }
.dim::before { background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) left center / 1px 7px no-repeat; }
.dim::after { background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) right center / 1px 7px no-repeat; }

/* ---------- Buttons and links ---------- */
.btn {
  --c: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 0; cursor: pointer;
  font: 500 14.5px/1.2 var(--f-sans); white-space: nowrap;
  background: var(--btn); color: var(--btn-ink);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: opacity .2s;
}
.btn:hover { opacity: .88; }
.btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--btn-ink); }
.btn-sm { padding: 9px 15px; font-size: 13px; --c: 7px; }
.link { font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color .2s; }
.link::after { content: " \2192"; color: var(--gold); }
.link:hover { border-color: var(--gold-fill); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header::after { content: ""; position: absolute; bottom: 0; left: 50%; width: min(100% - 2 * var(--edge), var(--wrap)); transform: translateX(-50%); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo { display: block; aspect-ratio: 745 / 1258; height: 46px; background: currentColor;
  -webkit-mask: url("../img/logo-sketch-192.webp") center / contain no-repeat; mask: url("../img/logo-sketch-192.webp") center / contain no-repeat; }
.logo-mark { display: block; height: 48px; width: auto; overflow: visible; }
.wordmark { display: grid; line-height: 1; }
.wordmark b { font: 500 19px/1 var(--f-brand); letter-spacing: -.005em; }
.wordmark i { font: 400 8.5px/1 var(--f-brand); font-style: normal; letter-spacing: .46em; margin-top: 5px; padding-left: 1px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 13.5px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: 0 1px 0 var(--gold-fill); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-soft); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--line); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.nav .nav-contact { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 32px; }
.hero-fig { color: var(--ink); justify-self: center; width: min(100%, 400px); }
.hero-fig svg { width: 100%; height: auto; overflow: visible; }
.fig-line { fill: none; stroke: var(--line); stroke-width: .8; }
.fig-soft { fill: none; stroke: var(--line-soft); stroke-width: .8; }
.fig-dash { fill: none; stroke: var(--line); stroke-width: .8; stroke-dasharray: 3 4; }
.fig-gold { fill: none; stroke: var(--gold-fill); stroke-width: 1; }
.fig-txt { font: 400 8px/1 var(--f-mono); letter-spacing: .08em; fill: var(--muted); }
.fig-note { font: italic 400 14px/1 var(--f-note); fill: var(--note); }
.fig-glow-a { stop-color: var(--gold-fill); stop-opacity: .34; }
.fig-glow-b { stop-color: var(--gold-fill); stop-opacity: 0; }

/* ---------- Cut-corner frame: sharp top-left and bottom-right, cut top-right and bottom-left ---------- */
.frame { position: relative; display: flex; }
.frame > .cut { flex: 1; }
.cut { position: relative; background: var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut::before { content: ""; position: absolute; inset: 1px; background: var(--surface); --c2: calc(var(--cut) - .586px);
  clip-path: polygon(0 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% 100%, var(--c2) 100%, 0 calc(100% - var(--c2))); }
.cut > * { position: relative; }
.hatch { position: absolute; width: var(--cut); height: var(--cut); pointer-events: none; background: repeating-linear-gradient(135deg, var(--hatch) 0 1px, transparent 1px 4px); }
.hatch.tr { right: 0; top: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hatch.bl { left: 0; bottom: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.frame.dashed > .cut { background: var(--line-soft); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 26px 26px 28px; display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; }
.ico { width: 60px; height: 60px; margin: 22px 0 14px; color: var(--ink); overflow: visible; }
.ico * { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ico .c { stroke: var(--line); stroke-dasharray: 2 3; }
.ico .g { stroke: var(--gold-fill); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card p.note { margin-top: auto; padding-top: 14px; color: var(--note); font-size: 16.5px; }
.card .sep { margin-top: 18px; border-top: 1px dashed var(--line-soft); }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.step { padding: 26px 24px 8px 0; border-right: 1px solid var(--line-soft); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; padding-right: 0; }
.step .num { font: 400 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--gold); }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Principles ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.deflist { display: grid; }
.deflist > div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.deflist > div:last-child { border-bottom: 1px solid var(--line-soft); }
.deflist dt { color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.deflist dd { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Work and resources ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 24px 24px 26px; min-height: 190px; display: flex; flex-direction: column; }
.tile h3 { margin: 16px 0 8px; }
.tile p { color: var(--muted); font-size: 14.5px; }
.tile .link { margin-top: auto; align-self: flex-start; }
.tile p + .link { margin-top: 18px; }
.tile.empty { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.tile.empty .note { font-size: 18px; }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); }
.status.live::before { background: var(--gold-fill); border-color: var(--gold-fill); }

/* ---------- Contact band ---------- */
.contact .frame, .frame-lg { --cut: 28px; }
.contact-body { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.contact-body h2 { margin: 14px 0 12px; }
.contact-body > .btn, .contact-body > .mail { justify-self: start; }
.mail { font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); letter-spacing: -.02em; border-bottom: 1px solid var(--gold-fill); padding-bottom: 2px; }

/* ---------- Interior pages ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 58px); margin: 20px 0 20px; max-width: 18ch; }
.page-hero .lead { max-width: 58ch; }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.page-hero .fig-tag { text-align: right; }

.service { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.service-head .card-top { max-width: 280px; }
.service-head h2 { margin: 6px 0 14px; }
.service-head p { color: var(--muted); max-width: 46ch; }
.service-head p.note { margin-top: 18px; color: var(--note); }
.service-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.listbox { padding: 24px 24px 26px; }
.listbox h3 { margin: 12px 0 14px; }
.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--gold); }

.prose { max-width: 62ch; display: grid; gap: 18px; }
.prose p { color: var(--muted); }
.prose p.lead { color: var(--text); max-width: none; }
.person { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.person-card { padding: 28px; display: grid; gap: 6px; }
.person-card .monogram { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 16px; color: var(--ink); border: 1px solid var(--line); font: 400 22px/1 var(--f-sans); letter-spacing: .04em;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); background: var(--line-soft); }
.person-card h3 { font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.facts { margin-top: 14px; display: grid; }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 18px; align-items: stretch; }
.contact-card { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.contact-card .mail { align-self: flex-start; margin-top: 6px; }
.band { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.band h2 { max-width: 22ch; }
.more-row { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer.rule > .wrap::before, .site-footer.rule > .wrap::after { top: -45px; }
.site-footer { padding-block: 40px 48px; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-footer .logo { height: 40px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a:hover { color: var(--ink); }
.foot-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { padding: 24px 22px 24px 0; }
  .step:nth-child(2) { border-right: 0; padding-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .cards, .tiles { grid-template-columns: 1fr 1fr; }
  .service, .person { grid-template-columns: 1fr; }
  .cards > :last-child:nth-child(odd), .tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .statement { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-grid; }
  .site-header .wrap { gap: 10px; }
  .theme-toggle { margin-left: auto; }
  .site-header .btn { display: none; }
  .nav { position: absolute; left: var(--edge); right: var(--edge); top: 100%; margin: 0; padding: 8px var(--pad) 18px; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border: 1px solid var(--line-soft); border-top: 0; font-size: 16px; color: var(--ink); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }
  .nav.open { display: flex; }
  .nav .nav-contact { display: block; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-fig { order: -1; width: min(78%, 300px); }
  .cards, .tiles { grid-template-columns: 1fr; }
  .cards > :last-child:nth-child(odd), .tiles > :last-child:nth-child(odd) { grid-column: auto; }
  .contact-body { grid-template-columns: 1fr; align-items: start; }
  .page-hero .wrap, .service, .person, .contact-grid { grid-template-columns: 1fr; }
  .page-hero .fig-tag { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .deflist > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 520px) {
  .service-lists { grid-template-columns: 1fr; }
  .logo-mark { height: 44px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step, .step:nth-child(3) { padding: 22px 0; border-right: 0; border-top: 1px solid var(--line-soft); }
  .step:first-child { border-top: 0; }
  .logo { height: 42px; }
}
