/* matleger.com v0.1.0: rebuilt from the Base44 draft (same palette, fonts and layout). */
:root {
  --bg: #0b0f0c; --bg2: #101812; --bg3: #162019; --bg4: #1d2920;
  --green1: #183a29; --green2: #24543a; --green3: #39734a; --green4: #5c8f5d;
  --red1: #6e1e24; --red2: #8d2930; --red3: #b43a38;
  --amber: #c8923a; --copper: #b07a4a;
  --text: #efe9dc; --soft: #c9cbbf; --muted: #a3ad9e; --faint: #7f8a7c;
  --line: rgba(163, 173, 158, .16); --line2: rgba(163, 173, 158, .28);
  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1240px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 16px/1.75 var(--sans); background: var(--bg); color: var(--soft); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--red2); color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--bg); padding: 8px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--text); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.display { font: 400 clamp(44px, 6.4vw, 88px)/1 var(--serif); letter-spacing: .02em; text-transform: uppercase; color: var(--text); margin: 0 0 22px; }
.display-serif { font: 400 clamp(44px, 6vw, 84px)/1.02 var(--serif); color: var(--text); margin: 0 0 22px; }
.display-serif.sm { font-size: clamp(28px, 3vw, 36px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin: 0; color: var(--muted); }
.k { font: 600 10px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--soft); }
.k.red { color: var(--red3); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--text);
  padding: 14px 22px; border: 1px solid var(--green2); border-radius: 99px; background: rgba(11, 15, 12, .55); transition: border-color .3s, background .3s, box-shadow .3s; }
.btn:hover { border-color: var(--green4); background: rgba(36, 84, 58, .35); box-shadow: 0 0 24px rgba(92, 143, 93, .25); }
.btn-solid { background: rgba(36, 84, 58, .3); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--gut); pointer-events: none; }
.nav-inner { pointer-events: auto; max-width: 1220px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 14px 10px 22px; border: 1px solid transparent; border-radius: 99px; transition: background .4s, border-color .4s, backdrop-filter .4s; }
.nav.solid .nav-inner { background: rgba(11, 15, 12, .72); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 14px; font: 500 15px/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 10px rgba(180, 58, 56, .35)); }
.brand-sm { font-size: 12px; gap: 10px; } .brand-sm img { width: 28px; height: 28px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links > li > a, .menu-btn { display: inline-flex; align-items: center; gap: 4px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); padding: 10px 12px; border-radius: 99px; transition: color .25s; }
.nav-links > li > a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); }
.menu-btn svg { width: 12px; height: 12px; transition: transform .25s; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.menu { list-style: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, -6px); min-width: 250px; margin: 0; padding: 8px;
  background: rgba(16, 24, 18, .96); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 8px; font: 400 19px/1.2 var(--serif); color: var(--text); }
.menu a .k { font-size: 9px; color: var(--muted); }
.menu a:hover { background: var(--bg4); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* scroll thread on the right edge */
.thread { position: fixed; right: 20px; top: 50%; height: 44vh; transform: translateY(-50%); width: 2px; z-index: 40; pointer-events: none; }
.thread::before { content: ""; position: absolute; inset: 0; background: rgba(176, 122, 74, .18); border-radius: 2px; }
.thread-line { position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--p, 0) * 100%); background: linear-gradient(var(--copper), var(--amber)); border-radius: 2px; }
.thread-dot { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px 3px rgba(200, 146, 58, .55); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.motion-off [data-reveal], .no-js [data-reveal] { opacity: 1; transform: none; transition: none; }

/* drifting motes (fireflies and ember specks) */
.motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.mote { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 8px 1px var(--c); opacity: 0; animation: drift var(--d) linear var(--w) infinite; }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .8; } 80% { opacity: .5; } 100% { transform: translate(var(--x), -110vh); opacity: 0; } }
.motion-off .mote { display: none; }

