/* ============================================================
   MERIDA PARK — DESIGN TOKENS
   ============================================================ */
:root {
  /* Surfaces */
  --paper: #ffffff;
  --bone: #f6f4ee;
  --stone: #ece9e0;
  --line: #d9d5ca;
  --line-soft: #ebe7dc;

  /* Ink */
  --ink: #0d1a1f;
  --ink-2: #182830;
  --ink-3: #2a3a40;
  --muted: #6b7a7e;
  --muted-2: #93a0a3;

  /* Brand */
  --moss: #1f3a2a;
  --moss-2: #2d5239;
  --moss-soft: #d7dfd5;

  /* Accent — calibrated to Merida logo orange */
  --terracotta: #ed7d1f;
  --terracotta-2: #c4661a;
  --terracotta-soft: #f8e3cd;

  /* Brand spectrum (logo letters) — used very sparingly */
  --brand-pink:   #e8377a;
  --brand-orange: #ed7d1f;
  --brand-yellow: #f3c517;
  --brand-green:  #8cc24a;
  --brand-blue:   #1f7dd2;
  --brand-magenta:#c63aa1;

  /* Type */
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --pad: 64px;
  --max: 1360px;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */
.shell { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 96px 0; }
.section--paper { background: var(--paper); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--moss { background: var(--moss); color: var(--bone); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--ink .eyebrow,
.section--moss .eyebrow { color: var(--terracotta-soft); }

.h-display {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-section {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
}
.h-card {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.section--ink .lede,
.section--moss .lede { color: rgba(246, 244, 238, 0.7); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex;
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--bone);
}
.btn--primary:hover { background: var(--ink-2); }

.btn--accent {
  background: var(--terracotta);
  color: #fff;
}
.btn--accent:hover { background: var(--terracotta-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(13,26,31,0.04); border-color: var(--ink-3); }

.btn--ghost-light {
  background: transparent;
  color: var(--bone);
  border-color: rgba(246,244,238,0.22);
}
.btn--ghost-light:hover { background: rgba(246,244,238,0.06); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 13.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { gap: 14px; border-color: var(--ink); }
.section--ink .link-arrow,
.section--moss .link-arrow {
  color: var(--bone);
  border-color: rgba(246,244,238,0.25);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header--scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 244, 238, 0.94);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.logo--footer img { height: 46px; }
/* Subtle background tile so dark sub-text in the logo still reads on ink bg */
.logo--footer {
  display: inline-flex;
  padding: 12px 16px;
  background: var(--bone);
  border-radius: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 100px;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}
.nav__link:hover { background: rgba(13,26,31,0.05); }
.nav__link--has-caret { padding-right: 30px; }
.nav__link--has-caret::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: 0.5;
}

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__lang {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-right: 1px solid var(--line);
  height: 16px;
}
.header__lang strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 56px;
  padding-bottom: 0;
  background: var(--bone);
  position: relative;
  overflow: hidden;
}
.hero .shell { position: relative; z-index: 2; }

/* Hero background variants (Tweak: heroBg) */
.hero[data-herobg="white"] { background: var(--paper); }
.hero[data-herobg="calm"]  { background: var(--bone); }
.hero[data-herobg="mesh"] {
  background-color: #f4f1ea;
  background-image:
    radial-gradient(40% 50% at 8% 12%,  rgba(237,125,31,0.34) 0%, transparent 60%),  /* orange  */
    radial-gradient(34% 42% at 46% 2%,  rgba(243,197,23,0.24) 0%, transparent 62%),  /* yellow  */
    radial-gradient(36% 46% at 94% 10%, rgba(31,125,210,0.26) 0%, transparent 62%),  /* blue    */
    radial-gradient(40% 48% at 8% 96%,  rgba(140,194,74,0.26) 0%, transparent 60%),  /* green   */
    radial-gradient(36% 44% at 50% 104%,rgba(198,58,161,0.22) 0%, transparent 60%),  /* magenta */
    radial-gradient(42% 50% at 92% 92%, rgba(232,55,122,0.28) 0%, transparent 60%);  /* pink    */
}
.hero[data-herobg="dark"] {
  background: radial-gradient(125% 95% at 72% 0%, #15262d 0%, #0d181d 52%, #0a1216 100%);
  color: var(--bone);
}
.hero[data-herobg="dark"] .hero__top { border-bottom-color: rgba(246,244,238,0.14); }
.hero[data-herobg="dark"] .hero__top-meta { color: rgba(246,244,238,0.5); }
.hero[data-herobg="dark"] .hero__top-meta span strong { color: var(--bone); }
.hero[data-herobg="dark"] .eyebrow { color: var(--terracotta-soft); }
.hero[data-herobg="dark"] .hero__lede { color: rgba(246,244,238,0.72); }
.hero[data-herobg="dark"] .hero__lede-row { border-top-color: rgba(246,244,238,0.14); }
.hero[data-herobg="dark"] .btn--ghost {
  color: var(--bone);
  border-color: rgba(246,244,238,0.24);
}
.hero[data-herobg="dark"] .btn--ghost:hover {
  background: rgba(246,244,238,0.06);
  border-color: rgba(246,244,238,0.45);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  --atm: 0.08;
}
.atm-halo {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(140px);
  opacity: var(--atm);
  will-change: opacity, transform;
  transition: opacity 0.5s ease;
}
.atm-halo--1 {
  top: -120px; left: -60px;
  width: 620px; height: 620px;
  background: #ed7d1f; /* orange */
}
.atm-halo--2 {
  top: 8%; right: -100px;
  width: 540px; height: 540px;
  background: #1f7dd2; /* blue */
}
.atm-halo--3 {
  bottom: -160px; left: 22%;
  width: 760px; height: 760px;
  background: #e8377a; /* pink */
}
.atm-halo--4 {
  bottom: 18%; right: 18%;
  width: 480px; height: 480px;
  background: #5b8b27; /* green */
  opacity: calc(var(--atm) * 0.85);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.hero__lede-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 48px;
  align-items: end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.hero__lede-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0;
}
.hero__ctas {
  display: flex;
  gap: 12px;
}
.hero__title {
  margin: 0;
  font-size: clamp(42px, 4.8vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

/* Rotating headline word */
.hero__rotate-frame {
  display: inline-block;
  vertical-align: baseline;
  position: relative;
}
.hero__rotate-measures {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
}
.hero__rotate-measure {
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  display: inline-block;
  padding-right: 1px;
}
.hero__rotate-word {
  font-style: normal;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    width 0.55s cubic-bezier(.4, 0, .2, 1),
    opacity 0.38s ease-out,
    transform 0.48s cubic-bezier(.2, 0, .2, 1);
}
.hero__rotate-word[data-phase="out"] {
  opacity: 0;
  transform: translateY(-18px);
}
.hero__rotate-word[data-phase="enter"] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    width 0.55s cubic-bezier(.4, 0, .2, 1),
    opacity 0s,
    transform 0s;
}
.hero__rotate-bar {
  position: absolute;
  left: 0; right: 0;
  bottom: 0.08em;
  height: 0.14em;
  border-radius: 4px;
  opacity: 0.22;
}

/* The tail "tasarlıyoruz." fades subtly while the rotating word is mid-swap,
   so the whole title breathes together. */
.hero__title-tail {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.42s ease;
}
.hero__title:has(.hero__rotate-word[data-phase="out"]) .hero__title-tail,
.hero__title:has(.hero__rotate-word[data-phase="enter"]) .hero__title-tail {
  opacity: 0.32;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.hero__top-meta {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__top-meta span strong {
  color: var(--ink);
  font-weight: 500;
  margin-left: 6px;
}

.hero__visual {
  position: relative;
  margin-top: 36px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 7.6;
  box-shadow: 0 30px 70px -36px rgba(13,26,31,0.5);
}
.hero__visual-inner { position: absolute; inset: 0; }
.hero__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.hero__visual-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,14,17,0.28) 0%, rgba(8,14,17,0) 32%),
    linear-gradient(0deg, rgba(8,14,17,0.72) 0%, rgba(8,14,17,0.10) 38%, rgba(8,14,17,0) 60%);
  pointer-events: none;
}

.hero__visual-stats {
  position: absolute;
  left: 32px;
  bottom: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  color: var(--bone);
  z-index: 2;
}
.hero__visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.85);
  padding: 8px 14px;
  background: rgba(246,244,238,0.10);
  border: 1px solid rgba(246,244,238,0.20);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.hero__visual-tag .dot {
  width: 6px; height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}
.hero__visual-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.55);
  text-align: right;
}
.hero__visual-meta strong { color: var(--bone); font-weight: 500; }

/* hero ticker / quick stats below image */
.hero__chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 28px 0 0;
  border-top: 1px solid transparent;
}
.hero__chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 8px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.hero__chip:first-child { border-left: none; padding-left: 0; }
.hero__chip-num {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__chip-num sup {
  font-size: 14px;
  vertical-align: super;
  color: var(--terracotta);
  font-weight: 600;
  margin-left: 1px;
}
.hero__chip-label {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   PLACEHOLDER IMAGES
   ============================================================ */
.ph {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--ink-2);
}
.ph__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(13,26,31,0) 30%, rgba(13,26,31,0.55) 100%),
    linear-gradient(180deg, rgba(13,26,31,0) 50%, rgba(13,26,31,0.45) 100%);
  pointer-events: none;
}
.ph__label {
  position: absolute;
  left: 18px; top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.7);
  padding: 6px 10px;
  background: rgba(13,26,31,0.4);
  border: 1px solid rgba(246,244,238,0.16);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  z-index: 3;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px 36px 48px 0;
  border-left: 1px solid var(--line);
  padding-left: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 220px;
  position: relative;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__num {
  font-weight: 600;
  font-size: 64px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__num sup {
  font-size: 22px;
  color: var(--terracotta);
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 2px;
}
.stat__num small {
  font-size: 22px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
  letter-spacing: -0.01em;
}
.stat__label {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.4;
  max-width: 22ch;
  margin-top: auto;
}
.stat__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.stat__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat__icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--ink-2);
}
.stat__icon svg { width: 100%; height: 100%; }

