/* =========================================================
   Ahmad Mukhtar — The Diplomat's Journal
   Editorial dark/gold portfolio
   ========================================================= */

:root {
  /* palette */
  --ink: #0f1419;
  --ink-2: #12181f;
  --navy: #1a2332;
  --navy-soft: #202b3c;
  --cream: #f5f2ec;
  --cream-2: #ece6d8;
  --cream-line: #ddd4c1;
  --gold: #c9a961;
  --gold-bright: #dcc084;
  --gold-deep: #a8863f;

  /* text roles */
  --on-dark: #eae4d6;
  --on-dark-muted: #97a0ae;
  --on-light: #23272e;
  --on-light-muted: #6c7178;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------
   Reset / base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--on-dark);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.06; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; border-radius: 4px; font-weight: 600;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Section framing
   --------------------------------------------------------- */
.section-dark { background: var(--ink); color: var(--on-dark); position: relative; }
.section-light { background: var(--cream); color: var(--on-light); position: relative; }
.section-dark, .section-light { padding-block: clamp(4.5rem, 9vw, 8.5rem); }

.section-head {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head .index {
  font-family: var(--serif); font-weight: 600;
  font-size: 0.95rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.section-head .kicker {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 600; color: currentColor; opacity: 0.55;
}
.section-head::after {
  content: ""; flex: 1; height: 1px; align-self: center;
  background: currentColor; opacity: 0.16;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem);
  font-weight: 400; letter-spacing: -0.015em;
  max-width: 16ch;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-dark .section-title em { color: var(--gold-bright); }

.section-sub {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  max-width: 46ch; margin-top: 1.1rem;
  color: var(--on-light-muted);
}
.section-dark .section-sub { color: var(--on-dark-muted); }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(201, 169, 97, 0.16);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--on-dark); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border: 1px solid var(--gold);
  color: var(--gold); font-family: var(--serif); font-weight: 600;
  font-size: 0.95rem; border-radius: 50%; letter-spacing: 0.02em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.brand:hover .brand-mark { background: var(--gold); color: var(--ink); }
.brand-name {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 500;
  letter-spacing: 0.005em;
}

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.primary-nav a {
  position: relative; font-size: 0.9rem; font-weight: 500; white-space: nowrap;
  color: var(--on-dark); opacity: 0.82; padding: 6px 0;
  transition: opacity .25s var(--ease), color .25s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav a:hover, .primary-nav a.active { opacity: 1; color: var(--gold-bright); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); }

.header-social { display: flex; gap: 0.55rem; padding-left: 1.2rem; margin-left: 0.3rem; border-left: 1px solid rgba(234,228,214,0.14); }
.header-social a {
  display: grid; place-items: center; width: 34px; height: 34px;
  color: var(--on-dark); opacity: 0.7; border-radius: 50%;
  transition: opacity .25s var(--ease), color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.header-social a:hover { opacity: 1; color: var(--gold-bright); background: rgba(201,169,97,0.1); transform: translateY(-2px); }

/* hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: none; border: none; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.6px;
  background: var(--on-dark); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease), background .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------
   Mobile menu
   --------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%);
  padding: calc(var(--header-h) + 3rem) var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .4s var(--ease), visibility .5s;
}
body.menu-open .mobile-menu { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu ol { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-menu li {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
body.menu-open .mobile-menu li { opacity: 1; transform: none; }
body.menu-open .mobile-menu li:nth-child(1) { transition-delay: .12s; }
body.menu-open .mobile-menu li:nth-child(2) { transition-delay: .18s; }
body.menu-open .mobile-menu li:nth-child(3) { transition-delay: .24s; }
body.menu-open .mobile-menu li:nth-child(4) { transition-delay: .30s; }
body.menu-open .mobile-menu li:nth-child(5) { transition-delay: .36s; }
body.menu-open .mobile-menu li:nth-child(6) { transition-delay: .42s; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--serif); font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--on-dark); padding: 0.35rem 0;
}
.mobile-menu a .mm-index {
  font-family: var(--sans); font-size: 0.8rem; color: var(--gold);
  letter-spacing: 0.1em; font-weight: 600;
}
.mobile-menu-foot {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-size: 0.85rem; letter-spacing: 0.05em; color: var(--on-dark-muted);
}
.mobile-menu-foot a:hover { color: var(--gold-bright); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(201,169,97,0.14), transparent 55%),
    radial-gradient(90% 90% at 15% 100%, rgba(32,43,60,0.9), transparent 60%),
    linear-gradient(180deg, #0c1116 0%, var(--ink) 45%, #10161d 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; color: var(--gold); opacity: 0.10; }
.meridians {
  position: absolute; top: 50%; right: -6%; transform: translateY(-50%);
  width: min(760px, 82vw); height: min(760px, 82vw);
  animation: slowspin 90s linear infinite;
}
@keyframes slowspin { to { transform: translateY(-50%) rotate(360deg); } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  box-shadow: inset 0 -120px 120px -60px rgba(10,13,17,0.9);
}

.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin-bottom: 1.6rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); display: inline-block; }

.hero-title {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.05rem, 0.85rem + 6.2vw, 7.2rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--cream); margin: 0;
}
.hero-title .line { display: block; overflow: hidden; margin-block: -0.075em; }
.hero-title .w {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
}
.hero-title .w.accent { color: var(--gold); }
.hero-title .w.italic { font-style: italic; }
.hero-loaded .hero-title .w { animation: wordUp 0.95s var(--ease) forwards; }
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }
.hero-loaded .hero-title .w:nth-child(1) { animation-delay: .12s; }
.hero-loaded .hero-title .w:nth-child(2) { animation-delay: .20s; }
.hero-loaded .hero-title .w:nth-child(3) { animation-delay: .28s; }
.hero-loaded .line:nth-child(2) .w:nth-child(1) { animation-delay: .40s; }
.hero-loaded .line:nth-child(2) .w:nth-child(2) { animation-delay: .48s; }
.hero-loaded .line:nth-child(3) .w:nth-child(1) { animation-delay: .60s; }

.hero-sub {
  max-width: min(42ch, 100%); margin-top: 1.9rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.6; color: var(--on-dark-muted);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.8rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; transition: all .3s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(201,169,97,0.6); }
.btn-ghost { border-color: rgba(234,228,214,0.28); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--gold-bright); animation: scrolldrop 2s var(--ease) infinite;
}
@keyframes scrolldrop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.about-media { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-portrait {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--cream-2);
  box-shadow: 0 30px 60px -30px rgba(20,25,33,0.45);
}
.about-portrait::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(20,25,33,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait::before {
  content: ""; position: absolute; left: -14px; top: -14px; right: 22px; bottom: 22px;
  border: 1px solid var(--gold); z-index: -1; border-radius: 4px;
}
.about-portrait-caption {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-light-muted);
}
.about-portrait-caption::before { content: ""; width: 26px; height: 1px; background: var(--gold-deep); }

.about-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.9rem); letter-spacing: -0.015em;
  margin-bottom: 1.4rem;
}
.about-body .lead {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.4;
  color: var(--on-light); margin-bottom: 1.6rem;
}
.about-body p { color: var(--on-light-muted); max-width: 62ch; }

.expertise { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.expertise li {
  padding: 0.55rem 1.15rem; border: 1px solid var(--cream-line);
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  color: var(--on-light); background: rgba(255,255,255,0.4);
  transition: all .3s var(--ease); position: relative;
}
.expertise li:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }

/* ---------------------------------------------------------
   Creative Expressions
   --------------------------------------------------------- */
.creative-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.creative-card {
  text-align: left; background: linear-gradient(160deg, var(--navy) 0%, var(--ink-2) 100%);
  border: 1px solid rgba(201,169,97,0.16); border-radius: 8px;
  padding: clamp(1.8rem, 3vw, 2.8rem); color: var(--on-dark);
  position: relative; overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.creative-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 100% at 100% 0%, rgba(201,169,97,0.16), transparent 60%);
  transition: opacity .4s var(--ease);
}
.creative-card:hover {
  border-color: rgba(201,169,97,0.5); transform: translateY(-5px);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7);
}
.creative-card:hover::before { opacity: 1; }
.creative-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.creative-num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold); }
.creative-icon { color: var(--gold); opacity: 0.85; }
.creative-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); margin-bottom: 0.8rem;
}
.creative-line { color: var(--on-dark-muted); max-width: 42ch; margin-bottom: 1.6rem; }
.creative-more {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-bright);
}
.creative-more .cm-close { display: none; }
.creative-card[aria-expanded="true"] .cm-open { display: none; }
.creative-card[aria-expanded="true"] .cm-close { display: inline; }
.cm-plus { font-size: 1.1rem; transition: transform .35s var(--ease); }
.creative-card[aria-expanded="true"] .cm-plus { transform: rotate(45deg); }
.creative-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease), margin-top .5s var(--ease);
  margin-top: 0;
}
.creative-panel > blockquote { overflow: hidden; min-height: 0; }
.creative-card[aria-expanded="true"] .creative-panel { grid-template-rows: 1fr; margin-top: 1.6rem; }
.creative-panel blockquote {
  margin: 0; padding-top: 1.4rem; border-top: 1px solid rgba(201,169,97,0.22);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.6;
  color: var(--cream);
}

