/* ahmadbalan.com — one stylesheet, no build step.
 * Dark-first; light via prefers-color-scheme or the header toggle.
 * Uses logical properties throughout so Arabic (dir="rtl") mirrors for free. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #0B0A08;
  --bg-2: #100E0B;
  --surface: #15130F;
  --surface-2: #1C1914;
  --line: rgba(246, 241, 231, 0.09);
  --line-strong: rgba(246, 241, 231, 0.16);
  --text: #F6F1E7;
  --muted: #ABA59B;
  --gold: #D8AF48;
  --gold-light: #F0CC6E;
  --gold-deep: #B98F33;
  --gold-text: #E2BD5E;          /* gold used for small text on dark */
  --on-gold: #0B0A08;
  --felt: #1F6B4A;
  --glow: rgba(216, 175, 72, 0.16);
  --glow-2: rgba(31, 107, 74, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.3);
  --phone-frame: #1A1713;

  --font-display: "Fraunces", "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F4EE; --bg-2: #F1ECE3; --surface: #FFFFFF; --surface-2: #FBF8F2;
    --line: rgba(23, 20, 15, 0.1); --line-strong: rgba(23, 20, 15, 0.18);
    --text: #17140F; --muted: #5C554B;
    --gold: #D8AF48; --gold-light: #E7C267; --gold-deep: #A98128; --gold-text: #7F5F14;
    --on-gold: #17140F; --glow: rgba(216, 175, 72, 0.22); --glow-2: rgba(31, 107, 74, 0.1);
    --shadow: 0 18px 50px rgba(60, 45, 20, 0.16); --shadow-soft: 0 8px 24px rgba(60, 45, 20, 0.1);
    --phone-frame: #17140F;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F7F4EE; --bg-2: #F1ECE3; --surface: #FFFFFF; --surface-2: #FBF8F2;
  --line: rgba(23, 20, 15, 0.1); --line-strong: rgba(23, 20, 15, 0.18);
  --text: #17140F; --muted: #5C554B;
  --gold: #D8AF48; --gold-light: #E7C267; --gold-deep: #A98128; --gold-text: #7F5F14;
  --on-gold: #17140F; --glow: rgba(216, 175, 72, 0.22); --glow-2: rgba(31, 107, 74, 0.1);
  --shadow: 0 18px 50px rgba(60, 45, 20, 0.16); --shadow-soft: 0 8px 24px rgba(60, 45, 20, 0.1);
  --phone-frame: #17140F;
  color-scheme: light;
}