/* ============================================================
   GRID SECTION HEADER
   ============================================================ */
.sec-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.sec-head__right { padding-bottom: 6px; }
.sec-head__counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-head__counter strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   SOLUTIONS (audiences)
   ============================================================ */
.solutions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.sol {
  background: var(--paper);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background 0.18s ease;
  position: relative;
}
.sol:hover { background: #fbfaf5; }
.sol__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bone);
  border-radius: 12px;
  color: var(--moss-2);
  position: relative;
}
.sol__icon svg { width: 22px; height: 22px; }
.sol__icon::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px;
  bottom: -1px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.9;
}
.sol__title {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.sol__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.sol__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sol__foot .num { color: var(--ink); font-weight: 500; }
.sol__arrow {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  transition: transform 0.2s ease;
}
.sol:hover .sol__arrow { transform: translate(2px, -2px); }
.sol__arrow svg { width: 12px; height: 12px; }

/* ============================================================
   PRODUCT SYSTEMS
   ============================================================ */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px -32px rgba(13,26,31,0.25);
  border-color: var(--ink-3);
}
.product__visual {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.product__visual .ph { transition: transform 0.6s ease; }
.product:hover .product__visual .ph { transform: scale(1.04); }
.product__index {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(246,244,238,0.7);
  z-index: 3;
}
.product__body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product__title {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.product__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.product__foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.product__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px;
}
.project {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}
.project--lg { grid-row: span 2; min-height: 0; }
.project--lg .project__body { padding: 36px; }
.project__visual {
  position: absolute; inset: 0;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.project:hover .project__visual { transform: scale(1.05); }
.project__body {
  position: relative;
  padding: 28px 28px 24px;
  color: var(--bone);
  z-index: 2;
}
.project__chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(246,244,238,0.12);
  border: 1px solid rgba(246,244,238,0.22);
  color: var(--bone);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.chip--accent {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}
.project__title {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.project--lg .project__title { font-size: 36px; }
.project__loc {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.75);
}
.project__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(246,244,238,0.18);
}
.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--bone);
}
.project__cta svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.project:hover .project__cta svg { transform: translateX(3px); }
.project__sys {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.55);
  max-width: 60%;
  text-align: right;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid rgba(246,244,238,0.18);
  margin-top: 56px;
}
.step {
  padding: 36px 24px 0 0;
  border-right: 1px solid rgba(246,244,238,0.12);
  padding-right: 24px;
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step:last-child { border-right: none; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 28px;
  height: 2px;
  background: var(--terracotta);
}
.step__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(246,244,238,0.55);
}
.step__title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--bone);
  margin: 0;
}
.step__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(246,244,238,0.6);
}