/* ---------------------------------------------------------
   Professional Journey / Timeline
   --------------------------------------------------------- */
.journey-head {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem);
}
.journey-head-media { position: relative; height: clamp(360px, 32vw, 470px); }
.jhm {
  position: absolute; height: 78%; width: auto; border-radius: 4px; object-fit: cover;
  box-shadow: 0 30px 55px -28px rgba(20,25,33,0.5);
  border: 4px solid var(--cream);
}
.jhm-back { top: 0; right: 3%; transform: rotate(3deg); z-index: 1; }
.jhm-front { bottom: 0; left: 3%; height: 88%; transform: rotate(-4deg); z-index: 2; outline: 1px solid rgba(201,169,97,0.4); outline-offset: -4px; }

.timeline { position: relative; max-width: 960px; margin-inline: auto; }
.timeline::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%;
  width: 1px; background: linear-gradient(var(--gold-deep), var(--cream-line));
  transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 0 3rem 3rem 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 3rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; top: 8px; right: -7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--gold);
  z-index: 2; transition: background .3s var(--ease), transform .3s var(--ease);
}
.tl-item:nth-child(even) .tl-marker { right: auto; left: -7px; }
.tl-item:hover .tl-marker { background: var(--gold); transform: scale(1.25); }

.tl-card {
  background: rgba(255,255,255,0.55); border: 1px solid var(--cream-line);
  border-radius: 6px; padding: 1.5rem 1.6rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tl-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(20,25,33,0.4); border-color: var(--gold); }
