/* KOKAN - 4K-ready institutional UI */

/* ===== Dark only ===== */
:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --panel: rgba(18, 18, 18, 0.88);
  --panel2: rgba(24, 24, 24, 0.94);
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --dim: #7a7a7a;
  --gold: #f5c518;
  --gold2: #e8b923;
  --line: rgba(245, 197, 24, 0.3);
  --line2: rgba(255, 255, 255, 0.09);
  --nav-bg: rgba(10, 10, 10, 0.88);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --btn-text: #0a0a0a;
  --field: #0f0f0f;
  --world-a: #10141f;
  --world-b: #0a0a0a;
  --max: min(1280px, calc(100% - 3rem));
  --max-wide: min(1440px, calc(100% - 2.5rem));
  --nav-h: 84px;
  --radius: 18px;
  --pad-x: 1.25rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(15.5px, 0.28vw + 14.5px, 18px);
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  width: 100%;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

img {
  max-width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: #0a0a0a;
}

/* ===== Real building photo background ===== */
.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.world-photo {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  transform: scale(1.04);
  transition: opacity 0.7s ease;
  will-change: transform, opacity;
  animation: bgDrift 32s ease-in-out infinite alternate;
  /* Sharper on high-DPI */
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.world-photo-night {
  background-image: url("images/bg/skyline-night.jpg");
  opacity: 1;
  z-index: 1;
}

.world-photo-towers {
  background-image: url("images/bg/towers.jpg"), url("images/bg/skyline-wide.jpg");
  background-size: cover, cover;
  background-position: center bottom, center center;
  opacity: 0.28;
  z-index: 2;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.55) 45%, transparent 78%);
  animation: bgDrift 40s ease-in-out infinite alternate-reverse;
}

@keyframes bgDrift {
  0% { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.world-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.45) 40%, rgba(10, 10, 10, 0.78) 100%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(245, 197, 24, 0.08), transparent 60%);
}

.world-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse 85% 70% at 50% 40%, transparent 20%, rgba(0, 0, 0, 0.45) 100%);
}

/* ===== Layout ===== */
main,
.footer,
.nav {
  position: relative;
  z-index: 5;
}

.wrap {
  width: var(--max);
  margin: 0 auto;
}

.sec {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  position: relative;
  z-index: 5;
}

.sec-alt {
  background: rgba(0, 0, 0, 0.2);
}

.sec-slim {
  padding: 2rem 0 4rem;
}

.sec-head {
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.sec-head h2,
.contact-copy h2,
.ahead-panel h2,
.hero-copy h1 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.sec-head h2 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
}

.sec-head h2 em,
.contact-copy h2 em,
.ahead-panel h2 em,
.hero-copy h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-family: inherit;
  letter-spacing: inherit;
  display: inline;
}

.sec-lead,
.lede,
.closing {
  color: var(--muted);
  max-width: 58ch;
}

.sec-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-gold {
  background: linear-gradient(135deg, #ffe066, var(--gold), var(--gold2));
  color: var(--btn-text) !important;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.06);
}

.btn-ghost:hover {
  background: rgba(245, 197, 24, 0.12);
}

