/* Hallmark · custom · editorial · shape: stage hero, offset gallery, dark invitation, giant wordmark · signature: the bridge photograph folded as a paper plane */
/* critique · P5 H5 E4 S4 R5 V5 */

@font-face { font-family: "GG Display"; font-weight: 600; font-display: swap; src: url(fonts/inter-tight-600.woff2) format("woff2"); }
@font-face { font-family: "GG Display"; font-weight: 700; font-display: swap; src: url(fonts/inter-tight-700.woff2) format("woff2"); }
@font-face { font-family: "GG Logo"; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "GG Text"; font-weight: 400; font-display: swap; src: url(fonts/instrument-sans-400.woff2) format("woff2"); }
@font-face { font-family: "GG Text"; font-weight: 500; font-display: swap; src: url(fonts/instrument-sans-500.woff2) format("woff2"); }

:root {
  color-scheme: light;
  /* Colour: warm ivory and near-black, with the brand gold used sparingly. */
  --ivory: #f3efe4;
  --ivory-deep: #e7e0cf;
  --ink: #12120f;
  --ink-soft: #55524a;
  --night: #0e0f0d;
  --on-night: #f3efe4;
  --on-night-soft: #aeaba0;
  --gold: #d6a94e;
  --bronze: #7d5a15;
  --rule: rgba(18, 18, 15, .18);
  --rule-night: rgba(243, 239, 228, .2);
  --white: #fdfbf6;
  --photo-night: #19191d;
  --photo-scrim: rgba(8, 9, 16, .74);
  --photo-chip: rgba(10, 11, 18, .46);
  --photo-rule: rgba(255, 255, 255, .6);
  --photo-text-shadow: rgba(8, 9, 16, .65);
  --photo-ratio: 1.776833; /* golden-gate-dusk.png, 1672 by 941 */

  /* Type: Inter Tight (heavy display) and Instrument Sans (quiet text), both SIL OFL, self-hosted. */
  --font-display: "GG Display", "Helvetica Neue", Arial, sans-serif;
  --sans: "GG Text", "Helvetica Neue", Arial, sans-serif;
  --w-text: 400;
  --w-label: 500;
  --w-head: 600;
  --w-mark: 700;
  --t-hero: clamp(3rem, 13vw, 5.5rem);
  --t-display: clamp(2.75rem, 8vw, 7.5rem);
  --t-title: clamp(1.75rem, 3vw, 2.75rem);
  --t-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --track: -.04em;
  --font-logo: "GG Logo", "GG Display", system-ui, sans-serif;
  --bridge-red: #e0532f;

  /* Space and motion */
  --gutter: clamp(1.125rem, 3.4vw, 3rem);
  --section: clamp(6rem, 13vw, 12rem);
  --measure: 90rem;
  --radius: .375rem;
  --round: 99rem;
  --out: cubic-bezier(.16, 1, .3, 1);
  --quick: .28s;
  --settle: .9s;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { background: var(--ivory); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: var(--w-text) var(--t-body)/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
h1, h2 { text-wrap: balance; }
ul { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible, .nav[data-tone="photo"] :focus-visible, .nav[data-tone="dark"] :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.display { font: var(--w-head) var(--t-display)/.96 var(--font-display); letter-spacing: var(--track); text-wrap: balance; overflow-wrap: break-word; min-width: 0; }

html.intro-on { overflow: hidden; background: var(--night); }
#gg-intro { display: none; }
html.intro-on #gg-intro, #gg-intro.is-landing { display: block; }
html.intro-on .nav { visibility: hidden; }

/* ---------- Navigation ---------- */
.nav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(.75rem, 1.6vw, 1.25rem) var(--gutter); pointer-events: none; color: var(--ink); background: var(--ivory); border-bottom: 1px solid var(--rule); --tile: color-mix(in srgb, currentColor 12%, transparent); transition: background-color var(--quick) var(--out), color var(--quick) var(--out), border-color var(--quick) var(--out); }
.nav[data-tone="photo"] { background: transparent; border-bottom-color: transparent; color: var(--white); text-shadow: 0 1px 2px var(--photo-text-shadow), 0 0 .75rem var(--photo-text-shadow); }
.nav[data-tone="dark"] { background: var(--night); border-bottom-color: var(--rule-night); color: var(--on-night); }
.brand, .nav-links, .nav-end { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; font: 600 1.125rem/1.1 var(--font-logo); letter-spacing: -.015em; }
.mark-defs { position: absolute; }
.brand .mark { width: 2.125rem; height: 2rem; flex: none; transition: translate var(--quick) var(--out); }
.mark-tile { fill: var(--night); stroke: var(--rule-night); }
.brand:hover .mark { translate: 0 -2px; }
/* The top bar takes turns between the name and the next opening. With reduced motion, both simply show. */
.brand-swap { display: grid; white-space: nowrap; }
.brand-open { font-size: .85em; }
@media (prefers-reduced-motion: no-preference) {
  .brand-swap { overflow: hidden; }
  .brand-swap > span { grid-area: 1 / 1; align-self: center; line-height: 1.5; }
  .brand-open { font-size: 1em; }
  .brand-name { animation: brand-name 10s var(--out) -.6s infinite; }
  .brand-open { animation: brand-open 10s var(--out) -.6s infinite; }
  .intro-on .brand-swap > span { animation-play-state: paused; }
  /* Pointing at it or tabbing to it holds the name still. */
  .brand:focus-visible .brand-name { animation: none; }
  .brand:focus-visible .brand-open { animation: none; opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .brand:hover .brand-name { animation: none; }
  .brand:hover .brand-open { animation: none; opacity: 0; }
}
@keyframes brand-name { 0% { opacity: 0; translate: 0 .5em; } 6%, 44% { opacity: 1; translate: 0 0; } 50% { opacity: 0; translate: 0 -.5em; } 50.1%, 100% { opacity: 0; translate: 0 .5em; } }
@keyframes brand-open { 0%, 50% { opacity: 0; translate: 0 .5em; } 56%, 94% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -.5em; } }
.nav-links { display: flex; gap: .25rem; }
.nav-end { display: none; align-items: center; justify-content: flex-end; gap: 1.5rem; }
/* The opening, as its own pill in the middle of the bar. Small screens keep it inside the logo pill instead. */
.availability { margin: 0; display: inline-flex; align-items: center; gap: .625rem; font: var(--w-label) var(--t-small)/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.dot { position: relative; display: inline-block; flex: none; width: .5625rem; height: .5625rem; margin-right: .5rem; border-radius: 50%; background: #3ecf6e; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ecf6e; opacity: 0; }
@media (min-width: 56rem) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-end { display: flex; }
  .brand-open { display: none; }
  .brand-name { animation: none !important; opacity: 1 !important; translate: none !important; }
  .brand-swap { overflow: visible; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot::after { animation: dot-ping 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
}
@keyframes dot-ping { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.8); } }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .875rem; font: var(--w-head) 1.0625rem/1 var(--font-display); letter-spacing: -.02em; }
.nav-links a::after { content: ""; position: absolute; left: .875rem; right: .875rem; bottom: .5625rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--quick) var(--out); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-links a:active { translate: 0 1px; }

@media (max-width: 55.99rem) {
  .brand { font-size: 1rem; gap: .5rem; white-space: nowrap; }
  .brand .mark { width: 1.875rem; height: 1.75rem; }
  .nav-links a { padding: 0 .625rem; }
  .nav-links a::after { left: .625rem; right: .625rem; }
}
@media (max-width: 30rem) { .brand { font-size: .8125rem; gap: .4375rem; } .brand .mark { width: 1.625rem; height: 1.5rem; } .nav-links a { padding: 0 .5rem; } .nav-links a::after { left: .5rem; right: .5rem; } }
@media (max-width: 22.5rem) { .nav { padding-inline: .625rem; gap: .25rem; } .brand { font-size: .71875rem; gap: .375rem; letter-spacing: -.02em; } .brand .mark { width: 1.5rem; height: 1.375rem; } .nav-links a { padding: 0 .375rem; } .nav-links a::after { left: .375rem; right: .375rem; } .hero-tools { font-size: .8125rem; gap: .5rem; white-space: nowrap; } }

/* ---------- Buttons ---------- */
/* Every button: a square, a small arrow tile at the end. On hover the arrow slides out the right
   and comes back in from the left, while the label shifts over to make room. */
.btn { --tile: color-mix(in srgb, currentColor 13%, transparent); display: inline-flex; align-items: center; justify-content: center; gap: .875rem; min-height: 2.75rem; padding: .25rem .25rem .25rem 1rem; border: 1px solid transparent; border-radius: .25rem; font: var(--w-head) var(--t-small)/1 var(--font-display); letter-spacing: -.015em; white-space: nowrap; transition: background-color var(--quick) var(--out), color var(--quick) var(--out), border-color var(--quick) var(--out), translate var(--quick) var(--out); }
.btn span { transition: translate .5s var(--out); }
.btn i { position: relative; display: block; flex: none; width: 2.25rem; height: 2.25rem; overflow: hidden; border-radius: .1875rem; background: var(--tile); transition: background-color var(--quick) var(--out); }
.btn i svg { position: absolute; inset: 0; width: 1.125rem; height: 1.125rem; margin: auto; transition: translate .5s var(--out); }
.btn i svg + svg { translate: -220% 0; }
.btn:hover i svg { translate: 220% 0; }
.btn:hover i svg + svg { translate: 0 0; }
.btn:hover span { translate: .125rem 0; }
.btn:active { translate: 0 1px; }
@media (prefers-reduced-motion: reduce) { .btn span, .btn i svg { transition: none; } }
.btn-nav { text-shadow: none; background: var(--ivory); color: var(--ink); }
.nav[data-tone="light"] .btn-nav { background: var(--ink); color: var(--ivory); }
.nav[data-tone="dark"] .btn-nav { background: var(--ivory); color: var(--ink); }
.nav .btn-nav:hover { background: var(--gold); color: var(--ink); }
.btn-light { background: var(--ivory); color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-ghost { --tile: rgb(255 255 255 / .16); border-color: var(--photo-rule); color: var(--white); background: var(--photo-chip); }
.btn-ghost:hover { --tile: rgb(18 18 15 / .1); background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ivory); }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; height: 100svh; min-height: 36rem; overflow: hidden; isolation: isolate; container-type: size; background: var(--photo-night); color: var(--white); }
.hero-spacer { display: none; }
.cine .hero { position: fixed; z-index: 30; top: 0; left: 0; min-height: 0; }
.cine .hero-spacer { display: block; height: calc(max(100svh, 36rem) + 70svh); }
.hero-photo, .hero-turn, .hero-flight { position: absolute; inset: 0; }
.hero-photo { background: url(assets/golden-gate-dusk.png) 37% 50% / cover no-repeat; }
/* Covers the screen and keeps the near tower in view. The same framing as ggCover in site.js, so the
   paper plane lands exactly on it and nothing moves afterwards. */
@supports (width: 1cqw) {
  .hero-photo { --photo-w: max(100cqw, 100cqh * var(--photo-ratio)); background-size: var(--photo-w) calc(var(--photo-w) / var(--photo-ratio)); background-position: clamp(100cqw - var(--photo-w), 50cqw - .37 * var(--photo-w), 0px) calc((100cqh - var(--photo-w) / var(--photo-ratio)) / 2); }
}
.hero-turn { z-index: 1; opacity: 0; pointer-events: none; }
.hero-flight { z-index: 4; pointer-events: none; }
.hero-flight canvas { display: block; width: 100%; height: 100%; }
.hero-copy { position: absolute; z-index: 2; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; gap: 1.5rem; width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: clamp(5.25rem, 12svh, 7rem) var(--gutter) clamp(1.125rem, 3.5svh, 2.5rem); pointer-events: none; }
/* The photograph is shown untouched, so the small text carries its own soft shadow. */
.hero-lead, .hero-tools { text-shadow: 0 1px 2px var(--photo-text-shadow), 0 0 .5rem var(--photo-text-shadow), 0 0 1.5rem var(--photo-text-shadow); }
.hero-title { grid-row: 1; font: var(--w-head) var(--t-hero)/.94 var(--font-display); letter-spacing: var(--track); min-width: 0; overflow-wrap: break-word; }
.hero-title .phrase { display: block; }
.hero-side { grid-row: 3; display: grid; gap: 1.25rem; justify-items: start; }
.hero-lead { max-width: 27rem; font-size: var(--t-lead); line-height: 1.4; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
.hero-tools { grid-row: 4; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule-night); font-size: var(--t-small); font-weight: var(--w-label); }
.hero-side a, .hero-tools > * { pointer-events: auto; }
.scroll-cue { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; }
.scroll-cue i { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--photo-rule); border-radius: var(--round); overflow: hidden; }
.scroll-cue svg { width: 1rem; height: 1rem; transition: translate var(--quick) var(--out); }
.scroll-cue:hover svg { translate: 0 .25rem; }
.replay { min-height: 2.75rem; padding: 0; background: none; border: 0; text-decoration: underline; text-decoration-color: var(--photo-rule); text-underline-offset: .3em; transition: color var(--quick) var(--out); }
.replay:hover { color: var(--gold); }
html:not(.motion) .replay { display: none; }
.flight-skip { border-radius: .25rem; position: absolute; z-index: 6; right: var(--gutter); bottom: clamp(1.125rem, 3.5svh, 2.5rem); min-height: 2.75rem; padding: 0 1.25rem; border: 1px solid var(--rule); border-radius: .25rem; background: var(--ivory); color: var(--ink); font: var(--w-head) var(--t-small)/1 var(--font-display); visibility: hidden; }
.flight-skip:hover { background: var(--ink); color: var(--ivory); }
.hero.is-flying { background: var(--ivory); }
.hero.is-flying .hero-photo, .hero.is-flying .hero-copy { visibility: hidden; }
.hero.is-flying .flight-skip { visibility: visible; }

