/* ============================================================
   İÇDAŞ — concept redesign · Abdolvandi.com
   ============================================================ */

@import url('../fonts/fonts.css');

:root {
  /* palette */
  --ink: #15171a;
  --ink-soft: #2a2d31;
  --paper: #f3f0e9;
  --paper-dim: #e9e3d6;
  --paper-line: rgba(21, 23, 26, 0.12);
  --steel-900: #14181d;
  --steel-800: #1b2129;
  --steel-700: #262e38;
  --steel-500: #59636e;
  --steel-300: #9aa4ad;
  --steel-line: rgba(243, 240, 233, 0.14);
  --ember: #c4531e;
  --ember-dim: #8f3b14;
  --ember-glow: #e8814a;
  --paper-rgb: 243, 240, 233;

  /* type */
  --font-sans: 'Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Plex Mono', ui-monospace, 'SF Mono', monospace;
  --fs-display: clamp(2.6rem, 2vw + 2rem, 5.25rem);
  --fs-h1: clamp(2.1rem, 1.4vw + 1.6rem, 3.25rem);
  --fs-h2: clamp(1.6rem, 0.9vw + 1.25rem, 2.35rem);
  --fs-h3: clamp(1.2rem, 0.4vw + 1rem, 1.5rem);
  --fs-lede: clamp(1.05rem, 0.3vw + 0.95rem, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.78rem;

  /* spacing */
  --sp-1: 0.5rem;
  --sp-2: 0.875rem;
  --sp-3: 1.25rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6.5rem;
  --sp-8: 9rem;

  --container: 1280px;
  --radius-s: 3px;
  --radius-m: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* elevation layer — Forge */
  --void: #0a0c0f;
  --void-2: #0d1014;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-slow: 1100ms;
  --ember-rgb: 196, 83, 30;
  --glow-rgb: 232, 129, 74;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ember);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-size: var(--fs-small);
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--ember);
  display: inline-block;
}

section { position: relative; }

/* ---------- language toggle ----------
   Hide the INACTIVE language and leave the active element at its authored
   display, so component rules like .hero-tag{display:block} can't leak both. */
html[data-lang="tr"] [data-lang-content="en"],
html[data-lang="en"] [data-lang-content="tr"] { display: none !important; }

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
}
.lang-switch button {
  background: none;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--steel-500);
  letter-spacing: 0.06em;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.header .lang-switch { border-color: var(--steel-line); }
