/* ==========================================================================
   VIKRAM ENGINEERING · V3
   Industrial Editorial · Carbon + Cream + Brass
   ========================================================================== */

:root {
  /* Palette — from brand logo */
  --ink: #0a0a0c;
  --ink-2: #121215;
  --ink-3: #1a1a1f;
  --carbon: #24242a;
  --steel: #3a3a42;
  --fog: #86868e;
  --cream: #f5f2ec;
  --cream-2: #eae6dd;
  --paper: #faf8f3;

  /* Brand */
  --coral: #f26f21;         /* "ikram" orange */
  --coral-hi: #ff8a3d;
  --coral-lo: #c85614;
  --crimson: #d93a2a;       /* tick red */
  --crimson-hi: #e55844;
  --silver: #b8b6b4;        /* swoosh */
  --silver-lo: #8a8886;

  /* Semantic */
  --accent: var(--coral);
  --accent-hi: var(--coral-hi);

  /* Type — refined, modern, premium */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --pad: clamp(1.25rem, 4vw, 4rem);
  --pad-y: clamp(4rem, 10vw, 8rem);
  --radius: 2px;

  /* Easing */
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--coral); color: var(--ink); }

/* ==========================================================================
   Grain overlay
   ========================================================================== */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--coral);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-soft), height 0.3s var(--ease-soft), background 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--coral);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor.is-hover {
  width: 56px; height: 56px;
  background: rgba(242, 111, 33, 0.1);
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__ring { width: 120px; height: 120px; display: block; margin: 0 auto 2rem; }
.loader__track { fill: none; stroke: var(--carbon); stroke-width: 1; }
.loader__progress {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1;
  stroke-dasharray: 276;
  stroke-dashoffset: 276;
  transform: rotate(-90deg);
  transform-origin: center;
  animation: load 2.2s var(--ease) forwards;
}
@keyframes load { to { stroke-dashoffset: 0; } }
.loader__label {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: var(--cream);
}
.loader__label span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: letter 0.6s var(--ease-soft) forwards;
}
.loader__label span:nth-child(1) { animation-delay: 0.1s; }
.loader__label span:nth-child(2) { animation-delay: 0.2s; }
.loader__label span:nth-child(3) { animation-delay: 0.3s; }
.loader__label span:nth-child(4) { animation-delay: 0.4s; }
.loader__label span:nth-child(5) { animation-delay: 0.5s; }
.loader__label span:nth-child(6) { animation-delay: 0.6s; }
@keyframes letter { to { opacity: 1; transform: translateY(0); } }
.loader__sub {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--fog);
  opacity: 0;
  animation: letter 0.8s var(--ease-soft) 1.2s forwards;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.2rem var(--pad);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 11, 8, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(242, 111, 33, 0.12);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
}
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(242, 111, 33, 0.18));
}
.brand__mark {
  color: var(--coral);
  display: grid; place-items: center;
}
.brand__text {
  display: flex; flex-direction: column;
  line-height: 1;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(184, 182, 180, 0.2);
}
.brand__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--fog);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .brand__logo { height: 32px; }
  .brand__text { display: none; }
}

.nav__links {
  display: flex;
  gap: 2.2rem;
  justify-content: center;
  list-style: none;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__links a::before {
  content: attr(data-num);
  color: var(--coral);
  margin-right: 0.5em;
  font-size: 0.6rem;
  vertical-align: top;
  opacity: 0.6;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--coral);
  transition: width 0.4s var(--ease-soft);
}
.nav__links a:hover { color: var(--coral-hi); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-soft), background 0.3s, color 0.3s;
}
.nav__cta:hover {
  background: var(--coral-hi);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: flex-end;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
.nav__burger span:nth-child(2) { width: 14px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); width: 22px; }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-3px) rotate(-45deg); width: 22px; }

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--ink-2);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
  padding: 6rem var(--pad) 2rem;
  border-left: 1px solid rgba(242, 111, 33, 0.12);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu li {
  border-bottom: 1px solid rgba(242, 111, 33, 0.08);
}
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--cream);
}
.mobile-menu a em {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-style: normal;
  color: var(--coral);
  letter-spacing: 0.2em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem var(--pad) 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(242, 111, 33, 0.08), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(217, 58, 42, 0.04), transparent 50%),
    var(--ink);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--fog);
  text-transform: uppercase;
  margin-bottom: 4rem;
  position: relative;
  z-index: 3;
}
.meta-row {
  display: flex; align-items: center; gap: 0.6rem;
}
.meta-row .dot {
  width: 6px; height: 6px;
  background: var(--coral);
  border-radius: 50%;
  animation: pulse 2s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(242, 111, 33, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(242, 111, 33, 0); }
}

