/* FORGE Studio · the shared look of every page
   Everything every page has in common: type, colours, the smoked-glass bar and phone menu, the gold glass buttons,
   labels, the contact footer, and the scroll reveals (heading heat pass, rising text, labels opening on the slant).
   Each page adds only what is its own. */
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('../fonts/general-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root { --ink: #0A0908; --cream: #EDE6D8; --dim: rgba(237, 230, 216, .62); --gold: #FFC247; --ember: #FF8A00; }
* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); color: var(--cream); font: 400 16px/1.5 'General Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* The bar: smoked glass across the full width, fixed to the top edge.
   - dark glass that gets lighter toward its lower edge, blurring and warming whatever passes under it
   - a fine frosted grain, so it reads as glass and not as a flat grey band
   - its lower edge is a steel hairline with a slow bead of heat travelling along it
   - the shapes come from the mark: link underlines and the Résumé plate are cut on the mark's 30-degree slant */
.nav { position: fixed; z-index: 10; inset: 0 0 auto; height: 66px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(18px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(26, 21, 17, .86) 0%, rgba(17, 14, 11, .6) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); }
.nav::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 0, .85) 38%, #FFE7A6 50%, rgba(255, 138, 0, .85) 62%, transparent) no-repeat, rgba(237, 230, 216, .1);
  background-size: 34% 100%, auto; background-position: calc(var(--sp, 0) * 100%) 0, 0 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: rgba(17, 14, 11, .96); } }

.brand { justify-self: start; display: flex; align-items: center; gap: 12px; font-size: 15px; letter-spacing: .04em; color: var(--dim); }
.brand b { color: var(--cream); font-weight: 600; }
.brand img { width: 28px; height: auto; display: block; }

.links { display: flex; align-items: stretch; gap: clamp(26px, 3.4vw, 52px); height: 100%; }
.links a { position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: rgba(237, 230, 216, .72); transition: color .3s; }
.links a:hover { color: var(--cream); }
/* the underline sits on the bar's own edge, cut on the slant, and heats in from the left */
.links a::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: 0; height: 2px; transform-origin: left;
  background: linear-gradient(90deg, #C25A00, #FF8A00 30%, #FFC247 70%, #FFE7A6); transform: skewX(-30deg) scaleX(0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 0 10px rgba(255, 138, 0, .55); }
.links a:hover::after, .links a:focus-visible::after { transform: skewX(-30deg) scaleX(1); }

.end { justify-self: end; display: flex; align-items: center; gap: 6px; }

/* Menu button (phones): two bars on the mark's slant; they cross into a gold X when the menu is open */
.menu-btn { display: none; position: relative; width: 44px; height: 40px; border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--cream); }
.menu-btn i { position: absolute; left: 10px; right: 12px; height: 2px; background: currentColor; transform: skewX(-30deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), top .5s cubic-bezier(.2, .7, .2, 1), left .5s, color .3s; }
.menu-btn i:first-child { top: 15px; }
.menu-btn i:last-child { top: 23px; left: 16px; right: 6px; }
.menu-btn[aria-expanded="true"] { color: var(--gold); }
.menu-btn[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(40deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 19px; left: 10px; right: 12px; transform: rotate(-40deg); }

/* The menu: the bar's smoked glass drops down to fill the screen. Same glass, same grain, a soft gloss across it. */
.menu { position: fixed; inset: 0; z-index: 9; display: none; flex-direction: column; justify-content: space-between; padding: 92px 24px 30px;
  background: linear-gradient(180deg, rgba(26, 21, 17, .88) 0%, rgba(12, 10, 8, .8) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .7s; }
.menu::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 240, 210, .07) 0%, rgba(255, 240, 210, 0) 38%),
              radial-gradient(120% 60% at 100% 100%, rgba(255, 138, 0, .12), transparent 60%); }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.menu nav { display: flex; flex-direction: column; position: relative; }