/* ---------- hero: the Merlin picture fills the whole hero (soft copy behind, sharp copy on the right) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; overflow: hidden; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; background: center 30%/cover no-repeat; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 10, .78) 0%, rgba(8, 12, 10, .62) 45%, rgba(8, 12, 10, .3) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 3; pointer-events: none; background: linear-gradient(rgba(8, 12, 10, .85), rgba(8, 12, 10, .45) 55%, transparent); }
.hero-inner { position: relative; z-index: 2; width: 100%; margin: 0; padding: 0 0 0 var(--gut);
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: clamp(24px, 4vw, 64px); }
.hero-text { position: relative; z-index: 2; text-align: center; padding: 110px 0 60px; }
.hero-words { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 34px);
  font: 600 clamp(13px, 1.2vw, 16px)/1.3 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.hero-words li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-words svg { width: 26px; height: 26px; stroke-width: 1.5; filter: drop-shadow(0 0 6px currentColor); }
.hero-words span { margin-right: -.3em; text-shadow: 0 0 14px currentColor, 0 1px 8px rgba(0, 0, 0, .9); }
.hero-words .w1 { color: #7ee0a4; }   /* green bubble */
.hero-words .w2 { color: #8fd0ff; }   /* blue bubble */
.hero-words .w3 { color: #f1cf72; }   /* gold bubble */
.hero-name { font: 400 clamp(64px, 9.4vw, 140px)/.9 var(--serif); letter-spacing: .02em; text-transform: uppercase; color: var(--text); margin: 0 0 22px; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.hero-name span { display: block; }
.hero-tag { font: italic 400 clamp(20px, 2vw, 26px)/1.3 var(--serif); color: var(--text); margin: 0 0 36px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-btns .btn { background: rgba(8, 12, 10, .6); }
/* the sharp picture: full height, top to bottom, all three bubbles in view */
.hero-portrait { position: relative; margin: 0; align-self: stretch; height: 100svh; min-height: 620px; aspect-ratio: 1203 / 1800; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* soft edges are baked into the picture files (merlin-hero-fade*.webp), so no CSS masks or overlays */
.hero-portrait picture { display: block; width: 100%; height: 100%; }
.home .nav:not(.solid) .nav-links > li > a, .home .nav:not(.solid) .menu-btn { text-shadow: 0 1px 6px rgba(0, 0, 0, .95), 0 0 14px rgba(0, 0, 0, .8); color: var(--text); }
.hero-cue { position: relative; display: inline-block; margin-top: 56px; font: 600 10px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--soft); padding-bottom: 34px; }
.hero-cue::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 24px; background: linear-gradient(var(--soft), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
.hero-words, .hero-name span, .hero-tag, .hero-btns { animation: rise 1.2s var(--ease) both; }
.hero-name span:nth-child(1) { animation-delay: .15s; } .hero-name span:nth-child(2) { animation-delay: .3s; }
.hero-tag { animation-delay: .5s; } .hero-btns { animation-delay: .7s; }
.hero-portrait { animation: fade 1.8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
.motion-off .hero *, .motion-off .hero-portrait, .motion-off .hero-cue::after { animation: none !important; }

/* ---------- growth (tree grows on scroll) ---------- */
.growth { position: relative; height: 320vh; background: var(--bg); }
.growth-stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.growth-cap { position: absolute; left: 50%; transform: translateX(-50%); width: min(560px, 90vw); text-align: center; transition: opacity .6s; }
.growth-cap p:not(.eyebrow) { font: italic 400 clamp(20px, 2.2vw, 26px)/1.45 var(--serif); color: var(--soft); margin: 0; }
.growth-first { top: 16vh; opacity: calc(1 - var(--g, 0) * 2.2); }
.growth-last { bottom: 12vh; opacity: calc((var(--g, 0) - .78) * 5); }
.tree { width: min(440px, 80vw); height: auto; max-height: 72svh; overflow: visible; }
.tree path { stroke: var(--green3); stroke-width: 3; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(57, 115, 74, .45)); }
.tree .trunk { stroke-width: 5; stroke-dasharray: 370; stroke-dashoffset: calc(370 - 370 * min(1, var(--g, 0) * 2)); }
.tree .roots path { stroke-width: 2.4; stroke-dasharray: 110; stroke-dashoffset: calc(110 - 110 * min(1, var(--g, 0) * 5)); }
.tree .branches path { stroke-width: 2.6; stroke-dasharray: 160; stroke-dashoffset: calc(160 - 160 * clamp(0, (var(--g, 0) - .45) * 3.4, 1)); }
.tree .leaves image { opacity: clamp(0, (var(--g, 0) - .72) * 6 - var(--i) * .15, 1); transform-box: fill-box; transform-origin: center; transform: scale(clamp(0, (var(--g, 0) - .72) * 6 - var(--i) * .15, 1)); filter: drop-shadow(0 0 8px rgba(180, 58, 56, .5)); }

/* ---------- path ---------- */
.path { padding: 140px 0 120px; background: linear-gradient(var(--bg), var(--bg3)); }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.path-text p { margin: 0 0 18px; max-width: 560px; }
.frame { margin: 0; border: 1px solid var(--line2); padding: 0; position: relative; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.frame::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(239, 233, 220, .1); pointer-events: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.path-img { aspect-ratio: 4 / 5; }

/* ---------- rooted ---------- */
.rooted { position: relative; min-height: 110vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 140px 0; text-align: center; }
.rooted-bg { position: absolute; inset: 0; background: center/cover; }
.rooted-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11, 15, 12, .35), rgba(11, 15, 12, .78)), linear-gradient(var(--bg3), transparent 18%, transparent 82%, var(--bg2)); }
.rooted-text { position: relative; z-index: 2; max-width: 680px; padding: 0 var(--gut); }
.rooted-text p { color: var(--text); margin: 0 0 18px; text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }

/* ---------- work ---------- */
.work { padding: 130px 0; background: linear-gradient(var(--bg2), var(--bg3)); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 14px; }
.work-card { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.work-card.tall { grid-row: span 2; }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transition: transform 1.2s var(--ease), opacity .6s; }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 15, 12, .95) 0%, rgba(11, 15, 12, .35) 55%, transparent 100%); }
.work-card:hover img { transform: scale(1.05); opacity: .8; }
.work-card-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.work-card .t { font: 400 30px/1.1 var(--serif); color: var(--text); }
.work-card .d { font-size: 13px; line-height: 1.6; color: var(--soft); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.work-card:hover .d, .work-card:focus-visible .d { max-height: 120px; opacity: 1; }
.go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font: 600 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--text); }
.go svg { width: 12px; height: 12px; }