.hero__grid {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}
.hero__eyebrow .line {
  display: block;
  width: 60px; height: 1px;
  background: var(--coral);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.8vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  max-width: 16ch;
  color: var(--cream);
  margin-bottom: 2.5rem;
}
.hero__title mark {
  background: transparent;
  color: var(--coral);
  font-style: italic;
  position: relative;
  padding: 0 0.04em;
}
.hero__title mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.1em;
  height: 2px;
  background: var(--coral);
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  animation: markLine 0.9s var(--ease) 1.3s forwards;
}
@keyframes markLine { to { transform: scaleX(1); } }

.line-wrap {
  display: block;
  overflow: hidden;
}
.line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.line-wrap:nth-of-type(1) .line-inner { animation-delay: 0.3s; }
.line-wrap:nth-of-type(2) .line-inner { animation-delay: 0.4s; }
.line-wrap:nth-of-type(3) .line-inner { animation-delay: 0.5s; }
.line-wrap:nth-of-type(4) .line-inner { animation-delay: 0.6s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__lede {
  max-width: 48ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(243, 237, 224, 0.72);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
}

.hero__cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.2s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-soft), background 0.3s, color 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  will-change: transform;
}
.btn--primary {
  background: var(--coral);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--coral-hi);
  transform: translateY(-2px);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn svg { transition: transform 0.3s var(--ease-soft); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 237, 224, 0.2);
}
.btn--ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
}
.btn--full { width: 100%; justify-content: center; padding: 1.2rem; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.3s forwards;
}
.badge-iso {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.1rem 0.7rem 0.9rem;
  border: 1px solid rgba(242, 111, 33, 0.3);
  border-radius: 999px;
  background: rgba(242, 111, 33, 0.06);
  color: var(--coral);
}
.badge-iso--alt {
  border-color: rgba(184, 182, 180, 0.25);
  background: rgba(184, 182, 180, 0.04);
  color: var(--silver);
}
.badge-iso svg { flex: 0 0 auto; }
.badge-iso > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.badge-iso__kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}
.badge-iso__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream);
  margin-top: 2px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 760px;
  border-top: 1px solid rgba(242, 111, 33, 0.15);
  padding-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.4s forwards;
}
.stat {
  padding-right: 1rem;
  border-right: 1px solid rgba(242, 111, 33, 0.1);
}
.stat:last-child { border-right: 0; }
.stat:not(:first-child) { padding-left: 1.2rem; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.02em;
}
.stat__num sup {
  font-size: 0.5em;
  color: var(--coral);
  vertical-align: top;
  margin-left: 2px;
}
.stat__lbl {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--fog);
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(242, 111, 33, 0.1); padding-top: 1.5rem; }
}

/* Hero Ring */
.hero__ring {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: clamp(400px, 60vw, 900px);
  height: clamp(400px, 60vw, 900px);
  pointer-events: none;
  opacity: 0;
  animation: ringIn 1.6s var(--ease) 0.4s forwards;
  z-index: 1;
}
@keyframes ringIn { to { opacity: 1; } }
.ring-svg { width: 100%; height: 100%; }
.ring-group { animation: spinSlow 60s linear infinite; transform-origin: 300px 300px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.ring-labels { animation: spinRev 50s linear infinite; transform-origin: 300px 300px; }
@keyframes spinRev { to { transform: rotate(-360deg); } }
.ring-ticks line { stroke: var(--coral); opacity: 0.35; }

@media (max-width: 900px) {
  .hero__ring { opacity: 0.35 !important; right: -20%; top: 60%; }
  .hero__title { max-width: 100%; }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: var(--pad);
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem;
  z-index: 3;
}
.hero__scroll-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fog);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(var(--coral), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute;
  top: -30px; left: 0;
  width: 1px; height: 30px;
  background: var(--coral);
  animation: slide 2.2s var(--ease-soft) infinite;
}
@keyframes slide { to { top: 100%; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  padding: 1.5rem 0;
  background: var(--ink-2);
  overflow: hidden;
  border-top: 1px solid rgba(242, 111, 33, 0.08);
  border-bottom: 1px solid rgba(242, 111, 33, 0.08);
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 300;
  color: var(--cream);
  font-style: italic;
  animation: marquee 40s linear infinite;
}
.marquee__track .dot-sep {
  color: var(--coral);
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.6em;
  align-self: center;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section labels · Headings
   ========================================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 3rem;
}
.section-label span {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--coral);
  border-radius: 50%;
}
.section-label em { font-style: normal; color: var(--cream); }
.section-label--light { color: var(--silver-lo); }
.section-label--light em { color: var(--ink); }
.section-label--light span { border-color: var(--silver-lo); }