/* ============================================================
   PRODUCTION
   ============================================================ */
.prod-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.prod-visual {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  min-height: 580px;
  background: var(--ink);
}
.prod-visual__overlay {
  position: absolute;
  left: 24px; top: 24px;
  display: flex;
  gap: 8px;
}
.prod-points {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.prod-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.prod-point:last-child { border-bottom: none; }
.prod-point__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 4px;
}
.prod-point__title {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.prod-point__desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.cta-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.cta-card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.cta-card--dark {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.cta-card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.cta-card--dark .cta-card__eyebrow { color: var(--terracotta-soft); }
.cta-card__title {
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  max-width: 14ch;
}
.cta-card__desc {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 38ch;
  margin: 0 0 28px;
}
.cta-card--dark .cta-card__desc { color: rgba(246,244,238,0.7); }
.cta-card__action { margin-top: auto; align-self: flex-start; }
.cta-card__corner {
  position: absolute;
  right: 32px; top: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-card--dark .cta-card__corner { color: rgba(246,244,238,0.45); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(246,244,238,0.7);
  padding: 96px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 48px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(246,244,238,0.12);
}
.footer__brand-title {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1.15;
  margin: 16px 0 20px;
  max-width: 18ch;
}
.footer__brand-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246,244,238,0.55);
  max-width: 36ch;
  margin: 0 0 28px;
}
.footer__newsletter {
  display: flex;
  background: rgba(246,244,238,0.06);
  border: 1px solid rgba(246,244,238,0.14);
  border-radius: 100px;
  padding: 4px 4px 4px 18px;
  height: 48px;
  align-items: center;
  max-width: 360px;
}
.footer__newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}
.footer__newsletter input::placeholder { color: rgba(246,244,238,0.4); }
.footer__newsletter button {
  height: 40px;
  padding: 0 18px;
  border-radius: 100px;
  border: none;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.footer__col h6 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.45);
  margin: 0 0 22px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: rgba(246,244,238,0.75);
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--bone); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.4);
}
.footer__bottom a { color: rgba(246,244,238,0.6); }
.footer__bottom-right { display: flex; gap: 28px; }