.menu nav a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 14px 0; font-size: clamp(40px, 12vw, 64px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1; border-bottom: 1px solid rgba(237, 230, 216, .08);
  opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.menu nav a::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 38%; height: 2px; transform-origin: left; transform: skewX(-30deg) scaleX(0);
  background: linear-gradient(90deg, #C25A00, #FF8A00 30%, #FFC247 70%, #FFE7A6); box-shadow: 0 0 10px rgba(255, 138, 0, .55); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.menu nav a:active::after, .menu nav a:focus-visible::after, .menu nav a:hover::after { transform: skewX(-30deg) scaleX(1); }
.menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(.22s + var(--i) * .08s); }
.menu-foot { position: relative; opacity: 0; transition: opacity .5s ease; }
.menu.is-open .menu-foot { opacity: 1; transition-delay: .5s; }
.menu-foot .kicker { margin-bottom: 12px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; font-weight: 500; }
.socials a { color: var(--dim); transition: color .25s; }
.socials a:hover { color: var(--cream); }
html.menu-open { overflow: hidden; }
/* the Résumé plate: a gold parallelogram with its ends cut at the mark's angle */
/* Molten-gold glass, shared by the main buttons: a glossy upper half, a bright rim, and heat welling up from below.
   On hover a band of light runs across the glass and the heat rises. */
.glass-gold { position: relative; overflow: hidden; isolation: isolate; color: #1C1004;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .1) 46%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(120% 130% at 50% 125%, rgba(255, 120, 0, .95) 0%, rgba(255, 138, 0, 0) 62%),
    linear-gradient(180deg, #FFD983 0%, #FFC247 48%, #E89A1C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(255, 231, 166, .55), inset 0 -3px 8px rgba(176, 72, 0, .55),
              0 10px 28px -10px rgba(255, 138, 0, .65), 0 0 0 1px rgba(122, 53, 16, .4);
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); }
.glass-gold::after { content: ''; position: absolute; inset: -20% auto -20% -60%; width: 45%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-30deg) translateX(0); }
.glass-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 240, 200, .75), inset 0 -6px 14px rgba(255, 110, 0, .75),
              0 14px 36px -10px rgba(255, 138, 0, .85), 0 0 0 1px rgba(122, 53, 16, .4); transform: translateY(-1px); }
.glass-gold:hover::after { transform: skewX(-30deg) translateX(420%); transition: transform .9s cubic-bezier(.3, .6, .2, 1); }

/* the Résumé plate: the same gold glass, with its ends cut at the mark's angle */
.plate-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }

/* ---------- labels, lead text, buttons ---------- */
.kicker { display: block; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.kicker b { color: var(--gold); font-weight: 500; }
.lede { max-width: 30em; margin: 18px 0 0; font-size: clamp(15px, 1.15vw, 18px); color: var(--dim); }
.lede b { color: var(--cream); font-weight: 500; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid rgba(237, 230, 216, .28); transition: background .25s, border-color .25s; }
.btn.primary { border: 0; padding: 14px 24px; font-weight: 600; }
.btn:not(.primary):hover { border-color: var(--cream); }
.btn.ghost { border: 1px solid rgba(237, 230, 216, .28); background: transparent; color: var(--cream); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
/* =============== The round gold buttons on hover =============== */
/* Quiet, like a well-made component: the glass lifts a pixel, the heat in its lower half rises and warms,
   a band of light crosses it once, and the arrow steps ahead. Pressing it sinks it back. */
.btn.glass-gold::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 110% at 50% 120%, rgba(255, 110, 0, .7), rgba(255, 138, 0, 0) 65%); transition: opacity .5s ease; }
.btn.glass-gold:hover::before, .btn.glass-gold:focus-visible::before { opacity: 1; }
.btn.glass-gold > span[aria-hidden] { display: inline-block; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.btn.glass-gold:hover > span[aria-hidden], .btn.glass-gold:focus-visible > span[aria-hidden] { transform: translateX(4px); }
.btn.glass-gold[data-mail]:hover > span[aria-hidden] { transform: translate(3px, -3px); }
.btn.glass-gold:active { transform: translateY(0) scale(.98); transition-duration: .12s; }

@media (max-width: 820px) {
  .nav { height: 58px; grid-template-columns: 1fr auto; } .links { display: none; }
  .menu-btn { display: block; } .menu { display: flex; }
  .plate-btn { padding: 8px 16px; font-size: 13px; }
}
:root { --bone: var(--cream); --line: rgba(237, 230, 216, .12); --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* =============== Contact =============== */
.contact { position: relative; isolation: isolate; padding: clamp(90px, 14vh, 160px) clamp(18px, 3vw, 44px) 28px; overflow: hidden; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 100%, rgba(255, 138, 0, .16), transparent 70%), radial-gradient(30% 30% at 50% 90%, rgba(255, 194, 71, .1), transparent 70%); }
.contact-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.contact h2 { font-weight: 600; font-size: clamp(48px, 9vw, 150px); line-height: .92; letter-spacing: -.045em; }
.contact h2 .gold { color: var(--gold); }
.contact .lede { margin: 22px auto 0; max-width: 34em; }
.contact .acts { justify-content: center; margin-top: 36px; }
.socials-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 44px; font-size: 15px; font-weight: 500; }
.socials-row a { color: var(--dim); transition: color .25s; }
.socials-row a:hover { color: var(--cream); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(70px, 12vh, 120px); padding-top: 22px;
  border-top: 1px solid rgba(237, 230, 216, .1); font-size: 13px; color: var(--dim); }
