/* Wretched Hive Creations: dark workshop. Logo orange + yellow on soot, bone text, hive-cell texture. */
:root {
  color-scheme: dark;
  --bg: #1a1e41;          /* logo navy */
  --surface: #20264f;
  --line: #353c70;
  --fg: #f4efe6;
  --muted: #a9adcb;
  --coral: #f5684d;       /* sunset band 1 */
  --orange: #f17e3d;      /* sunset band 2 */
  --yellow: #f3a342;      /* sunset band 3 */
  --on-accent: #1a1e41;
  --display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f1e8; --surface: #ece4d6; --line: #d6cab8; --fg: #1a1e41; --muted: #5d6185;
    --coral: #d9472c; --orange: #c4531a; --yellow: #9a6510; --on-accent: #1a1e41; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f1e8; --surface: #ece4d6; --line: #d6cab8; --fg: #1a1e41; --muted: #5d6185;
  --coral: #d9472c; --orange: #c4531a; --yellow: #9a6510; --on-accent: #1a1e41; color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--fg); font: 400 1rem/1.65 var(--body); margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--orange); color: var(--on-accent); padding: 8px 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: .95; text-transform: uppercase; letter-spacing: .01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0; }
.prose { display: grid; gap: 1em; max-width: 64ch; }
.prose p, .lede { color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--orange); }
.lede { font-size: 1.12rem; max-width: 52ch; }
.eyebrow { font: 600 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
section { padding-block: clamp(56px, 9vw, 112px); }
.alt { background: var(--surface); }
.hive {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 64v33M0 81l2-1M56 81l-2-1' fill='none' stroke='%23f3a342' stroke-opacity='.12' stroke-width='1.2'/%3E%3C/svg%3E");
}

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { height: 40px; width: auto; flex: none; }
.brand span b { color: var(--yellow); }
.brand span { font: 900 1.15rem/0.9 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.brand span b { display: block; color: var(--orange); font-weight: 700; font-size: .72rem; letter-spacing: .3em; }
.nav ul { list-style: none; display: flex; gap: clamp(12px, 2.2vw, 28px); margin: 0; padding: 0; }
.nav a { text-decoration: none; font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--orange); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 2px; background: var(--orange); color: var(--on-accent); font: 700 1rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn:hover { background: var(--yellow); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--orange); color: var(--orange); }
@media (max-width: 860px) { .nav { display: none; } .top .btn { padding: 10px 14px; font-size: .9rem; } }
.mobnav { display: none; border-top: 1px solid var(--line); }
.mobnav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 18px; overflow-x: auto; }
.mobnav a { text-decoration: none; font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.mobnav a[aria-current="page"] { color: var(--orange); }
@media (max-width: 860px) { .mobnav { display: block; } }

/* media with fallback */
.media { position: relative; overflow: hidden; background: var(--surface); max-width: 100%; margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.media .ph { position: absolute; inset: 0; display: none; place-content: center; text-align: center; padding: 16px; gap: 8px; }
.media.noimg .ph { display: grid; }
.ph .glyph { font: 900 clamp(1.8rem, 5vw, 3.4rem)/1 var(--display); color: var(--orange); text-transform: uppercase; }
.ph .lbl { font: 400 .68rem/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; word-break: break-all; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 88px) 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero h1 { font-size: clamp(3.2rem, 9.5vw, 8.2rem); }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-figure { margin: 0; min-width: 0; }
.hero-figure .media { aspect-ratio: 4/5; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%, 0 14%); }
figcaption, .cap { font: 400 .72rem/1.45 var(--mono); color: var(--muted); letter-spacing: .03em; margin-top: 10px; }
.specbar { margin-top: clamp(40px, 6vw, 72px); border-block: 1px solid var(--line); }
.specbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 18px 16px 18px 0; border-right: 1px solid var(--line); min-width: 0; }
.spec + .spec { padding-left: 16px; }
.spec:last-child { border-right: 0; }
.spec .v { font: 700 1.6rem/1 var(--display); text-transform: uppercase; }
.spec .k { font: 400 .7rem/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; }
  .specbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .spec:nth-child(3) { padding-left: 0; }
}

/* section heads */
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.head > p { max-width: 46ch; color: var(--muted); }
.more { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--orange); text-decoration: none; }
.more:hover { color: var(--yellow); }