/* ---------- voice ---------- */
.voice { position: relative; padding: 130px 0; background: var(--bg2); overflow: hidden; }
.voice::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 80%, rgba(200, 146, 58, .08), transparent 55%), radial-gradient(ellipse at 80% 10%, rgba(57, 115, 74, .09), transparent 50%); }
.voice .wrap { position: relative; z-index: 2; }
.voice-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line2); background: #000; overflow: hidden; }
.player iframe, .player-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { background: center/cover; display: grid; place-items: center; }
.player-poster::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); transition: background .3s; }
.player-poster:hover::before { background: rgba(0, 0, 0, .05); }
.player-btn { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--red2); color: #fff; box-shadow: 0 0 30px rgba(180, 58, 56, .5); }
.player-btn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.track { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 20px; border: 1px solid var(--line2); background: rgba(11, 15, 12, .55); transition: border-color .3s, background .3s; }
.track:hover { border-color: var(--green3); }
.track.on { border-color: var(--red2); background: rgba(110, 30, 36, .18); }
.track-play { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green1); color: var(--green4); flex: none; }
.track.on .track-play { background: var(--red2); color: #fff; }
.track-play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; margin-left: 2px; }
.track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track-text .t { font: 400 19px/1.25 var(--serif); color: var(--text); }
.track-text .k { font-size: 9px; color: var(--muted); }
.track-time { font-size: 12px; color: var(--muted); }

/* ---------- meet ---------- */
.meet { padding: 140px 0; background: linear-gradient(var(--bg2), var(--bg3)); }
.meet-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.meet-img { aspect-ratio: 4 / 5; }
.meet-text p { margin: 0 0 18px; max-width: 560px; }

/* ---------- worlds ---------- */
.worlds { padding: 130px 0; background: var(--bg3); }
.worlds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.world { position: relative; display: block; min-height: 420px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform 1.2s var(--ease), opacity .6s; }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 15, 12, .97) 10%, rgba(11, 15, 12, .5) 55%, rgba(11, 15, 12, .1) 100%); }
a.world:hover img { transform: scale(1.05); opacity: .72; }
.world-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.world .k { color: var(--copper); }
.world .t { font: 400 34px/1.05 var(--serif); color: var(--text); }
.world .d { font-size: 13px; line-height: 1.65; color: var(--soft); }
.world .go { color: var(--amber); }

