/* ==========================================================================
   Agraz Family — public site (/)
   ========================================================================== */

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 160px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  padding-top: env(safe-area-inset-top);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
}
.site-header.scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: height .4s var(--ease);
}
.scrolled .header-inner { height: 66px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; opacity: .86;
  transition: opacity .2s, background-color .2s;
}
.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.scrolled .site-nav a:hover { background: var(--sea-soft); }
.site-nav a.active { opacity: 1; }
.site-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.scrolled .header-actions .icon-btn:hover { background: var(--sea-soft); }
.header-cta { --btn-bg: #fff; --btn-fg: #10252b; }
.scrolled .header-cta { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.menu-btn { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--night); color: var(--on-night);
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  animation: menuIn .45s var(--ease-out);
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 350; letter-spacing: -.02em;
}
.mobile-menu nav a span { font-family: var(--font-sans); font-size: var(--fs-xs); letter-spacing: .14em; color: var(--sunset); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--on-night); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .header-cta { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  color: #fff; background: var(--night); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.1); animation: heroZoom 3.2s var(--ease-out) forwards; }
:root[data-tod="dawn"] .hero-media img { object-position: 50% 55%; }
:root[data-tod="day"] .hero-media img { object-position: 50% 60%; }
:root[data-tod="night"] .hero-media img { object-position: 28% 55%; }
/* brighter morning + midday photos get a deeper shade behind the type */
:root[data-tod="dawn"] .hero::before, :root[data-tod="day"] .hero::before {
  background:
    linear-gradient(180deg, rgba(7, 17, 20, .55) 0%, rgba(7, 17, 20, .08) 28%),
    linear-gradient(0deg, rgba(7, 17, 20, .92) 0%, rgba(7, 17, 20, .62) 38%, rgba(7, 17, 20, .2) 72%),
    linear-gradient(90deg, rgba(7, 17, 20, .66) 0%, rgba(7, 17, 20, .28) 45%, transparent 72%);
}
:root[data-tod="dawn"] .hero-eyebrow, :root[data-tod="day"] .hero-eyebrow { color: #fff; }
.hero-eyebrow, .hero-title, .hero-lede { text-shadow: 0 2px 28px rgba(7, 17, 20, .35); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 17, 20, .55) 0%, rgba(7, 17, 20, 0) 26%),
    linear-gradient(0deg, rgba(7, 17, 20, .92) 0%, rgba(7, 17, 20, .55) 34%, rgba(7, 17, 20, .05) 66%),
    radial-gradient(120% 70% at 0% 100%, rgba(7, 17, 20, .55), transparent 60%);
}
.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 140px var(--gutter) clamp(88px, 12vh, 136px); }
.hero-eyebrow { color: var(--sunset); margin-bottom: clamp(16px, 2.5vh, 28px); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 330;
  font-size: clamp(3.7rem, 1.2rem + 10.5vw, 11.5rem);
  line-height: .9;
  letter-spacing: -.04em;
  font-optical-sizing: auto;
  margin-left: -.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > * { display: inline-block; }
.hero-title em { font-style: italic; font-weight: 300; color: var(--sunset); padding-right: .08em; }
.js .hero-title .line > * { transform: translateY(105%); animation: lineUp 1.2s var(--ease-out) forwards; }
.js .hero-title .line:nth-child(2) > * { animation-delay: .14s; }
@keyframes lineUp { to { transform: none; } }
.js .hero-eyebrow, .js .hero-foot { opacity: 0; animation: fadeUp 1s var(--ease-out) .45s forwards; }
.js .hero-foot { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-foot { margin-top: clamp(24px, 4vh, 44px); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.hero-lede { max-width: 34rem; font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.scroll-cue { position: absolute; left: 50%; bottom: 34px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 14px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4vw, 64px); fill: var(--paper); z-index: 1; }
/* The living photo (assets/js/livephoto.js) lies over the still one — same crop, same position —
   and fades in once the photo has settled: the sea rolls, light glitters, stars twinkle. */
.hero-media .welcome-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.8s var(--ease); pointer-events: none; }
.hero-media .welcome-canvas.on { opacity: 1; }
/* "Family" catches the light now and then: a soft gleam passes across the word */
.hero-title em { position: relative; }
.js .hero-title em::after {
  content: attr(data-gleam); content: attr(data-gleam) / "";
  position: absolute; left: 0; top: 0; color: transparent; text-shadow: none; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 246, 232, .95) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: gleam 11s ease-in-out 2.8s infinite;
}
@keyframes gleam { 0% { background-position: 100% 0; } 16%, 100% { background-position: 0 0; } }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.story-head { position: sticky; top: 120px; }
.story-head .h-display { margin-top: 20px; }
.story-body { display: grid; gap: 20px; color: var(--ink-2); padding-top: 8px; }
.story-body .lead { color: var(--ink); }
.signoff { margin-top: 12px; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--ink-2); display: grid; gap: 2px; }
.signoff span { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--accent); font-weight: 350; letter-spacing: -.01em; }
.story-figure { margin-top: clamp(64px, 9vw, 120px); position: relative; }
.story-photo { position: relative; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 21 / 9; background: var(--paper-2); box-shadow: var(--shadow-lg); }
.story-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.story-figure figcaption {
  position: absolute; left: calc(var(--gutter) + clamp(16px, 3vw, 36px)); bottom: clamp(16px, 3vw, 36px);
  padding: 12px 20px; border-radius: var(--r-pill);
  background: rgba(12, 28, 33, .55); color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1rem, .9rem + .4vw, 1.2rem);
  border: 1px solid rgba(255, 255, 255, .18);
}