:root[lang="ar"] {
  --font-display: "Noto Naskh Arabic", "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:root[lang="ar"] body { line-height: 1.85; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--on-gold); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Avoid a flash of English before a stored/auto-detected language applies. */
.i18n-pending main, .i18n-pending .site-footer, .i18n-pending .site-nav { visibility: hidden; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .icon.arrow, [dir="rtl"] .icon.ext { transform: scaleX(-1); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.monogram {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: 1.5px solid var(--gold); color: var(--gold-text);
  font-family: "Fraunces", Georgia, serif; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  background: var(--surface);
}
.brand-name { font-size: 1rem; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: .95rem; transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-picker {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding-inline: 10px 4px; height: 38px;
  color: var(--muted); background: var(--surface);
}
.lang-picker:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-picker .icon { width: 16px; height: 16px; }
.lang-picker select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: .9rem; padding-block: 6px; padding-inline: 2px 22px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
}
[dir="rtl"] .lang-picker select { background-position: 7px 55%, 12px 55%; }
.lang-picker select:focus { outline: none; }
.lang-picker option { color: #17140F; background: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .icon-moon { display: none; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 400px) {
  .brand-name { display: none; }
}

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 14px;
}
:root[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2, .contact-panel h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -.015em; margin-bottom: 18px;
}
:root[lang="ar"] .section h2, :root[lang="ar"] .contact-panel h2 { letter-spacing: 0; line-height: 1.4; }
.sub-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  margin: clamp(56px, 8vw, 88px) 0 24px;
}
:root[lang="ar"] .sub-title { line-height: 1.5; }

/* ------------------------------------------------------------------ buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn-gold {
  color: var(--on-gold);
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 52%, var(--gold-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 18px rgba(216, 175, 72, .22);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px rgba(216, 175, 72, .32); }
.btn-gold:active { transform: translateY(1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); }
.btn .icon { width: 18px; height: 18px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: currentColor; }
.text-link .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 18%, var(--glow), transparent 70%),
    radial-gradient(520px 380px at 8% 100%, var(--glow-2), transparent 70%);
}
[dir="rtl"] .hero-glow { transform: scaleX(-1); }
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.status-pill, .badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 6px 14px 6px 12px; border-radius: 999px; font-size: .88rem; color: var(--muted);
  border: 1px solid var(--line-strong); background: var(--surface);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(216, 175, 72, .18); }
.hero-name {
  font-family: "Fraunces", var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.4rem); letter-spacing: -.03em; line-height: .98;
  margin-bottom: 18px;
}
.hero-role { margin-bottom: 26px; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.1rem);
  line-height: 1.25; margin-bottom: 16px; max-width: 24ch;
}
:root[lang="ar"] .hero-title { line-height: 1.6; }
.hero-pitch { color: var(--muted); font-size: 1.125rem; max-width: 56ch; }

.hero-visual { position: relative; height: clamp(440px, 118vw, 560px); max-width: 520px; width: 100%; margin-inline: auto; }
@media (min-width: 960px) { .hero-visual { height: 600px; } }
.phone {
  background: var(--phone-frame); padding: 7px; border-radius: 30px;
  border: 1.5px solid rgba(216, 175, 72, .55); box-shadow: var(--shadow);
}
.phone img, .phone video { border-radius: 23px; width: 100%; background: #000; }
.hero-visual .phone { position: absolute; }
.phone-front { width: min(58%, 300px); inset-inline-start: 6%; top: 40px; z-index: 2; }
.phone-back { width: min(48%, 260px); inset-inline-end: 4%; top: 0; opacity: .92; transform: rotate(4deg); }
[dir="rtl"] .phone-back { transform: rotate(-4deg); }
@media (min-width: 960px) {
  .phone-front { animation: float 7s var(--ease) infinite alternate; }
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: clamp(48px, 7vw, 80px) 0 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 22px 20px; background: var(--bg-2); }
.stat dd { align-self: flex-start; unicode-bidi: isolate; margin: 0; font-family: "Fraunces", var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; color: var(--gold-text); font-weight: 500; }
.stat dt { color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* ------------------------------------------------------------------ majlis */
.majlis { background: linear-gradient(180deg, var(--bg-2), var(--bg) 60%); }
.majlis-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.majlis-title { display: flex; }
.majlis-title img { width: min(360px, 78vw); }
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .logo-dark { display: none; }
  :root:not([data-theme="dark"]) .logo-light { display: block; }
}
.tagline { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); color: var(--muted); margin: 10px 0 0; font-style: italic; }
:root[lang="ar"] .tagline { font-style: normal; }
.majlis-grid { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .majlis-grid { grid-template-columns: 1.2fr .8fr; } }
.majlis-copy .lead { color: var(--text); font-size: 1.3rem; font-family: var(--font-display); line-height: 1.4; }
:root[lang="ar"] .majlis-copy .lead { line-height: 1.7; }
.majlis-copy p { color: var(--muted); }
.majlis-copy .role { color: var(--text); border-inline-start: 2px solid var(--gold); padding-inline-start: 14px; }

