/* =====================================================================
   Reto Schneebeli Photography — Design System
   Dark cosmic theme inspired by the night sky, aurora & Milky Way.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Space / surfaces */
  --bg:            #05060c;
  --bg-2:          #090c16;
  --bg-3:          #0d1120;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-2:     rgba(255, 255, 255, 0.06);
  --surface-3:     rgba(255, 255, 255, 0.09);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text:      #eef1f8;
  --text-soft: #c5cce0;
  --text-dim:  #8f99b4;

  /* Aurora accents */
  --green:  #3ff0a0;
  --teal:   #2ee6c0;
  --cyan:   #34d6ff;
  --violet: #9b7bff;
  --pink:   #e07bff;

  --aurora: linear-gradient(110deg, #3ff0a0 0%, #2ee6c0 28%, #34d6ff 55%, #9b7bff 80%, #e07bff 100%);
  --aurora-soft: linear-gradient(110deg, rgba(63,240,160,.18), rgba(52,214,255,.16), rgba(155,123,255,.18));

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --maxw: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 80px -30px rgba(52, 214, 255, 0.25);
  --nav-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layered nebula glow over deep space — sits beneath the aurora canvas.
   Rendered on a fixed, GPU-composited layer so it stays put while scrolling
   without forcing a full-viewport repaint every frame (unlike
   `background-attachment: fixed`, which makes wheel scrolling janky). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 700px at 78% -8%, rgba(155, 123, 255, 0.16), transparent 60%),
    radial-gradient(1000px 620px at 12% 8%, rgba(52, 214, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(63, 240, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #05060c 0%, #070a14 40%, #05060c 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(52, 214, 255, 0.30); color: #fff; }

/* ---------- Aurora canvas (background) ---------- */
#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Everything sits above the canvas */
.site-header,
main,
.site-footer { position: relative; z-index: 2; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--aurora);
}

.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0 0 1.1em; color: var(--text-soft); }
.lead { font-size: 1.18rem; color: var(--text-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

section { padding-block: clamp(72px, 11vw, 140px); }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.section-head p { font-size: 1.08rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 9, 17, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img { height: 46px; width: auto; }
.brand .brand-name {
  display: none; /* header shows the logo only */
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand .brand-name span { color: var(--text-dim); display: block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 10px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--aurora);
}
.nav-links a .ext { opacity: 0.6; font-size: 0.8em; }

.nav-social { display: flex; align-items: center; gap: 6px; padding-left: 8px; margin-left: 4px; border-left: 1px solid var(--border); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--text-soft);
  transition: color 0.25s, background 0.25s, transform 0.25s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  margin-inline: auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.92em 1.5em;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #04130d;
  background: var(--aurora);
  background-size: 180% 180%;
  box-shadow: 0 16px 40px -16px rgba(52, 214, 255, 0.6);
  animation: gradientShift 8s ease infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px rgba(52, 214, 255, 0.75); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface-2); border-color: rgba(255,255,255,0.35); }

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-inner { max-width: 820px; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 400;
  margin-bottom: 0.3em;
}
.hero h1 em { font-style: italic; }
.hero .lead { max-width: 60ch; margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(40px, 7vw, 76px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-meta .stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text);
}
.hero-meta .stat .label { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.04em; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  background: var(--text-soft);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Generic surfaces ---------- */
.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

/* ---------- About (split) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 80% at 30% 10%, rgba(155,123,255,.55), transparent 55%),
    radial-gradient(120% 90% at 80% 20%, rgba(52,214,255,.45), transparent 55%),
    radial-gradient(140% 120% at 50% 120%, rgba(63,240,160,.5), transparent 60%),
    linear-gradient(180deg, #0b1224, #060912);
  display: grid;
  place-items: end center;
}
.about-portrait .portrait-logo {
  width: min(58%, 220px);
  margin-bottom: 14%;
  opacity: 0.96;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.5));
}
/* Real portrait photo: fill the frame, cropped from the top. */
.about-portrait .portrait-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% top;
}
.about-portrait .portrait-note {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--text-dim);
}
.about-body h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.lang-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang-toggle button {
  border: 0; cursor: pointer;
  padding: 7px 16px;
  border-radius: 999px;
  font: 600 0.84rem var(--font-body);
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: transparent;
  transition: color 0.25s, background 0.25s;
}
.lang-toggle button.active { color: #04130d; background: var(--aurora); }
.about-text[hidden] { display: none; }

/* ---------- Article / card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  min-height: 380px;
}
.article-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.article-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.06); }
/* gradient placeholder scenes (used until real photos are added) */
.scene { width: 100%; height: 100%; position: relative; }
.scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,.5), transparent 60%); }
.scene-aurora  { background: linear-gradient(180deg,#060b1a 0%,#0a1430 45%,#0c1d3a 100%); }
.scene-aurora::before { content:""; position:absolute; inset:0; background:
  radial-gradient(60% 50% at 30% 30%, rgba(63,240,160,.55), transparent 60%),
  radial-gradient(55% 60% at 70% 25%, rgba(52,214,255,.45), transparent 60%),
  radial-gradient(70% 60% at 50% 20%, rgba(155,123,255,.35), transparent 65%); filter: blur(6px); }
.scene-milkyway { background: linear-gradient(180deg,#05060f 0%,#0a0a1e 60%,#10122b 100%); }
.scene-milkyway::before { content:""; position:absolute; inset:0; background:
  radial-gradient(40% 120% at 60% 50%, rgba(200,180,255,.35), transparent 60%),
  radial-gradient(30% 90% at 58% 50%, rgba(255,220,180,.25), transparent 60%); transform: rotate(-24deg) scale(1.4); filter: blur(3px); }
.scene-tips { background: linear-gradient(180deg,#0a1326 0%,#0e2238 50%,#123047 100%); }
.scene-tips::before { content:""; position:absolute; inset:0; background:
  radial-gradient(70% 60% at 50% 120%, rgba(63,240,160,.4), transparent 60%),
  radial-gradient(50% 50% at 80% 10%, rgba(255,200,120,.5), transparent 55%); filter: blur(4px); }

.article-card .thumb .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px;
  background: rgba(5,6,12,0.6);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
  color: var(--text);
}
.article-card .thumb .badge.soon { color: #04130d; background: var(--aurora); border-color: transparent; }

.article-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-dim); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.article-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.article-card .excerpt { font-size: 0.96rem; color: var(--text-dim); margin-bottom: 18px; }
.article-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; color: var(--text-dim); }
.article-card .read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.article-card .read-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.article-card:hover .read-more svg { transform: translateX(4px); }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.article-card.is-soon { cursor: default; }
.article-card.is-soon:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ---------- Gallery showcase ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gallery a {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
}
.gallery a .scene { transition: transform 0.6s var(--ease); }
.gallery a:hover .scene { transform: scale(1.07); }
.gallery a .cap {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-size: 0.86rem; font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.gallery a .cap small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--text-soft); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(52,214,255,.18), transparent 60%),
    radial-gradient(120% 140% at 50% 120%, rgba(155,123,255,.18), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
}
.cta-card h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.cta-card p { max-width: 56ch; margin-inline: auto; margin-bottom: 2em; }
.cta-card .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(5,6,12,0.6));
  padding-block: clamp(56px, 8vw, 88px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 18px; }
.footer-brand p { max-width: 42ch; color: var(--text-dim); font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-soft); font-size: 0.96rem; transition: color 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-col a svg { width: 17px; height: 17px; opacity: 0.8; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.86rem;
}
.footer-bottom .social { display: flex; gap: 8px; }

/* ---------- Article reading page ---------- */
.article-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(30px, 5vw, 56px);
}
.article-hero .kicker { margin-bottom: 18px; }
.article-hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 400; max-width: 18ch; }
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; color: var(--text-dim); font-size: 0.9rem; margin-top: 20px; }
.article-cover {
  height: clamp(240px, 42vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.08rem; color: var(--text-soft); }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid transparent;
  border-image: var(--aurora) 1;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
}
.prose figure { margin: 2em 0; }
.prose figure .scene, .prose img { border-radius: var(--radius); border: 1px solid var(--border); height: 360px; }
.prose figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--text-dim); text-align: center; }
.callout {
  margin: 2em 0; padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--aurora-soft);
}
.callout strong { color: var(--text); }
.draft-note {
  margin: 1.5em 0 2.5em;
  padding: 16px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.95rem;
}

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-weight: 600; margin-bottom: 8px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

.page-hero { padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 120px)); padding-bottom: clamp(20px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 400; }
.page-hero p { max-width: 60ch; font-size: 1.12rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 440px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-social { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px clamp(20px, 5vw, 48px) 28px;
    background: rgba(7, 9, 17, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  body.nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .nav-links .mobile-social { display: flex; gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
  /* While the window is being resized, don't animate the menu — prevents the
     expanded menu from flashing as the layout crosses the breakpoint. */
  body.nav-resizing .nav-links { transition: none; }
}
@media (min-width: 761px) { .nav-links .mobile-social { display: none; } }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