.header .lang-switch button { color: var(--steel-300); }
.header .lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), backdrop-filter .5s var(--ease-out);
}
.header.is-scrolled {
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--steel-line);
}
/* subpages: no dark hero behind nav, so keep it readable from the top */
body.has-banner .header { background: rgba(10, 12, 15, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
}
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.brand-word {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
}
.brand-word b { color: var(--ember-glow); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-links {
  display: flex;
  gap: var(--sp-4);
}
.nav-links a {
  font-size: var(--fs-small);
  color: var(--steel-300);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--paper);
  border-color: var(--ember);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.nav-cta {
  background: var(--ember);
  color: #fff;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: background .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ember-dim); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  width: 34px; height: 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: currentColor; display: block; transition: transform .25s var(--ease), opacity .2s var(--ease); }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav { gap: var(--sp-2); }
}
@media (max-width: 480px) {
  .brand-word { display: none; }
}

/* mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--steel-900);
  z-index: 99;
  padding: var(--sp-5) var(--sp-4);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  display: block;
  font-size: 1.5rem;
  color: var(--paper);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--steel-line);
}
.mobile-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.mobile-nav-controls .lang-switch { border-color: var(--steel-line); }
.mobile-nav-controls .lang-switch button { color: var(--steel-300); }
.mobile-nav-controls .lang-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.mobile-nav-controls .nav-cta { flex: 1; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-s);
  font-size: var(--fs-small);
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-dim); }
.btn-ghost-dark { border-color: var(--steel-line); color: var(--paper); }
.btn-ghost-dark:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.btn-ghost-light { border-color: var(--paper-line); color: var(--ink); }
.btn-ghost-light:hover { border-color: var(--ink); }

/* ---------- hero (home) — cinematic ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: var(--void);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: scale(1.1);
  transition: transform 1.8s var(--ease-out);
}
body.is-loaded .hero-bg { transform: scale(1); }
.hero-bg img {
  width: 100%; height: 124%;
  object-fit: cover;
  object-position: 72% 42%;
  filter: grayscale(0.5) contrast(1.06) brightness(0.92);
  will-change: transform;
}
/* ember duotone + cinematic scrim: dark on the left/bottom (text), image breathes on the right */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: rgba(var(--ember-rgb), 0.14);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,12,15,.95) 0%, rgba(10,12,15,.82) 30%, rgba(10,12,15,.18) 72%, rgba(10,12,15,.4) 100%),
    linear-gradient(180deg, rgba(10,12,15,.55) 0%, rgba(10,12,15,.12) 32%, rgba(10,12,15,.4) 60%, rgba(10,12,15,.95) 100%);
  pointer-events: none;
}
@media (max-width: 760px) {
  /* on mobile the text spans full width — darken the whole frame for legibility */
  .hero::after {
    background:
      linear-gradient(180deg, rgba(10,12,15,.6) 0%, rgba(10,12,15,.35) 30%, rgba(10,12,15,.6) 55%, rgba(10,12,15,.96) 100%);
  }
  .hero-bg img { object-position: 60% 40%; }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: var(--sp-7) clamp(1.25rem, 3vw, 3rem) var(--sp-6);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember-glow);
  margin-bottom: var(--sp-3);
  display: block;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 0.98;
  max-width: 15ch;
  text-wrap: balance;
  font-weight: 600;
  letter-spacing: -0.02em;
}
/* masked line reveal */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reveal-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 120ms);
}
body.is-loaded .reveal-line > span { transform: translateY(0); }
.hero-lede {
  margin-top: var(--sp-3);
  max-width: 46ch;
  font-size: var(--fs-lede);
  color: rgba(243,240,233,0.82);
}
.hero-actions { margin-top: var(--sp-5); display: flex; gap: 1rem; flex-wrap: wrap; }
/* first-load stagger for hero blocks */
[data-hero] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 360ms);
}
body.is-loaded [data-hero] { opacity: 1; transform: translateY(0); filter: blur(0); }
/* scroll cue — pinned to the empty right edge, clear of the stats row */
.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem); bottom: var(--sp-6);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--steel-300);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 1.4s;
}
.scroll-cue span:first-child { writing-mode: vertical-rl; }
@media (max-width: 760px) { .scroll-cue { display: none; } }
body.is-loaded .scroll-cue { opacity: 1; }
.scroll-cue .bar { width: 1px; height: 40px; background: linear-gradient(var(--ember-glow), transparent); overflow: hidden; position: relative; }
.scroll-cue .bar::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: var(--ember-glow);
  animation: cueDrop 1.8s var(--ease-inout) infinite;
}
@keyframes cueDrop { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(250%); } }

.hero-stats {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--steel-line);
  padding-top: var(--sp-3);
  gap: var(--sp-3);
}
.hero-stats .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 1.6vw, 2rem);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat-label {
  font-size: var(--fs-micro);
  color: var(--steel-300);
  margin-top: 0.3rem;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); }
}

