/* Hoard Studios -- shared styles. A drafting-sheet look: paper, ink, hairlines and one safety orange.
   Colours and fonts live in :root; change them here to restyle every page. */

:root {
	--paper: #edece6;        /* page */
	--paper-2: #e4e3dc;      /* alternate sections */
	--sheet: #f7f6f2;        /* cards, panels */
	--ink: #1e1e1c;          /* headings, lines */
	--ink-2: rgba(30, 30, 28, 0.74);  /* body text */
	--ink-3: #85847e;        /* labels, captions */
	--line: #cdccc5;         /* hairlines */
	--line-2: #aeada6;       /* stronger hairlines */
	--accent: #f04e0f;       /* safety orange */
	--accent-ink: #ffffff;
	--go: #2f8f57;
	--warn: #e3a21a;
	--bad: #d42a1e;
	--block-bg: #1e1e1c;     /* contact band and footer */
	--block-fg: #edece6;
	--block-line: #3a3a37;
	--nav-bg: rgba(237, 236, 230, 0.92);
	--maxw: 1240px;
	--font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
	--mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font); font-size: 16px; line-height: 1.55; font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, iframe, canvas { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* small mono labels, the "[01]" kind */
.label, .eyebrow {
	font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em;
	text-transform: uppercase; color: var(--ink-3);
}
.eyebrow { color: var(--accent); margin: 0 0 18px; display: block; }
.num { font-family: var(--mono); color: var(--accent); font-size: 12px; font-weight: 500; }

/* a frame with crosshair corners */
.frame { position: relative; border: 1px solid var(--line); }
.frame::before, .frame::after, .frame > .x1, .frame > .x2 {
	content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat;
}
.frame::before { top: -6px; left: -6px; }
.frame::after { top: -6px; right: -6px; }
.frame > .x1 { bottom: -6px; left: -6px; }
.frame > .x2 { bottom: -6px; right: -6px; }

/* ---- Navigation ---------------------------------------------------------- */

.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: stretch; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; font-size: 15px; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: stretch; }
.nav-links a {
	display: flex; align-items: center; padding: 0 20px; border-left: 1px solid var(--line);
	font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
	color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav-links a:last-child { border-right: 1px solid var(--line); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--sheet); }
.nav-links a.cta { color: var(--accent); }
.nav-links .short { display: none; }

/* ---- Type and buttons ---------------------------------------------------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 0.98; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 88px); }
h2 { font-size: clamp(30px, 3.8vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.1; }
h2 .dim, h1 .dim { color: var(--line-2); }
p { margin: 0; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.section-intro { color: var(--ink-2); max-width: 56ch; margin-top: 18px; }

.buttons { display: flex; gap: 0; flex-wrap: wrap; }
.btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px;
	font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
	border: 1px solid var(--ink); color: var(--ink); background: transparent; text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.btn + .btn { margin-left: -1px; }
.btn::after { content: "\2192"; font-family: var(--font); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.disabled { opacity: 0.55; pointer-events: none; }

.tags { display: flex; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line-2); padding: 6px 10px; margin: 0 -1px -1px 0; }

/* ---- Hero ---------------------------------------------------------------- */

.hero { border-bottom: 1px solid var(--line); }
.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; border-bottom: 1px solid var(--line); }
.hero-top > div { padding: 56px 32px 40px 0; }
.hero-top > div + div { padding-left: 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.meta dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-3); }
.meta dd { margin: 0; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; }

.stage { position: relative; background: var(--sheet); }
.stage canvas { width: 100%; height: 100%; }
.hero .stage { height: min(68vh, 640px); margin: 28px 0; }
.readout { position: absolute; display: flex; gap: 22px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.readout b { font-weight: 500; color: var(--ink); }
.readout b.bad { color: var(--bad); }
.readout b.good { color: var(--go); }
.readout.tl { top: 14px; left: 16px; }
.readout.tr { top: 14px; right: 16px; }
.readout.bl { bottom: 14px; left: 16px; }
.readout.br { bottom: 14px; right: 16px; }

/* ---- Scroll story -------------------------------------------------------- */

.story { position: relative; height: 280vh; border-bottom: 1px solid var(--line); }
.story-pin { position: sticky; top: 56px; height: calc(100vh - 56px); display: grid; grid-template-columns: 380px 1fr; }
.story-text { position: relative; border-right: 1px solid var(--line); padding: 40px 32px; display: flex; flex-direction: column; }
.story-steps { position: relative; flex: 1; }
.story-step { position: absolute; inset: auto 0 0 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.12s, transform 0.12s, visibility 0s 0.12s; }
.story-step.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s 0.12s, transform 0.35s 0.12s, visibility 0s 0.12s; }
.story-step h3 { font-size: 30px; margin: 10px 0 14px; }
.story-step p { color: var(--ink-2); }
.story-step .num { display: block; }
.story-bar { height: 2px; background: var(--line); margin-top: 28px; }
.story-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.story .stage { margin: 24px; }
.story.static { height: auto; }
.story.static .story-pin { position: static; height: auto; grid-template-columns: 1fr; }
.story.static .story-step { position: static; opacity: 1; transform: none; margin-bottom: 28px; }
.story.static .stage { height: 70vh; }

