/* ==========================================================================
   Sections — page-specific layout, in document order
   Hero · About · Research · Skills · Output · Gallery · Contact
   ========================================================================== */

/* ══ HERO ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg-hero);
  color: var(--text-on-dark);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__bg-photo {
  /* Dark toned drawing paper: warm light pool behind the tools, soft vignette */
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 55% at 80% 52%, rgb(120 104 72 / 0.24), transparent 70%),
    radial-gradient(ellipse 35% 40% at 85% 20%, rgb(187 169 122 / 0.08), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, #1B1914 0%, #100E0B 60%, #080706 100%);
  animation: heroBgZoom 30s ease-in-out infinite alternate;
}
@keyframes heroBgZoom { from { transform: scale(1); } to { transform: scale(1.06); } }

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgb(8 7 6 / 0.98) 0%, rgb(8 7 6 / 0.92) 34%, rgb(8 7 6 / 0.6) 55%, rgb(8 7 6 / 0.25) 78%, rgb(8 7 6 / 0.15) 100%),
    linear-gradient(to bottom, rgb(8 7 6 / 0.3) 0%, transparent 20%, transparent 80%, rgb(8 7 6 / 0.5) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07; /* paper tooth */
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  column-gap: 32px;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__content {
  max-width: 600px;
  padding-block: calc(var(--nav-h) + 40px) 80px;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.55);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px 14px;
  border: 1px solid rgb(61 107 106 / 0.35);
  border-radius: var(--radius-pill);
  background: rgb(61 107 106 / 0.22);
  color: #A6DCD8;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--geo-teal-light);
  animation: pulse 2s infinite;
}

.hero__name {
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.5vw + 1rem, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgb(248 246 242 / 0.97);
}
.hero__name em { font-style: italic; color: var(--hero-surname, var(--accent-light)); }

.hero__title {
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(248 246 242 / 0.88);
}

.hero__sub {
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #8CCBC7;
}
.hero__sub strong { color: #B4E4E0; font-weight: 600; }

.hero__pitch {
  max-width: 460px;
  margin-bottom: 36px;
  font-size: 1.03rem;
  line-height: 1.75;
  color: rgb(248 246 242 / 0.88);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgb(248 246 242 / 0.85);
}
.hero__contact a { transition: color var(--transition); }
.hero__contact a:hover { color: var(--accent-light); }
.hero__contact-sep { color: rgb(255 255 255 / 0.25); }

/* ── Field-equipment rig (decorative) ─────────────────────────────────
   Lives in the right third of the hero. Sizes are % of the rig box, so the
   whole setup always fits. Each tool tilts on its own under the cursor.     */
.hero__scene {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding-top: var(--nav-h);
  perspective: 1200px;
}

.rig {
  position: relative;
  width: min(100%, 440px, calc((100svh - var(--nav-h) - 100px) * 0.733));
  aspect-ratio: 440 / 600;
  transform-style: preserve-3d;
}

/* soft key light behind the setup */
.rig__light {
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at 50% 46%,
    rgb(255 236 200 / 0.13) 0%, rgb(255 236 200 / 0.05) 18%, transparent 38%);
  pointer-events: none;
  transform: translateZ(-40px);
}

.rig__sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgb(187 169 122 / 0.13);
  stroke-width: 1;
  stroke-linecap: round;
  pointer-events: none;
  transform: translateZ(-20px);
}
.rig__sketch > * {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: sketchDraw 2.6s var(--ease) forwards;
}
.rig__sketch > :nth-child(2) { stroke-dasharray: 3 6; stroke-dashoffset: 0; animation: none; }
.rig__sketch > :nth-child(2n+3) { animation-delay: 0.35s; }
@keyframes sketchDraw { to { stroke-dashoffset: 0; } }

/* each tool: own depth layer + gentle float */
.geo-tool {
  position: absolute;
  margin: 0;
  transform-style: preserve-3d;
  transform: translateZ(var(--z, 30px));
  animation: geoFloat var(--float-dur, 7s) ease-in-out var(--float-delay, 0s) infinite;
}
/* the tool itself: per-tool 3D tilt toward the cursor (JS sets --px/--py/--hover on the figure) */
.geo-tool__body {
  position: relative;
  transform:
    perspective(700px)
    rotateX(calc(var(--py, 0) * -16deg))
    rotateY(calc(var(--px, 0) * 18deg))
    translateZ(calc(var(--hover, 0) * 18px))
    scale(calc(1 + var(--hover, 0) * 0.05))
    rotate(var(--rot, 0deg));
  animation: geoSway var(--float-dur, 7s) ease-in-out var(--float-delay, 0s) infinite;
  /* pencil-sketch artwork: a light lift shadow only (drawings shouldn't cast heavy photo shadows) */
  filter:
    drop-shadow(calc(var(--px, 0) * -6px) calc(6px + var(--hover, 0) * 6px) calc(10px + var(--hover, 0) * 6px) rgb(0 0 0 / 0.45));
}
.geo-tool__body img { display: block; width: 100%; height: auto; }

/* specular highlight that follows the cursor, clipped to the tool's own silhouette */
.geo-tool__shine {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: radial-gradient(
    circle at calc(50% + var(--px, 0) * 50%) calc(50% + var(--py, 0) * 50%),
    rgb(255 255 255 / 0.55) 0%, rgb(255 248 230 / 0.18) 22%, transparent 48%);
  mix-blend-mode: soft-light;
  opacity: var(--hover, 0);
  pointer-events: none;
}

/* while a tool is being explored: hold still, highlight its label */
.geo-tool.is-active,
.geo-tool.is-active .geo-tool__body,
.geo-tool.is-active::after { animation-play-state: paused; }
.geo-tool.is-active { z-index: 2; cursor: grab; }
.geo-tool .geo-caption { transition: border-color var(--transition), box-shadow var(--transition); }
.geo-tool.is-active .geo-caption {
  border-color: rgb(226 207 152 / 0.75);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.45), 0 0 0 3px rgb(187 169 122 / 0.12);
}