.heading-serif {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
}
.heading-serif em {
  font-style: italic;
  color: var(--coral);
}

/* ==========================================================================
   Legacy
   ========================================================================== */
.legacy {
  padding: var(--pad-y) var(--pad);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(242, 111, 33, 0.05), transparent 50%),
    var(--ink);
  position: relative;
}
.legacy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 111, 33, 0.2), transparent);
}
.legacy__inner { max-width: 1400px; margin: 0 auto; }
.legacy__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}
@media (max-width: 900px) {
  .legacy__grid { grid-template-columns: 1fr; gap: 4rem; }
}

.legacy__left h2 { margin-bottom: 2.5rem; max-width: 15ch; color: var(--cream); }
.legacy__body {
  font-size: 1.05rem;
  color: rgba(243, 237, 224, 0.75);
  margin-bottom: 1.5rem;
  max-width: 52ch;
  line-height: 1.7;
}

.legacy__pullquote {
  margin-top: 3rem;
  padding: 2rem;
  border-left: 1px solid var(--coral);
  background: linear-gradient(90deg, rgba(242, 111, 33, 0.04), transparent);
  color: var(--coral);
}
.legacy__pullquote svg { color: var(--coral); opacity: 0.5; margin-bottom: 0.8rem; }
.legacy__pullquote p {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--cream);
  margin-bottom: 1rem;
}
.legacy__pullquote em { color: var(--coral); font-style: italic; }
.legacy__pullquote cite {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--fog);
  font-style: normal;
  text-transform: uppercase;
}

/* Timeline */
.timeline { list-style: none; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.6rem 0 1.6rem 1.5rem;
  border-left: 1px solid rgba(242, 111, 33, 0.15);
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -5px; top: 2rem;
  width: 9px; height: 9px;
  background: var(--ink);
  border: 1px solid var(--coral);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
}
.timeline li:hover::before {
  background: var(--coral);
  transform: scale(1.3);
}
.tl__year {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--coral);
  line-height: 1;
}
.tl__body h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.tl__body p {
  color: rgba(243, 237, 224, 0.6);
  font-size: 0.95rem;
}

/* ==========================================================================
   Precision
   ========================================================================== */
.precision {
  padding: var(--pad-y) var(--pad);
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.precision::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 11, 8, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 11, 8, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.6;
}
.precision__header {
  max-width: 1400px;
  margin: 0 auto 4rem;
  position: relative;
}
.precision__title {
  max-width: 16ch;
  color: var(--ink);
}
.precision__title em { color: var(--crimson); }

.spec-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  position: relative;
}
.spec-card {
  background: var(--paper);
  padding: 2rem;
  border: 1px solid rgba(12, 11, 8, 0.08);
  grid-column: span 2;
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s, border-color 0.5s;
  position: relative;
}
.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(12, 11, 8, 0.15);
  border-color: rgba(242, 111, 33, 0.6);
}
.spec-card--hero {
  grid-column: span 3;
  grid-row: span 2;
  background: var(--ink);
  color: var(--cream);
  padding: 3rem;
  border-color: transparent;
}
.spec-card--wide { grid-column: span 3; }
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-card, .spec-card--hero, .spec-card--wide { grid-column: span 1; grid-row: auto; }
}