/* ---- Sections ------------------------------------------------------------ */

section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }

/* numbered card grid with shared hairlines */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.card { padding: 26px 24px 30px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: transparent; transition: background 0.15s; }
.card:hover { background: var(--sheet); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 44px; }
.card .icon { width: 22px; height: 22px; color: var(--ink); }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* product block on the studio page */
.product { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--sheet); }
.product .media { border-right: 1px solid var(--line); min-height: 340px; position: relative; }
.product .body { padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.product .body p { color: var(--ink-2); }
.status { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--accent); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--sheet); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.placeholder strong { display: block; font-size: clamp(22px, 3vw, 36px); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 8px; }
.placeholder span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-3); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); counter-reset: c; }
.checks li { position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); counter-increment: c; }
.checks li::before { content: "[" counter(c, decimal-leading-zero) "]"; position: absolute; left: 0; top: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.checks li strong { color: var(--ink); font-weight: 600; }

.contact { background: var(--block-bg); color: var(--block-fg); border-bottom: 0; border-top: 1px solid var(--block-line); }
.contact h2 { color: var(--block-fg); }
.contact .lead { color: var(--block-fg); opacity: 0.72; margin-top: 18px; }
.contact .label { color: var(--block-fg); opacity: 0.5; }
.contact .btn { border-color: var(--block-fg); color: var(--block-fg); }
.contact .btn:hover { background: var(--block-fg); color: var(--block-bg); }
.contact .btn.primary { border-color: var(--accent); color: var(--accent-ink); }
.contact .btn.primary:hover { background: var(--block-fg); border-color: var(--block-fg); color: var(--block-bg); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }

/* ---- Docs ---------------------------------------------------------------- */

.docs { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.toc { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; border-right: 1px solid var(--line); padding: 32px 24px 32px 0; }
.toc h4 { margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; color: var(--ink-2); font-size: 14px; text-decoration: none; border-bottom: 1px solid transparent; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.toc a .sw { width: 7px; height: 7px; flex: none; align-self: center; margin-left: auto; }
.toc a:hover { color: var(--ink); }
.docs main { padding: 48px 0 96px 48px; min-width: 0; }

.doc-head { padding-bottom: 36px; margin-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.doc-head h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.doc-head p { color: var(--ink-2); max-width: 66ch; }

.doc { padding: 44px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 170px 1fr; gap: 0 32px; }
.doc .side { display: flex; flex-direction: column; gap: 10px; }
.doc .side .sw { width: 100%; height: 3px; background: var(--c, var(--accent)); }
.doc h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 12px; }
.doc .summary { color: var(--ink); font-weight: 500; font-size: 18px; margin: 0 0 12px; }
.doc .body > p { color: var(--ink-2); margin: 0 0 8px; }
.doc h3 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); margin: 28px 0 10px; }
.doc ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.doc li { color: var(--ink-2); padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); position: relative; }
.doc li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 8px; height: 1px; background: var(--ink); }
.doc code, .docs code { font-family: var(--mono); font-size: 0.86em; background: var(--sheet); border: 1px solid var(--line); padding: 1px 6px; color: var(--ink); }
.back-top { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); display: inline-block; margin-top: 20px; text-decoration: none; }

/* ---- Footer -------------------------------------------------------------- */