/* ---------- name ---------- */
.name { background: var(--paper-2); position: relative; overflow: hidden; }
.name-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.definition {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.def-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.def-word { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 350; line-height: 1; letter-spacing: -.03em; }
.def-pos { font-family: var(--font-display); font-style: italic; color: var(--ink-3); font-size: 1.1rem; }
.def-list { list-style: none; counter-reset: def; display: grid; gap: 14px; max-width: 34ch; position: relative; z-index: 1; }
.def-list li { counter-increment: def; display: grid; grid-template-columns: 28px 1fr; color: var(--ink-2); }
.def-list li::before { content: counter(def) "."; font-family: var(--font-display); font-weight: 500; color: var(--accent); }
.def-idiom { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); color: var(--ink-2); position: relative; z-index: 1; }
.def-idiom em { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.vine { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(18px, 3vw, 34px); width: clamp(64px, 7vw, 96px); color: var(--sea); opacity: .7; pointer-events: none; }
.def-head { padding-right: clamp(70px, 8vw, 110px); }
.name-copy { display: grid; gap: 22px; }
.name-copy .h-display { margin-top: -2px; }
.name-copy p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
/* the vine draws itself in when its card comes into view */
.js .vine path, .js .vine circle { stroke-dasharray: 1 2; stroke-dashoffset: 1.01; transition: stroke-dashoffset 1.5s var(--ease-out); transition-delay: calc(var(--d, 0ms) + 350ms + var(--vd, 0ms)); }
.js .definition.in .vine path, .js .definition.in .vine circle { stroke-dashoffset: 0; }
.vine g > :nth-child(2) { --vd: 260ms; } .vine g > :nth-child(3) { --vd: 520ms; } .vine g > :nth-child(4) { --vd: 380ms; }
.vine g > :nth-child(5) { --vd: 560ms; } .vine g > :nth-child(6) { --vd: 620ms; } .vine g > :nth-child(7) { --vd: 680ms; } .vine g > :nth-child(8) { --vd: 740ms; }
.vine g > :nth-child(9) { --vd: 800ms; } .vine g > :nth-child(10) { --vd: 860ms; } .vine g > :nth-child(11) { --vd: 920ms; }
.vine g > :nth-child(12) { --vd: 980ms; } .vine g > :nth-child(13) { --vd: 1040ms; } .vine g > :nth-child(14) { --vd: 1100ms; }
.vine g > :nth-child(15) { --vd: 1160ms; } .vine g > :nth-child(16) { --vd: 1300ms; }

/* ---------- values ---------- */
/* inside a revealed block the eyebrow's rule draws in and the heading rises a beat behind */
.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left center; transition: transform .9s var(--ease-out) calc(var(--d, 0ms) + 150ms); }
.js .reveal.in .eyebrow::before { transform: none; }
.js .reveal .h-display { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) calc(var(--d, 0ms) + 120ms), transform 1.1s var(--ease-out) calc(var(--d, 0ms) + 120ms); }
.js .reveal.in .h-display { opacity: 1; transform: none; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 20px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.section-head.split > div { display: grid; gap: 20px; }
.section-head.split .muted { max-width: 34ch; justify-self: end; }
.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.value { padding: 32px clamp(16px, 2vw, 32px) 8px 0; display: grid; gap: 12px; align-content: start; position: relative; }
.value + .value { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.value::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .7s var(--ease-out); }
.value:hover::before { width: 100%; }
.value-num { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--accent); }
.value h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 450; letter-spacing: -.01em; margin-top: 18px; }
.value p { color: var(--ink-2); font-size: .975rem; }

/* ---------- moments ---------- */
.moments { padding-top: 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 290px); gap: clamp(10px, 1.4vw, 18px); }
.m { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-2); isolation: isolate; }
.m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.m:hover img { transform: scale(1.05); }
.m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 17, 20, .6), transparent 45%); z-index: 0; pointer-events: none; opacity: .85; transition: opacity .8s var(--ease-out); }
.m figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--font-display); font-style: italic; font-size: clamp(1rem, .9rem + .4vw, 1.3rem); transition: transform .8s var(--ease-out); }
@media (hover: hover) {
  .m:hover figcaption { transform: translateY(-8px); }
  .m:hover::after { opacity: 1; }
}
.m1 { grid-column: span 5; grid-row: span 2; }
.m2 { grid-column: span 4; }
.m3 { grid-column: span 3; }
.m4 { grid-column: span 3; }
.m5 { grid-column: span 4; }