/* ---------- subpage banner ---------- */
.page-banner {
  margin-top: 76px;
  position: relative;
  height: 46vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--steel-900);
  color: var(--paper);
  overflow: hidden;
}
.page-banner img {
  position: absolute; inset: -8% 0 0 0;
  width: 100%; height: 116%;
  object-fit: cover;
  opacity: 0.65;
  filter: grayscale(0.7) contrast(1.1) brightness(0.8);
  will-change: transform;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: rgba(var(--ember-rgb), 0.18); mix-blend-mode: overlay;
}
.page-banner::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,15,.35), rgba(10,12,15,.96));
}
.page-banner-inner {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 3vw, 3rem) var(--sp-5);
}
.crumb {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--steel-300);
  margin-bottom: var(--sp-2);
}
.crumb a:hover { color: var(--paper); }
.page-banner h1 { font-size: var(--fs-h1); }

/* ---------- section rhythm ---------- */
.section { padding: var(--sp-7) 0; }
.section-tight { padding: var(--sp-6) 0; }
.section-dark { background: var(--steel-900); color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 46rem; margin-bottom: var(--sp-5); }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--sp-2); text-wrap: balance; }
.section-dark .section-head h2 { color: var(--paper); }
.section-head p { margin-top: var(--sp-2); color: var(--steel-500); max-width: 40rem; }
.section-dark .section-head p { color: var(--steel-300); }

/* ---------- business units (unifies the fragmented brand) ---------- */
.units-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel-line);
  border: 1px solid var(--steel-line);
}
.unit-card {
  background: var(--steel-900);
  padding: var(--sp-4) var(--sp-3);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s var(--ease);
}
.unit-card:hover { background: var(--steel-800); }
.unit-num { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ember-glow); }
.unit-card h3 { color: var(--paper); font-size: var(--fs-h3); margin-top: var(--sp-4); }
.unit-card p { color: var(--steel-300); font-size: var(--fs-small); margin-top: 0.6rem; }
.unit-link {
  margin-top: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.unit-link::after { content: '→'; transition: transform .2s var(--ease); }
.unit-card:hover .unit-link::after { transform: translateX(3px); }
@media (max-width: 920px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .units-grid { grid-template-columns: 1fr; }
}

/* ---------- certifications strip ---------- */
.certs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cert-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--ink);
  background: var(--paper);
}
.section-dark .cert-chip { border-color: var(--steel-line); color: var(--paper); background: transparent; }

.markets-grid {
  margin-top: var(--sp-4);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem 1.5rem;
}
.markets-grid span {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--steel-500);
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 0.5rem;
}
.section-dark .markets-grid span { color: var(--steel-300); border-color: var(--steel-line); }

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
  padding: var(--sp-5) 0;
}
.stats-band .stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 2vw, 2.75rem);
  font-variant-numeric: tabular-nums;
}
.stats-band .stat-label { font-size: var(--fs-small); color: var(--steel-500); margin-top: 0.4rem; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-4); } }

/* ---------- timeline (kurumsal) ---------- */
.timeline { border-top: 1px solid var(--paper-line); }
.timeline-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--paper-line);
}
.timeline-row .yr { font-family: var(--font-mono); font-size: var(--fs-h3); color: var(--ember); }
.timeline-row h4 { font-size: var(--fs-body); font-weight: 600; }
.timeline-row p { margin-top: 0.4rem; color: var(--steel-500); max-width: 46rem; }
@media (max-width: 640px) { .timeline-row { grid-template-columns: 1fr; gap: 0.4rem; } }

/* ---------- group companies (fixes fragmentation) ---------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}
.group-item {
  background: var(--paper);
  padding: var(--sp-3);
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.group-item .g-name { font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.group-item .g-role { font-size: var(--fs-micro); color: var(--steel-500); font-family: var(--font-mono); margin-top: 0.5rem; }
/* dark-section group cards: readable + cohesive with the Forge aesthetic */
.section-dark .group-grid { background: var(--steel-line); border-color: var(--steel-line); }
.section-dark .group-item { background: var(--steel-800); transition: background .3s var(--ease-out); }
.section-dark .group-item:hover { background: var(--steel-700); }
.section-dark .group-item .g-name { color: var(--paper); }
.section-dark .group-item .g-role { color: var(--ember-glow); }
@media (max-width: 760px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .group-grid { grid-template-columns: 1fr; } }