.spec-card__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--coral);
  margin-bottom: 1rem;
}
.spec-card__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.spec-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  color: inherit;
}
.spec-card--hero h3 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  margin-bottom: 1.2rem;
}
.spec-card p {
  color: rgba(12, 11, 8, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}
.spec-card--hero p { color: rgba(243, 237, 224, 0.72); }
.spec-card__figure {
  margin-top: 2rem;
  border-top: 1px solid rgba(242, 111, 33, 0.2);
  padding-top: 2rem;
}
.spec-card__figure svg { width: 100%; height: auto; }

.spec-list {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(12, 11, 8, 0.1);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(12, 11, 8, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.spec-list li span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(12, 11, 8, 0.5);
}
.spec-list li em {
  font-style: normal;
  color: var(--crimson);
  font-weight: 500;
}

.pill-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(12, 11, 8, 0.15);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.pill:hover { background: var(--ink); color: var(--cream); }

/* ==========================================================================
   Catalogue
   ========================================================================== */
.catalogue {
  padding: var(--pad-y) var(--pad);
  background: var(--ink);
}
.catalogue__header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}
.catalogue__title-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
}
@media (max-width: 900px) {
  .catalogue__title-row { grid-template-columns: 1fr; gap: 1.5rem; }
}
.catalogue__lede {
  color: rgba(243, 237, 224, 0.7);
  font-size: 1.05rem;
  max-width: 48ch;
  line-height: 1.7;
}

.product-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(242, 111, 33, 0.08);
  border: 1px solid rgba(242, 111, 33, 0.08);
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.product {
  background: var(--ink);
  padding: 2rem;
  position: relative;
  transition: background 0.5s;
  overflow: hidden;
}
.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(242, 111, 33, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.product:hover { background: var(--ink-2); }
.product:hover::before { opacity: 1; }
.product:hover .product__img img { transform: scale(1.06); }

.product__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 1.5rem;
}
.product__img {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  margin: 0 -2rem 2rem;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(242, 111, 33, 0.08);
  border-bottom: 1px solid rgba(242, 111, 33, 0.08);
}
.product__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-soft), filter 0.6s;
  display: block;
}
.product__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 12, 0.35));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
.product:hover .product__img img { transform: scale(1.06); }
.product:hover .product__img::after { opacity: 1; }
.product h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--cream);
}
.product p {
  font-size: 0.9rem;
  color: rgba(243, 237, 224, 0.55);
  line-height: 1.5;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  padding: var(--pad-y) var(--pad);
  background: var(--cream);
  color: var(--ink);
  position: relative;
}
.process__inner { max-width: 1300px; margin: 0 auto; }
.process h2 {
  max-width: 16ch;
  margin-bottom: 4rem;
  color: var(--ink);
}
.process h2 em { color: var(--crimson); }

.process-list {
  list-style: none;
  border-top: 1px solid rgba(12, 11, 8, 0.1);
}
.process-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(12, 11, 8, 0.1);
  transition: padding-left 0.4s var(--ease-soft), background 0.4s;
}
.process-list li:hover {
  padding-left: 1rem;
  background: rgba(242, 111, 33, 0.04);
}
.process-list__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
}
.process-list__body h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.process-list__body p {
  font-size: 1rem;
  color: rgba(12, 11, 8, 0.6);
  max-width: 60ch;
  line-height: 1.6;
}
.process-list__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--silver-lo);
  text-transform: uppercase;
  padding-top: 0.8rem;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .process-list li { grid-template-columns: 50px 1fr; }
  .process-list__meta { grid-column: 2; padding-top: 0.5rem; }
}

/* ==========================================================================
   Reach
   ========================================================================== */
.reach {
  padding: var(--pad-y) var(--pad);
  background: var(--ink);
  max-width: 1500px;
  margin: 0 auto;
}
.reach__header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}
.reach__header h2 { max-width: 14ch; color: var(--cream); }
.reach__lede {
  color: rgba(243, 237, 224, 0.7);
  font-size: 1.05rem;
  max-width: 48ch;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .reach__header { grid-template-columns: 1fr; gap: 1.5rem; }
}

.reach__map {
  background: var(--ink-2);
  border: 1px solid rgba(242, 111, 33, 0.12);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}
