:root {
  --ink: #1E2022;
  --ink-soft: #2A2D30;
  --paper: #F6F3EE;
  --paper-2: #EFEBE4;
  --line: #DCD6CC;
  --mid: #6B6F72;
  --on-dark: #F6F3EE;
  --on-dark-mid: #9BA0A3;
  --on-dark-line: rgba(246, 243, 238, 0.14);
  --orange: #E75B12;
  --orange-deep: #C74A0C;

  --t-display: clamp(46px, 8.4vw, 128px);
  --t-1: clamp(34px, 4.6vw, 64px);
  --t-2: clamp(24px, 2.4vw, 34px);
  --t-3: clamp(19px, 1.5vw, 22px);
  --t-body: clamp(16px, 1.15vw, 18px);
  --t-micro: 13px;

  --f-head: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --ls-head: -0.03em;
  --lh-head: 0.98;

  --pad: clamp(24px, 5vw, 72px);
  --gap: clamp(56px, 8vw, 128px);
  --r: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: var(--lh-head);
  letter-spacing: var(--ls-head);
}

/* Type options */
body[data-type="b"] { --f-head: "Space Grotesk", system-ui, sans-serif; --f-body: "Inter", system-ui, sans-serif; --ls-head: -0.035em; --lh-head: 0.98; }
body[data-type="c"] { --f-head: "Barlow Condensed", system-ui, sans-serif; --f-body: "Barlow", system-ui, sans-serif; --ls-head: -0.01em; --lh-head: 0.92; }
body[data-type="current"] { --f-head: "Instrument Sans", system-ui, sans-serif; --f-body: "Inter", system-ui, sans-serif; --ls-head: -0.035em; --lh-head: 0.94; }

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

.wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 20px 0;
}
.nav-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 92px;
  padding: 0 14px 0 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(30, 32, 34, 0.12);
}
.logo img { height: 64px; width: auto; }
.nav { display: flex; gap: 34px; font-size: 16px; font-weight: 600; margin-left: auto; }
.nav a { position: relative; padding: 4px 0; color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}
.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-ghost { border: 1px solid var(--on-dark-line); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--orange); }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(132px + clamp(64px, 8vw, 116px)) 0 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "SF\2086";
  position: absolute;
  right: -2%;
  top: 6%;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(200px, 30vw, 460px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(246, 243, 238, 0.035);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--t-display);
  max-width: 19ch;
}

.sub {
  font-size: 0.62em;
  vertical-align: -0.16em;
  letter-spacing: 0;
}
.hero h1 .sub { color: var(--orange); }
.hero p.lead {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--on-dark-mid);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--on-dark-line);
  margin-top: clamp(56px, 8vw, 96px);
}
.stat { padding: 34px 28px 44px 0; border-right: 1px solid var(--on-dark-line); }
.stat:last-child { border-right: 0; }
.stat .n {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .c {
  margin-top: 10px;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
}

/* Sections */
section { padding: var(--gap) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.section-head h2 { font-size: var(--t-1); }
.section-head p { color: var(--mid); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro h2 { font-size: var(--t-1); }
.intro .body p + p { margin-top: 18px; }
.intro .body { color: var(--mid); padding-top: 8px; }

/* Services */
.services { background: var(--paper-2); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.svc {
  background: var(--paper);
  padding: 38px 32px 44px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
}
.svc:hover { background: #fff; }
.svc .num {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.svc h3 { font-size: var(--t-3); margin: 22px 0 12px; letter-spacing: -0.02em; line-height: 1.15; }
.svc p { color: var(--mid); font-size: 16px; }

/* Process */
.process-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 88px 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step .k {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: var(--orange);
  line-height: 1;
  padding-top: 4px;
}
.step h3 { font-size: var(--t-2); letter-spacing: -0.025em; }
.step p { color: var(--mid); }

/* Why band */
.why { background: var(--ink); color: var(--on-dark); }
.why h2 { font-size: var(--t-1); max-width: 18ch; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
}
.why-item { border-top: 2px solid var(--orange); padding-top: 22px; }
.why-item h3 { font-size: var(--t-3); letter-spacing: -0.02em; margin-bottom: 12px; }
.why-item p { color: var(--on-dark-mid); font-size: 16px; }

/* CTA */
.cta { background: var(--orange); color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta h2 { font-size: var(--t-1); }
.cta p { margin-top: 18px; color: rgba(255, 255, 255, 0.85); max-width: 44ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta .btn-dark:hover { background: #000; }

/* Footer */
.footer { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.foot-grid p { color: var(--on-dark-mid); max-width: 38ch; margin-top: 20px; font-size: 16px; }
.foot-grid h4 {
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mid);
  font-weight: 600;
  margin-bottom: 18px;
}
.foot-grid ul { list-style: none; display: grid; gap: 11px; font-size: 16px; }
.foot-grid a:hover { color: var(--orange); }
.foot-logo {
  display: inline-block;
  background: var(--paper);
  padding: 14px 20px;
  border-radius: var(--r);
}
.foot-logo img { height: 42px; width: auto; }
.foot-base {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--on-dark-mid);
}

/* Type switcher, mockup only */
.fontpick {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(30, 32, 34, 0.94);
  border-radius: 999px;
  box-shadow: 0 6px 30px rgba(30, 32, 34, 0.28);
}
.fontpick button {
  font: 500 13px/1 "Inter", system-ui, sans-serif;
  color: rgba(246, 243, 238, 0.62);
  background: none;
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.fontpick button:hover { color: var(--on-dark); }
.fontpick button.on { background: var(--orange); color: #fff; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .section-head, .intro-grid, .cta-inner { grid-template-columns: 1fr; }
  .svc-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--on-dark-line); padding-right: 20px; }
  .stat:nth-child(2n) { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
  .step { grid-template-columns: 56px 1fr; }
  .step p { grid-column: 2; }
}

@media (max-width: 640px) {
  .svc-grid, .why-grid, .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