/* ---------- let's talk ---------- */
.talk { position: relative; padding: 140px 0; overflow: hidden; }
.talk-bg { position: absolute; inset: 0; background: center/cover; }
.talk-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg3), rgba(11, 15, 12, .55) 25%, rgba(11, 15, 12, .7) 80%, var(--bg)); }
.talk-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; padding: 0 var(--gut); }
.talk-inner > p { margin: 0 0 30px; color: var(--text); }
.talk-form { display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { width: 100%; font: 400 15px/1.5 var(--sans); color: var(--text); background: rgba(11, 15, 12, .7); border: 1px solid var(--line2); border-radius: 4px; padding: 13px 15px; transition: border-color .25s, background .25s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green4); background: rgba(11, 15, 12, .85); }
textarea { resize: vertical; min-height: 130px; }
.talk-form .btn { justify-self: start; margin-top: 6px; }

/* ---------- footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 34px 0 30px; }
.foot-top, .foot-bottom { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-bottom { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot-bottom em { font: italic 400 15px var(--serif); color: var(--soft); }
.foot-line { display: inline-flex; align-items: baseline; gap: 14px; }
.sky { display: inline-flex; gap: 7px; font: 400 14px/1 "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", var(--serif); color: var(--copper); opacity: .75; }
.signoff { font-size: 22px; letter-spacing: .12em; margin: 26px 0 0; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.talk .signoff { margin-top: 30px; }
.simple .signoff { margin: -6px 0 28px; }
.post-body .signoff { margin: 34px 0 0; text-align: left; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { font: 500 10px/2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.motion-btn { font: 600 9px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 9px 14px; }
.motion-btn b { font-weight: 600; color: var(--text); }

/* ---------- work pages ---------- */
.page-hero, .post-hero { position: relative; min-height: 78svh; display: flex; align-items: center; overflow: hidden; padding: 130px 0 80px; }
.page-hero-bg, .post-hero-bg { position: absolute; inset: 0; background: center/cover; opacity: .45; }
.page-hero-bg::after, .post-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 15, 12, .9), rgba(11, 15, 12, .35)), linear-gradient(0deg, var(--bg), transparent 45%); }
.page-hero-text { position: relative; z-index: 2; }
.page-hero-text > p:last-child { max-width: 520px; margin: 0; }
.page-hero-text .back { display: flex; width: fit-content; }
.back { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.back:hover { color: var(--text); }
.prose-wrap { max-width: 820px; padding-top: 60px; padding-bottom: 90px; }
.intro { font: 400 clamp(22px, 2.3vw, 28px)/1.5 var(--serif); color: var(--text); margin: 0 0 44px; }
.pull { margin: 0 0 70px; padding: 4px 0 4px 26px; border-left: 2px solid var(--red2); font: italic 400 clamp(22px, 2.2vw, 28px)/1.4 var(--serif); color: var(--text); }
.numbered { margin: 0 0 52px; max-width: 680px; }
.numbered .num { font: 600 10px/1 var(--sans); letter-spacing: .2em; color: var(--copper); }
.numbered h2 { font: 400 30px/1.2 var(--serif); color: var(--text); margin: 10px 0 14px; }
.numbered p { margin: 0 0 14px; }
.gallery { padding: 70px 0; background: var(--bg3); }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1060px; }
.gallery .frame { aspect-ratio: 4 / 3; }
.others { padding: 120px 0 80px; background: linear-gradient(var(--bg3), var(--bg2)); }
.others-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card.small { height: 190px; }
.next-dim { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 60px; color: var(--muted); }
.next-dim .eyebrow { margin: 0; color: var(--muted); }
.next-dim .t { font: 400 22px var(--serif); color: var(--text); }
.next-dim:hover .t { color: var(--amber); }
.cta { padding: 120px 0; background: var(--bg2); border-top: 1px solid var(--line); }
.cta-inner { text-align: center; max-width: 640px; }
.cta-inner .display-serif { font-size: clamp(36px, 4vw, 52px); }
.cta-inner p { margin: 0 auto 30px; max-width: 440px; }

