:root {
  /* Apple-inspired palette */
  --ink: #1d1d1f;             /* primary text, dark surfaces */
  --ink-2: #424245;           /* secondary text */
  --muted: #86868b;           /* tertiary text, captions */
  --paper: #f5f5f7;           /* page background */
  --paper-soft: #ffffff;
  --white: #ffffff;
  --accent: #0071e3;          /* CTA blue */
  --accent-hover: #0077ed;
  --success: #34c759;
  --warning: #ff9500;
  --line: rgba(0, 0, 0, 0.08);
  --line-soft: rgba(0, 0, 0, 0.04);
  --steel: rgba(29, 29, 31, 0.72);

  /* Legacy aliases mapped to new palette (used across stylesheet) */
  --navy: var(--ink);
  --teal: var(--accent);
  --amber: var(--accent);
  --purple: var(--muted);
  --gray: var(--ink-2);
  --light: var(--paper);

  --page-max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  align-items: center;
  background: rgba(245, 245, 247, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 12px max(22px, calc((100vw - var(--page-max)) / 2));
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  font-size: 13px;
  font-weight: 400;
  gap: 24px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.nav a {
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: var(--ink);
}

.language-switch {
  border-left: 1px solid var(--line);
  color: var(--accent) !important;
  font-weight: 500;
  padding-left: 24px;
  opacity: 1 !important;
}

.hero {
  background: var(--paper);
  border: 0;
  border-radius: 0;
  margin: 0 auto;
  max-width: 100%;
  min-height: 72vh;
  overflow: hidden;
  padding: 120px clamp(22px, 5vw, 56px) 56px;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: none;
}

.hero__content {
  max-width: 980px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.eyebrow,
.intro > p:first-child,
.section-heading > p:first-child,
.split-band > p:first-child,
.contact > div > p:first-child {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  max-width: 980px;
  color: var(--ink);
}

.lede {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  max-width: 760px;
}

.sublede {
  color: var(--ink-2);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 760px;
}

.hero .lede,
.hero .sublede {
  margin-left: auto;
  margin-right: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

.button {
  border: 0;
  border-radius: 980px;
  display: inline-flex;
  font-size: 17px;
  font-weight: 500;
  justify-content: center;
  letter-spacing: -0.01em;
  min-width: 0;
  padding: 12px 22px;
  text-transform: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

.button:active {
  transform: scale(0.98);
}

.button--primary {
  background: var(--accent);
  color: var(--white);
}

.button--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.button--ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 6px;
}

.button--ghost:hover {
  color: var(--accent-hover);
}

.button--ghost::after {
  content: "›";
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.button--ghost:hover::after {
  transform: translateX(2px);
}

.intro,
.services,
.process,
.split-band,
.contact {
  margin: clamp(32px, 5vw, 72px) auto;
  max-width: var(--page-max);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
}

.split-band,
.contact {
  border-radius: 22px;
}

.intro,
.split-band {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  border-bottom: 0;
}

.intro h2,
.split-band h2,
.contact h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 0;
}

.body-copy {
  color: var(--gray);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 880px;
}

.services {
  background: transparent;
  border-top: 1px solid var(--line);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(180px, 0.34fr) 1fr;
  margin-bottom: 46px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.7vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  min-height: 260px;
  padding: 22px;
}

.service-card span {
  color: var(--teal);
  display: block;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 42px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.service-card p {
  color: var(--steel);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.process {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.process-step span {
  color: var(--purple);
  display: block;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 34px;
}

.process-step h3 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 14px;
}

.process-step p {
  color: var(--gray);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.split-band {
  background: var(--navy);
  border-radius: 8px;
  color: var(--paper-soft);
}

.split-band .body-copy {
  color: rgba(247, 247, 247, 0.76);
}

.split-band--light {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line-soft);
  color: var(--ink);
}

.split-band--light .body-copy {
  color: var(--gray);
}

.contact {
  align-items: end;
  background: var(--navy);
  border-radius: 8px;
  color: var(--paper-soft);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
}

.contact .button {
  border-color: var(--paper-soft);
}

.contact .button--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .split-band,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    position: absolute;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
  }

  .hero {
    min-height: 20svh;
    margin-left: 14px;
    margin-right: 14px;
    padding-top: 96px;
  }

  h1 {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 240px;
  }
}