/* ---------- family hub band ---------- */
.hub { position: relative; isolation: isolate; color: var(--on-night); background: var(--night); padding-block: clamp(96px, 12vw, 168px); overflow: hidden; }
.hub-bg { position: absolute; inset: 0; z-index: -1; }
.hub-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hub-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 17, 20, .95) 0%, rgba(7, 17, 20, .78) 50%, rgba(7, 17, 20, .55) 100%), linear-gradient(0deg, rgba(7, 17, 20, .6), transparent 40%); }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.hub .eyebrow { color: var(--sunset); }
.hub .h-display { margin-top: 20px; color: #fff; }
.hub .h-display em { color: var(--sunset); }
.hub .lead { color: var(--on-night-2); margin-top: 22px; max-width: 36rem; }
.hub-features { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; max-width: 38rem; }
.hub-features li { display: flex; align-items: center; gap: 12px; color: var(--on-night); font-size: .975rem; }
.hub-features .i { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: var(--sunset); }
.hub-card {
  background: rgba(19, 42, 48, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: grid; gap: 14px;
}
.hub-card-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, var(--sunset), #c9744e); color: #2a140a; margin-bottom: 8px; box-shadow: 0 12px 30px -10px rgba(242, 163, 122, .6); }
.hub-card-icon .i { width: 26px; height: 26px; }
.hub-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -.02em; color: #fff; }
.hub-card p { color: var(--on-night-2); margin-bottom: 10px; }
.hub-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0 !important; font-size: var(--fs-xs); letter-spacing: .06em; color: var(--on-night-2); }
.hub-secure .i { width: 16px; height: 16px; color: var(--sea); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: clamp(64px, 8vw, 104px) 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: grid; gap: 14px; }
.footer-brand .brand { color: var(--on-night); }
.footer-brand p { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: var(--fs-sm); }
.footer-nav a { color: var(--on-night); opacity: .8; transition: opacity .2s; }
.footer-nav a:hover { opacity: 1; }
.footer-word {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: min(38vw, 31rem); line-height: 1; letter-spacing: -.05em;
  margin: clamp(24px, 4vw, 56px) 0 0 -.05em; padding-bottom: .12em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 237, 226, .22);
  background: linear-gradient(180deg, rgba(244, 237, 226, .14), rgba(244, 237, 226, 0) 85%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: var(--fs-sm); }
.footer-bottom a { color: var(--on-night); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.footer-bottom a.to-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.to-top .i { transform: rotate(-90deg); width: 16px; height: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .story-grid, .name-grid, .hub-grid { grid-template-columns: 1fr; }
  .story-head { position: static; }
  .story-photo { aspect-ratio: 4 / 3; }
  .section-head.split { grid-template-columns: 1fr; }
  .section-head.split .muted { justify-self: start; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 42vw, 280px); }
  .m1 { grid-column: span 2; grid-row: span 1; }
  .m2, .m3, .m4, .m5 { grid-column: span 1; }
  .name-copy { order: -1; }
}
@media (max-width: 600px) {
  .header-cta span { display: none; }
  .header-cta { width: 40px; padding: 0; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-foot { gap: 24px; }
  .scroll-cue { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding-left: 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); margin-top: 8px; }
  .hub-features { grid-template-columns: 1fr; }
  .story-figure figcaption { left: calc(var(--gutter) + 12px); bottom: 12px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { transform: none; }
  .js .hero-title .line > *, .js .hero-eyebrow, .js .hero-foot { transform: none; opacity: 1; animation: none; }
  .js .hero-title em::after { animation: none; }
  .js .reveal .eyebrow::before, .js .reveal .h-display { transform: none; opacity: 1; transition: none; }
  .js .vine path, .js .vine circle { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .m figcaption, .m::after { transition: none; }
}

/* ---------- 404 ---------- */
.notfound {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: calc(28px + env(safe-area-inset-top)) var(--gutter) calc(56px + env(safe-area-inset-bottom));
  color: #fff; background: var(--night);
}
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("https://images.unsplash.com/photo-1559827260-dc66d52bef19?auto=format&fit=crop&w=1800&q=65") center / cover no-repeat; }
.notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 17, 20, .92), rgba(7, 17, 20, .4) 60%, rgba(7, 17, 20, .55)); }
.notfound-body { max-width: var(--maxw); width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.notfound .eyebrow { color: var(--sunset); }
.notfound h1 { font-family: var(--font-display); font-weight: 330; font-size: clamp(3.4rem, 1.5rem + 8vw, 8.5rem); line-height: .92; letter-spacing: -.04em; }
.notfound h1 em { font-style: italic; color: var(--sunset); }
.notfound .lead { color: rgba(255, 255, 255, .84); max-width: 32rem; }
.notfound .brand { max-width: var(--maxw); width: 100%; margin: 0 auto; }