.foot a:hover { color: var(--cream); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; translate: -50% 0; padding: 12px 18px; border-radius: 999px; font-size: 14px;
  background: rgba(26, 21, 17, .92); border: 1px solid rgba(255, 194, 71, .35); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: none; }

/* =============== Scroll animations =============== */
/* Headings: the gold heat pass (kept from the old site) - a band of heat crosses the line once and leaves it lit. */
/* Everything here moves only transform, opacity and clip-path (work the graphics chip does on its own), except the
   short heat pass on headings. Nothing runs once it has arrived, so a slow computer only pays while things land. */
@property --p { syntax: '<percentage>'; inherits: true; initial-value: -25%; }
/* Headings are struck into place: each line rises out of its own slot, leaning, and straightens as it lands,
   while the gold heat pass crosses it once and leaves it lit. The page script splits the lines at each <br>. */
.reveal-on [data-heat] { --p: -25%; transition: --p 2.2s cubic-bezier(.45, .05, .25, 1) .15s; }
.ln { display: block; }
.reveal-on .ln { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-on .ln > span { display: block; transform-origin: 0 100%; transform: translateY(108%) skewY(6deg);
  transition: transform 1.15s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--l, 0) * .13s);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--cream) 0, var(--cream) calc(var(--p) - 16%), #FFE7A6 calc(var(--p) - 5%), #FFC247 var(--p), #FF8A00 calc(var(--p) + 6%),
    rgba(244, 239, 230, .1) calc(var(--p) + 17%), rgba(244, 239, 230, .1) 100%); }
.reveal-on [data-heat] .gold { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--gold) 0, var(--gold) calc(var(--p) - 16%), #FFE7A6 calc(var(--p) - 5%), #FFC247 var(--p), #FF8A00 calc(var(--p) + 6%),
    rgba(244, 239, 230, .1) calc(var(--p) + 17%), rgba(244, 239, 230, .1) 100%); }
.reveal-on [data-heat].is-in { --p: 125%; }
.reveal-on [data-heat].is-in .ln > span { transform: none; }
.reveal-on [data-heat].is-done .ln > span, .reveal-on [data-heat].is-done .gold { background: none; color: var(--cream); }
.reveal-on [data-heat].is-done .gold { color: var(--gold); }