@media (min-width: 56rem) and (min-aspect-ratio: 5/4) {
  :root { --t-hero: min(8vw, 14svh, 9.5rem); }
  .hero-title .phrase { display: inline; white-space: nowrap; }
  .hero-copy { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); grid-template-rows: auto 1fr auto; column-gap: 3rem; }
  .hero-title { grid-column: 1 / -1; }
  .hero-side { grid-column: 2; grid-row: 3; align-self: end; }
  .hero-tools { grid-column: 1; grid-row: 3; align-self: end; justify-self: start; gap: 2.25rem; border: 0; padding: 0; }
}

/* Short screens, such as a phone on its side: one line of headline, actions beside the tools. */
@media (max-height: 34rem) and (orientation: landscape) {
  :root { --t-hero: min(7.4vw, 15svh); }
  .cine .hero, .hero { min-height: 0; }
  .hero-title .phrase { display: inline; white-space: nowrap; }
  .hero-copy { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: .75rem 1.5rem; padding-top: 4.25rem; padding-bottom: .875rem; }
  .hero-title { grid-column: 1 / -1; }
  .hero-side { grid-column: 2; grid-row: 3; align-self: end; }
  .hero-tools { grid-column: 1; grid-row: 3; align-self: end; justify-self: start; border: 0; padding: 0; }
  .hero-lead { display: none; }
  .replay { display: none; }
  .cine .hero-spacer { height: 170svh; }
}