.worldmap-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--ink);
}
.worldmap-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.95;
}
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  pointer-events: none;
}
.pin--above {
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.35rem;
  transform: translate(-50%, -100%);
}
.pin--below {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transform: translate(-50%, 0%);
}
.pin__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px rgba(242, 111, 33, 0.2), 0 0 14px rgba(242, 111, 33, 0.7);
  position: relative;
  flex: 0 0 auto;
}
.pin__dot::before,
.pin__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  opacity: 0;
  animation: pinPulse 2.6s var(--ease-soft) infinite;
}
.pin__dot::after { animation-delay: 1.3s; }
@keyframes pinPulse {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(3.4); opacity: 0; }
}
.pin__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.85);
  padding: 0.2rem 0.55rem;
  background: rgba(10, 10, 12, 0.65);
  border: 1px solid rgba(184, 182, 180, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.pin__label--left {
  order: -1;
}
.pin--hq .pin__dot {
  width: 14px; height: 14px;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(242, 111, 33, 0.25), 0 0 22px rgba(242, 111, 33, 0.9);
}
.pin--hq .pin__label {
  color: var(--coral);
  border-color: var(--coral);
  font-weight: 600;
}
@media (max-width: 700px) {
  .pin__label { display: none; }
  .pin__dot { width: 7px; height: 7px; }
  .pin--hq .pin__dot { width: 11px; height: 11px; }
}

.reach__legend {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
}
.reach__legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.reach__legend .dot--hq { background: var(--crimson); }

.reach__countries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(242, 111, 33, 0.12);
  padding-top: 3rem;
}
.country-col h5 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(242, 111, 33, 0.15);
}
.country-col ul { list-style: none; }
.country-col li {
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 0.4rem 0;
  color: rgba(243, 237, 224, 0.8);
  transition: color 0.3s, transform 0.3s;
}
.country-col li:hover { color: var(--coral); transform: translateX(4px); }
@media (max-width: 700px) {
  .reach__countries { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients {
  padding: var(--pad-y) var(--pad);
  background: var(--ink);
  position: relative;
}
.clients::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 111, 33, 0.18), transparent);
}
.clients__inner { max-width: 1400px; margin: 0 auto; }

.clients__header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.clients__header h2 { max-width: 18ch; color: var(--cream); }
.clients__lede {
  color: rgba(245, 242, 236, 0.7);
  font-size: 1.05rem;
  max-width: 46ch;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .clients__header { grid-template-columns: 1fr; gap: 1.5rem; }
}

.clients__group {
  margin-bottom: 4.5rem;
}
.clients__group:last-child { margin-bottom: 0; }

.clients__group-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(242, 111, 33, 0.12);
}
.clients__group-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--coral);
}
.clients__group-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients__grid { grid-template-columns: 1fr; } }

.client-card {
  background: var(--ink-2);
  border: 1px solid rgba(242, 111, 33, 0.08);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-soft), background 0.4s;
  position: relative;
}
.client-card:hover {
  border-color: rgba(242, 111, 33, 0.4);
  transform: translateY(-3px);
  background: var(--ink-3);
}

.client-card__logo {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid rgba(184, 182, 180, 0.08);
  padding-bottom: 1.25rem;
  position: relative;
}
.client-card__logo img {
  max-height: 64px;
  max-width: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: filter 0.4s, opacity 0.4s;
}
.client-card:hover .client-card__logo img {
  filter: none;
  opacity: 1;
}
/* Monogram fallback when image fails to load */
.client-card__logo[data-fallback]::before {
  content: attr(data-fallback);
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--coral);
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(242, 111, 33, 0.15), transparent 70%);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(242, 111, 33, 0.18);
  border-radius: 2px;
}

.client-card__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0;
}
.client-card__name em {
  font-style: italic;
  color: rgba(245, 242, 236, 0.55);
  font-size: 0.85em;
  display: block;
  margin-top: 0.2rem;
}
.client-card__location {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-lo);
  margin-top: auto;
}

.clients__cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(242, 111, 33, 0.08);
}