/* Labels and paragraphs rise into place */
.reveal-on [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * .09s); }
.reveal-on [data-rise].is-in { opacity: 1; transform: none; }
/* the section labels open from the slash outward, cut on the mark's slant */
.reveal-on .kicker[data-rise] { transform: none; clip-path: polygon(0 0, 0 0, -12px 100%, -12px 100%);
  transition: opacity .5s ease, clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.reveal-on .kicker[data-rise].is-in { clip-path: polygon(0 0, calc(100% + 12px) 0, 100% 100%, -12px 100%); }

@supports (animation-timeline: view()) {
  /* the heat bead on the bar's edge travels with the scroll */
  .nav::after { animation: bead linear both; animation-timeline: scroll(root); }
  @keyframes bead { from { background-position: 0 0, 0 0; } to { background-position: 100% 0, 0 0; } }
  /* reaching the end: the furnace glow rises under the last words */
  .has-motion .contact::before { animation: furnace linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; transform-origin: 50% 100%; }
  @keyframes furnace { from { opacity: 0; scale: 1 .4; } to { opacity: 1; scale: 1 1; } }
}

/* the bar slides down on arrival */
.has-motion .nav { animation: nav-in 1s cubic-bezier(.2, .7, .2, 1) .05s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes nav-in { from { transform: translateY(-100%); } to { transform: none; } }
.intro-quick .nav { animation-duration: .6s; }

/* =============== Case-study parts, shared by every project page =============== */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(18px, 3vw, 44px); }
.sec { position: relative; padding: clamp(72px, 11vh, 130px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 48px; margin-bottom: clamp(32px, 5vh, 56px); }
.sec-head > div { max-width: 760px; }
.sec-head > p { color: var(--dim); max-width: 30em; }
.h2 { font-weight: 600; font-size: clamp(32px, 4.2vw, 68px); line-height: 1; letter-spacing: -.035em; }
.h2 .gold, .h1 .gold { color: var(--gold); }
.h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 92px); line-height: .96; letter-spacing: -.035em; }
.prose p { color: var(--dim); font-size: clamp(15px, 1.15vw, 18px); max-width: 36em; margin-top: 18px; }
.prose p strong { color: var(--cream); font-weight: 500; }

/* A pane of the bar's smoked glass, for short facts and cards of text: light catches its upper-left rim */
.pane { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(48, 40, 33, .5), rgba(16, 13, 11, .42));
  box-shadow: inset 0 1px 0 rgba(255, 240, 215, .08), 0 0 0 1px rgba(237, 230, 216, .06), 0 24px 50px -30px rgba(0, 0, 0, .8);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease; }
.pane .kicker { margin: 0 0 6px; font-size: 11px; }
.pane h3 { font-size: clamp(17px, 1.35vw, 20px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.pane p { font-size: 14px; color: var(--dim); }
.pane:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 240, 215, .12), 0 0 0 1px rgba(255, 194, 71, .28), 0 30px 60px -30px rgba(0, 0, 0, .85); }
.panes { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }

/* A picture set in glass: a thin pane round it with a bright rim, a gloss over the top */
.gframe { position: relative; margin: 0; padding: 8px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(48, 40, 33, .5) 0%, rgba(20, 17, 14, .46) 55%, rgba(14, 12, 10, .6) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 215, .1), 0 0 0 1px rgba(237, 230, 216, .07), 0 30px 60px -30px rgba(0, 0, 0, .85); }
.gm { position: relative; overflow: hidden; border-radius: 11px; background: #15120F; }
.gframe.light .gm { background: #F2EEE7; }
.gm img { display: block; width: 100%; height: auto; }
.gm::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(170deg, rgba(255, 250, 235, .08) 0%, rgba(255, 250, 235, 0) 30%); }
.gframe figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 8px 6px; font-size: 13px; color: var(--dim); }
.gframe figcaption b { color: var(--cream); font-weight: 600; font-size: 14px; }
[data-zoom] { cursor: zoom-in; }
[data-zoom]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* a gold plate stamped on a picture's corner, cut on the mark's slant */
.seal { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 6px 13px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }

/* Out of the forge, quenched: a glass piece tips up from lying back, its picture glowing orange-hot, then cools.
   The same arrival as the home page's project cards. */
.reveal-on [data-in] { opacity: 0; transform: translateY(60px) rotateX(14deg); transform-origin: 50% 100%;
  transition: opacity .8s ease, transform 1.3s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(var(--i, 0) * .12s); }
.reveal-on [data-in].is-in { opacity: 1; transform: none; }
.gm::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(130% 95% at 50% 115%, rgba(255, 112, 0, .85), rgba(255, 150, 30, .5) 42%, rgba(255, 194, 71, .18) 75%, rgba(255, 194, 71, .06)); }
.reveal-on [data-in].is-in .gm::before { animation: quench 2.4s cubic-bezier(.3, .4, .3, 1) calc(var(--i, 0) * .12s + .2s) both; }
@keyframes quench { 0% { opacity: .95; } 25% { opacity: .8; } 100% { opacity: 0; } }

