/* =========================================================
   Puzzle Madencilik
   The page is a vertical section through the ground:
   surface (hero) → topsoil → limestone → schist → andesite → ore zone.
   ========================================================= */

@property --mx { syntax: "<length-percentage>"; inherits: true; initial-value: 72%; }
@property --my { syntax: "<length-percentage>"; inherits: true; initial-value: 42%; }

:root {
  /* Strata, light → dark */
  --sky: #f2ece2;
  --hill-far: #e6dac8;
  --hill-mid: #ddcfb8;
  --topsoil: #d4c2a5;
  --limestone: #b9b0a1;
  --schist: #4a423a;
  --andesite: #2c2621;
  --ore: #15110d;
  --eoh: #0e0b09;

  --ink: #16120e;
  --ink-soft: #4a4037;
  --light: #f2ece2;
  --light-soft: #c9bfb2;

  --copper: #b8682f;
  --copper-hi: #e0a167;
  --copper-lo: #8a4f22;
  --malachite: #5fae8c;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(88px, 11vw, 160px);
  --header-h: 72px;
  /* Logo: docked size in the header, and its larger resting size/offset in the hero */
  --logo-h: 40px;
  --logo-big: clamp(92px, min(10vw, 14vh), 150px);
  --logo-drop: clamp(24px, 6vh, 88px);

  /* Geological map symbols */
  --pat-topsoil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='black' fill-opacity='.08'%3E%3Ccircle cx='4' cy='5' r='1.3'/%3E%3Ccircle cx='17' cy='15' r='1.1'/%3E%3Ccircle cx='21' cy='4' r='.8'/%3E%3Ccircle cx='9' cy='21' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  --pat-limestone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='24'%3E%3Cpath d='M0 .5H56M0 12.5H56M14 .5v12M42 12.5v12' stroke='black' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E");
  --pat-schist: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='18'%3E%3Cpath d='M0 9q11-7 22 0t22 0' stroke='white' stroke-opacity='.07' fill='none'/%3E%3C/svg%3E");
  --pat-andesite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34'%3E%3Cpath d='M6 7l4 6 4-6M26 24l4 6 4-6' stroke='white' stroke-opacity='.08' fill='none'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--eoh);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--copper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--light);
  padding: 10px 14px; font: 600 .9rem var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h2 {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-stretch: 72%;
  font-weight: 760;
  line-height: .94;
  letter-spacing: -.015em;
  max-width: 13ch;
  text-wrap: balance;
}

h3 {
  font-size: 1.3rem;
  font-stretch: 92%;
  font-weight: 650;
  line-height: 1.15;
}

.section-intro {
  margin-top: 26px;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--muted, var(--ink-soft));
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none;
  padding: .95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-icon { width: 16px; height: 16px; transition: transform .25s; }
.btn:hover .btn-icon { transform: translateY(2px); }
.btn-copper:hover .btn-icon { transform: translateX(3px); }

.btn-dark { background: var(--ink); color: var(--light); }
.btn-dark:hover { background: var(--copper-lo); }
.btn-line { border-color: rgba(22, 18, 14, .28); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-copper { background: var(--copper); color: var(--ink); }
.btn-copper:hover { background: var(--copper-hi); }


/* =========================================================
   Header
   ========================================================= */
/* No bar: the logo floats over the page and flips to its light version
   while a dark layer is behind it */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  pointer-events: none;
}
.site-header .brand { pointer-events: auto; }

.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The logo rests large in the hero, then shrinks and docks top-left on scroll */
.brand {
  position: absolute;
  left: var(--gutter);
  top: calc((var(--header-h) - var(--logo-h)) / 2);
  display: grid;
  text-decoration: none;
  transform: translateY(var(--logo-drop));
}
/* Both lockups share one grid cell; the reversed one fades in on the dark header */
.brand-logo {
  grid-area: 1 / 1;
  display: block;
  height: var(--logo-big); width: auto;
}
.site-header.is-ready .brand { transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
.site-header.is-ready .brand-logo { transition: height .7s cubic-bezier(.65, 0, .25, 1), opacity .45s; }
.site-header.is-scrolled .brand { transform: none; }
.site-header.is-scrolled .brand-logo { height: var(--logo-h); }

.brand-logo--bone { opacity: 0; }
.site-header.on-dark .brand-logo--ink { opacity: 0; }
.site-header.on-dark .brand-logo--bone { opacity: 1; }

/* Language picker — anchored to the top of the page, not the viewport */
.page-tools {
  position: absolute; top: 0; left: 0; right: 0; z-index: 61;
  pointer-events: none;
}
.page-tools-inner {
  display: flex; align-items: center; justify-content: flex-end;
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.lang-menu { position: relative; pointer-events: auto; color: var(--ink); }
.lang-toggle {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: none; color: inherit; cursor: pointer;
  border: 1px solid rgba(22, 18, 14, .22); border-radius: 50%;
  transition: border-color .2s, background-color .2s, color .2s;
}
.lang-toggle svg { width: 22px; height: 22px; }
.lang-toggle:hover,
.lang-menu.is-open .lang-toggle { border-color: var(--copper); color: var(--copper-lo); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 152px;
  margin: 0; padding: 4px; list-style: none;
  background: var(--light);
  border: 1px solid rgba(22, 18, 14, .14); border-radius: 3px;
  box-shadow: 0 10px 28px -12px rgba(22, 18, 14, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.lang-menu.is-open .lang-list {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s, transform .18s;
}
.lang-list button {
  display: block; width: 100%;
  padding: 10px 12px;
  background: none; border: 0; border-radius: 2px;
  color: var(--ink); text-align: left; cursor: pointer;
  font: 500 .95rem/1.2 var(--font-display);
}
.lang-list button:hover { background: rgba(22, 18, 14, .06); }
.lang-list button[aria-pressed="true"] { color: var(--copper-lo); font-weight: 650; }

/* =========================================================
   Hero — the surface
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: radial-gradient(90% 70% at 74% 62%, #f8f2e9 0%, var(--sky) 62%);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  --muted: var(--ink-soft);
}

.landscape {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 64%;
  z-index: 0;
  touch-action: pan-y;
}

.hero-content {
  position: relative; z-index: 2;
  padding-top: calc((var(--header-h) - var(--logo-h)) / 2 + var(--logo-drop) + var(--logo-big) + clamp(22px, 4vh, 44px));
}

.hero-lede {
  margin-top: clamp(8px, 2vh, 24px);
  max-width: 32ch;
  font-size: clamp(1.4rem, 2.25vw, 2.15rem);
  font-weight: 450;
  line-height: 1.28;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4.4vh, 44px); }

/* Lens (drawn inside the landscape SVG) */
.lens-label { font-family: var(--font-display); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lens-cu { font-family: var(--font-display); font-size: 13px; font-weight: 600; transition: opacity .25s; }

/* =========================================================
   Strata — shared
   ========================================================= */
.stratum {
  position: relative;
  padding-block: var(--section-y);
  background-color: var(--bg);
  background-image: var(--pattern);
  color: var(--fg);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--copper-lo);
}

.stratum--topsoil   { --bg: var(--topsoil);   --pattern: var(--pat-topsoil); }
.stratum--limestone { --bg: var(--limestone); --pattern: var(--pat-limestone); }
.stratum--schist    { --bg: var(--schist);    --pattern: var(--pat-schist);   --fg: var(--light); --muted: var(--light-soft); --accent: var(--copper-hi); }
.stratum--andesite  { --bg: var(--andesite);  --pattern: var(--pat-andesite); --fg: var(--light); --muted: var(--light-soft); --accent: var(--copper-hi); }
.stratum--ore       { --bg: var(--ore);       --pattern: none;                --fg: var(--light); --muted: var(--light-soft); --accent: var(--copper-hi); }

/* Wavy geological contacts between layers */
.has-contact {
  --ch: clamp(30px, 4.5vw, 64px);
  margin-top: calc(var(--ch) * -1);
  padding-top: calc(var(--section-y) + var(--ch));
  -webkit-mask:
    var(--wave) 0 0 / 100% var(--ch) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--ch) - 1px) / 100% calc(100% - var(--ch) + 1px) no-repeat;
  mask:
    var(--wave) 0 0 / 100% var(--ch) no-repeat,
    linear-gradient(#000 0 0) 0 calc(var(--ch) - 1px) / 100% calc(100% - var(--ch) + 1px) no-repeat;
}
.contact-a { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V36C150 20 290 44 470 32S790 8 960 20s300 26 480 6V64Z'/%3E%3C/svg%3E"); }
.contact-b { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V44L300 30L640 38L1000 10L1440 24V64Z'/%3E%3C/svg%3E"); }
.contact-c { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V30Q60 14 120 28T240 24T360 34T480 18T600 30T720 16T840 32T960 20T1080 34T1200 14T1320 28T1440 22V64Z'/%3E%3C/svg%3E"); }
.contact-d { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V38L90 26L170 42L260 18L350 36L450 12L540 32L640 20L760 44L860 16L980 30L1080 8L1200 36L1320 18L1440 30V64Z'/%3E%3C/svg%3E"); }

.section-head { margin-bottom: clamp(48px, 6vw, 84px); }

/* =========================================================
   000–040 m · About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.pieces {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 400px;
}
.piece {
  aspect-ratio: 1 / .78;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px 18px;
  background: rgba(242, 236, 226, .55);
  border: 1px solid rgba(22, 18, 14, .14);
}
.piece-label { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; font-stretch: 85%; }
.piece--accent { background: var(--copper); border-color: var(--copper); }

.lead {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 500;
  font-stretch: 92%;
  line-height: 1.35;
  text-wrap: pretty;
}
.about-body > p + p { margin-top: 22px; color: var(--ink-soft); max-width: 56ch; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 60px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(22, 18, 14, .22);
}
.facts li { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 0 0; }
.facts li + li { padding-left: 18px; border-left: 1px solid rgba(22, 18, 14, .22); }
.fact-k { font-size: .9rem; color: var(--ink-soft); }
.fact-v { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 720; font-stretch: 80%; line-height: 1.1; }

/* =========================================================
   040–130 m · Why copper
   ========================================================= */
.copper-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}

.element-tile {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  color: #fff6ec;
  border-radius: 3px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    linear-gradient(150deg, #c98446 0%, #a5622b 34%, #7c441c 70%, #562c10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 196, .45),
    inset 0 0 0 1px rgba(255, 210, 170, .16),
    0 40px 70px -34px rgba(40, 22, 8, .75);
}
.element-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(112deg, transparent 36%, rgba(255, 238, 218, .26) 49%, transparent 62%);
  transform: translateX(-110%);
}
.element-tile.is-visible::after { transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .3s; transform: translateX(110%); }
.el-num { font-size: 1.5rem; font-weight: 600; }
.el-sym {
  margin-top: auto;
  font-size: clamp(6.5rem, 13vw, 10.5rem);
  font-weight: 720; font-stretch: 100%;
  line-height: .82; letter-spacing: -.04em;
  text-shadow: 0 2px 0 rgba(60, 28, 8, .25);
}
.el-name { margin-top: 18px; font-size: 1.35rem; font-weight: 650; }
.el-mass { font-size: 1rem; font-variant-numeric: tabular-nums; opacity: .85; }

.copper-points { list-style: none; margin: 44px 0 0; padding: 0; }
.copper-points li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(22, 18, 14, .2);
}
.copper-points li:last-child { border-bottom: 1px solid rgba(22, 18, 14, .2); }
.copper-points h3 { font-size: 1.12rem; }
.copper-points p { font-size: 1rem; color: var(--ink-soft); }

/* =========================================================
   130–220 m · Operations — the core box
   ========================================================= */
.core-box { border-bottom: 1px solid rgba(242, 236, 226, .14); }
.core-tray { list-style: none; margin: 0; padding: 0; }
.core-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-top: 1px solid rgba(242, 236, 226, .14);
}

/* A core stick (drawn by JS; flat colour without it) */
.core { height: clamp(36px, 4.2vw, 50px); background: var(--core); }
.core.is-drawn { height: auto; background: none; }
.core svg { display: block; width: 100%; height: auto; }
.core--explore { --core: #a39a8b; }
.core--develop { --core: #838f78; }
.core--operate { --core: #4d3c2f; }
.core--rehab   { --core: #7a885d; }

.core-text h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.core-text p { margin-top: 6px; font-size: 1rem; color: var(--light-soft); max-width: 46ch; }

/* =========================================================
   220–310 m · Principles
   ========================================================= */
.principles-list { list-style: none; margin: 0; padding: 0; }
.principles-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid rgba(242, 236, 226, .14);
}
.principles-list li:last-child { border-bottom: 1px solid rgba(242, 236, 226, .14); }
.principles-list h3 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-stretch: 72%; font-weight: 740; line-height: .98; letter-spacing: -.01em; }
.principles-list p { color: var(--light-soft); max-width: 44ch; }

/* =========================================================
   310–340 m · Ore zone — contact
   ========================================================= */
.stratum--ore { overflow: hidden; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.veins { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.veins .glint { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

.lamp-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(21, 17, 13, .78) 0%, rgba(21, 17, 13, .45) 48%, rgba(21, 17, 13, 0) 75%),
    rgba(21, 17, 13, .8);
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 70px, #000 300px);
  mask-image: radial-gradient(circle at var(--mx) var(--my), transparent 0, transparent 70px, #000 300px);
  transition: --mx .35s ease-out, --my .35s ease-out;
}

.contact-inner { position: relative; z-index: 2; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: end;
}
.contact-title { font-size: clamp(3rem, 8vw, 7rem); max-width: 9ch; line-height: .9; }
.contact-inner .section-intro { text-shadow: 0 1px 14px rgba(21, 17, 13, .95), 0 0 4px rgba(21, 17, 13, .8); }
@media (max-width: 640px) {
  .stratum--ore { --mx: 78%; --my: 9%; }
}
.contact-title em { font-style: normal; color: var(--copper-hi); }

.contact-card {
  padding: clamp(22px, 2.6vw, 32px);
  background: rgba(21, 17, 13, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(224, 161, 103, .22);
  border-radius: 3px;
}
.contact-list { margin: 0 0 28px; }
.contact-list > div {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 236, 226, .12);
}
.contact-list > div:first-child { border-top: 0; padding-top: 0; }
.contact-list dt { font-size: .9rem; color: var(--light-soft); padding-top: .2rem; }
.contact-list dd { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.contact-list a:hover { color: var(--copper-hi); border-color: currentColor; }

/* =========================================================
   Footer — end of hole
   ========================================================= */
.site-footer {
  background: var(--eoh);
  color: var(--light-soft);
  border-top: 1px dashed rgba(224, 161, 103, .35);
  padding-block: 32px;
  font-size: .9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.footer-logo { display: block; height: 48px; width: auto; }
.footer-top { text-decoration: none; font-weight: 600; color: var(--light); }
.footer-top:hover { color: var(--copper-hi); }
.footer-credit {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(242, 236, 226, .08);
  text-align: left;
}
.footer-credit p { margin: 0; font-size: .85rem; color: rgba(201, 191, 178, .75); }
.footer-credit a {
  color: var(--light); font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 161, 103, .5);
  transition: color .2s, border-color .2s;
}
.footer-credit a:hover,
.footer-credit a:focus-visible { color: var(--copper-hi); border-color: currentColor; }

/* =========================================================
   Depth instruments
   ========================================================= */
.strip-log {
  position: fixed; z-index: 40;
  left: clamp(14px, 1.7vw, 26px);
  top: calc(var(--header-h) + 28px); bottom: 28px;
  width: 8px;
  pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.strip-log.is-on { opacity: 1; }
.strip-col { position: absolute; inset: 0; box-shadow: 0 0 0 1px rgba(22, 18, 14, .4), 0 0 0 2px rgba(242, 236, 226, .25); }
.strip-col i { position: absolute; left: 0; right: 0; display: block; }
.strip-hole { position: absolute; left: 3px; width: 2px; top: 0; height: 0; background: var(--copper); }
.strip-bit { position: absolute; left: -5px; width: 18px; height: 2px; top: 0; background: var(--copper); }
.strip-bit::after {
  content: ""; position: absolute; left: 100%; top: 50%;
  border: 5px solid transparent; border-left-color: var(--copper);
  transform: translateY(-50%);
}

.hud {
  position: fixed; z-index: 40;
  right: clamp(14px, 1.7vw, 26px); bottom: clamp(14px, 1.7vw, 26px);
  display: grid; gap: 2px; justify-items: end;
  padding: 10px 14px;
  background: rgba(22, 18, 14, .9);
  color: var(--light);
  border: 1px solid rgba(224, 161, 103, .25);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.hud.is-on { opacity: 1; transform: none; }
.hud.is-off { opacity: 0; transform: translateY(8px); }
.hud-depth { font-size: 1.05rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.hud-layer { font-size: .78rem; color: var(--copper-hi); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Puzzle pieces settle into place */
.js .pieces .piece { transition: transform 1s cubic-bezier(.2, .9, .25, 1), opacity .6s ease; }
.js .pieces .piece:nth-child(2) { transition-delay: .08s; }
.js .pieces .piece:nth-child(3) { transition-delay: .16s; }
.js .pieces .piece:nth-child(4) { transition-delay: .24s; }
.js .pieces:not(.is-visible) .piece:nth-child(1) { transform: translate(-18px, -14px) rotate(-4deg); }
.js .pieces:not(.is-visible) .piece:nth-child(2) { transform: translate(20px, -18px) rotate(5deg); }
.js .pieces:not(.is-visible) .piece:nth-child(3) { transform: translate(-14px, 20px) rotate(3deg); }
.js .pieces:not(.is-visible) .piece:nth-child(4) { transform: translate(18px, 16px) rotate(-5deg); }

/* Core sticks slide into the tray */
.js .core-box .core { transition: transform 1s cubic-bezier(.2, .9, .25, 1), opacity .7s ease; }
.js .core-box:not(.is-visible) .core { transform: translateX(-40px); opacity: 0; }
.js .core-row:nth-child(2) .core { transition-delay: .1s; }
.js .core-row:nth-child(3) .core { transition-delay: .2s; }
.js .core-row:nth-child(4) .core { transition-delay: .3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .strip-log { display: none; }
}

@media (max-width: 980px) {
  .about-grid, .copper-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .element-tile { width: min(100%, 300px); }
  .core-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .principles-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .copper-points li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}


@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .landscape { height: 46%; }
  .hero-foot { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(22, 18, 14, .22); flex-direction: row; justify-content: space-between; align-items: baseline; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hud {
    top: calc(var(--header-h) + 8px); bottom: auto; right: 10px;
    grid-auto-flow: column; align-items: baseline; gap: 8px;
    padding: 6px 9px;
  }
  .hud-depth { font-size: .8rem; }
  .hud-layer { font-size: .56rem; }
  :root { --logo-h: 34px; --logo-big: 76px; --logo-drop: clamp(16px, 4vh, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal], .js .pieces .piece, .js .core-box .core { opacity: 1 !important; transform: none !important; transition: none !important; }
  .element-tile::after { display: none; }
  .lamp-shade { transition: none; }
  .site-header.is-ready .brand, .site-header.is-ready .brand-logo { transition: opacity .2s; }
}
