/* ==========================================================================
   Nick Creider — portfolio
   Matches the original WordPress look: mint background, peach topographic lines,
   Jost type, black buttons, centered layouts. Plain CSS, no build step.
   ========================================================================== */

/* Jost (SIL Open Font License), self-hosted so the site works offline */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 400; font-display: block; src: url("../fonts/jost-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: block; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 500; font-display: block; src: url("../fonts/jost-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 600; font-display: block; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: italic; font-weight: 600; font-display: block; src: url("../fonts/jost-latin-600-italic.woff2") format("woff2"); }

:root {
  --bg: #e0ede8;          /* mint, sampled from the original */
  --bg-header: #e4efeb;
  --surface: #eef5f2;
  --card: #f6faf8;
  --line: rgba(17, 24, 21, .12);
  --text: #111513;
  --muted: #4f5a55;
  --peach: #f0cca4;       /* topo lines */
  --orange: #d9772b;      /* accent */
  --navy: #2a3a7c;        /* from the logo gradient */
  --teal: #3497b6;

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --radius: 18px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 300; }
.skip-link:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4, h5 { font-family: var(--font); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 1em; }
.center { text-align: center; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--navy), var(--teal), var(--orange)); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(228, 239, 235, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0,0,0,.04); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; max-width: 1340px; }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; transition: transform .35s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 8px 12px; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s, background .25s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 720px) {
  .site-header .wrap { height: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg-header); max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
  .nav-open .nav { max-height: 320px; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav a { padding: 12px 0; font-size: 1.25rem; }
  .nav a::after { left: 0; right: auto; width: 40px; }
}

/* ---------- Buttons (black, italic caps — like the original) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 12px 18px; border-radius: 5px; border: 0; cursor: pointer;
  background: #000; color: #fff; text-decoration: none;
  font-family: var(--font); font-weight: 500; font-style: italic; text-transform: uppercase; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transition: transform .6s var(--ease); }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217,119,43,.28); }
.btn:hover::after { transform: translateX(120%); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px #000; }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,.04); box-shadow: inset 0 0 0 1.5px #000; }

/* ---------- Topographic background ---------- */
.topo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 30% 62% at 50% 50%, transparent 55%, #000 100%);
          mask-image: radial-gradient(ellipse 30% 62% at 50% 50%, transparent 55%, #000 100%); }
.topo img { position: absolute; left: -4%; top: -6%; width: 108%; height: 112%; max-width: none; object-fit: cover; animation: topo 48s ease-in-out infinite alternate; }
@keyframes topo { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-2.5%, 2%, 0) rotate(1.2deg); } }
@media (max-width: 760px) {
  .topo { -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.25) 40%, rgba(0,0,0,.25) 70%, #000); mask-image: linear-gradient(#000, rgba(0,0,0,.25) 40%, rgba(0,0,0,.25) 70%, #000); }
}