/* ---------- journal ---------- */
.journal-head { padding: 160px 0 30px; background: linear-gradient(var(--bg2), var(--bg)); }
.journal-head .section-head { margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filters button { font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line2); border-radius: 99px; padding: 9px 16px; transition: background .25s, border-color .25s; }
.filters button:hover { border-color: var(--green3); }
.filters button.on { background: var(--red2); border-color: var(--red2); color: #fff; }
.journal-list { padding: 40px 0 120px; }
.post-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.post-feature .post-img { aspect-ratio: 4 / 3; }
.post-img { display: block; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 2; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-feature:hover img, .post-card:hover img { transform: scale(1.05); }
.post-text { display: flex; flex-direction: column; gap: 10px; }
.post-feature .t { font: 400 clamp(32px, 3.4vw, 46px)/1.1 var(--serif); color: var(--text); }
.post-text .d { font-size: 14px; color: var(--soft); }
.meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 11px; color: var(--muted); margin: 0; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg2); transition: border-color .3s; }
.post-card:hover { border-color: var(--line2); }
.post-card .post-img { border: 0; border-bottom: 1px solid var(--line); }
.post-card .post-text { padding: 20px; }
.post-card .t { font: 400 24px/1.2 var(--serif); color: var(--text); }
.post-feature .go { color: var(--text); margin-top: 8px; }
.is-hidden { display: none !important; }

/* ---------- post ---------- */
.post-hero { min-height: 60svh; text-align: center; padding-bottom: 150px; }
.post-hero-bg { opacity: .35; }
.post-hero-bg::after { background: linear-gradient(0deg, var(--bg), rgba(11, 15, 12, .6)); }
.post-hero-text { position: relative; z-index: 2; max-width: 860px; }
.crumbs { display: flex; justify-content: center; align-items: baseline; gap: 16px; margin: 0 0 20px; }
.crumbs .back { margin: 0; }
.post-hero .excerpt { font: italic 400 20px/1.5 var(--serif); color: var(--soft); margin: 0 0 20px; }
.post-hero .meta { justify-content: center; color: var(--soft); }
.post-figure { position: relative; z-index: 3; max-width: 820px; margin: -120px auto 0; aspect-ratio: 3 / 2; }
.post-body { max-width: 680px; margin: 0 auto; padding: 60px var(--gut) 60px; box-sizing: content-box; }
.post-body > p { margin: 0 0 22px; font-size: 17px; }
.post-body > p:first-of-type::first-letter { float: left; font: 400 64px/.8 var(--serif); color: var(--red3); margin: 8px 12px 0 0; }
.post-body h2 { font: 400 32px/1.2 var(--serif); color: var(--text); margin: 44px 0 16px; }
.post-body blockquote { margin: 32px 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--red2); font: italic 400 24px/1.45 var(--serif); color: var(--text); }
.share { display: flex; align-items: center; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.share .eyebrow { margin: 0; color: var(--muted); }
.share-btns { display: flex; gap: 8px; }
.share-btns > * { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; color: var(--soft); transition: border-color .25s, color .25s; }
.share-btns > *:hover { border-color: var(--green4); color: var(--text); }
.share-btns .done { border-color: var(--amber); color: var(--amber); }
.author { display: flex; align-items: center; gap: 18px; margin-top: 34px; padding: 22px; border: 1px solid var(--line); background: var(--bg2); }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.author .eyebrow { display: block; margin: 0 0 4px; font-size: 9px; }
.author .t { display: block; font: 400 22px/1.2 var(--serif); color: var(--text); }
.author .d { display: block; font-size: 13px; color: var(--muted); }
.post-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 1px solid var(--line); max-width: 48%; transition: border-color .25s; }
.post-nav a:hover { border-color: var(--line2); }
.post-nav .nx { margin-left: auto; text-align: right; align-items: flex-end; }
.post-nav .eyebrow { margin: 0; font-size: 9px; color: var(--muted); }
.post-nav .t { font: 400 19px/1.25 var(--serif); color: var(--text); }
.subscribe { padding: 80px 0 110px; text-align: center; }
.subscribe-inner { max-width: 520px; }
.subscribe p { margin: 0 0 22px; color: var(--muted); }
.subscribe form { display: flex; gap: 10px; justify-content: center; }
.subscribe label { flex: 1; max-width: 300px; }