/* work grid */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font: 600 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .n { opacity: .6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .media { aspect-ratio: 4/5; }
.card:hover img { transform: scale(1.04); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font-size: 1.45rem; }
.card .cat { font: 400 .7rem/1 var(--mono); color: var(--orange); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.card .sub { font-size: .9rem; color: var(--muted); margin-top: -6px; }
.card:hover h3 { color: var(--yellow); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

/* process */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--orange); }
.steps li { padding: 20px 20px 0 0; min-width: 0; }
.steps .no { font: 600 .74rem/1 var(--mono); color: var(--orange); letter-spacing: .1em; }
.steps h3 { font-size: 1.8rem; margin: 14px 0 10px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 8px 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split .media { aspect-ratio: 16/11; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.mat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mat div { background: var(--bg); padding: 16px; }
.mat b { font: 700 1.3rem/1 var(--display); text-transform: uppercase; display: block; margin-bottom: 6px; }
.mat span { font-size: .88rem; color: var(--muted); }

/* services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc a { background: var(--bg); padding: 24px; text-decoration: none; display: grid; gap: 10px; align-content: start; min-width: 0; }
.svc a:hover h3 { color: var(--orange); }
.svc p { color: var(--muted); font-size: .94rem; }
.svc .no { font: 600 .7rem/1 var(--mono); color: var(--orange); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } }
.svc-block + .svc-block { margin-top: clamp(56px, 8vw, 96px); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* quotes */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
blockquote { margin: 0; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); display: grid; gap: 20px; align-content: space-between; }
blockquote p { font: 700 clamp(1.4rem, 2.5vw, 2rem)/1.1 var(--display); text-transform: uppercase; }
blockquote p::before { content: "\201C"; color: var(--orange); }
blockquote p::after { content: "\201D"; color: var(--orange); }
blockquote cite { font: normal 400 .74rem/1 var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font: 700 1.35rem/1.15 var(--display); text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-family: var(--mono); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details > div { padding-bottom: 20px; color: var(--muted); max-width: 62ch; display: grid; gap: .8em; }
details a { color: var(--orange); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* cta band + contact */
.band { background: linear-gradient(180deg, #f5684d, #f17e3d 55%, #f3a342); color: #1a1e41; box-shadow: inset 0 6px 0 #1a1e41; }
.band .eyebrow { color: #1a1e41; }
.band .wrap { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 14ch; }
.band .btn { background: #1a1e41; color: #f4efe6; }
.band .btn:hover { background: #f4efe6; color: #1a1e41; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact dl { display: grid; gap: 20px; margin: 0; }
.contact dt { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 6px; }
.contact dd { margin: 0; font-size: 1.05rem; }
.copyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copyrow code { font: 600 1rem var(--mono); user-select: all; word-break: break-all; }
.mini { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; background: transparent; color: var(--fg); border: 1px solid var(--line); padding: 6px 10px; cursor: pointer; border-radius: 2px; }
form { display: grid; gap: 14px; align-content: start; }
label { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; display: grid; gap: 8px; color: var(--muted); }
input, textarea, select { font: 400 1rem/1.4 var(--body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 2px; padding: 14px; width: 100%; }
textarea { min-height: 160px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sent { font: 600 .85rem/1.4 var(--mono); color: var(--orange); }
@media (max-width: 860px) { .contact, .row2 { grid-template-columns: 1fr; } }

/* project page */
.crumbs { font: 400 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange); }
.proj-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.proj-hero .media { aspect-ratio: 4/5; }
.proj-hero aside { display: grid; gap: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); min-width: 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.facts dt { font: 600 .7rem/1.7 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--orange); }
.facts dd { margin: 0; min-width: 0; }
@media (max-width: 860px) { .proj-hero { grid-template-columns: 1fr; } .proj-hero aside { position: static; } }
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 20px; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.gallery .media img { height: auto; }
.gallery .media.noimg { aspect-ratio: 4/5; }
.gallery button:hover img { transform: scale(1.03); }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.pager a { text-decoration: none; display: grid; gap: 6px; min-width: 0; }
.pager a:last-child { text-align: right; }
.pager small { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pager span { font: 700 1.35rem/1.05 var(--display); text-transform: uppercase; }
.pager a:hover span { color: var(--orange); }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; color: var(--fg); }
dialog.lb::backdrop { background: rgb(12 14 32 / .92); }
dialog.lb img { max-height: 82vh; width: auto; display: block; margin-inline: auto; }
dialog.lb p { font: 400 .78rem/1.4 var(--mono); color: #efe6d8; text-align: center; margin-top: 12px; }
dialog.lb .x { position: fixed; top: 16px; right: 16px; }
dialog.lb .mini { color: #efe6d8; border-color: #efe6d8; }

/* footer */
footer { padding-block: 48px; border-top: 1px solid var(--line); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; font-size: .92rem; color: var(--muted); }
footer h3 { font-size: 1rem; color: var(--fg); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--orange); }
.fine { font: 400 .7rem/1.6 var(--mono); letter-spacing: .04em; color: var(--muted); grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.proj-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); overflow-wrap: anywhere; }
.proj-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
@media (max-width: 860px) { .proj-hero { grid-template-columns: minmax(0, 1fr); } }

.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