/* ground shadow: stays on the floor while the tool rises, shrinking & fading */
.geo-tool::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%;
  bottom: var(--shadow-y, -6%);
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.16) 55%, transparent);
  filter: blur(5px);
  transform: translate3d(calc(var(--px, 0) * -12px), 0, calc(var(--z, 30px) * -1)) scaleX(calc(1 - var(--hover, 0) * 0.12));
  animation: groundShadow var(--float-dur, 7s) ease-in-out var(--float-delay, 0s) infinite;
  pointer-events: none;
}

/* float = individual `translate`/`rotate` properties, so they compose with the
   depth transform instead of overwriting it */
@keyframes geoFloat {
  0%, 100% { translate: 0 0; }
  25%      { translate: 0 -9px; }
  50%      { translate: 0 -15px; }
  75%      { translate: 0 -6px; }
}
@keyframes geoSway {
  0%, 100% { rotate: y 0deg; }
  25%      { rotate: y 6deg; }
  50%      { rotate: y -4deg; }
  75%      { rotate: y 7deg; }
}
@keyframes groundShadow {
  0%, 100% { translate: 0 0;     scale: 1;    opacity: 1; }
  25%      { translate: 0 9px;   scale: 0.92; opacity: 0.85; }
  50%      { translate: 0 15px;  scale: 0.84; opacity: 0.7; }
  75%      { translate: 0 6px;   scale: 0.95; opacity: 0.9; }
}

/* arrangement (pick TL · transit TR · GPS BL · granite BR) with clear gaps */
.geo-tool--hammer  { --z: 46px; --rot: -14deg; --float-dur: 7.5s;                       top: 1%;  left: 5%;  width: 22%; }
.geo-tool--transit { --z: 28px;                --float-dur: 9s;   --float-delay: -3s;   top: 4%;  right: 0;  width: 47%; --shadow-y: -2%; }
.geo-tool--gps     { --z: 60px; --rot: -8deg;  --float-dur: 6.5s; --float-delay: -5.5s; top: 53%; left: 11%; width: 17%; --shadow-y: -3%; }
.geo-tool--sample  { --z: 38px;                --float-dur: 8.5s; --float-delay: -2s;   top: 59%; right: 4%; width: 34%; --shadow-y: -1%; }

/* specimen-tag captions, always below their object and inside the rig */
.geo-caption {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 7px;
  border: 1px solid rgb(187 169 122 / 0.32);
  border-radius: 9px;
  background: linear-gradient(180deg, rgb(32 29 23 / 0.82), rgb(18 16 12 / 0.82));
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.4), inset 0 1px 0 rgb(255 255 255 / 0.06);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  transform: translate3d(-50%, 0, 1px);
  -webkit-font-smoothing: antialiased;
}
.geo-tool--hammer .geo-caption { top: calc(100% + 4px); left: 62%; }
.geo-caption__name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  color: #FBF8F1;
}
.geo-caption__spec {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #E2CF98;
}

@media (max-width: 1200px) {
  .geo-caption__name { font-size: 0.74rem; }
  .geo-caption__spec { font-size: 0.62rem; }
}
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__content { max-width: 580px; }
  .hero__scene { display: none; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}

/* ══ ABOUT ═════════════════════════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__bio p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.about__bio p:first-child { color: var(--text-primary); }

.about__lang { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.about__lang li {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline__title {
  margin-bottom: 32px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  top: 6px; left: -28.5px;
  width: 10px; height: 10px;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  background: var(--accent);
}

.timeline__year {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.timeline__content h4 {
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.timeline__content p { font-size: 0.875rem; color: var(--text-secondary); }
.timeline__content .timeline__detail {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ── Timeline "flows down" when it scrolls into view ──
   line draws top → bottom, each milestone dot pops in as the line reaches it,
   then a soft glowing bead keeps travelling down the line.                   */
.js .reveal .timeline::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.2s;
}
.js .reveal.is-visible .timeline::before { transform: scaleY(1); }