/* The viewer for pictures that open larger */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 7, 6, .94); color: var(--cream); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer::backdrop { background: rgba(8, 7, 6, .7); }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(16px, 3vw, 32px); font-size: 14px; color: var(--dim); }
.viewer-stage { display: grid; place-items: center; min-height: 0; padding: 0 clamp(12px, 3vw, 40px); }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.viewer button { font: inherit; color: var(--cream); background: rgba(237, 230, 216, .06); border: 1px solid rgba(237, 230, 216, .18); border-radius: 999px; width: 44px; height: 44px; cursor: pointer; }
.viewer button:hover { border-color: var(--gold); color: var(--gold); }
html.viewer-open { overflow: hidden; }

/* The next project: one wide glass card */
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 24px 48px; padding: 18px 18px 18px clamp(20px, 3vw, 40px); border-radius: 22px;
  background: linear-gradient(160deg, rgba(48, 40, 33, .5), rgba(16, 13, 11, .42)); box-shadow: inset 0 1px 0 rgba(255, 240, 215, .1), 0 0 0 1px rgba(237, 230, 216, .07);
  transition: box-shadow .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.next:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 240, 215, .14), 0 0 0 1px rgba(255, 194, 71, .45), 0 0 70px -26px rgba(255, 138, 0, .5); }
.next .t { display: block; margin-top: 10px; font-weight: 600; font-size: clamp(30px, 4vw, 60px); line-height: 1; letter-spacing: -.035em; }
.next .t span { color: var(--gold); }
.next .sub { display: block; margin-top: 12px; color: var(--dim); }
.next .gm { aspect-ratio: 4 / 3; border-radius: 14px; }
.next .gm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.next:hover .gm img { transform: scale(1.045); }
.back-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 22px; font-size: 14px; color: var(--dim); }
.back-row a:hover { color: var(--cream); }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; padding: 14px; } .next .gm { order: -1; } }

/* =============== The forge plate: one quiet dot grid behind every page ===============
   Faint dots on the mark's own 30-degree lattice; near the pointer they warm to gold, like metal under a torch.
   The dots are a still mask; only one small glow moves under it (by transform), so it costs almost nothing. */
.plate { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: rgba(237, 230, 216, .055);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='d' width='26' height='26' patternUnits='userSpaceOnUse' patternTransform='rotate(30)'%3E%3Ccircle cx='13' cy='13' r='1.25' fill='%23000'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='d' width='26' height='26' patternUnits='userSpaceOnUse' patternTransform='rotate(30)'%3E%3Ccircle cx='13' cy='13' r='1.25' fill='%23000'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23d)'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
/* three soft pools of heat drift slowly under the dots on their own, meeting and parting like molten metal.
   They only ever light the dots (tiny), and stay faint, so text on top always reads first. */
.plate i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--t-pale) 60%, transparent), color-mix(in srgb, var(--t-gold) 30%, transparent) 40%, color-mix(in srgb, var(--t-ember) 10%, transparent) 72%, transparent); }
.plate i:nth-child(1) { width: 62vmax; height: 62vmax; margin: -31vmax 0 0 -31vmax; transform: translate3d(20vw, 30vh, 0); }
.plate i:nth-child(2) { width: 48vmax; height: 48vmax; margin: -24vmax 0 0 -24vmax; transform: translate3d(80vw, 65vh, 0); }
.plate i:nth-child(3) { width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; transform: translate3d(55vw, 15vh, 0); opacity: .8; }
.has-motion .plate i:nth-child(1) { animation: pool-a 46s ease-in-out infinite alternate; }
.has-motion .plate i:nth-child(2) { animation: pool-b 58s ease-in-out infinite alternate; }
.has-motion .plate i:nth-child(3) { animation: pool-c 39s ease-in-out infinite alternate; }
/* while the page scrolls the pools hold still, so the graphics chip only has the scroll to draw */
.plate.is-scrolling i { animation-play-state: paused !important; }
@keyframes pool-a { 0% { transform: translate3d(18vw, 28vh, 0) scale(1); } 50% { transform: translate3d(46vw, 70vh, 0) scale(1.15); } 100% { transform: translate3d(30vw, 40vh, 0) scale(.9); } }
@keyframes pool-b { 0% { transform: translate3d(82vw, 66vh, 0) scale(1); } 50% { transform: translate3d(60vw, 22vh, 0) scale(.85); } 100% { transform: translate3d(88vw, 48vh, 0) scale(1.1); } }
@keyframes pool-c { 0% { transform: translate3d(56vw, 14vh, 0) scale(1); } 50% { transform: translate3d(24vw, 84vh, 0) scale(1.2); } 100% { transform: translate3d(70vw, 90vh, 0) scale(.95); } }
@media print { .plate { display: none; } }
/* (2026-12-01) the whole plate a little quieter, so cards and text on top read clearly in every look and season */
.plate { opacity: .55; }