/* ============================================================
   UTILITIES + ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* hero ambient marquee/marker */
.hero-ribbon {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-ribbon .dot {
  width: 6px; height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
}

/* ============================================================
   BRAND SPECTRUM — used very sparingly to nod to logo DNA
   ============================================================ */
.spectrum {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.spectrum span {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: block;
}
.spectrum--bar {
  display: flex;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.spectrum--bar span {
  flex: 1;
  height: 100%;
  border-radius: 0;
  width: auto;
}

/* ============================================================
   AI ASİSTAN (chatbot)
   ============================================================ */
.cbot { position: fixed; right: 28px; bottom: 28px; z-index: 1000; }

.cbot-launcher {
  position: relative;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(237,125,31,0.7), 0 4px 12px rgba(13,26,31,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cbot-launcher:hover { transform: translateY(-2px); background: var(--terracotta-2); }
.cbot-launcher:active { transform: translateY(0); }
.cbot-launcher__icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: opacity 0.2s ease, transform 0.25s ease;
}
.cbot-launcher__icon svg { width: 26px; height: 26px; }
.cbot-launcher__icon--close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.cbot-launcher.is-open .cbot-launcher__icon--chat { opacity: 0; transform: rotate(45deg) scale(0.6); }
.cbot-launcher.is-open .cbot-launcher__icon--close { opacity: 1; transform: rotate(0) scale(1); }

.cbot-panel {
  position: absolute;
  right: 0; bottom: 76px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 540px;
  max-height: calc(100vh - 130px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 70px -24px rgba(13,26,31,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(.2,.7,.3,1);
}
.cbot-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.cbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: var(--ink);
  color: var(--bone);
}
.cbot-head__id { display: flex; align-items: center; gap: 12px; }
.cbot-head__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(140,194,74,0.25);
}
.cbot-head__name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.cbot-head__status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(246,244,238,0.6);
  margin-top: 2px;
}
.cbot-head__close {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border: none; border-radius: 9px;
  background: rgba(246,244,238,0.1);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.15s ease;
}
.cbot-head__close:hover { background: rgba(246,244,238,0.2); }
.cbot-head__close svg { width: 17px; height: 17px; }

.cbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bone);
}
.cbot-msg {
  max-width: 82%;
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.cbot-msg--bot {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-bottom-left-radius: 5px;
}
.cbot-msg--user {
  align-self: flex-end;
  background: var(--terracotta);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.cbot-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.cbot-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: cbotBounce 1.2s infinite ease-in-out;
}
.cbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.cbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cbotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.cbot-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cbot-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cbot-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }

.cbot-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.cbot-input textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--bone);
  max-height: 96px;
  outline: none;
  transition: border-color 0.15s ease;
}
.cbot-input textarea:focus { border-color: var(--terracotta); }
.cbot-send {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border: none; border-radius: 12px;
  background: var(--ink);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.cbot-send:hover:not(:disabled) { background: var(--terracotta); }
.cbot-send:disabled { opacity: 0.4; cursor: default; }
.cbot-send svg { width: 18px; height: 18px; }

@media (max-width: 520px) {
  .cbot { right: 16px; bottom: 16px; }
  .cbot-panel { height: 60vh; }
}

/* ============================================================
   PLACEHOLDER TONES — duotone bands per `data-tone`
   (static port of the React Placeholder component)
   ============================================================ */
.ph__strokes { position: absolute; inset: 0; }
.ph__art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.ph__code {
  position: absolute; right: 18px; bottom: 18px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(246,244,238,0.5);
}

.ph[data-tone="moss"] {
  background-image:
    radial-gradient(60% 50% at 70% 30%, rgba(217,106,44,0.18) 0%, rgba(217,106,44,0) 70%),
    linear-gradient(135deg, #1e3a2a 0%, #2d5239 45%, #3f6b4c 100%);
}
.ph[data-tone="moss"] .ph__strokes {
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(246,244,238,0.06) 12px 13px);
}

.ph[data-tone="ink"] {
  background-image:
    radial-gradient(80% 60% at 20% 80%, rgba(217,106,44,0.22) 0%, rgba(217,106,44,0) 70%),
    linear-gradient(160deg, #0d1a1f 0%, #1a2e36 50%, #2a3d44 100%);
}
.ph[data-tone="ink"] .ph__strokes {
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(246,244,238,0.05) 12px 13px);
}

.ph[data-tone="clay"] {
  background-image:
    radial-gradient(60% 50% at 80% 20%, rgba(13,26,31,0.25) 0%, rgba(13,26,31,0) 70%),
    linear-gradient(155deg, #6e3a1d 0%, #a4541f 55%, #d96a2c 100%);
}
.ph[data-tone="clay"] .ph__strokes {
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(13,26,31,0.10) 12px 13px);
}

.ph[data-tone="sage"] {
  background-image:
    radial-gradient(60% 50% at 30% 80%, rgba(13,26,31,0.18) 0%, rgba(13,26,31,0) 70%),
    linear-gradient(160deg, #4a6b54 0%, #6b8470 50%, #8ea58c 100%);
}
.ph[data-tone="sage"] .ph__strokes {
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(246,244,238,0.08) 12px 13px);
}

.ph[data-tone="deep"] {
  background-image:
    radial-gradient(50% 40% at 65% 35%, rgba(140,180,160,0.20) 0%, rgba(140,180,160,0) 70%),
    linear-gradient(165deg, #0b1518 0%, #122830 60%, #1f3a40 100%);
}
.ph[data-tone="deep"] .ph__strokes {
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(246,244,238,0.05) 12px 13px);
}

/* ============================================================
   RESPONSIVE — collapse the 1440px desktop grids gracefully.
   Desktop layout above 1080px is unchanged from the design.
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .sec-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .sec-head__right { padding-bottom: 0; }
  .hero__lede-row { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .products { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; gap: 36px; }
  .prod-visual { min-height: 420px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project--lg { grid-row: auto; }
  .process-track { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 1px solid rgba(246,244,238,0.12); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }
  .section { padding: 80px 0; }
  .section--tight { padding: 64px 0; }
  .nav { display: none; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__top-meta { flex-wrap: wrap; gap: 16px 24px; }
  .hero__visual { aspect-ratio: 4 / 3; }
  .hero__visual-stats { left: 18px; right: 18px; bottom: 18px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero__visual-meta { text-align: left; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 32px 20px; min-height: 0; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .solutions { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(n) { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .process-track { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}