.tl-years {
  display: inline-block; font-family: var(--serif); font-weight: 600;
  font-size: 1.15rem; color: var(--gold-deep); margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.tl-role {
  font-family: var(--serif); font-weight: 500; font-size: 1.4rem;
  letter-spacing: -0.01em; margin-bottom: 0.35rem; line-height: 1.2;
}
.tl-tag {
  display: inline-block; font-family: var(--sans); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-deep); border: 1px solid var(--cream-line);
  padding: 0.15rem 0.5rem; border-radius: 4px; vertical-align: middle; margin-left: 0.4rem;
}
.tl-org { color: var(--on-light-muted); font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------------
   Photography gallery
   --------------------------------------------------------- */
.gallery {
  columns: 3; column-gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem);
}
.gallery-item {
  break-inside: avoid; margin: 0 0 1rem; position: relative;
  border-radius: 5px; overflow: hidden; cursor: pointer;
  background: var(--navy);
}
.gallery-item img {
  width: 100%; height: auto; display: block;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(0.92) brightness(0.96);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,13,17,0.55));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-item::before {
  content: "⤢"; position: absolute; z-index: 2; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.7); opacity: 0;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright);
  font-size: 1.3rem; background: rgba(15,20,25,0.35); backdrop-filter: blur(3px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover::before, .gallery-item:focus-visible::before { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* ---------------------------------------------------------
   Writing
   --------------------------------------------------------- */
.articles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.article-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.5); border: 1px solid var(--cream-line);
  border-radius: 8px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(20,25,33,0.45); border-color: var(--gold); }
