/* Ajans 1453 — "Referans Noktası" concept · shared design system.
 * Tokens derive from the live site (index.html :root). Only the orchestrator edits this file. */

:root {
  /* surfaces */
  --bg: #0a0807;
  --bg-2: #100c0a;
  --bg-3: #15100d;
  --land: #17110c;           /* map land / raised surfaces */
  /* ink */
  --ink: #f3ece0;
  --muted: #b9aa90;
  --dim: #8f836d;            /* smallest text colour that still passes AA on --bg */
  --faint: #5e5445;          /* decorative only (never for text) */
  /* brand */
  --gold: #c9a24a;
  --gold-bright: #e7c878;    /* = logo-gold.png */
  --gold-deep: #8a6c25;
  --red: #b3151b;
  --red-deep: #7c0d12;
  --crimson: #d8232a;
  --line: rgba(231, 200, 120, 0.16);
  --line-soft: rgba(231, 200, 120, 0.08);
  --glow-gold: 0 0 40px rgba(231, 200, 120, 0.45), 0 0 90px rgba(179, 21, 27, 0.35);
  /* type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-letter: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  /* layout */
  --max: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --section-pad: clamp(96px, 13vw, 180px);
  --nav-h: 76px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 0;
}
html:not(.reduced-motion) {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: rgba(231, 200, 120, 0.3);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
section {
  position: relative;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--gold-bright);
  color: #1a1206;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* sticky scroll track helper: <div class="track" style="--track:400vh"><div class="stage">…</div></div> */
.track {
  position: relative;
  height: var(--track, 300vh);
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ------------------------------------------------------------------ type */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(10px, 0.95vw, 12.5px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h2 em,
.gold {
  color: var(--gold-bright);
  font-style: normal;
}
.kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--gold-bright);
  line-height: 1.25;
}
.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.intro {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.intro--center {
  justify-items: center;
  text-align: center;
}
.intro--center .lede {
  margin-inline: auto;
}
.num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ------------------------------------------------------------------ surfaces */
/* the site's "plaque": translucent warm-dark, thin gold stroke, soft blur — not a UI box */
.plaque {
  background: rgba(20, 12, 8, 0.52);
  border: 1px solid rgba(214, 171, 92, 0.28);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.1vw, 14px);
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn--gold {
  background: var(--gold-bright);
  color: #1a1206;
  box-shadow: 0 14px 40px rgba(231, 200, 120, 0.25);
}
.btn--gold:hover {
  transform: translateY(-2px);
  background: #f0d488;
  box-shadow: 0 18px 50px rgba(231, 200, 120, 0.4);
}
.btn--ghost {
  border: 1px solid rgba(214, 171, 92, 0.38);
  color: var(--ink);
  font-weight: 600;
}
.btn--ghost:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.btn--text {
  color: var(--muted);
  padding-inline: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.btn--text:hover {
  color: var(--gold-bright);
}

/* ------------------------------------------------------------------ odometer (CX.odometer) */
.odo {
  --odo-lh: 1.2em;
  --dw: 0.64em;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  vertical-align: top;
}
.odo__w {
  position: relative;
  display: inline-block;
  height: var(--odo-lh);
  width: calc(var(--dw) * var(--w, 1));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.odo__strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.odo__d {
  display: block;
  height: var(--odo-lh);
  line-height: var(--odo-lh);
  text-align: center;
}
.odo__dash {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.odo.is-blank .odo__strip {
  opacity: 0;
  transition: opacity 0.3s;
}
.odo.is-blank .odo__dash {
  opacity: 1;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: transform 0.45s var(--ease-out), background-color 0.4s, border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 6, 5, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  height: 64px;
}
.nav.is-hidden {
  transform: translateY(-100%);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-bright);
}
.nav__brand .logo-svg {
  height: 54px; /* client: "logo biraz büyüsün" (was 38px) */
  width: auto;
  transition: height 0.4s var(--ease-out);
}
.nav.is-scrolled .nav__brand .logo-svg {
  height: 46px;
}
.nav__brand span {
  font-family: var(--font-letter);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.85;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}
.nav__links a:not(.btn) {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  position: relative;
  padding: 8px 0;
  transition: opacity 0.2s, color 0.2s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-out);
}
.nav__links a:not(.btn):hover {
  opacity: 1;
  color: var(--gold-bright);
}
.nav__links a:not(.btn):hover::after {
  right: 0;
}
.nav__links .btn {
  padding: 10px 18px;
  font-size: 12px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}
.nav__links .btn:hover {
  background: var(--gold-bright);
  color: #1a1206;
}
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__menu span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@media (max-width: 900px) {
  :root {
    --nav-h: 64px;
  }
  .nav__brand span {
    display: none;
  }
  .nav__brand .logo-svg,
  .nav.is-scrolled .nav__brand .logo-svg {
    height: 42px; /* was 32px */
  }
  .nav__menu {
    display: inline-flex;
  }
  .nav__links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(8, 6, 5, 0.97);
    border: 1px solid var(--line);
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a:not(.btn) {
    padding: 15px 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
  }
  .nav__links a:not(.btn)::after {
    display: none;
  }
  .nav__links .btn {
    justify-content: center;
    margin-top: 8px;
    padding: 14px;
  }
}

/* ------------------------------------------------------------------ rail (section index) */
.rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  list-style: none;
  display: grid;
  gap: 4px;
  transition: opacity 0.4s;
}
.rail.is-away {
  opacity: 0;
  pointer-events: none;
}
.rail a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 34px; /* only the tick is the hit area: the (hidden) labels must not catch clicks meant for the page */
  padding: 5px 0;
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.rail a .rail__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  margin-top: -0.6em;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  pointer-events: none;
}
.rail:hover .rail__label,
.rail a:focus-visible .rail__label {
  opacity: 1;
  transform: none;
}
.rail a::after {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out), background-color 0.3s;
}
.rail a.is-active {
  color: var(--gold-bright);
}
.rail a.is-active::after {
  width: 30px;
}
@media (max-width: 1100px) {
  .rail {
    display: none;
  }
}

/* ------------------------------------------------------------------ tooltip */
.tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  max-width: 280px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: rgba(16, 12, 10, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.15s;
}
.tooltip.is-on {
  opacity: 1;
}

/* ------------------------------------------------------------------ film grain (whole page) */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ reduced motion */
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  scroll-behavior: auto !important;
}