.video-card { display: grid; justify-items: center; gap: 14px; }
.video-card figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.phone-video { position: relative; width: min(300px, 72vw); }
.phone-video video { aspect-ratio: 9 / 16; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center; color: var(--on-gold);
  background: linear-gradient(180deg, #F0CC6E, #D8AF48 52%, #B98F33);
  box-shadow: 0 0 0 10px rgba(216, 175, 72, .18), 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .2s var(--ease);
}
.play:hover { transform: scale(1.06); }
.play svg { width: 30px; height: 30px; fill: currentColor; margin-inline-start: 4px; }
[dir="rtl"] .play svg { margin-inline-start: 0; margin-inline-end: 4px; transform: none; }
.playing .play { display: none; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 240px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 20px;
  margin-top: clamp(48px, 7vw, 80px); scrollbar-width: thin;
}
.shots li { scroll-snap-align: center; }
@media (min-width: 960px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .shots li:nth-child(even) { transform: translateY(28px); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-soft);
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card h3, .card h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }

.highlights { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.highlights .num { display: block; font-family: "Fraunces", Georgia, serif; color: var(--gold-text); font-size: 1rem; margin-bottom: 12px; letter-spacing: .08em; }

.arch { margin-top: clamp(24px, 4vw, 40px); }
.arch-grid { display: grid; gap: 12px; align-items: stretch; }
@media (min-width: 900px) { .arch-grid { grid-template-columns: 1fr auto 1.3fr auto 1fr; } }
.arch-node, .arch-rules {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--surface);
}
.arch-cloud { border-color: rgba(216, 175, 72, .45); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.arch-name { font-weight: 600; margin-bottom: 6px; }
.arch-sub { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.arch-item { font-size: .95rem; margin: 8px 0 0; padding-inline-start: 14px; position: relative; color: var(--muted); }
.arch-item::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); }
.arch-link { display: grid; place-items: center; color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.arch-link span { padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; white-space: nowrap; }
@media (min-width: 900px) { .arch-link { writing-mode: horizontal-tb; } .arch-link span { white-space: normal; text-align: center; max-width: 90px; } }
.arch-rules { margin-top: 12px; text-align: center; border-style: dashed; border-color: rgba(216, 175, 72, .55); }
.arch-rules .arch-sub { margin-bottom: 0; }
.stack-label { margin: 28px 0 10px; color: var(--muted); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
:root[lang="ar"] .stack-label { letter-spacing: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
[dir="rtl"] .chips { justify-content: flex-end; }
.chips li {
  font-size: .82rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); background: var(--surface-2); line-height: 1.3; white-space: nowrap;
}
.card .chips { margin-top: 18px; }

/* ------------------------------------------------------------------ skills & work */
.skills { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.skill-icon { width: 34px; height: 34px; fill: none; stroke: var(--gold-text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.work { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.work-card { display: flex; flex-direction: column; }
.work-card .chips { margin-bottom: 18px; }
.work-card .text-link { margin-top: auto; align-self: flex-start; }
.tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-text) !important; margin-bottom: 10px !important; font-weight: 600; }
:root[lang="ar"] .tag { letter-spacing: 0; font-size: .85rem; }
.all-link { margin-top: 28px; }

/* ------------------------------------------------------------------ languages */
.langs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.langs li {
  display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
}
.langs .native { align-self: flex-start; font-family: "Fraunces", "Noto Naskh Arabic", Georgia, serif; font-size: 1.6rem; line-height: 1.3; }
.langs .native:lang(ar) { font-family: "Noto Naskh Arabic", serif; }
.langs .translated { color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------------ about */
/* Experience + education */
.career-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .career-grid { grid-template-columns: 1fr 1fr; } }
.career-head { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 16px; }
.timeline { display: grid; gap: 14px; }
.timeline .card { border-inline-start: 3px solid var(--gold); }
.timeline h4 { font-size: 1.1rem; }
.timeline .org { color: var(--text); margin-bottom: 8px; font-weight: 500; }
.timeline .orig { font-size: .92rem; font-style: italic; }
:root[lang="ar"] .tag { letter-spacing: 0; text-transform: none; font-size: .85rem; }

.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr .8fr; } }
.about-copy p { color: var(--muted); max-width: 64ch; }
.about-copy .intro { color: var(--text); font-size: 1.15rem; }
.about-copy .eyebrow { color: var(--gold-text); }
.facts h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 16px; }
.facts dl { margin: 0; display: grid; gap: 16px; }
.facts dl div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 4px; }
:root[lang="ar"] .facts dt { letter-spacing: 0; font-size: .9rem; }
.facts dd { margin: 0; }

/* ------------------------------------------------------------------ contact */
.contact-panel {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: calc(var(--radius) + 8px); border: 1px solid rgba(216, 175, 72, .35);
  background: radial-gradient(700px 300px at 50% 0%, var(--glow), transparent 70%), var(--surface);
}
.contact-panel .lead { margin-inline: auto; }
.email-btn { margin-top: 18px; flex-wrap: wrap; }
.email-address { font-weight: 500; opacity: .85; }
.social { display: grid; gap: 12px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); text-align: start; }
.social a {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  text-decoration: none; background: var(--bg-2); transition: border-color .2s, transform .2s var(--ease);
}
.social a:hover { border-color: var(--gold); transform: translateY(-2px); }
.social .s-name { font-weight: 600; }
.social .s-handle { grid-row: 2; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; text-align: start; }
.social .icon { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--gold-text); }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: .92rem; }
.footer-inner { display: grid; gap: 6px; }
.footer-inner p { margin: 0; }

/* ------------------------------------------------------------------ 404 */
.nf { min-height: calc(100vh - 64px); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf .code { font-family: "Fraunces", Georgia, serif; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; color: var(--gold-text); margin-bottom: 12px; }
.nf h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 14px; }
.nf p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ------------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.shots.reveal.in li:nth-child(even) { transform: none; }
@media (min-width: 960px) { .shots.reveal.in li:nth-child(even) { transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.footer-social { display: flex; flex-wrap: wrap; gap: 4px 10px; }
