/* Erdem Holdings — design tokens & shared styles */

:root {
  --bg: #f6f3ec;
  --bg-alt: #efe9da;
  --bg-card: #fbf8f0;
  --bg-deep: #14130f;
  --ink: #141413;
  --ink-2: #2a2a26;
  --mute: #6b6b62;
  --mute-2: #9a978d;
  --rule: rgba(20, 20, 19, 0.12);
  --rule-strong: rgba(20, 20, 19, 0.28);
  --gold: #6f5128;
  --gold-soft: #b89a6a;
  --green: #16302a;
  --green-soft: #2f5a44;
  --accent: var(--gold);
  --accent-2: var(--green);

  --serif: "Source Serif 4", "Tiempos", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Söhne", "Suisse Int'l", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1240px;
  --gutter: 32px;
  --section-pad: 112px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum";
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* TYPE */
.serif { font-family: var(--serif); font-weight: 400; }
.mono  { font-family: var(--mono); }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

.h-display {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-wrap: pretty;
}
.h-section {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.h-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}
.body  { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.small { font-size: 13px; color: var(--mute); }

.numbered {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* LAYOUT */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-pad) 0; }
.section-tight { padding: 72px 0; }
.section.deep {
  background: var(--bg-deep);
  color: #ece8dc;
}
.section.deep .eyebrow,
.section.deep .kicker { color: #b8b3a4; }
.section.deep .kicker::before { background: var(--gold-soft); }
.section.deep .h-display,
.section.deep .h-section,
.section.deep .h-sub { color: #f3efe1; }
.section.deep .body,
.section.deep .lede,
.section.deep .small { color: #b8b3a4; }

/* GRID */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.brand-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 2px;
  transition: color 180ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 40px -20px rgba(20,20,19,0.18);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dd-item {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 2px;
}
.nav-dd-item:hover { background: var(--bg-alt); color: var(--ink); }
.nav-dd-item .small { display: block; color: var(--mute); margin-top: 2px; font-size: 11.5px; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arr { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arr { transform: translateX(3px); }
.section.deep .btn { border-color: #ece8dc; background: #ece8dc; color: var(--bg-deep); }
.section.deep .btn:hover { background: transparent; color: #ece8dc; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .arr { transition: transform 200ms ease; }
.link-arrow:hover .arr { transform: translateX(3px); }

/* FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.fade-in.in { opacity: 1; transform: none; }

/* FOOTER */
.footer {
  background: var(--bg-deep);
  color: #b8b3a4;
  padding: 88px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b8b3a4;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-link {
  display: block;
  font-size: 14px;
  color: #c8c3b3;
  padding: 5px 0;
  cursor: pointer;
  transition: color 160ms ease;
}
.footer-link:hover { color: #f3efe1; }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #8b877a;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}