/* ---------- product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.product-card {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--paper);
}
.product-card .p-img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-dim); }
.product-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .p-img img { transform: scale(1.04); }
.product-card .p-body { padding: var(--sp-3); }
.product-card h4 { font-size: var(--fs-body); }
.product-card p { font-size: var(--fs-small); color: var(--steel-500); margin-top: 0.5rem; }
@media (max-width: 920px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

.spec-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); }
.spec-table td { padding: 0.7rem 0; border-bottom: 1px solid var(--paper-line); font-size: var(--fs-small); }
.spec-table td:first-child { color: var(--steel-500); }
.spec-table td:last-child { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.process-card { }
.process-card .p-thumb { aspect-ratio: 5/4; border-radius: var(--radius-m); overflow: hidden; background: var(--steel-800); }
.process-card .p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.process-card .p-idx { font-family: var(--font-mono); color: var(--ember); font-size: var(--fs-small); margin-top: var(--sp-3); }
.process-card h4 { margin-top: 0.4rem; font-size: var(--fs-body); }
.process-card p { margin-top: 0.4rem; font-size: var(--fs-small); color: var(--steel-500); }
@media (max-width: 760px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.route-list { border-top: 1px solid var(--paper-line); }
.route-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--paper-line);
}
.route-item .r-title { font-weight: 600; }
.route-item .r-desc { font-size: var(--fs-small); color: var(--steel-500); margin-top: 0.3rem; max-width: 34ch; }
.route-item a.r-mail { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ember); white-space: nowrap; }
.route-item a.r-mail:hover { color: var(--ember-dim); }

.rfq-form {
  background: var(--steel-900);
  color: var(--paper);
  padding: var(--sp-5);
  border-radius: var(--radius-m);
}
.rfq-form h3 { color: var(--paper); font-size: var(--fs-h3); }
.field { margin-top: var(--sp-3); }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--steel-300);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--steel-800);
  border: 1px solid var(--steel-line);
  color: var(--paper);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-s);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  transition: border-color .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ember); outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.rfq-form .btn-primary { margin-top: var(--sp-4); width: 100%; justify-content: center; }
.form-note { margin-top: var(--sp-3); font-size: var(--fs-micro); color: var(--steel-300); }

.map-wrap {
  margin-top: var(--sp-5);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }

/* ---------- footer ---------- */
.footer {
  background: var(--steel-900);
  color: var(--steel-300);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--steel-line);
}
.footer-brand img { height: 26px; filter: brightness(0) invert(1); margin-bottom: var(--sp-3); }
.footer-brand p { max-width: 30ch; font-size: var(--fs-small); }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--sp-2);
}
.footer-col a, .footer-col span { display: block; font-size: var(--fs-small); padding: 0.3rem 0; color: var(--steel-300); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: var(--sp-4);
  font-size: var(--fs-micro);
  font-family: var(--font-mono);
}
.footer-credit { color: var(--ember-glow); }
.footer-credit a { border-bottom: 1px solid rgba(232,129,74,0.4); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- misc ---------- */
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: var(--sp-4); } }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--steel-500);
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* ============================================================
   ELEVATION LAYER — "Forge"
   preloader · grain · ember spine · duotone · scroll narrative
   ============================================================ */

/* ---- preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--sp-4);
  transition: opacity .8s var(--ease-out), visibility .8s var(--ease-out);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.pl-mark {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--paper);
  position: relative;
  line-height: 1;
}
.pl-mark .spark { color: var(--ember-glow); animation: sparkPulse 1.4s var(--ease-inout) infinite; }
@keyframes sparkPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.pl-track {
  width: min(280px, 60vw); height: 1px;
  background: var(--steel-line);
  position: relative; overflow: hidden;
}
.pl-track .fill {
  position: absolute; inset: 0; transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--ember-dim), var(--ember-glow));
  box-shadow: 0 0 12px rgba(var(--glow-rgb), 0.7);
}
.pl-meta {
  display: flex; justify-content: space-between;
  width: min(280px, 60vw);
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--steel-500);
}
.pl-count { color: var(--ember-glow); }

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

/* ---- scroll-progress ember spine ---- */
.spine {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 2px; z-index: 95;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.spine .flow {
  position: absolute; top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--ember-dim), var(--ember-glow));
  box-shadow: 0 0 10px rgba(var(--glow-rgb), 0.6);
}
@media (max-width: 760px) { .spine { display: none; } }