footer { background: var(--block-bg); color: var(--block-fg); border-top: 1px solid var(--block-line); }
footer span { opacity: 0.55; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; }
footer a { color: var(--block-fg); opacity: 0.8; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---- Themes ------------------------------------------------------------
   The page sets one on <html>. t-amber: the drafting sheet with the logo's gold as its accent.
   t-studio: the logo's world, a dark hall lit by gold. A class on any wrapper re-themes just that part. */

.t-amber {
	--paper: #edece6;
	--paper-2: #e4e3dc;
	--sheet: #f7f6f2;
	--ink: #1e1e1c;
	--ink-2: rgba(30, 30, 28, 0.74);
	--ink-3: #85847e;
	--line: #cdccc5;
	--line-2: #aeada6;
	--accent: #b8730c;
	--accent-ink: #ffffff;
	--go: #2f8f57;
	--warn: #d9b62c;
	--bad: #d42a1e;
	--sc-top: #f7f6f2;
	--sc-l: #e2e0d8;
	--sc-r: #cfcdc4;
	--sc-roof-l: #d9d7cf;
	--sc-roof-r: #c6c4bb;
	--sc-floor-top: #e9e8e2;
	--sc-floor-l: #d8d6ce;
	--sc-floor-r: #cbc9c0;
	--sc-line: 0.9;
	color-scheme: light;
}
.t-studio {
	--paper: #0a0a0a;
	--paper-2: #0f0f0f;
	--sheet: #151515;
	--ink: #f1e6cf;
	--ink-2: rgba(241, 230, 207, 0.72);
	--ink-3: #8f8a80;
	--line: #2a2a2a;
	--line-2: #444444;
	--accent: #e2a945;
	--accent-ink: #0a0a0a;
	--go: #55c486;
	--warn: #d9b62c;
	--bad: #ec5545;
	--block-bg: #000000;
	--block-fg: #f1e6cf;
	--block-line: #2a2a2a;
	--nav-bg: rgba(10, 10, 10, 0.9);
	--sc-top: #262626;
	--sc-l: #1d1d1d;
	--sc-r: #151515;
	--sc-roof-l: #232323;
	--sc-roof-r: #1a1a1a;
	--sc-floor-top: #121212;
	--sc-floor-l: #0d0d0d;
	--sc-floor-r: #090909;
	--sc-line: 0.62;
	color-scheme: dark;
}
.t-studio body, body.t-studio { background: var(--paper); }
.t-amber, .t-studio { color: var(--ink); }

/* gold leaf text, from the logo's metal */
.gold { color: var(--accent); }

/* a hairline with the diamond knot from the H */
.knot { display: flex; align-items: center; gap: 14px; color: var(--accent); }
.knot::before, .knot::after { content: ""; height: 1px; flex: 1; background: var(--line-2); }
.knot i { width: 9px; height: 9px; border: 1px solid currentColor; transform: rotate(45deg); }
.knot i + i { width: 5px; height: 5px; background: currentColor; margin-left: -9px; }

/* studio hero */
.studio-hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.studio-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.studio-grid h1 { margin: 0 0 26px; }
.studio-grid .lead { margin-bottom: 30px; }
.crest { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
/* gold haze behind the crest, removed 2026-10-12 to try it without:
.crest::before {
	content: ""; position: absolute; inset: -18%;
	background: radial-gradient(closest-side, rgba(226, 169, 69, 0.34), rgba(226, 169, 69, 0.1) 55%, transparent 72%);
} */
.crest img { position: relative; width: 88%; height: auto; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin: 0; }
.strip > div { padding: 18px 20px 22px 0; }
.strip > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.strip dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.strip dd { margin: 0; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

/* the product card's drawing keeps its own theme on the studio page */
.product .media.t-amber, .product .media.t-studio { background: var(--sheet); }
.product .media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.product .media .readout { color: var(--ink-3); }

/* preview switch (not part of the real site) */
.pv { position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; background: #1e1e1c; border: 1px solid #57534c; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.pv span { color: #9a968d; padding: 9px 12px; }
.pv a { color: #edece6; padding: 9px 12px; text-decoration: none; border-left: 1px solid #57534c; }
.pv a.on { background: #e2a945; color: #120e0a; }
.pv a:focus-visible, .btn:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Small screens ------------------------------------------------------- */

@media (max-width: 960px) {
	.studio-grid { grid-template-columns: 1fr; padding: 40px 0 36px; gap: 32px; }
	.crest { order: -1; justify-self: center; max-width: 300px; }
	.strip { grid-template-columns: 1fr 1fr; }
	.strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.hero-top, .section-head, .product, .split, .contact-grid { grid-template-columns: 1fr; }
	.hero-top > div { padding: 40px 0 28px; }
	.hero-top > div + div { padding: 0 0 32px; border-left: 0; }
	.grid { grid-template-columns: 1fr 1fr; }
	.product .media { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
	.split { gap: 40px; }
	.story-pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
	.story .stage { margin: 12px 0 0; order: -1; }
	.story-text { border-right: 0; border-top: 1px solid var(--line); padding: 16px 0 20px; min-height: 290px; }
	.story-steps { margin-top: 12px; }
	.story-step h3 { font-size: 24px; margin: 6px 0 8px; }
	.story-step p { font-size: 15px; }
	.docs { grid-template-columns: 1fr; }
	.toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
	.toc ol { columns: 2; column-gap: 24px; }
	.docs main { padding: 32px 0 72px; }
	.doc { grid-template-columns: 1fr; }
	.doc .side { flex-direction: row; align-items: center; margin-bottom: 12px; }
	.doc .side .sw { width: 32px; }
}
@media (max-width: 600px) {
	.pv span { display: none; }
	.wrap { padding: 0 16px; }
	section { padding: 64px 0; }
	.grid { grid-template-columns: 1fr; }
	.nav-links a { padding: 0 12px; font-size: 11px; }
	.nav-links .hide-sm { display: none; }
	.nav-links .long { display: none; }
	.nav-links .short { display: inline; }
	.brand span { display: none; }
	.hero .stage { height: 52vh; margin: 16px 0; }
	.readout { gap: 12px; font-size: 10px; }
	.readout.tr, .readout.br { display: none; }
	.toc ol { columns: 1; }
	.btn { padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.status::before { animation: none; }
}
