:root {
  --bg: #f3f1ec;
  --panel: #e4e1da;
  --ink: #1f1d1a;
  --muted: #5d5850;
  --accent: #8a3b12;
  --line: #cfcac0;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #5e2408; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.sub, small { font-weight: 400; font-size: .6em; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(243,241,236,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: .5rem clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.35rem var(--serif); }
.brand img { width: 52px; height: 40px; object-fit: contain; }
#nav { display: flex; align-items: center; gap: .2rem 1.4rem; margin-left: auto; }
#nav > a, .nav-group > summary { color: var(--ink); text-decoration: none; font-size: .95rem; padding: .35rem 0; border-bottom: 2px solid transparent; cursor: pointer; }
#nav > a:hover, #nav > a[aria-current], .nav-group > summary:hover, .nav-group.here > summary { border-color: var(--accent); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: .4em; height: .4em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-group[open] > summary::after { transform: rotate(-135deg) translate(-1px, -1px); }
.nav-menu { position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); min-width: 13rem; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: .4rem; display: flex; flex-direction: column; z-index: 20; }
.nav-menu a { color: var(--ink); text-decoration: none; padding: .55rem .8rem; border-radius: 5px; font-size: .95rem; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a[aria-current] { background: var(--bg); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: 4px; padding: .35rem .8rem; font: 600 .9rem var(--sans); cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  #nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 0; }
  #nav.open { display: flex; }
  #nav > a, .nav-group > summary { padding: .7rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
  .nav-menu { position: static; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 .4rem 1rem; }
}

/* layout */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
section { padding: clamp(1.75rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
.prose { max-width: 760px; }
.lede { font-size: 1.2rem; color: var(--muted); font-style: italic; }
.narrow { max-width: 760px; }

.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero h1 span { font-weight: 400; }
.hero .portrait { border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 1.5rem; margin: 1.25rem 0; }
.cols1 { grid-template-columns: 1fr; }
.cols2 { grid-template-columns: repeat(2, 1fr); }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.cols4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols3, .cols4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols2, .cols3, .cols4 { grid-template-columns: 1fr; } }

.card { margin: 0; display: block; color: inherit; text-decoration: none; }
.card img { border-radius: 4px; width: 100%; }
.card figcaption { padding-top: .6rem; }
.card figcaption h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.card figcaption p { margin: 0; color: var(--muted); font-size: .92rem; }
.card.link:hover h3 { color: var(--accent); text-decoration: underline; }
.gallery-sec .card img { aspect-ratio: 1 / 1; object-fit: cover; background: var(--panel); }

.embed { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.embed.doc { aspect-ratio: 4 / 5; background: var(--panel); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
iframe.sc { width: 100%; border: 0; display: block; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 1rem 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.job { margin-bottom: 1.4rem; }
.job ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.button { display: inline-block; background: var(--ink); color: #fff; padding: .6rem 1.2rem; border-radius: 4px; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--accent); color: #fff; }
.pill-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-links a { border: 1px solid var(--ink); border-radius: 999px; padding: .3rem .9rem; text-decoration: none; color: var(--ink); font-size: .9rem; }
.pill-links a:hover { background: var(--ink); color: #fff; }
.social { display: flex; gap: 1rem; align-items: center; }
.social img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.txt-badge { width: 56px; height: 56px; display: grid; place-items: center; background: #0a66c2; color: #fff; border-radius: 8px; font: 700 1.6rem var(--sans); text-decoration: none; }
.txt-badge:hover { color: #fff; opacity: .9; }
ul.columns { columns: 3 12rem; padding-left: 1.2rem; }
.wide { width: 100%; border-radius: 6px; margin-bottom: 1.5rem; }
.contact { text-align: center; max-width: 560px; margin: 0 auto; }
.contact img { width: 220px; margin: 0 auto 1rem; }

.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .95rem; }
.cols2 .embed.doc { aspect-ratio: 4 / 3; }

/* click-to-load players */
button.facade { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; }
button.embed.facade { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
button.embed.doc.facade { aspect-ratio: 4 / 3; background: var(--panel); }
button.embed.facade:has(.doc-ph) { background: var(--panel); aspect-ratio: 4 / 3; }
.cols2 button.embed.doc.facade { aspect-ratio: 4 / 3; }
button.facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
button.facade:hover img { opacity: 1; }
button.facade:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(20,20,20,.8); border-radius: 12px; transition: background .2s; }
.play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
button.facade:hover .play { background: #c00; }
.play.small { position: relative; left: auto; top: auto; transform: none; width: 44px; height: 32px; display: inline-block; flex: none; }
.play.small::after { left: 17px; top: 9px; border-width: 7px 0 7px 12px; }
.doc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: var(--ink); }
.doc-icon { font-size: 2.6rem; }
.doc-cta { font-weight: 600; border: 1px solid var(--ink); border-radius: 999px; padding: .35rem 1rem; font-size: .9rem; }
button.facade:hover .doc-cta { background: var(--ink); color: #fff; }
.open-new { display: inline-block; font-size: .85rem; margin-top: .35rem; }
button.sc-facade, .sc-facade { background: #f3f0ea; border: 1px solid var(--line); border-radius: 4px; height: min(var(--h, 166px), 120px); }
.loaded.sc-facade { height: var(--h, 166px); }
.sc-ph { display: flex; align-items: center; gap: .75rem; height: 100%; padding: 0 1rem; font-weight: 600; }
button.sc-facade:hover .play { background: #ff5500; }
.loaded { position: relative; }
.loaded.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loaded.sc-facade { padding: 0; border: 0; }
.loaded.sc-facade iframe { width: 100%; height: 100%; border: 0; display: block; }

/* home hub: photo in the middle, page icons in a ring around it */
.hub-sec { border-bottom: 0; }
.hub { --size: min(760px, 92vw); --r: calc(var(--size) * .40); position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.hub-photo { position: absolute; left: 50%; top: 50%; width: 52%; height: 52%; transform: translate(-50%, -50%);
  border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 14px 40px rgba(0,0,0,.2); border: 6px solid #fff; }
.hub-ring { list-style: none; margin: 0; padding: 0; }
.hub-ring li { --a: calc(360deg / var(--n) * var(--i) - 90deg); position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
.hub-ring a { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 104px; text-decoration: none; color: var(--ink);
  font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.2; }
.hub-ring svg { width: 30px; height: 30px; padding: 17px; box-sizing: content-box; background: #fff; border-radius: 50%;
  color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.1); transition: transform .2s, background .2s, color .2s; }
.hub-ring a:hover svg, .hub-ring a:focus-visible svg { transform: translateY(-3px) scale(1.06); background: var(--accent); color: #fff; }
.hub-ring a:focus-visible { outline: none; }
.hub-ring a:focus-visible span { text-decoration: underline; }
.hub-title { text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1rem auto 0; max-width: 720px; }
.hub-title span { display: block; font-size: .6em; font-weight: 400; color: var(--muted); margin-top: .4rem; font-family: var(--sans); }
@media (max-width: 640px) {
  .hub { width: auto; height: auto; }
  .hub-photo { position: static; transform: none; width: 72vw; height: 72vw; max-width: 320px; max-height: 320px; display: block; margin: 0 auto 1.5rem; }
  .hub-ring { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 1.2rem; }
  .hub-ring li { flex: 0 0 33.33%; }
  .hub-ring li { position: static; transform: none; }
  .hub-ring a { width: auto; }
  .hub-ring svg { width: 26px; height: 26px; padding: 15px; }
}

/* visual rhythm: every other section gets a soft full-width band */
main > section:nth-of-type(even):not(.hub-sec) { background: var(--panel-soft); box-shadow: 0 0 0 100vmax var(--panel-soft); clip-path: inset(0 -100vmax); border-bottom: 0; }
main > section:nth-of-type(even) + section { border-top: 0; }
:root { --panel-soft: #ebe7df; }
section[id] { scroll-margin-top: 90px; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.jump a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem 1rem; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.social-links { margin-top: .6rem; font-size: .9rem; }
.social-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.social-links a:hover { color: var(--accent); }

/* Spec Work page */
.spec-hint { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.spec-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .75rem 0 1rem; margin: 0 0 1.5rem; }
.spec-strip:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.spec-strip .card { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
.spec-strip .card img { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.spec-video { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
.spec-table-wrap { overflow-x: auto; }
.spec-table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.spec-table td:first-child { font-weight: 700; white-space: nowrap; }
.spec-table td:nth-child(2) { color: var(--muted); width: 32%; }
.spec-post { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; }
.spec-post p { margin: 0 0 .6rem; }
.spec-label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.spec-note { color: var(--muted); font-size: .9rem; margin-top: 2rem; }
@media (max-width: 760px) { .spec-video { grid-template-columns: 1fr; } .spec-video .card { max-width: 300px; } }