.article-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-2); }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.article-card:hover .article-media img { transform: scale(1.05); }
.article-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.article-meta { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-light-muted); }
.article-source { color: var(--gold-deep); font-weight: 600; }
.article-source::after { content: ""; }
.article-date { position: relative; padding-left: 0.9rem; }
.article-date::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--cream-line); transform: translateY(-50%); }
.article-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.22; margin-bottom: 0.8rem; }
.article-title a { transition: color .25s var(--ease); }
.article-title a:hover { color: var(--gold-deep); }
.article-excerpt { color: var(--on-light-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.3rem; }
.read-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep);
}
.read-more span { transition: transform .3s var(--ease); }
.article-card:hover .read-more span { transform: translateX(5px); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; border-top: 1px solid rgba(201,169,97,0.16); }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem; border-bottom: 1px solid rgba(234,228,214,0.1);
}
.brand--footer .brand-name { font-size: 1.6rem; }
.footer-tag { color: var(--on-dark-muted); max-width: 42ch; margin: 1.1rem 0 1.6rem; font-size: 0.98rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(234,228,214,0.16); border-radius: 50%; color: var(--on-dark);
  opacity: 0.8; transition: all .3s var(--ease);
}
.footer-social a:hover { opacity: 1; color: var(--ink); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.footer-nav h4, .footer-contact h4 {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem; font-weight: 600;
}
.footer-nav li { margin-bottom: 0.65rem; }
.footer-nav a, .footer-contact a { color: var(--on-dark-muted); transition: color .25s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-bright); }
.footer-contact p { margin-bottom: 0.55rem; }
.contact-note { font-size: 0.72rem; color: var(--gold-deep); letter-spacing: 0.06em; opacity: 0.75; margin-top: 0.8rem; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding-top: 1.8rem; font-size: 0.82rem; color: var(--on-dark-muted);
}
.footer-credit { opacity: 0.7; }

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(9, 12, 16, 0.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lb-image {
  max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
  transform: scale(0.96); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.lightbox.open .lb-image { transform: scale(1); opacity: 1; }
.lb-caption { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.lb-close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(234,228,214,0.2); border-radius: 50%; color: var(--on-dark);
  transition: all .3s var(--ease);
}
.lb-close:hover { color: var(--gold-bright); border-color: var(--gold); transform: rotate(90deg); }
.lb-nav {
  width: 56px; height: 56px; display: grid; place-items: center; flex-shrink: 0;
  background: none; border: 1px solid rgba(234,228,214,0.18); border-radius: 50%; color: var(--on-dark);
  transition: all .3s var(--ease); z-index: 2;
}
.lb-nav:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(201,169,97,0.08); }
.lb-prev { position: absolute; left: clamp(0.6rem, 2vw, 2rem); }
.lb-next { position: absolute; right: clamp(0.6rem, 2vw, 2rem); }

/* ---------------------------------------------------------
   Reveal animation
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .primary-nav, .header-social { display: none; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 420px; }
  .journey-head { grid-template-columns: 1fr; }
  .journey-head-media { max-width: 440px; margin-inline: auto; width: 100%; }
  .gallery { columns: 2; }
  .articles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .creative-grid { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }

  /* timeline single column */
  .timeline::before { left: 7px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 2.4rem 2.4rem; }
  .tl-marker, .tl-item:nth-child(even) .tl-marker { left: 1px; right: auto; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
  .lb-nav { width: 46px; height: 46px; }
}

@media (max-width: 460px) {
  .gallery { columns: 1; }
  .hero-title { font-size: clamp(1.8rem, 0.6rem + 5.4vw, 3rem); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .w { opacity: 1; transform: none; }
  .meridians { animation: none; }
}