@media (max-width: 700px) {
  .clients__group { margin-bottom: 3rem; }
  .client-card { padding: 1.4rem; }
  .client-card__logo { height: 72px; }
  .client-card__logo[data-fallback]::before { font-size: 2rem; }
  .client-card__name { font-size: 1.05rem; }
  .clients__cta { margin-top: 2.5rem; padding-top: 2rem; }
}

/* ==========================================================================
   Clients page — hero
   ========================================================================== */
.clients-hero {
  padding: 10rem var(--pad) 4rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(242, 111, 33, 0.08), transparent 55%),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.clients-hero__inner { max-width: 1400px; margin: 0 auto; }
.clients-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
}
.clients-hero__eyebrow span.line {
  display: block;
  width: 50px; height: 1px;
  background: var(--coral);
}
.clients-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 2rem;
}
.clients-hero h1 em { font-style: italic; color: var(--coral); }
.clients-hero__lede {
  max-width: 56ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(245, 242, 236, 0.72);
  line-height: 1.7;
}

.clients-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(242, 111, 33, 0.15);
  padding-top: 2.25rem;
}
.clients-hero__stats .stat:nth-child(2),
.clients-hero__stats .stat:nth-child(3),
.clients-hero__stats .stat:nth-child(4) { padding-left: 1.5rem; }
@media (max-width: 700px) {
  .clients-hero { padding-top: 7rem; }
  .clients-hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.5rem; }
  .clients-hero__stats .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .clients-hero__stats .stat:nth-child(3),
  .clients-hero__stats .stat:nth-child(4) {
    border-top: 1px solid rgba(242, 111, 33, 0.1);
    padding-top: 1.5rem;
  }
  .clients-hero__stats .stat:nth-child(3) { padding-left: 0; }
}

.clients-page {
  padding: var(--pad-y) var(--pad);
  background: var(--ink);
}
.clients-page .clients__inner { max-width: 1400px; margin: 0 auto; }

/* Closing CTA on dedicated page */
.clients-close {
  padding: var(--pad-y) var(--pad);
  background: var(--ink-2);
  text-align: center;
  position: relative;
}
.clients-close::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 111, 33, 0.18), transparent);
}
.clients-close h2 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  color: var(--cream);
}
.clients-close__lede {
  max-width: 50ch;
  margin: 0 auto 2.5rem;
  color: rgba(245, 242, 236, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
}
.clients-close__cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Testimony
   ========================================================================== */
.testimony {
  padding: var(--pad-y) var(--pad);
  background: var(--ink-2);
  text-align: center;
}
.testimony blockquote {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.testimony blockquote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.testimony blockquote em {
  color: var(--coral);
  font-style: italic;
}
.quote-open, .quote-close {
  font-family: var(--serif);
  color: var(--coral);
  font-size: 1.4em;
  font-style: italic;
  opacity: 0.6;
}
.testimony footer {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.testimony cite { font-style: normal; color: var(--coral); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  padding: var(--pad-y) var(--pad);
  background: var(--cream);
  color: var(--ink);
}
.contact__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 3rem; } }

.contact__left h2 { margin-bottom: 2rem; max-width: 12ch; }
.contact__lede {
  max-width: 40ch;
  color: rgba(12, 11, 8, 0.65);
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact__list {
  list-style: none;
  border-top: 1px solid rgba(12, 11, 8, 0.1);
}
.contact__list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(12, 11, 8, 0.1);
  align-items: start;
}
.contact__lbl {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
  padding-top: 0.3rem;
}
.contact__val {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.contact__val a { transition: color 0.3s; }
.contact__val a:hover { color: var(--crimson); }
@media (max-width: 560px) {
  .contact__list li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Form */
.contact-form {
  background: var(--paper);
  padding: 2.5rem;
  border: 1px solid rgba(12, 11, 8, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.contact-form label span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-lo);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(12, 11, 8, 0.2);
  padding: 0.8rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--coral);
}
.contact-form__sent {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--coral);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease);
  text-align: center;
  padding: 2rem;
}
.contact-form__sent.is-on { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: var(--pad-y) var(--pad) 2rem;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 111, 33, 0.25), transparent);
}