/* ---------- Hero (centered, like the original) ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(28px, 4vw, 44px) 0 clamp(26px, 3vw, 36px); }
.hero .wrap { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-bottom: .45em; }
.hero-photo {
  position: relative; display: block; width: min(100%, 384px); margin: 0 auto 24px; border-radius: 26px; overflow: hidden; aspect-ratio: 384 / 246;
  box-shadow: 0 18px 40px rgba(28, 54, 46, .28);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-pos, 50% 45%); transition: transform 1.2s var(--ease); }
.hero-photo:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 26px 50px rgba(28, 54, 46, .32); }
.hero-photo:hover img { transform: scale(1.04); }
.hero .tagline { font-weight: 600; font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: .6em; }
.hero .lede { font-size: 1.04rem; max-width: 640px; margin: 0 auto 1.4em; }
/* load-in */
.hero .in-1, .hero .in-2, .hero .in-3, .hero .in-4, .hero .in-5 { opacity: 0; animation: up .9s var(--ease) forwards; }
.hero .in-2 { animation-delay: .12s; } .hero .in-3 { animation-delay: .24s; } .hero .in-4 { animation-delay: .34s; } .hero .in-5 { animation-delay: .44s; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Full-bleed project strip (4 images) ---------- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip a { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / .64; color: #fff; text-decoration: none; background: #cfdcd7; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.strip span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-weight: 500; font-size: 1.02rem; line-height: 1.25;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); transform: translateY(100%); transition: transform .45s var(--ease);
}
.strip a:hover img { transform: scale(1.06); }
.strip a:hover span, .strip a:focus-visible span { transform: none; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip span { transform: none; font-size: .92rem; padding-top: 28px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-title { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.section-title h2 { margin: 0; }
.section-title h2::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--peach), var(--orange)); }
.narrow { max-width: 900px; margin: 0 auto; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before, .timeline .fill { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: rgba(17,24,21,.12); }
.timeline .fill { background: linear-gradient(var(--peach), var(--orange)); transform-origin: top; transform: scaleY(0); }
.timeline > li { position: relative; display: grid; grid-template-columns: 210px 1fr; gap: 26px; padding: 22px 0 22px 40px; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 29px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(17,24,21,.25); transition: all .4s var(--ease); }
.timeline > li.lit::before { border-color: var(--orange); background: var(--peach); box-shadow: 0 0 0 5px rgba(240,204,164,.45); }
.timeline .cue { display: none; }
.timeline .when { color: var(--muted); font-size: .95rem; padding-top: 2px; }
.timeline .when .now { display: inline-block; margin-top: 6px; padding: 1px 10px; border-radius: 999px; background: rgba(217,119,43,.12); color: var(--orange); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { margin-bottom: .1em; }
.timeline .org { font-style: italic; color: var(--navy); margin-bottom: .6em; }
.timeline p, .timeline li li { color: #2b322f; font-size: 1rem; }
.timeline ul.points { margin: .4em 0 0; padding-left: 1.1em; }
.timeline ul.points li { margin-bottom: .3em; }
.timeline ul.points li::marker { color: var(--orange); }
@media (max-width: 760px) { .timeline > li { grid-template-columns: 1fr; gap: 2px; padding-left: 34px; } }

/* ---------- Page heads ---------- */
.page-head { position: relative; overflow: hidden; text-align: center; padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .topo { opacity: .75; }
.page-head h1 { margin-bottom: .25em; }
.page-head .sub { color: var(--muted); font-style: italic; margin: 0; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin: 0 0 .6em; }

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--card); color: var(--text); text-decoration: none; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(28,54,46,.06); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card-media { overflow: hidden; aspect-ratio: 4 / 3; background: #cfdcd7; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-body { padding: 14px 18px 18px; }
.card-tags { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 4px; }
.card-title { font-weight: 500; font-size: 1.12rem; line-height: 1.3; margin: 0; }
.card-num { display: none; }
.card:hover { color: var(--text); transform: translateY(-5px); box-shadow: 0 1px 0 var(--line), 0 20px 40px rgba(28,54,46,.16); }
.card:hover .card-media img { transform: scale(1.06); }
.card.hidden { display: none; }
.card.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.chip { font-family: var(--font); font-size: .95rem; padding: 7px 14px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text); border: 1.5px solid rgba(17,24,21,.18); transition: all .2s; }
.chip:hover { border-color: #000; }
.chip[aria-pressed="true"] { background: #000; color: #fff; border-color: #000; }
.chip .n { opacity: .55; margin-left: 5px; font-size: .85em; }
.filter-status { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 26px; }

/* ---------- Project page ---------- */
/* Header = topo backdrop + image banner with the title overlaid on a dark scrim */
.project-head { position: relative; overflow: hidden; text-align: center; padding: clamp(20px, 3vw, 36px) 0 clamp(40px, 5vw, 60px); }
.project-head .topo { opacity: .7; }
.banner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.banner-img { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(320px, 56vh, 580px); border-radius: 22px; overflow: hidden; background: #1c2a26; box-shadow: 0 18px 40px rgba(28,54,46,.2); }
.banner-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s ease-in-out infinite alternate; }
.banner-img::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,16,14,.86) 0%, rgba(8,16,14,.66) 32%, rgba(8,16,14,.22) 68%, rgba(8,16,14,.08) 100%); }
.banner-text { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(18px, 4vw, 48px) clamp(26px, 4.5vw, 50px); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 18px rgba(0,0,0,.45); }
.project-head h1 { color: #fff; margin-bottom: .2em; }
.project-head .sub { font-weight: 600; font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0; color: rgba(255,255,255,.94); }
.crumbs { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: .92rem; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--peach); }
.crumbs .count { color: rgba(255,255,255,.78); }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; background: rgba(52,151,182,.12); color: #1f6d86; }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: start; padding: clamp(36px, 6vw, 64px) 0; }
.project-body.text-only { grid-template-columns: minmax(0, 760px); justify-content: center; }
.project-text p { color: #222926; }
/* Featured sub-project inside a project page (e.g. show-design's bridge show) */
.feature { position: relative; margin: 0 0 clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(28,54,46,.08); overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--peach), var(--orange)); }
.feature-head { text-align: center; margin-bottom: clamp(20px, 3vw, 30px); }
.feature-head h2 { margin-bottom: .25em; }
.feature-meta { margin: 0; color: var(--muted); font-style: italic; }
.facts { list-style: none; margin: 0 0 clamp(24px, 4vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.facts li { padding: 14px 12px; border-radius: 12px; background: var(--surface); text-align: center; line-height: 1.25; }
.facts strong { display: block; font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 600; color: var(--orange); }
.facts span { display: block; margin-top: 4px; color: var(--muted); font-size: .88rem; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.feature-text p { color: #222926; }
.feature-text p:last-child { margin-bottom: 0; }
.feature-media { display: grid; gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-text blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 0 12px 12px 0; font-style: italic; font-size: 1.1rem; }
.project-text .links { margin-top: 1.2em; display: flex; flex-wrap: wrap; gap: 12px; }
.project-media { display: grid; gap: 16px; position: sticky; top: 100px; }
.media-figure { margin: 0; }
.media-figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: #111; box-shadow: 0 10px 24px rgba(28,54,46,.14); }
.media-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; font-style: italic; }
@media (max-width: 900px) { .project-body { grid-template-columns: 1fr; } .project-media { position: static; } }
/* flex (not grid) so a short last row is centered; --cols sets items per row */
.gallery { --cols: 4; --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-bottom: clamp(48px, 8vw, 90px); }
@media (max-width: 1100px) { .gallery { --cols: 3; } }
@media (max-width: 820px) { .gallery { --cols: 2; } }
@media (max-width: 560px) { .gallery { --gap: 10px; } }
.gallery-video { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #000; }
.gallery-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery button { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); padding: 0; border: 0; background: #cfdcd7; cursor: zoom-in; border-radius: 14px; overflow: hidden; display: block; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 26px rgba(28,54,46,.18); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video video { object-fit: contain; }
.video.portrait { aspect-ratio: 18 / 25; width: min(100%, 380px); justify-self: center; } /* vertical phone clips */
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000 center / cover no-repeat; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(0,0,0,.78); transition: background .2s, transform .3s var(--ease); }
.yt::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-35%, -50%); border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt:hover::after { background: var(--orange); transform: translate(-50%, -50%) scale(1.06); }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: clamp(56px, 9vw, 100px); }
.project-nav a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.project-nav a:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(28,54,46,.14); }
.project-nav img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; background: #cfdcd7; }
.project-nav small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.project-nav span { font-weight: 500; line-height: 1.25; }
.project-nav .next { flex-direction: row-reverse; text-align: right; }
@media (max-width: 600px) { .project-nav { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; margin-bottom: clamp(48px, 8vw, 90px); }
.about-grid.flip > :first-child { order: 2; }
.about-grid img { border-radius: 20px; width: 100%; box-shadow: 0 14px 34px rgba(28,54,46,.16); }
.about-lead { font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.35; font-weight: 500; }
.about-lead strong, .about-text strong { color: var(--orange); font-weight: 600; }
.about-text p { font-size: 1.1rem; }
.about-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-pair img { aspect-ratio: 3 / 4; object-fit: cover; }
.about-pair img:last-child { margin-top: 40px; }
.parallax-wrap { overflow: hidden; border-radius: 20px; box-shadow: 0 14px 34px rgba(28,54,46,.16); }
.parallax-wrap img { box-shadow: none; transform: scale(1.12); }
@media (max-width: 820px) { .about-grid, .about-grid.flip { grid-template-columns: 1fr; } .about-grid.flip > :first-child { order: 0; } }

/* full-bleed closing band (sits outside .wrap), styled like .page-head */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 10vw, 120px) var(--gutter); margin-top: clamp(24px, 5vw, 56px); }
.cta .topo { opacity: .75; }
.cta .wrap-in { position: relative; z-index: 1; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin-bottom: 1.4em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 60px); margin-bottom: clamp(56px, 9vw, 100px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; align-content: start; }
.contact-links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; font-weight: 500; box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.contact-links a:hover { color: var(--text); transform: translateX(4px); box-shadow: 0 10px 24px rgba(28,54,46,.12); }
.contact-links svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.contact-links small { display: block; color: var(--muted); font-weight: 400; }
form.contact { display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(28,54,46,.06); }
form.contact label { display: grid; gap: 6px; font-weight: 500; }
form.contact label span { color: var(--muted); font-weight: 400; }
form.contact input, form.contact textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1.5px solid rgba(17,24,21,.15); border-radius: 8px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,119,43,.14); }
form.contact .note { color: var(--muted); font-size: .9rem; margin: 0; }
form.contact .form-status:empty { display: none; }
form.contact .form-status.ok { color: #1d6b4f; font-size: 1rem; font-weight: 500; }
form.contact .form-status.err { color: #b3261e; font-size: 1rem; }
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam honeypot */
form.contact button:disabled { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 38px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(17,24,21,.18); color: var(--text); transition: all .25s var(--ease); }
.social a:hover { border-color: #000; background: #000; color: #fff; transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(12, 18, 16, .94); align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border-radius: 8px; animation: zoomIn .35s var(--ease); }
@keyframes zoomIn { from { transform: scale(.95); opacity: 0; } }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; top: 24px; left: 20px; color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .08em; }
@media (max-width: 560px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .hero [class^="in-"] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Split hero: intro text + oval portrait with sticker illustrations ---------- */
.hero.split { text-align: left; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero.split .topo { -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 70%, #000 100%); mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.15) 70%, #000 100%); }
.hero.split .wrap { max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hero-text { position: relative; z-index: 3; } /* above the contour rings, which overflow .hero-art */
.hero-text h1 { font-weight: 600; font-size: clamp(2.3rem, 4.2vw, 3.2rem); margin-bottom: .2em; }
.hero-text .tagline { font-weight: 600; font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--orange); margin-bottom: 1em; }
.hero-text p { font-size: 1.06rem; max-width: 36em; }
.hero-text .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.hero-art { position: relative; width: min(100%, 540px); margin: 0 auto; aspect-ratio: 520 / 440; }
/* portrait as the summit of a contour map */
.tf-clip { position: absolute; }
.tf-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tf-top { z-index: 2; }
.tf-rings .ring { transform-box: view-box; transform-origin: 48% 51%; transition: transform .9s var(--ease); }
.tf-rings .dash { animation: tfdash 6s linear infinite; }
@keyframes tfdash { to { stroke-dashoffset: -64; } }
.portrait { position: absolute; z-index: 1; display: block; clip-path: url(#tfclip); background: #cfdcd7; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-pos, 50% 50%); display: block; transition: transform 1.2s var(--ease); }
/* hover: contours ripple outward */
.hero-art:hover .portrait img { transform: scale(1.05); }
.hero-art:hover .r1 { transform: scale(1.015); }
.hero-art:hover .r2 { transform: scale(1.03); }
.hero-art:hover .r3 { transform: scale(1.045); transition-delay: .03s; }
.hero-art:hover .r4 { transform: scale(1.06); transition-delay: .06s; }
.hero-art:hover .r5 { transform: scale(1.075); transition-delay: .09s; }
.hero-art:hover .r6 { transform: scale(1.09); transition-delay: .12s; }
.hero-art:hover .r7 { transform: scale(1.105); transition-delay: .15s; }

@media (max-width: 860px) {
  .hero.split .wrap { grid-template-columns: 1fr; }
  .hero.split .hero-art { order: -1; width: min(92%, 440px); margin-bottom: 6px; }
  .hero.split .topo { -webkit-mask-image: none; mask-image: none; opacity: .5; }
}