.btn-block {
  width: 100%;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--line2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: var(--max-wide);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 110;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 0 24px rgba(245, 197, 24, 0.28);
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-radius: 999px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-end .btn {
  display: none;
}

@media (min-width: 1100px) {
  .nav-end .btn {
    display: inline-flex;
  }
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  place-items: center;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
  background: var(--panel);
}

.burger i {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 2.5rem) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-shell {
  width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: 2.5rem;
}

.hero-shell-clean {
  grid-template-columns: 1fr;
  max-width: min(900px, 92vw);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

.hero-shell-clean .hero-copy {
  width: 100%;
  max-width: 860px;
}

.hero-shell-clean .lede {
  margin-left: auto;
  margin-right: auto;
}

.hero-shell-clean .hero-cta {
  justify-content: center;
}

.hero-shell-clean .hero-metrics {
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: rgba(245, 197, 24, 0.06);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  margin-bottom: 1.2rem;
  color: var(--text);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.lede {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-metrics {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line2);
}

.hero-metrics strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

.hero-metrics span {
  font-size: 0.75rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line2);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-top: auto;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.9rem 0;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Panels */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.panel {
  grid-column: span 12;
  padding: clamp(1.4rem, 2vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.span-8 {
  grid-column: span 8;
}
.span-4 {
  grid-column: span 4;
}
.span-12 {
  grid-column: span 12;
}

.glass-deep {
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(245, 197, 24, 0.08), var(--panel));
}

.panel-kicker {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.panel h3 {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.panel p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.panel-quote {
  color: var(--text) !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.78rem;
  background: rgba(245, 197, 24, 0.08);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.mission-grid div {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--bg2);
}

.mission-grid i {
  display: block;
  font-style: normal;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.mission-grid p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.55rem;
}

.value {
  padding: 0.95rem 0.5rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--bg2);
}

.value b {
  font-size: 0.8rem;
  color: var(--text);
}

/* Markets */
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.market-card {
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.market-wide {
  grid-column: span 2;
}

.market-soon {
  border-style: dashed;
  border-color: var(--line);
}

.m-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  color: var(--dim);
  font-size: 0.75rem;
}

.tag {
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag.soon {
  background: var(--gold);
  color: #0a0a0a;
  border-color: var(--gold);
}

.market-card h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.market-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.m-bar {
  height: 3px;
  border-radius: 999px;
  background: var(--line2);
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.m-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--gold2), var(--gold));
}

.m-foot {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.closing {
  margin-top: 2rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
}

.step {
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.step-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

.step h3 {
  font-family: Georgia, serif;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.step-line {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why-card {
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.why-card .mono {
  color: var(--gold);
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.why-card h3 {
  font-family: Georgia, serif;
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.why-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Presence */
.presence {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.presence-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.p-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: var(--panel);
}

.p-item.soon {
  border-style: dashed;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.dot.on {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(245, 197, 24, 0.5);
}

.p-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.p-item small {
  color: var(--dim);
  font-size: 0.78rem;
}

.presence-visual {
  display: grid;
  place-items: center;
  min-height: 360px;
}

.globe {
  position: relative;
  width: min(320px, 75vw);
  height: min(320px, 75vw);
  display: grid;
  place-items: center;
}

.globe-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  animation: spin 22s linear infinite;
}

.globe-ring.r2 {
  inset: 12%;
  animation-direction: reverse;
  animation-duration: 16s;
}

.globe-ring.r3 {
  inset: 24%;
  border-style: dashed;
  animation-duration: 12s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.globe-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(245, 197, 24, 0.08);
  z-index: 2;
}

.globe-core img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.6);
  z-index: 3;
}

.p-us {
  top: 28%;
  left: 22%;
}
.p-uk {
  top: 24%;
  left: 42%;
}
.p-in {
  top: 48%;
  right: 28%;
}
.p-me {
  top: 42%;
  right: 36%;
}
.p-af {
  bottom: 30%;
  left: 45%;
}
.p-cn {
  top: 36%;
  right: 22%;
}

.globe-caption {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Ahead */
.ahead-panel {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.ahead-panel p {
  margin: 1rem auto 0;
  max-width: 62ch;
  color: var(--muted);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(240px, 18vw);
  gap: 0.85rem;
}

.g-item {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line2);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.04) saturate(1.02);
}

.g-item:hover img {
  transform: scale(1.05);
}

.g-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 0.85rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.g-lg {
  grid-column: span 2;
  grid-row: span 2;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.contact-copy p {
  margin: 1rem 0 1.75rem;
  color: var(--muted);
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-meta li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line2);
}

.contact-meta .mono {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-meta a,
.contact-meta span:not(.mono) {
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  padding: 1.5rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: var(--field);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--line);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--gold);
  min-height: 1.2em;
}

.form-note.error {
  color: #ff8a8a;
}

/* Honeypot - hidden from humans */
.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line2);
  padding: 3rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid p {
  margin-top: 0.85rem;
  color: var(--dim);
  max-width: 32ch;
}

.footer-grid h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line2);
  color: var(--dim);
  font-size: 0.85rem;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Reveal: ALWAYS visible */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
}

/* Responsive */
/* ===== Tablet ===== */
@media (max-width: 1100px) {
  :root {
    --max: min(100% - 2rem, 960px);
    --max-wide: min(100% - 1.75rem, 1000px);
    --nav-h: 72px;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-4 {
    grid-column: span 12;
  }

  .mission-grid {
    grid-template-columns: 1fr 1fr;
  }

  .values {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .market-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-wide {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-line {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .presence {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: grid;
  }

  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 105;
    padding: calc(var(--nav-h) + 1rem) 1.25rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open a {
    font-size: 1.2rem;
    padding: 0.85rem 1.4rem;
    min-height: 48px;
    width: min(280px, 100%);
    text-align: center;
    border-radius: 12px;
  }

  .burger {
    position: relative;
    z-index: 110;
  }

  .burger.open i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .burger.open i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .burger i {
    transition: transform 0.25s ease;
  }
}

/* ===== Mobile phones ===== */
@media (max-width: 640px) {
  :root {
    --max: calc(100% - 1.5rem);
    --max-wide: calc(100% - 1.25rem);
    --nav-h: 64px;
    --radius: 14px;
    --pad-x: 0.85rem;
  }

  body {
    font-size: 15.5px;
  }

  .nav-inner {
    width: var(--max-wide);
    gap: 0.5rem;
  }

  .brand span {
    letter-spacing: 0.12em;
    font-size: 0.85rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .sec {
    padding: 3.25rem 0;
  }

  .sec-head {
    margin-bottom: 1.5rem;
  }

  .sec-head h2,
  .contact-copy h2,
  .ahead-panel h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    line-height: 1.2;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 1.25rem) 0 0;
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .hero-shell,
  .hero-shell-clean {
    width: var(--max-wide);
    max-width: 100%;
    padding-bottom: 1.5rem;
    gap: 1.25rem;
  }

  .hero-shell-clean .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    margin-bottom: 0.9rem;
    line-height: 1.15;
  }

  .pill {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.7rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    text-align: left;
  }

  .lede {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-metrics {
    width: 100%;
    gap: 0.75rem;
    justify-content: space-between;
    padding-top: 1rem;
  }

  .hero-metrics > div {
    flex: 1 1 30%;
    min-width: 0;
  }

  .hero-metrics strong {
    font-size: 1.25rem;
  }

  .hero-metrics span {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .marquee {
    margin-top: 1rem;
  }

  .marquee-track {
    gap: 1.25rem;
    padding: 0.75rem 0;
  }

  .marquee-track span {
    font-size: 0.65rem;
  }

  .bento {
    gap: 0.75rem;
  }

  .panel {
    padding: 1.15rem;
  }

  .panel h3 {
    font-size: 1.2rem;
  }

  .mission-grid,
  .values,
  .market-grid,
  .why-grid,
  .presence-list,
  .gallery,
  .footer-grid,
  .hud-row {
    grid-template-columns: 1fr;
  }

  .market-wide,
  .g-lg,
  .span-8,
  .span-4,
  .span-12 {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery {
    grid-auto-rows: 200px;
    gap: 0.65rem;
  }

  .g-item figcaption {
    opacity: 1;
    font-size: 0.65rem;
    padding: 1.75rem 0.7rem 0.65rem;
  }

  .chip-row {
    gap: 0.4rem;
  }

  .chip {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .market-card,
  .why-card,
  .step,
  .p-item {
    padding: 1.1rem;
  }

  .market-card h3,
  .why-card h3,
  .step h3 {
    font-size: 1.1rem;
  }

  .presence-visual {
    min-height: 280px;
    order: -1;
  }

  .globe {
    width: min(260px, 78vw);
    height: min(260px, 78vw);
  }

  .globe-core {
    width: 84px;
    height: 84px;
  }

  .globe-core img {
    width: 58px;
    height: 58px;
  }

  .ahead-panel {
    padding: 1.5rem 1.1rem;
  }

  .contact {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.15rem;
  }

  .btn {
    min-height: 48px;
  }

  .footer {
    padding: 2.25rem 0 1.25rem;
  }

  .footer-grid {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-base {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .to-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }

  .world-photo {
    background-position: 65% center;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .brand span {
    display: none;
  }

  .hero-metrics {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .hero-metrics > div {
    flex: none;
    text-align: center;
  }

  .pill {
    font-size: 0.6rem;
  }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .hero-metrics {
    display: none;
  }
}

/* ===== 4K and ultra-wide refinement ===== */
@media (min-width: 1600px) {
  :root {
    --max: min(1400px, 78vw);
    --max-wide: min(1560px, 82vw);
    --nav-h: 90px;
  }

  body {
    font-size: 17.5px;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 4.2vw, 5.4rem);
  }

  .sec-head h2 {
    font-size: clamp(2.6rem, 2.8vw, 3.8rem);
  }

  .gallery {
    grid-auto-rows: minmax(280px, 16vw);
  }

  .brand img {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 2200px) {
  :root {
    --max: min(1680px, 72vw);
    --max-wide: min(1840px, 76vw);
  }

  body {
    font-size: 18.5px;
  }

  .hero-copy h1 {
    font-size: 5.8rem;
  }

  .world-photo {
    background-size: cover;
  }
}

/* Retina sharpness */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
  }

  .panel,
  .market-card,
  .why-card,
  .step,
  .p-item {
    box-shadow:
      var(--shadow),
      0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .globe-ring,
  .world-photo {
    animation: none !important;
  }
}