.js .reveal .timeline__item::before {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.js .reveal .timeline__item > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js .reveal.is-visible .timeline__item::before { transform: scale(1); }
.js .reveal.is-visible .timeline__item > * { opacity: 1; transform: none; }
/* stagger: each step lands as the line passes it */
.js .reveal .timeline__item:nth-child(1)::before, .js .reveal .timeline__item:nth-child(1) > * { transition-delay: 0.35s; }
.js .reveal .timeline__item:nth-child(2)::before, .js .reveal .timeline__item:nth-child(2) > * { transition-delay: 0.85s; }
.js .reveal .timeline__item:nth-child(3)::before, .js .reveal .timeline__item:nth-child(3) > * { transition-delay: 1.35s; }
.js .reveal .timeline__item:nth-child(4)::before, .js .reveal .timeline__item:nth-child(4) > * { transition-delay: 1.85s; }
.js .reveal .timeline__item:nth-child(5)::before, .js .reveal .timeline__item:nth-child(5) > * { transition-delay: 2.35s; }

/* travelling glow bead */
.timeline::after {
  content: '';
  position: absolute;
  left: -2.75px;
  top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgb(187 169 122 / 0.25), 0 0 12px 2px rgb(187 169 122 / 0.6);
  opacity: 0;
  pointer-events: none;
}
.js .reveal.is-visible .timeline::after { animation: timelineBead 4.5s ease-in-out 2.4s infinite; }
@keyframes timelineBead {
  0%   { top: 8px; opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .timeline::after { display: none; } }

@media (max-width: 1024px) { .about__grid { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 768px)  { .timeline__item { grid-template-columns: 64px 1fr; gap: 12px; } }

/* ══ RESEARCH ══════════════════════════════════════════════════════════ */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 60px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ── Featured media column: interactive map + cross-section + map actions ── */
.featured__media {
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto auto;
  border-right: 1px solid var(--border);
  background: #FFFFFF;
}

.geomap { position: relative; overflow: hidden; }
.geomap__open {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.geomap__open:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: -4px; }
.geomap picture,
.geomap__overlay {
  position: absolute;
  inset: 18px 18px 10px;
}
.geomap picture { display: block; }
.geomap img { width: 100%; height: 100%; object-fit: contain; }
.geomap__overlay { width: calc(100% - 36px); height: calc(100% - 28px); pointer-events: none; overflow: visible; }

/* route: glow, draw-in, then flowing dashes that show travel direction */
.geomap__route-glow { fill: none; stroke: #FF6A2B; stroke-width: 9; stroke-opacity: 0; filter: url(#geoGlow); stroke-linecap: round; stroke-linejoin: round; transition: stroke-opacity 1s ease 1.4s; }
.geomap__route { fill: none; stroke: #E8461C; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.geomap__route-flow { fill: none; stroke: #FFF4E6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.006 0.018; opacity: 0; }
.geomap.is-live .geomap__route { animation: routeDraw 2.6s cubic-bezier(0.55, 0.1, 0.25, 1) 0.2s forwards; }
.geomap.is-live .geomap__route-glow { stroke-opacity: 0.45; }
.geomap.is-live .geomap__route-flow { animation: routeFlow 3.2s linear 2.8s infinite, fadeIn 0.6s ease 2.8s forwards; }
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes routeFlow { to { stroke-dashoffset: -0.024; } }
@keyframes fadeIn { to { opacity: 0.9; } }

/* MBT: a slow red pulse along the thrust */
.geomap__mbt { stroke: #FF3B30; stroke-width: 5; stroke-linecap: round; opacity: 0; filter: url(#geoGlow); }
.geomap.is-live .geomap__mbt { animation: mbtPulse 3.6s ease-in-out 2.6s infinite; }
@keyframes mbtPulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } }

/* stations pop in along the route after it is drawn, then breathe */
.geomap__station { opacity: 0; }
.geomap__station-dot { fill: #fff; stroke: #E8461C; stroke-width: 2.5; }
.geomap__station-ring { fill: none; stroke: #E8461C; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.geomap.is-live .geomap__station { animation: fadeIn 0.4s ease forwards; animation-delay: calc(0.5s + var(--i) * 0.22s); }
.geomap.is-live .geomap__station-ring { animation: ringPulse 2.4s ease-out infinite; animation-delay: calc(2.6s + var(--i) * 0.27s); }
@keyframes ringPulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

/* Tinau Khola pin drops in */
.geomap__pin { opacity: 0; }
/* the pin is the one clickable part of the (otherwise pass-through) overlay */
.geomap__pin-link { pointer-events: auto; cursor: pointer; }
.geomap__pin-hit { fill: transparent; }
.geomap__pin-icon { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.geomap__pin-link:hover .geomap__pin-icon { transform: scale(1.25); }
.geomap__pin-link:hover .geomap__pin-body { fill: #E8461C; }
.geomap__pin-tip { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.geomap__pin-tip rect { fill: #16171A; }
.geomap__pin-tip text { fill: #fff; font: 600 15px/1 Inter, system-ui, sans-serif; }
.geomap__pin-link:hover .geomap__pin-tip { opacity: 1; }
.geomap__pin-body { fill: #16171A; stroke: #fff; stroke-width: 2.5; }
.geomap__pin-pulse { fill: rgb(232 70 28 / 0.35); transform-box: fill-box; transform-origin: center; }
.geomap.is-live .geomap__pin { animation: pinDrop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 1.6s forwards; }
.geomap.is-live .geomap__pin-pulse { animation: ringPulse 2s ease-out 2.4s infinite; }
@keyframes pinDrop { from { opacity: 0; transform: translate(546px, 600px); } to { opacity: 1; transform: translate(546px, 646px); } }

/* surveyor marker moving along the route */
.geomap__traveller { opacity: 0; }
.geomap__traveller-halo { fill: rgb(255 106 43 / 0.28); }
.geomap__traveller-dot { fill: #FF6A2B; stroke: #fff; stroke-width: 2.5; }
.geomap.is-live .geomap__traveller { animation: fadeIn 0.6s ease 3s forwards; }

/* crosshair + live coordinate readout */
.geomap__cross { opacity: 0; transition: opacity 0.2s ease; }
.geomap__cross line { stroke: #16171A; stroke-width: 1; stroke-dasharray: 4 5; opacity: 0.55; }
.geomap__cross-dot { fill: #16171A; stroke: #fff; stroke-width: 2; }
.geomap.is-pointing .geomap__cross { opacity: 1; }

.geomap__hud {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #16171A;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #16171A;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.geomap__hud-dot { width: 7px; height: 7px; border-radius: 50%; background: #E8461C; box-shadow: 0 0 0 3px rgb(232 70 28 / 0.2); }

.featured__hint {
  /* compact pill in the map's blank top-right margin, clear of all map text */
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: #16171A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.geomap:hover .featured__hint,
.geomap:focus-within .featured__hint { opacity: 1; transform: none; }
@media (hover: none) { .featured__hint { opacity: 1; transform: none; } }

/* cross-section strip (separate image) */
.xsection {
  position: relative;
  display: block;
  width: 100%;
  padding: 30px 18px 10px;
  border: 0;
  border-top: 1px solid var(--border);
  background: #FFFFFF;
  cursor: zoom-in;
  transition: background var(--transition);
}
.xsection:hover { background: #FAFAF8; }
.xsection:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: -4px; }
.xsection img { width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.xsection:hover img { transform: scale(1.01); }
.xsection__label {
  position: absolute;
  top: 9px; left: 18px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* action bar */
.geomap__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.geomap__place {
  display: inline-flex;
  padding: 4px 0;
  border-bottom: 1px dashed transparent;
  transition: color var(--transition), border-color var(--transition);
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}
.geomap__place svg { color: #E8461C; }
.geomap__place:hover { color: var(--text-primary); border-bottom-color: #E8461C; }
.geomap__place:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: 3px; border-radius: 4px; }
.geomap__gmaps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #16171A;
  border-radius: 10px;
  background: #16171A;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.geomap__gmaps:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgb(74 62 43 / 0.6); }
.geomap__gmaps svg { transition: transform var(--transition); }
.geomap__gmaps:hover svg { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .geomap .geomap__route { stroke-dashoffset: 0; }
  .geomap .geomap__station, .geomap .geomap__pin { opacity: 1; }
  .geomap .geomap__traveller, .geomap .geomap__route-flow { display: none; }
}

.featured__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.featured__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 48px 40px;
  background: var(--bg-elevated);
}
.featured__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.featured__body h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.abstract { display: grid; gap: 14px; }
.abstract dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.abstract dd {
  margin-top: -10px;
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.featured__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.featured__meta strong { font-weight: 500; color: var(--text-secondary); }

.research__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover .media img { transform: scale(1.05); }
.card__media { height: 200px; }

/* clickable photo card: on hover the tall photo pans from --pos-rest to --pos-hover */
.card__open {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: zoom-in;
}
.card__open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-rest, 50% 25%);    /* per-card start view (set inline) */
  transform-origin: var(--zoom-origin, 50% 50%); /* … toward a chosen point */
  transition: object-position 1.6s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover .card__open img,
.card__open:focus-visible img {
  object-position: var(--pos-hover, 50% 80%);   /* per-card reveal view (set inline) */
  transform: scale(var(--zoom-hover, 1.04));    /* optional per-card zoom … */
}
.card__open:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: -3px; }

.card__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 45%, rgb(10 10 12 / 0.7));
  opacity: 0;
  transition: opacity 0.4s ease 0.35s;
}
.card:hover .card__reveal,
.card__open:focus-visible .card__reveal { opacity: 1; }
.card__reveal-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}
@media (hover: none) {
  .card__reveal { opacity: 1; }
  .card__open img { object-position: var(--pos-hover, 50% 70%); }
}
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.card__body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.card__body p { font-size: 0.875rem; line-height: 1.65; color: var(--text-secondary); }
.card__body .chip-list { margin-top: auto; padding-top: 4px; }

@media (max-width: 1024px) {
  .featured { grid-template-columns: 1fr; }
  .featured__media { grid-template-rows: auto auto auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .geomap { aspect-ratio: 1080 / 960; }
  .research__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured__body { padding: 32px 24px; }
  .research__grid { grid-template-columns: 1fr; }
}

/* ══ SKILLS ════════════════════════════════════════════════════════════ */
.tabs__list {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 40px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.tabs__tab {
  padding: 10px 24px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition);
}
.tabs__tab:hover { color: var(--text-primary); background: rgb(255 255 255 / 0.5); }
.tabs__tab[aria-selected="true"] {
  background: var(--bg-elevated);
  color: var(--accent-deep);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tabs__panel { animation: fadeSlideUp 0.35s ease both; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-light); }

.skill__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.skill__name {
  font-family: var(--font-serif);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.3;
}
.skill__level {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.skill__level--advanced { background: var(--geo-teal-tint); color: var(--geo-teal); }
.skill__desc { font-size: 0.82rem; line-height: 1.6; color: var(--text-secondary); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
}
.field-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--bg-elevated);
  transition: background var(--transition);
}
.field-item:hover { background: var(--bg-secondary); }
.field-item__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.field-item h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}
.field-item p { font-size: 0.82rem; line-height: 1.65; color: var(--text-secondary); }

@media (max-width: 1024px) { .field-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .field-grid { grid-template-columns: 1fr; } }

/* ══ ACADEMIC OUTPUT ═══════════════════════════════════════════════════ */
/* ── Field footprint: Nepal district map (left) + summary (right) ── */
.fieldmap {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.fieldmap__map { position: relative; width: 100%; max-width: 540px; }
.fieldmap__svg { display: block; width: 100%; height: auto; overflow: visible; }

.fm-base path {
  fill: #EFEBE3;
  stroke: #FFFFFF;
  stroke-width: 1.2;
  stroke-linejoin: round;
}
.fm-district {
  fill: #F2C9B6;
  stroke: #E8461C;
  stroke-width: 1.6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}
.fm-district:hover,
.fm-district.is-active { fill: #E8461C; filter: drop-shadow(0 4px 8px rgb(232 70 28 / 0.35)); }
.fm-district:focus-visible { outline: none; fill: #E8461C; stroke: #16171A; stroke-width: 2.4; }

.fm-marker { pointer-events: none; }
.fm-marker__dot { fill: #16171A; stroke: #fff; stroke-width: 2.5; }
.fm-marker__ring { fill: none; stroke: #E8461C; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: fmPing 2.4s ease-out infinite; }
.fm-marker:nth-child(2) .fm-marker__ring { animation-delay: 0.6s; }
.fm-marker:nth-child(3) .fm-marker__ring { animation-delay: 1.2s; }
.fm-marker:nth-child(4) .fm-marker__ring { animation-delay: 1.8s; }
@keyframes fmPing { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }

.fm-label {
  font: 600 25px/1 Inter, system-ui, sans-serif;   /* scaled up so labels stay ~12px on the smaller map */
  fill: #16171A;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 6px;
  stroke-linejoin: round;
  pointer-events: none;
}

/* pop-up anchored on the selected district */
.fm-pop {
  position: absolute;
  z-index: 5;
  width: 250px;
  padding: 14px 16px 14px;
  border: 1px solid #16171A;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgb(16 17 20 / 0.35);
  animation: fmPopIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fm-pop[hidden] { display: none; }
@keyframes fmPopIn { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
.fm-pop::after {                       /* little pointer toward the marker */
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 12px; height: 12px;
  background: #fff;
  border: 1px solid #16171A;
  transform: translateX(-50%) rotate(45deg);
}
.fm-pop[data-side="above"]::after { bottom: -7px; border-top: 0; border-left: 0; }
.fm-pop[data-side="below"]::after { top: -7px; border-bottom: 0; border-right: 0; }
.fm-pop__close {
  position: absolute;
  top: 8px; right: 8px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}
.fm-pop__close:hover { background: #16171A; color: #fff; }

.fm-info__name {
  margin-bottom: 8px;
  padding-right: 28px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.fm-info__facts { display: grid; gap: 6px; margin-bottom: 10px; }
.fm-info__facts div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.fm-info__facts dt {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fm-info__facts dd { font-size: 0.82rem; line-height: 1.4; color: var(--text-primary); }
.fm-info__work { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.fm-info__work li {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgb(232 70 28 / 0.1);
  color: #A3341F;
  font-size: 0.72rem;
  font-weight: 600;
}
.fm-info__purpose { font-size: 0.74rem; font-style: italic; color: var(--text-muted); }

/* without JS the info cards simply list under the map; with JS they feed the pop-up */
.fm-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.fm-infos .fm-info { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.js .fm-infos { display: none; }

/* right column */
.fieldmap__eyebrow {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.fieldmap__title {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}
.fieldmap__hint { margin-bottom: 16px; font-size: 0.84rem; color: var(--text-muted); }
.fm-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.fm-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  grid-template-areas: "dot name" "dot work";
  column-gap: 12px;
  width: 100%;
  padding: 11px 6px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: none;
  text-align: left;
  transition: background var(--transition);
}
.fm-item:hover, .fm-item.is-active { background: #FBF4F0; }
.fm-item:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: -2px; }
.fm-item__dot { grid-area: dot; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #E8461C; box-shadow: 0 0 0 3px rgb(232 70 28 / 0.18); }
.fm-item__name { grid-area: name; font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.fm-item__work { grid-area: work; font-size: 0.76rem; color: var(--text-muted); }

@media (max-width: 1024px) {
  .fieldmap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .fieldmap { padding: 18px 14px; }
  .fm-label { font-size: 30px; }
  .fm-pop { width: min(250px, calc(100vw - 60px)); }
}
@media (prefers-reduced-motion: reduce) { .fm-marker__ring { animation: none; opacity: 0; } }

.entries { display: flex; flex-direction: column; }

.entry {
  display: grid;
  grid-template-columns: 160px 32px 1fr;
}

.entry__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding: 28px 24px 28px 0;
  text-align: right;
}

.entry__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.entry__type--report   { background: var(--geo-teal-tint); color: var(--geo-teal); }
.entry__type--award    { background: var(--gold-tint); color: var(--gold); }

.entry__year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.entry__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 36px;
}
.entry__rail::before {
  content: '';
  z-index: 1;
  flex-shrink: 0;
  width: 12px; height: 12px;
  border: 2.5px solid var(--bg-secondary);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  transition: box-shadow var(--transition);
}
.entry__rail::after {
  content: '';
  flex: 1;
  width: 1.5px;
  min-height: 40px;
  margin-top: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}
.entry:last-child .entry__rail::after { display: none; }
.entry--award .entry__rail::before { background: var(--gold-bright); box-shadow: 0 0 0 2px var(--gold-bright); }
.entry:hover .entry__rail::before { box-shadow: 0 0 0 4px rgb(123 107 74 / 0.25); }

.entry__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 0 24px 28px;
  border-bottom: 1px solid var(--border);
}
.entry:last-child .entry__body { border-bottom: 0; }
.entry--award .entry__body {
  padding-left: 26px;
  border-left: 2px solid var(--gold-bright);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: linear-gradient(to right, rgb(201 162 39 / 0.05), transparent);
}

.entry__venue {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--geo-teal);
}
.entry__citation { font-size: 0.925rem; line-height: 1.75; color: var(--text-secondary); }

@media (max-width: 1024px) {
  .entry { grid-template-columns: 130px 32px 1fr; }
}
@media (max-width: 768px) {
  .entry { grid-template-columns: 1fr; }
  .entry__aside { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 20px 0 0; text-align: left; }
  .entry__rail { display: none; }
  .entry__body { padding: 12px 0 24px; }
  .entry--award .entry__body { padding-left: 16px; }
}

/* ══ GALLERY ═══════════════════════════════════════════════════════════ */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter__btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.filter__btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter__btn[aria-pressed="true"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
}

.shot { animation: fadeSlideUp 0.35s ease both; }

/* thumbnail = button that opens the lightbox */
.shot__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  cursor: zoom-in;
  text-align: left;
}
.shot__open:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: 4px; }
.shot__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.shot__media.media--empty { display: grid; }   /* keep the placeholder label centred */
.shot__open::after {               /* soft darkening veil on hover */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, transparent 45%, rgb(16 17 20 / 0.35));
  opacity: 0;
  transition: opacity var(--transition);
}
/* per-photo framing + zoom target (optional inline --shot-pos / --shot-zoom / --shot-origin) */
.shot__media picture { display: contents; }
.shot__open .media img {
  object-position: var(--shot-pos, 50% 50%);
  transform-origin: var(--shot-origin, 50% 50%);
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), object-position 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.shot__open:hover .media img,
.shot__open:focus-visible .media img {
  transform: scale(var(--shot-zoom, 1.05));
  object-position: var(--shot-pos-hover, var(--shot-pos, 50% 50%));   /* optional pan */
}
@media (hover: none) { .shot__open .media img { object-position: var(--shot-pos-hover, var(--shot-pos, 50% 50%)); } }

/* label that rises in on hover */
.shot__reveal {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.65);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}
.shot__open:hover .shot__reveal,
.shot__open:focus-visible .shot__reveal { opacity: 1; transform: none; }
@media (hover: none) { .shot__reveal { opacity: 1; transform: none; } }
.shot__open:hover .shot__media,
.shot__open:focus-visible .shot__media { box-shadow: var(--shadow-lg); }
.shot__open:hover::after,
.shot__open:focus-visible::after { opacity: 1; }

.shot figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (max-width: 1024px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .gallery__grid { grid-template-columns: 1fr; } }

/* ── Lightbox ──────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-on-dark);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgb(10 9 7 / 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox[open]::backdrop { animation: lbFade 0.25s ease both; }
.lightbox[open] .lightbox__figure { animation: lbIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lightbox.is-closing::backdrop { animation: lbFade 0.2s ease reverse both; }
.lightbox.is-closing .lightbox__figure { animation: lbOut 0.2s ease both; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbIn   { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lbOut  { to { opacity: 0; transform: scale(0.98); } }

.lightbox__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px 96px 40px;
}
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: min(1200px, 100%);
  margin: 0;
}
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: #15130F;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06);
}
.lightbox__img {
  display: block;
  max-width: min(1200px, calc(100vw - 192px));
  max-height: calc(100vh - 220px);
  max-height: calc(100svh - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__stage.is-swapping .lightbox__img { opacity: 0; }

/* placeholder when the photo hasn't been added yet */
.lightbox__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(880px, calc(100vw - 192px));
  aspect-ratio: 4 / 3;
  max-height: calc(100svh - 220px);
  padding: 32px;
  text-align: center;
  background:
    repeating-linear-gradient(172deg, transparent 0 18px, rgb(187 169 122 / 0.07) 18px 20px, transparent 20px 34px, rgb(111 179 176 / 0.06) 34px 35px),
    #1B1915;
}
.lightbox__empty-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.lightbox__empty-alt { font-size: 0.95rem; font-style: italic; color: rgb(248 246 242 / 0.7); }

.lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 720px;
  text-align: center;
}
.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #FBF8F1;
}
.lightbox__meta {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E2CF98;
}
.lightbox__meta { align-items: center; }
.lightbox__count:not([hidden]) { padding-left: 14px; border-left: 1px solid rgb(226 207 152 / 0.35); }

/* controls */
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  color: #F3EEE2;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), opacity var(--transition);
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.16); border-color: rgb(226 207 152 / 0.55); }
.lightbox__btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.lightbox__btn[disabled] { opacity: 0.3; pointer-events: none; }
.lightbox__close { top: 20px; right: 24px; width: 44px; height: 44px; }
.lightbox__zoom { top: 20px; right: 80px; width: 44px; height: 44px; }
.lightbox__zoom .lightbox__zoom-out,
.lightbox__zoom[aria-pressed="true"] .lightbox__zoom-in { display: none; }
.lightbox__zoom[aria-pressed="true"] .lightbox__zoom-out { display: block; }
.lightbox__btn[hidden] { display: none; }

/* zoom & pan */
.lightbox__stage.is-zoomable .lightbox__img { cursor: zoom-in; }
.lightbox__stage.is-zoomed {
  display: block;
  width: min(1200px, calc(100vw - 192px));
  height: calc(100vh - 220px);
  height: calc(100svh - 220px);
  overflow: auto;
  overscroll-behavior: contain;
  background: #FFFFFF;
}
.lightbox__stage.is-zoomed .lightbox__img {
  max-width: none;
  max-height: none;
  height: auto;
  cursor: grab;
}
.lightbox__stage.is-dragging .lightbox__img { cursor: grabbing; user-select: none; }
.lightbox__maplink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 7px 14px;
  border: 1px solid rgb(226 207 152 / 0.45);
  border-radius: var(--radius-pill);
  color: #F3E7C4;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
}
.lightbox__maplink:hover { background: var(--accent-light); color: #15130F; border-color: var(--accent-light); }
.lightbox__maplink[hidden] { display: none; }
.lightbox__hint { padding-left: 14px; border-left: 1px solid rgb(226 207 152 / 0.35); color: rgb(248 246 242 / 0.6); text-transform: none; letter-spacing: 0.02em; }
.lightbox__hint[hidden], .lightbox__count[hidden], .lightbox__cat[hidden] { display: none; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

@media (max-width: 768px) {
  .lightbox__frame { padding: 64px 12px 96px; }
  .lightbox__img { max-width: calc(100vw - 24px); max-height: calc(100svh - 260px); }
  .lightbox__empty { width: calc(100vw - 24px); }
  .lightbox__nav { top: auto; bottom: 24px; transform: none; }
  .lightbox__nav:hover { transform: none; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__zoom { top: 12px; right: 64px; }
  .lightbox__stage.is-zoomed { width: calc(100vw - 24px); height: calc(100svh - 260px); }
  .lightbox__hint { display: none; }
}

/* ══ EXPLORE WITH PRATIK ══════════════════════════════════════════════
   Banner under the gallery + full-screen guided tour (dialog).          */
.explore {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid #16171A;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 120% at 85% 50%, rgb(187 169 122 / 0.18), transparent 70%),
    #15130F;
  color: var(--text-on-dark);
  isolation: isolate;
}
.explore::before {                       /* topographic texture */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/topo.svg') right center / 60% auto no-repeat;
  opacity: 0.14;
}
.explore__eyebrow {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.explore__title {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: #FBF8F1;
}
.explore__lead { max-width: 560px; font-size: 0.95rem; line-height: 1.65; color: rgb(248 246 242 / 0.75); }
.explore__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 14px 18px 14px 20px;
  border: 1px solid var(--accent-light);
  border-radius: 10px;
  background: var(--accent-light);
  color: #15130F;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 26px -12px rgb(187 169 122 / 0.6);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.explore__play:hover { background: #D8C58F; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgb(187 169 122 / 0.75); }
.explore__play:focus-visible { outline: 2px solid #FBF8F1; outline-offset: 3px; }
.explore__play-icon { flex-shrink: 0; }
.explore__dur {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgb(21 19 15 / 0.12);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
}
@media (max-width: 768px) {
  .explore { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* ── the tour dialog ── */
.tour {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0C0B09;
  color: var(--text-on-dark);
  overflow: hidden;
}
.tour::backdrop { background: #0C0B09; }
.tour[open] { display: block; animation: lbFade 0.4s ease both; }
.tour__stage { position: absolute; inset: 0; }

.tour__map { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.8s ease; }
.tour.is-dim .tour__map { opacity: 0.35; }
.tour__map .tm-base path { fill: #24211B; stroke: #3A352C; stroke-width: 0.8; vector-effect: non-scaling-stroke; transition: fill 0.8s ease; }
.tour__map .tm-base path.is-stop { fill: #4A3E2B; }
.tour__map .tm-base path.is-current { fill: #E8461C; }
.tour__map .tm-marker circle { vector-effect: non-scaling-stroke; }
.tour__map .tm-marker__dot { fill: #FBF8F1; stroke: #E8461C; stroke-width: 3; }
.tour__map .tm-marker__ring { fill: none; stroke: #E8461C; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: fmPing 2.2s ease-out infinite; }
.tour__map .tm-marker { opacity: 0; transition: opacity 0.5s ease; }
.tour__map.show-markers .tm-marker { opacity: 1; }
.tour__map .tm-label { fill: #FBF8F1; font-family: Inter, system-ui, sans-serif; font-weight: 600; paint-order: stroke; stroke: #0C0B09; stroke-linejoin: round; opacity: 0; transition: opacity 0.5s ease; }
.tour__map.show-markers .tm-label { opacity: 0.9; }

.tour__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgb(0 0 0 / 0.55));
}

/* intro / overview / outro text */
.tour__title-card {
  position: absolute;
  left: max(6vw, 24px);
  bottom: 16vh;
  max-width: min(640px, 88vw);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tour__title-card.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.tour__title-card.is-center { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.tour__title-card.is-center.is-hidden { transform: translate(-50%, calc(-50% + 10px)); }
.tour__kicker {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.tour__heading {
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  color: #FBF8F1;
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.6);
}
.tour__text { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; color: rgb(248 246 242 / 0.82); text-shadow: 0 1px 10px rgb(0 0 0 / 0.6); }
.tour__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.tour__cta[hidden] { display: none; }
.tour__btn {
  padding: 12px 22px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 10px;
  color: #FBF8F1;
  font-weight: 600;
  transition: all var(--transition);
}
.tour__btn:hover { border-color: var(--accent-light); background: rgb(255 255 255 / 0.06); }
button.tour__btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.tour__btn--primary { background: var(--accent-light); border-color: var(--accent-light); color: #15130F; }
.tour__btn--primary:hover { background: #D8C58F; color: #15130F; }

/* district card */
.tour__card {
  position: absolute;
  right: max(4vw, 20px);
  top: 50%;
  width: min(400px, 38vw);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 18px;
  background: rgb(20 18 14 / 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgb(0 0 0 / 0.55);
  transform: translateY(-50%);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tour__card.is-off { opacity: 0; transform: translate(24px, -50%); pointer-events: none; }
.tour__photos { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1B1915; }
.tour__photos:empty { display: none; }
.tour__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.tour__photo--contain { object-fit: contain; background: #fff; }
.tour__photo.is-on { opacity: 1; animation: kenBurns 6s ease-out both; }
@keyframes kenBurns { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.tour__photo--contain.is-on { animation-name: kenBurnsSoft; }
@keyframes kenBurnsSoft { from { transform: scale(1); } to { transform: scale(1.04); } }
.tour__card-body { padding: 18px 20px 20px; }
.tour__step { margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.tour__name { margin-bottom: 12px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #FBF8F1; }
.tour__facts { display: grid; gap: 6px; margin-bottom: 12px; }
.tour__facts div { display: grid; grid-template-columns: 48px 1fr; gap: 10px; }
.tour__facts dt { padding-top: 2px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(248 246 242 / 0.55); }
.tour__facts dd { font-size: 0.9rem; color: #FBF8F1; }
.tour__work { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tour__work li { padding: 4px 10px; border-radius: var(--radius-pill); background: rgb(232 70 28 / 0.18); color: #FFB59C; font-size: 0.76rem; font-weight: 600; }
.tour__note { font-size: 0.8rem; font-style: italic; color: rgb(248 246 242 / 0.6); }

/* progress (story-style segments) */
.tour__progress {
  position: absolute;
  top: 16px; left: 16px; right: 120px;
  display: flex;
  gap: 5px;
}
.tour__seg { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.tour__seg i { display: block; height: 100%; width: 0; background: var(--accent-light); }
.tour__seg.is-done i { width: 100%; }

/* controls */
.tour__controls {
  position: absolute;
  left: 50%; bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}
.tour__corner { position: absolute; top: 8px; right: 12px; display: flex; gap: 6px; }
.tour__ctrl {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  color: #F3EEE2;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition);
}
.tour__ctrl:hover { background: rgb(255 255 255 / 0.14); border-color: var(--accent-light); }
.tour__ctrl:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.tour__ctrl--main { width: 56px; height: 56px; background: var(--accent-light); border-color: var(--accent-light); color: #15130F; }
.tour__ctrl--main:hover { background: #D8C58F; }
.tour__icon-play { display: none; margin-left: 3px; }
.tour.is-paused .tour__icon-play { display: block; }
.tour.is-paused .tour__icon-pause { display: none; }
.tour__corner .tour__ctrl { width: 38px; height: 38px; }

@media (max-width: 860px) {
  .tour__card { top: auto; bottom: 96px; left: 16px; right: 16px; width: auto; transform: none; display: grid; grid-template-columns: 120px 1fr; }
  .tour__card.is-off { transform: translateY(16px); }
  .tour__photos { aspect-ratio: auto; height: 100%; min-height: 140px; }
  .tour__card-body { padding: 12px 14px; }
  .tour__name { font-size: 1.15rem; margin-bottom: 6px; }
  .tour__facts { margin-bottom: 6px; }
  .tour__title-card { bottom: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour__photo.is-on { animation: none; }
}

/* ══ CONTACT ═══════════════════════════════════════════════════════════
   One framed card: dark info panel (topographic texture) + white form panel.
   Crisp near-black hairline borders give it a printed, editorial finish.   */
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid #16171A;
  border-radius: 22px;
  background: var(--bg-elevated);
  box-shadow: 0 30px 60px -30px rgb(16 17 20 / 0.35), 0 2px 6px rgb(16 17 20 / 0.06);
}

/* ── left: info panel ── */
.contact-card__info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 52px 44px;
  background:
    linear-gradient(160deg, rgb(255 255 255 / 0.03), transparent 40%),
    #15130F;
  color: var(--text-on-dark);
  isolation: isolate;
}
.contact-card__info::before {          /* topographic contours */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('../img/topo.svg') center / cover no-repeat;
  opacity: 0.16;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.contact-card__label { margin-bottom: 0; color: var(--accent-light); }
.contact-card__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: #FBF8F1;
}
.contact-card__lead {
  font-size: 0.98rem;
  line-height: 1.75;
  color: rgb(248 246 242 / 0.78);
}
.contact-card__lead strong { color: #FBF8F1; font-weight: 600; }

@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }

.contact-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.contact-row__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid rgb(187 169 122 / 0.35);
  border-radius: 12px;
  background: rgb(187 169 122 / 0.08);
  color: var(--accent-light);
}
.contact-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.contact-row__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(248 246 242 / 0.55);
}
.contact-row__value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #FBF8F1;
  overflow-wrap: anywhere;
}
a.contact-row__value { transition: color var(--transition); }
a.contact-row__value:hover { color: var(--accent-light); }
.contact-row__muted { font-size: 0.78rem; font-weight: 400; color: rgb(248 246 242 / 0.55); }

/* copy-to-clipboard pill */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.06);
  color: rgb(248 246 242 / 0.85);
  font-size: 0.74rem;
  font-weight: 600;
  transition: all var(--transition);
}
.copy-btn:hover { border-color: var(--accent-light); color: #fff; background: rgb(187 169 122 / 0.14); }
.copy-btn.is-copied { border-color: #5FD3A3; color: #8FE6C2; background: rgb(95 211 163 / 0.12); }
.copy-btn--dark { padding: 4px 10px; margin-left: 8px; font-size: 0.7rem; vertical-align: middle; }

.profiles { display: flex; flex-wrap: wrap; gap: 8px; }
.profiles a {
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  color: rgb(248 246 242 / 0.85);
}
.profiles a:hover { border-color: var(--accent-light); color: #fff; }

/* ── right: form panel ── */
.contact-card__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 52px 48px;
  border-left: 1px solid #16171A;
}
.form__head { display: flex; flex-direction: column; gap: 4px; }
.form__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.form__hint { font-size: 0.82rem; color: var(--text-muted); }

.topics { border: 0; padding: 0; margin: 0; }
.topics__legend {
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  padding: 8px 14px;
  border: 1px solid rgb(22 23 26 / 0.22);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.topic:hover { border-color: #16171A; color: var(--text-primary); }
.topic[aria-pressed="true"] { border-color: #16171A; background: #16171A; color: #fff; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.req { color: #A3341F; }
.form__group input,
.form__group textarea {
  padding: 13px 15px;
  border: 1px solid rgb(22 23 26 / 0.28);
  border-radius: 10px;
  background: #FCFCFB;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form__group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form__group input:hover,
.form__group textarea:hover { border-color: rgb(22 23 26 / 0.5); }
.form__group input:focus-visible,
.form__group textarea:focus-visible {
  outline: none;
  border-color: #16171A;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(22 23 26 / 0.08);
}
.form__group ::placeholder { color: #9A9A93; }
.form__group [aria-invalid="true"] { border-color: #A3341F; box-shadow: 0 0 0 4px rgb(163 52 31 / 0.08); }

.form__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.form__error { min-height: 0; font-size: 0.78rem; color: #A3341F; }
.form__error:empty { display: none; }
.form__count { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }

.form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid #16171A;
  border-radius: 12px;
  background: #16171A;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.form__submit svg { transition: transform var(--transition); }
.form__submit:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 10px 24px -10px rgb(74 62 43 / 0.6); }
.form__submit:hover svg { transform: translateX(4px); }
.form__submit:focus-visible { outline: 2px solid var(--geo-teal); outline-offset: 3px; }
.form__submit:disabled { opacity: 0.65; cursor: progress; }

.form__status { min-height: 1.4em; font-size: 0.86rem; text-align: center; color: var(--geo-teal); }
.form__status:empty { min-height: 0; }
.form__status[data-state="error"] { color: #A3341F; }

@media (max-width: 1024px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card__form { border-left: 0; border-top: 1px solid #16171A; }
}
@media (max-width: 600px) {
  .contact-card { border-radius: 16px; }
  .contact-card__info, .contact-card__form { padding: 36px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .contact-row { flex-wrap: wrap; }
}