/* ---------- thank you / 404 ---------- */
.simple { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px var(--gut); }
.simple-bg { position: absolute; inset: 0; background: center/cover; opacity: .5; }
.simple-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse, rgba(11, 15, 12, .5), var(--bg) 80%); }
.simple-inner { position: relative; z-index: 2; max-width: 560px; }
.simple-inner p { margin: 0 0 30px; color: var(--text); }

/* ---------- tablets and phones ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav nav { position: absolute; top: calc(100% + 10px); left: var(--gut); right: var(--gut); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: rgba(16, 24, 18, .97); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; max-height: calc(100svh - 110px); overflow-y: auto; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.open .nav-inner { background: rgba(11, 15, 12, .9); border-color: var(--line); }
  .nav-links > li > a, .menu-btn { width: 100%; justify-content: space-between; padding: 15px 14px; font-size: 12px; }
  .menu { position: static; transform: none; min-width: 0; background: transparent; border: 0; padding: 0 0 6px 10px; display: none; opacity: 1; visibility: visible; backdrop-filter: none; }
  .has-menu.open .menu { display: block; transform: none; }
  .thread { right: 8px; }
}
@media (max-width: 900px) {
  /* phones + tablets: the whole hero fits one screen; the picture (no fade) fills it and runs past both sides,
     the words sit over its lower part on a dark gradient */
  .hero { height: 100svh; min-height: 560px; }
  .hero-inner { display: block; padding: 0; }
  .hero-portrait { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: auto; min-height: 0; aspect-ratio: 1203 / 1800; animation: none; }
  .hero-portrait img { object-position: 50% 0; }
  .hero-portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14%; pointer-events: none; background: linear-gradient(0deg, var(--bg), transparent); }
  .hero-inner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 15, 12, .55) 20%, rgba(11, 15, 12, .92) 38%, var(--bg) 56%); }
  .hero-bg { display: none; }
  .hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gut) max(22px, 3svh); }
  .hero-name { font-size: min(15vw, 9.5svh, 110px); margin: 0 0 10px; }
  .hero-tag { font-size: min(5.6vw, 3svh, 26px); margin: 0 0 max(14px, 2.2svh); }
  .hero-words { margin-bottom: max(10px, 1.6svh); }
  .hero-btns { flex-wrap: nowrap; gap: 10px; }
  .hero-cue { display: none; }
  .path-grid, .meet-grid, .voice-grid, .post-feature { grid-template-columns: 1fr; }
  .meet-img { order: 2; }
  .work-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .work-card.tall { grid-row: span 1; grid-column: span 2; }
  .work-card .d { max-height: none; opacity: 1; }
  .worlds-grid, .others-grid, .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .brand { font-size: 13px; letter-spacing: .24em; gap: 10px; } .brand img { width: 38px; height: 38px; }
  .nav { top: 10px; }
  .nav-inner { padding: 6px 6px 6px 14px; }
  .hero-words { gap: 14px; letter-spacing: .2em; font-size: 12px; }
  .hero-words span { margin-right: -.2em; }
  .hero-words svg { width: 22px; height: 22px; }
  .hero-btns .btn { padding: 12px 13px; font-size: 9.5px; letter-spacing: .14em; gap: 6px; white-space: nowrap; }
  .path, .work, .voice, .meet, .worlds, .talk { padding: 90px 0; }
  .section-head { margin-bottom: 38px; }
  .work-grid, .worlds-grid, .others-grid, .post-grid, .gallery-grid { grid-template-columns: 1fr; }
  .work-card.tall { grid-column: auto; }
  .world { min-height: 380px; }
  .row2 { grid-template-columns: 1fr; }
  .track { padding: 14px; gap: 12px; }
  .track-text .t { font-size: 17px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .thread { display: none; }
  .post-figure { margin-top: -90px; margin-left: var(--gut); margin-right: var(--gut); }
  .post-nav { flex-direction: column; } .post-nav a { max-width: none; }
  .subscribe form { flex-direction: column; align-items: stretch; } .subscribe label { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