.footer__huge {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 14vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--coral);
  margin-bottom: 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  overflow: hidden;
}
.footer__huge span {
  display: block;
  white-space: nowrap;
}
.footer__huge span:nth-child(2) {
  font-style: italic;
  color: var(--coral);
  -webkit-text-stroke: 0;
  font-size: 0.78em;
  margin-left: 6%;
}

.footer__row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-top: 3rem;
  border-top: 1px solid rgba(242, 111, 33, 0.12);
}
.footer__row > div > p {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--fog);
  text-transform: uppercase;
  line-height: 1.8;
}
.brand__mark--lg { color: var(--coral); display: inline-block; }
.footer__logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(242, 111, 33, 0.2));
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  align-self: center;
  justify-content: center;
}
.footer__nav a {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: rgba(243, 237, 224, 0.7);
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--coral); }

.footer__meta {
  text-align: right;
}
.footer__meta p {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--fog);
  text-transform: uppercase;
  line-height: 1.9;
}
@media (max-width: 900px) {
  .footer__row { grid-template-columns: 1fr; text-align: left; gap: 2rem; }
  .footer__nav, .footer__meta { text-align: left; justify-content: flex-start; }
}

/* ==========================================================================
   Reveal animations (JS-triggered)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .line-inner { transform: translateY(0) !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Mobile polish
   ========================================================================== */
@media (max-width: 700px) {
  /* Hero: hide the meta row entirely on mobile */
  .hero__meta { display: none; }

  /* Burger aligns to the right on mobile */
  .nav__burger { justify-self: end; margin-left: auto; }

  .hero { padding-top: 5.5rem; padding-bottom: 3rem; }

  .hero__eyebrow { font-size: 0.6rem; }
  .hero__eyebrow .line { width: 36px; }

  .hero__title { font-size: clamp(2.1rem, 10vw, 3.4rem); line-height: 1.06; }
  .hero__lede { font-size: 0.98rem; }

  /* Hide the decorative scroll indicator on mobile — it collides with stats */
  .hero__scroll { display: none; }

  /* Stats: 2×2 grid with consistent borders */
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .stat { padding-right: 0.5rem; }
  .stat:not(:first-child) { padding-left: 0.75rem; }
  .stat:nth-child(2) { border-right: 0; padding-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) {
    border-top: 1px solid rgba(242, 111, 33, 0.1);
    padding-top: 1.5rem;
  }
  .stat:nth-child(3) { padding-left: 0; }
  .stat__num { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .stat__lbl { font-size: 0.58rem; }

  /* Badges: tighter pill on mobile */
  .hero__badges { gap: 0.6rem; margin-bottom: 2rem; }
  .badge-iso { padding: 0.55rem 0.9rem 0.55rem 0.75rem; }
  .badge-iso__name { font-size: 0.95rem; }
  .badge-iso__kicker { font-size: 0.55rem; }

  /* Nav: tighter, brand logo smaller */
  .nav { padding: 0.85rem var(--pad); gap: 0.75rem; }

  /* Section labels & headings */
  .section-label { margin-bottom: 2rem; }
  .heading-serif { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.06; }

  /* Catalogue cards: tighter padding on mobile */
  .product { padding: 1.5rem; }
  .product__img { margin: 0 -1.5rem 1.5rem; }

  /* Legacy pullquote smaller text */
  .legacy__pullquote p { font-size: 1.15rem; }

  /* Timeline: tighter */
  .timeline li { grid-template-columns: 80px 1fr; gap: 1rem; padding-left: 1rem; }
  .tl__year { font-size: 1.3rem; }

  /* Process: single-column */
  .process-list li {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
  }
  .process-list__meta {
    grid-column: 2;
    grid-row: 2;
    padding-top: 0.4rem;
    font-size: 0.62rem;
  }
  .process-list__no { font-size: 2rem; }

  /* Reach legend */
  .reach__legend { gap: 1rem; font-size: 0.62rem; }

  /* Contact form tighter */
  .contact-form { padding: 1.5rem; }
  .contact__list li { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.1rem 0; }

  /* Footer */
  .footer__huge { font-size: clamp(2.4rem, 14vw, 5rem); }
  .footer__logo { height: 40px; }

  /* Marquee */
  .marquee__track { font-size: 1rem; }
}

/* Very small devices */
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .nav__cta { display: none; }
}