/* ---- duotone image treatment (unifies mixed-quality photos) ---- */
.duo { position: relative; overflow: hidden; background: var(--void); isolation: isolate; }
.duo > img,
.duo > .duo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.85) contrast(1.1) brightness(0.9);
}
.duo::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(var(--ember-rgb), 0.28);
  mix-blend-mode: overlay;
}
.duo::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,12,15,0.15), rgba(10,12,15,0.7));
}
.duo-soft > img { filter: grayscale(0.35) contrast(1.05) saturate(0.9); }
.duo-soft::before { background: rgba(var(--ember-rgb), 0.14); }

/* ---- big statement moments (one sentence, scroll-fill type) ---- */
.statement {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--sp-8) clamp(1.25rem, 5vw, 6rem);
  background: var(--void); color: var(--paper);
  position: relative; overflow: hidden;
}
.statement.paper { background: var(--paper); color: var(--ink); }
/* atmospheric depth — a statement is a designed moment, never bare text on black */
.statement::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 52% at 74% 16%, rgba(var(--glow-rgb), 0.15), transparent 68%);
}
.statement.paper::before {
  background: radial-gradient(58% 52% at 22% 90%, rgba(var(--ember-rgb), 0.09), transparent 70%);
}
.statement > * { position: relative; z-index: 1; }
.statement .st-kicker {
  position: absolute; top: var(--sp-6); left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember);
}
.statement .st-kicker::before, .statement .st-kicker::after {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5;
}
.statement p {
  font-size: clamp(2.3rem, 5.8vw, 5.4rem);
  font-weight: 600; letter-spacing: -0.028em; line-height: 1.08;
  max-width: 18ch;
}
.statement .w {
  display: inline-block;
  opacity: 1;
  transition: opacity .3s var(--ease-out);
  color: var(--paper);
}
.statement.paper .w { color: var(--ink); }
.statement .w.ember { color: var(--ember-glow); text-shadow: 0 0 44px rgba(var(--glow-rgb), 0.5); }
.statement.paper .w.ember { color: var(--ember); text-shadow: none; }
@media (max-width: 760px) {
  .statement { min-height: 82vh; }
  .statement p { max-width: 15ch; }
  .statement::before { background: radial-gradient(70% 45% at 50% 12%, rgba(var(--glow-rgb), 0.16), transparent 70%); }
}

/* ---- the scroll narrative (storyline) ---- */
.story { background: var(--void); color: var(--paper); position: relative; overflow: hidden; }
.story-intro {
  max-width: var(--container); margin: 0 auto;
  padding: var(--sp-7) clamp(1.25rem, 3vw, 3rem) var(--sp-4);
}
.story-intro .eyebrow { color: var(--ember-glow); }
.story-intro .eyebrow::before { background: var(--ember-glow); }
.story-intro h2 {
  font-size: var(--fs-h1); margin-top: var(--sp-2); max-width: 20ch;
  text-wrap: balance; color: var(--paper); font-weight: 600; letter-spacing: -0.02em;
}
.story-intro p { margin-top: var(--sp-3); color: var(--steel-300); max-width: 52ch; }