/* =============== The heat colours, and the seasons ===============
   Four tracked colours carry the site's heat: pale, gold, ember, deep. Normally they are the FORGE golds.
   In a season (html.season plus html.theme-doom until the end of 24 December, or html.theme-xmas from 25 December to
   the end of 1 January; ?season=doom / ?season=xmas / ?season=off to preview) they take that season's colours.
   (History: in the Doomsday season the page first
   still opens in gold, then html.is-green is added and the four drift to the greens of the stained-glass mark.
   They change in 30 small steps over about seven seconds (not every frame), so a slow computer recalculates the
   page 30 times, not 400. Since 2026-11-30 every season opens in its colours straight away.) */
@property --t-pale  { syntax: '<color>'; inherits: true; initial-value: #FFE7A6; }
@property --t-gold  { syntax: '<color>'; inherits: true; initial-value: #FFC247; }
@property --t-ember { syntax: '<color>'; inherits: true; initial-value: #FF8A00; }
@property --t-deep  { syntax: '<color>'; inherits: true; initial-value: #C25A00; }
:root { --t-pale: #FFE7A6; --t-gold: #FFC247; --t-ember: #FF8A00; --t-deep: #C25A00; }
html.season { --gold: var(--t-gold); --ember: var(--t-ember);
  transition: --t-pale 7s steps(30), --t-gold 7s steps(30), --t-ember 7s steps(30), --t-deep 7s steps(30); }
/* each season's four colours ('is-green' just means "the season's colours are on"; the head script picks the theme) */
html.season.theme-doom.is-green { --t-pale: #E3F5A6; --t-gold: #A6D94E; --t-ember: #5FA332; --t-deep: #2E6B1F; }
/* Christmas (25 December to the end of 1 January): FORGE gold stays the gold; the heat beneath it burns crimson,
   like the Nutcracker's coat and the ruby glass of the Christmas mark */
html.season.theme-xmas.is-green { --t-pale: #FFF1E0; --t-gold: #FFC247; --t-ember: #E0353F; --t-deep: #8E1B22; }
html.season.green-now { transition: none; }

/* everything below follows the four colours while the season is on */
html.season .nav::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--t-ember) 85%, transparent) 38%, var(--t-pale) 50%, color-mix(in srgb, var(--t-ember) 85%, transparent) 62%, transparent) no-repeat, rgba(237, 230, 216, .1);
  background-size: 34% 100%, auto; background-position: calc(var(--sp, 0) * 100%) 0, 0 0; }
html.season .links a::after, html.season .menu nav a::after { background: linear-gradient(90deg, var(--t-deep), var(--t-ember) 30%, var(--t-gold) 70%, var(--t-pale)); box-shadow: 0 0 10px color-mix(in srgb, var(--t-ember) 55%, transparent); }
html.season .glass-gold { color: color-mix(in srgb, var(--t-deep) 30%, #0A0805);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, .09) 46%, rgba(255, 255, 255, 0) 52%),
    radial-gradient(120% 130% at 50% 125%, color-mix(in srgb, var(--t-ember) 95%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--t-pale) 55%, var(--t-gold)) 0%, var(--t-gold) 48%, color-mix(in srgb, var(--t-ember) 70%, var(--t-gold)) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 0 0 1px color-mix(in srgb, var(--t-pale) 55%, transparent), inset 0 -3px 8px color-mix(in srgb, var(--t-deep) 60%, transparent),
              0 10px 28px -10px color-mix(in srgb, var(--t-ember) 65%, transparent), 0 0 0 1px color-mix(in srgb, var(--t-deep) 40%, #000); }
html.season .glass-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), inset 0 0 0 1px color-mix(in srgb, var(--t-pale) 75%, transparent), inset 0 -6px 14px color-mix(in srgb, var(--t-ember) 75%, transparent),
              0 14px 36px -10px color-mix(in srgb, var(--t-ember) 85%, transparent), 0 0 0 1px color-mix(in srgb, var(--t-deep) 40%, #000); }
html.season .btn.glass-gold::before { background: radial-gradient(120% 110% at 50% 120%, color-mix(in srgb, var(--t-ember) 70%, transparent), transparent 65%); }
html.season.reveal-on [data-heat]:not(.is-done) .ln > span {
  background-image: linear-gradient(100deg, var(--cream) 0, var(--cream) calc(var(--p) - 16%), var(--t-pale) calc(var(--p) - 5%), var(--t-gold) var(--p), var(--t-ember) calc(var(--p) + 6%),
    rgba(244, 239, 230, .1) calc(var(--p) + 17%), rgba(244, 239, 230, .1) 100%); }
html.season.reveal-on [data-heat]:not(.is-done) .gold {
  background-image: linear-gradient(100deg, var(--gold) 0, var(--gold) calc(var(--p) - 16%), var(--t-pale) calc(var(--p) - 5%), var(--t-gold) var(--p), var(--t-ember) calc(var(--p) + 6%),
    rgba(244, 239, 230, .1) calc(var(--p) + 17%), rgba(244, 239, 230, .1) 100%); }
html.season .contact::before { background: radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--t-ember) 17%, transparent), transparent 70%), radial-gradient(30% 30% at 50% 90%, color-mix(in srgb, var(--t-gold) 10%, transparent), transparent 70%); }
html.season .toast { border-color: color-mix(in srgb, var(--t-gold) 40%, transparent); }
html.season .pane:hover { box-shadow: inset 0 1px 0 rgba(255, 245, 225, .12), 0 0 0 1px color-mix(in srgb, var(--t-gold) 30%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .85); }
html.season .next:hover { box-shadow: inset 0 1px 0 rgba(255, 245, 225, .14), 0 0 0 1px color-mix(in srgb, var(--t-gold) 45%, transparent), 0 0 70px -26px color-mix(in srgb, var(--t-ember) 55%, transparent); }
html.season .gm::before { background: radial-gradient(130% 95% at 50% 115%, color-mix(in srgb, var(--t-ember) 85%, transparent), color-mix(in srgb, var(--t-gold) 50%, transparent) 42%, color-mix(in srgb, var(--t-gold) 18%, transparent) 75%, color-mix(in srgb, var(--t-gold) 6%, transparent)); }
/* the nav mark: the plain mark, then the stained-glass one once the page has turned */
.brand { position: relative; }
.brand .glass-mark { position: absolute; left: 0; top: 50%; width: 30px; height: auto; transform: translateY(-50%); opacity: 0; transition: opacity 2.4s ease; }
html.season.is-green .brand .glass-mark { opacity: 1; }
html.season.is-green .brand img:not(.glass-mark) { opacity: 0; transition: opacity 2.4s ease; }



/* Touch areas: links set in small type get a hit area about 44px high (and wide enough for a thumb) without moving
   anything: the padding reaches past the words and the negative margin takes the same space back. */
.socials-row a, .back-row a, .foot-bottom a, .pane > a { padding: 11px 12px; margin: -11px -12px; }
.socials-row a[href*="x.com"] { padding-inline: 17px; margin-inline: -17px; }   /* the one-letter "X" */
.brand { padding-block: 10px; margin-block: -10px; }
/* phone-sized copies of the big posters come through <picture>; the wrapper itself takes no part in the layout */
picture { display: contents; }
/* "Skip to content": the first stop for keyboard users, out of sight until it has focus */
.skip { position: fixed; top: 10px; left: 10px; z-index: 300; padding: 12px 18px; border-radius: 999px; background: #FFC247; color: #0A0908;
  font-weight: 600; font-size: 15px; transform: translateY(-160%); transition: transform .3s ease; }
.skip:focus, .skip:focus-visible { transform: none; }