/* ---------- Portfolio ---------- */
.work { position: relative; padding: clamp(6.5rem, 12vw, 11rem) 0 var(--section); background: var(--ivory); }
.work-head { margin-bottom: clamp(3rem, 7vw, 6.5rem); }
.work-sub { display: grid; gap: 1rem; margin-top: clamp(1.75rem, 3.5vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.work-set { font-weight: var(--w-label); }
.work-note { max-width: 31rem; font-size: var(--t-lead); line-height: 1.4; color: var(--ink-soft); text-wrap: pretty; }
.projects { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(3.5rem, 8vw, 8rem) clamp(1rem, 2.4vw, 2.25rem); }
.project { min-width: 0; }
.project-link { display: block; border-radius: var(--radius); }
.shot { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--ivory-deep); }
.shot::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--rule); border-radius: inherit; pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; transition: scale .7s var(--out); }
.project-lead .shot { padding: clamp(.75rem, 4.5vw, 4.5rem) clamp(.75rem, 7vw, 7rem) 0; background: var(--night); aspect-ratio: auto; }
.project-lead .shot img { height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; transform-origin: 50% 100%; transition: scale .7s var(--out), translate .5s var(--out); }
.project-info { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.125rem; }
.project-text { display: grid; gap: .25rem; min-width: 0; }
.project-name { font: var(--w-head) var(--t-title)/1.05 var(--font-display); letter-spacing: -.035em; transition: translate var(--quick) var(--out); }
.project-kind { color: var(--ink-soft); font-size: var(--t-small); }
.project-go { display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border: 1px solid var(--rule); border-radius: var(--round); overflow: hidden; transition: background-color var(--quick) var(--out), color var(--quick) var(--out), border-color var(--quick) var(--out); }
.project-go svg { width: 1.25rem; height: 1.25rem; rotate: -45deg; transition: rotate var(--quick) var(--out); }
@media (hover: hover) {
  .project-link:hover .shot img { scale: 1.035; }
  .project-lead .project-link:hover .shot img { scale: 1; translate: 0 -.875rem; }
  .project-link:hover .project-name { translate: .375rem 0; }
}
.project-link:hover .project-go, .project-link:focus-visible .project-go { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.project-link:hover .project-go svg, .project-link:focus-visible .project-go svg { rotate: 0deg; }
.project-link:active .shot img { scale: 1.015; }
@media (min-width: 52rem) {
  .work-sub { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .projects { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .project-lead { grid-column: 1 / -1; }
  .project-wide { grid-column: 1 / 8; }
  .project-narrow { grid-column: 8 / -1; margin-top: clamp(4rem, 12vw, 12rem); }
  .project-narrow .shot { aspect-ratio: 4 / 5; }
  }

/* ---------- Invitation ---------- */
.contact { position: relative; padding: var(--section) 0; background: var(--night); color: var(--on-night); }
.contact .display { max-width: 13em; }
.contact-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: clamp(3.5rem, 8vw, 7rem); padding-top: 1.75rem; border-top: 1px solid var(--rule-night); }
.contact-foot strong { display: block; margin-bottom: .5rem; color: var(--gold); font-weight: var(--w-label); }
.contact-foot > p { max-width: 25rem; color: var(--on-night-soft); font-size: var(--t-lead); line-height: 1.45; }
.email-form { display: flex; flex-wrap: wrap; gap: .875rem; align-items: flex-end; }
.email-form input { flex: 1 1 15rem; min-width: 0; min-height: 3.25rem; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--rule-night); border-radius: 0; background: transparent; color: var(--on-night); font-size: var(--t-lead); caret-color: var(--gold); transition: border-color var(--quick) var(--out); }
.email-form input::placeholder { color: var(--on-night-soft); }
.email-form input:hover { border-bottom-color: var(--on-night-soft); }
.email-form input:focus { border-bottom-color: var(--gold); }
.email-form input:user-invalid { border-bottom-color: var(--gold); border-bottom-style: dashed; }
.form-note { min-height: 1.5em; margin-top: .875rem; color: var(--gold); font-size: var(--t-small); }
@media (min-width: 52rem) { .contact-foot { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(4.5rem, 9vw, 8rem); background: var(--ivory); }
.footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 1.5rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-line { max-width: 15em; font: var(--w-head) var(--t-title)/1.08 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.socials a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--rule); border-radius: var(--round); font-size: var(--t-small); font-weight: var(--w-label); transition: background-color var(--quick) var(--out), color var(--quick) var(--out); }
.socials a:hover { background: var(--ink); color: var(--ivory); }
.footer-group h3 { margin-bottom: .75rem; color: var(--ink-soft); font: var(--w-text) var(--t-small)/1.4 var(--sans); }
.footer-group a, .legal-links a { display: flex; align-items: center; width: fit-content; min-height: 2.25rem; font-weight: var(--w-label); background: linear-gradient(currentColor, currentColor) 0 calc(100% - .4rem) / 100% 1px no-repeat; background-size: 0 1px; transition: background-size var(--quick) var(--out), color var(--quick) var(--out); }
.footer-group a:hover, .legal-links a:hover { background-size: 100% 1px; color: var(--bronze); }
@media (min-width: 64rem) {
  .footer-columns { grid-template-columns: minmax(0, 2.4fr) repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; padding-right: 2rem; }
}
.wordmark { container-type: inline-size; margin-top: clamp(4rem, 10vw, 9rem); border-bottom: 1px solid var(--ink); }
.wordmark-bridge { width: clamp(4.5rem, 9vw, 8rem); height: auto; aspect-ratio: 32 / 30; margin: 0 auto 1.25rem; color: var(--ink); }
.wordmark span { display: block; width: fit-content; margin: 0 auto; white-space: nowrap; font: var(--w-mark) 19cqi/.86 var(--font-display); letter-spacing: -.05em; padding-bottom: .12em; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: var(--t-small); }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* ---------- Motion: words rise out of a clip, blocks lift in, images uncover ---------- */
.split-word { display: inline-block; vertical-align: top; overflow: hidden; padding: 0 .06em .14em; margin: 0 -.06em -.14em; }
.split-word > span { display: inline-block; }
.js.motion [data-split] .split-word > span { translate: 0 112%; opacity: 0; transition: translate var(--settle) var(--out), opacity .5s var(--out); transition-delay: calc(var(--i) * 55ms); }
.js.motion [data-split].is-in .split-word > span { translate: 0 0; opacity: 1; }
.js.motion .hero-title.is-in .split-word > span { transition-duration: 1.1s; transition-delay: calc(var(--i) * 95ms); }
.js.motion .hero-side, .js.motion .hero-tools { opacity: 0; translate: 0 1rem; transition: opacity .7s var(--out) .45s, translate .9s var(--out) .45s; }
.js.motion .hero.is-ready .hero-side, .js.motion .hero.is-ready .hero-tools { opacity: 1; translate: 0 0; }
.js.motion [data-reveal] { opacity: 0; translate: 0 1.5rem; transition: opacity .7s var(--out) .15s, translate .9s var(--out) .15s; }
.js.motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js.motion [data-shot] { clip-path: inset(14% 0 0 0 round .375rem); transition: clip-path 1.1s var(--out); }
.js.motion [data-shot].is-in { clip-path: inset(0 0 0 0 round .375rem); }
.motion .nav { animation: nav-in .8s var(--out) backwards; }
@keyframes nav-in { from { opacity: 0; translate: 0 -.75rem; } }

/* The page as it should look in the picture used by the scroll transition. */
.capturing [data-split] .split-word > span, .capturing [data-reveal] { translate: none !important; opacity: 1 !important; transition: none !important; }
.capturing [data-shot] { clip-path: none !important; transition: none !important; }
.capturing .split-word { overflow: visible !important; }

/* ---------- Page transitions between the portfolio and its concept sites ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .32s ease both; }
::view-transition-new(root) { animation: page-in .6s var(--out) both; }
@keyframes page-out { to { opacity: .35; translate: 0 -2rem; } }
@keyframes page-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* About me: a sheet sliding in from the right over a dimmed, blurred page. */
html.about-open { overflow: hidden; }
.about { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.about[hidden] { display: none; }
.about-backdrop { position: absolute; inset: 0; background: rgb(14 15 13 / .46); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.about-sheet { position: relative; display: flex; flex-direction: column; gap: 2.5rem; width: min(46rem, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1.125rem, 3vw, 2rem) 2rem; background: var(--ivory); color: var(--ink); outline: 0; }
.about-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.about-top h2 { display: flex; align-items: center; margin: 0; font: var(--w-head) var(--t-body)/1.2 var(--font-display); letter-spacing: -.015em; }
.about-copy { display: grid; gap: 1.5rem; max-width: 34rem; font: var(--w-head) clamp(1.25rem, 2.1vw, 1.625rem)/1.28 var(--font-display); letter-spacing: -.025em; }
.about-copy p { margin: 0; }
.about-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--rule); font: var(--w-label) var(--t-small)/1.3 var(--sans); color: var(--ink-soft, rgb(18 18 15 / .66)); }
.about-sheet .btn-gold { align-self: flex-start; }
.btn-close { background: var(--ink); color: var(--ivory); gap: .75rem; padding-right: .25rem; }
.btn-close kbd { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .5rem; border-radius: .1875rem; background: var(--tile); font: var(--w-label) .6875rem/1 var(--sans); }
.btn-close:hover { background: var(--gold); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .about:not([hidden]) .about-backdrop { animation: about-fade .45s var(--out) both; }
  .about:not([hidden]) .about-sheet { animation: about-slide .6s var(--out) both; }
  .about.is-closing .about-backdrop { animation: about-fade .3s var(--out) reverse both; }
  .about.is-closing .about-sheet { animation: about-slide .3s var(--out) reverse both; }
}
@keyframes about-fade { from { opacity: 0; } }
@keyframes about-slide { from { translate: 100% 0; } }