.chapter {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: var(--sp-7) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chapter-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.chapter-bg .duo-img {
  position: absolute; inset: -12% 0 -12% 0;
  width: 100%; height: 124%;
  background-size: cover; background-position: center;
  filter: grayscale(0.82) contrast(1.12) brightness(0.7);
  will-change: transform;
}
.chapter-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: rgba(var(--ember-rgb), 0.2); mix-blend-mode: overlay;
}
.chapter-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(180deg, rgba(10,12,15,.86) 0%, rgba(10,12,15,.5) 45%, rgba(10,12,15,.92) 100%),
    linear-gradient(90deg, rgba(10,12,15,.9) 0%, rgba(10,12,15,.25) 60%);
}
.chapter-inner {
  position: relative; z-index: 4;
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  display: grid; grid-template-columns: 8rem 1fr; gap: var(--sp-4);
  align-items: start;
}
.chapter-num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(var(--glow-rgb), 0.55);
  text-stroke: 1px rgba(var(--glow-rgb), 0.55);
}
.chapter-body { max-width: 44ch; }
.chapter-kicker {
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: .18em; text-transform: uppercase; color: var(--ember-glow);
}
.chapter-body h3 {
  font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; letter-spacing: -0.02em;
  margin-top: var(--sp-2); color: var(--paper); line-height: 1.05;
}
.chapter-body p { margin-top: var(--sp-3); color: rgba(243,240,233,0.8); font-size: var(--fs-lede); }
.chapter-stat {
  margin-top: var(--sp-4); display: inline-flex; align-items: baseline; gap: 0.6rem;
  font-family: var(--font-mono);
}
.chapter-stat b { color: var(--ember-glow); font-size: var(--fs-h3); font-weight: 600; }
.chapter-stat span { color: var(--steel-300); font-size: var(--fs-small); letter-spacing: .04em; }
@media (max-width: 760px) {
  .chapter { min-height: 78vh; }
  .chapter-inner { grid-template-columns: 1fr; gap: var(--sp-2); }
  .chapter-num { font-size: 3rem; }
}

/* ---- animated counters ---- */
.count[data-count] { font-variant-numeric: tabular-nums; }

/* ---- magnetic primary button + button-in-button arrow ---- */
.btn-primary {
  position: relative; overflow: hidden;
  will-change: transform;
  transition: transform .3s var(--ease-out), background .25s var(--ease-out);
}
.btn-primary .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-left: 0.2rem;
  transition: transform .3s var(--ease-out), background .25s var(--ease-out);
}
.btn-primary:hover .arrow { transform: translate(2px, -1px); background: rgba(255,255,255,0.28); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > span, .btn-primary > .arrow { position: relative; z-index: 1; }

/* ---- richer reveal variants ---- */
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); filter: blur(4px); }
[data-reveal].is-visible { filter: blur(0); }
[data-reveal-stagger] > * {
  opacity: 0; transform: translateY(22px); filter: blur(4px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: translateY(0); filter: blur(0); }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 240ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 300ms; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: 360ms; }
[data-reveal-stagger].is-visible > *:nth-child(8) { transition-delay: 420ms; }
[data-reveal-stagger].is-visible > *:nth-child(9) { transition-delay: 480ms; }

/* ---- clip-reveal for images ---- */
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
.clip-reveal.is-visible { clip-path: inset(0 0 0 0); }

/* ---- unify product / process / banner imagery with subtle duotone ---- */
.product-card .p-img img,
.process-card .p-thumb img { filter: grayscale(0.3) contrast(1.05); transition: transform .5s var(--ease-out), filter .5s var(--ease-out); }
.product-card:hover .p-img img { filter: grayscale(0) contrast(1.02); }

/* ---- reduced motion: keep meaning, drop movement ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transform: none !important; }
  .reveal-line > span, [data-hero], [data-reveal], [data-reveal-stagger] > * { transition: opacity .3s ease !important; transform: none !important; filter: none !important; }
  .clip-reveal { clip-path: none !important; }
  .scroll-cue .bar::after { animation: none; }
  .preloader { transition: opacity .3s ease; }
}
