:root {
  --midnight: #0f1a2b;
  --midnight-2: #16243a;
  --porcelain: #eef0f3;
  --white: #fbfcfd;
  --mist: #d6dbe4;
  --steel: #5d687b;
  --steel-light: #9aa5b8;
  --cobalt: #3a5ce0;
  --cobalt-deep: #2a46b8;
  --cobalt-soft: #a9baff;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html { background: var(--midnight); }
body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, ol, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; }
.hero :focus-visible, .approach :focus-visible, .footer :focus-visible, .header :focus-visible { outline-color: var(--cobalt-soft); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--white); color: var(--midnight); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 2; }
.brand-mark rect { fill: var(--cobalt); }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--steel-light); margin-left: 6px; letter-spacing: 0.02em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(15, 26, 43, 0.94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--porcelain);
  border-bottom: 1px solid rgba(238, 240, 243, 0.08);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.header nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.header nav a { color: rgba(238, 240, 243, 0.78); transition: color .2s; }
.header nav a:hover { color: var(--white); }
.header nav .nav-contact {
  color: var(--white);
  border: 1px solid rgba(238, 240, 243, 0.32);
  padding: 9px 18px;
  transition: border-color .2s, background .2s;
}
.header nav .nav-contact:hover { border-color: var(--white); background: rgba(238, 240, 243, 0.06); }
.menu-toggle { display: none; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 500; letter-spacing: 0.005em;
  transition: background .2s, color .2s;
}
.button-light { background: var(--porcelain); color: var(--midnight); }
.button-light:hover { background: var(--white); }
.button-blue { background: var(--cobalt); color: var(--white); }
.button-blue:hover { background: var(--cobalt-deep); }
.link-quiet { font-size: 15px; color: rgba(238, 240, 243, 0.78); border-bottom: 1px solid rgba(238, 240, 243, 0.3); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-quiet:hover { color: var(--white); border-color: var(--white); }
.link-underline { display: inline-block; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--midnight); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-underline:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* ---------- Hero ---------- */
.hero {
  background: var(--midnight);
  color: var(--porcelain);
  padding-top: clamp(56px, 9vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-lede { margin-top: 28px; max-width: 30em; font-size: 18px; line-height: 1.65; color: rgba(238, 240, 243, 0.72); }
.hero-actions { margin-top: 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

/* The ad slot */
.slot { width: 100%; max-width: 480px; justify-self: end; }
.slot-frame { position: relative; aspect-ratio: 300 / 250; padding: 7%; }
.crop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crop path {
  fill: none; stroke: var(--porcelain); stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 120; stroke-dashoffset: 0;
}
.slot-fill {
  position: relative; height: 100%;
  background: var(--cobalt);
  display: flex; align-items: flex-end;
  padding: 9%;
}
.slot-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--white);
}
.slot-dim { position: absolute; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--steel-light); }
.slot-dim-x { left: 7%; right: 7%; top: -26px; text-align: center; }
.slot-dim-x::before, .slot-dim-x::after { content: ''; position: absolute; top: 50%; width: calc(50% - 24px); border-top: 1px solid rgba(154, 165, 184, 0.45); }
.slot-dim-x::before { left: 0; }
.slot-dim-x::after { right: 0; }
.slot-dim-y { right: -34px; top: 7%; bottom: 7%; display: flex; align-items: center; writing-mode: vertical-rl; }
.slot-dim-y::before, .slot-dim-y::after { content: ''; flex: 1; border-left: 1px solid rgba(154, 165, 184, 0.45); }
.slot-dim-y::before { margin-bottom: 8px; }
.slot-dim-y::after { margin-top: 8px; }
.slot figcaption { margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--steel-light); max-width: 34em; }

/* One orchestrated load moment: marks draw, then the space fills */
@media (prefers-reduced-motion: no-preference) {
  .js .crop path { stroke-dashoffset: 120; animation: draw 1s cubic-bezier(.6,0,.2,1) .2s forwards; }
  .js .slot-fill { clip-path: inset(50% 50% 50% 50%); animation: fill .9s cubic-bezier(.7,0,.2,1) 1s forwards; }
  .js .slot-text { opacity: 0; transform: translateY(10px); animation: rise .7s ease-out 1.75s forwards; }
  .js .slot-dim, .js .slot figcaption { opacity: 0; animation: fade .6s ease-out 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { clip-path: inset(0 0 0 0); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.hero-foot {
  margin-top: clamp(64px, 9vw, 120px);
  padding: 28px 0 32px;
  border-top: 1px solid rgba(238, 240, 243, 0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap;
  font-size: 15px; color: rgba(238, 240, 243, 0.62);
}
.values { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; }
.values li { display: flex; align-items: center; gap: 10px; color: rgba(238, 240, 243, 0.86); }
.values li::before { content: ''; width: 6px; height: 6px; background: var(--cobalt); flex: none; }

/* ---------- Services ---------- */
.services { padding-block: clamp(80px, 11vw, 150px); }
.services-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px 80px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.services-head h2 { max-width: 17ch; }
.services-head p { color: var(--steel); max-width: 30em; font-size: 17px; }

.service-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--mist);
}
.service {
  padding: 44px 48px 48px 0;
  border-bottom: 1px solid var(--mist);
  display: flex; flex-direction: column;
}
.service:nth-child(even) { padding: 44px 0 48px 48px; border-left: 1px solid var(--mist); }
.service-icon { width: 64px; height: 40px; margin-bottom: 32px; overflow: visible; }
.service-icon rect, .service-icon path, .service-icon circle { fill: none; stroke: var(--midnight); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.service-icon .fill { fill: var(--cobalt); stroke: none; }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -0.015em; }
.service-for { margin-top: 6px; color: var(--cobalt); font-size: 16px; font-weight: 500; }
.service p:not(.service-for) { margin-top: 18px; color: var(--steel); max-width: 34em; }
.service-link {
  margin-top: 28px; align-self: flex-start;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--mist); padding-bottom: 3px;
  transition: border-color .2s, color .2s;
}
.service-link:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* ---------- Approach ---------- */
.approach { background: var(--midnight); color: var(--porcelain); padding-block: clamp(80px, 11vw, 150px); }
.approach-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 80px; align-items: end;
}
.approach h2 { color: var(--white); max-width: 16ch; }
.approach-head p { color: rgba(238, 240, 243, 0.68); max-width: 28em; }
.steps {
  list-style: none;
  margin-top: clamp(56px, 7vw, 96px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  counter-reset: none;
}
.steps li { border-top: 1px solid rgba(238, 240, 243, 0.18); padding-top: 28px; }
.step-num {
  display: block;
  font-family: var(--serif); font-weight: 300;
  font-size: 72px; line-height: 1; color: var(--cobalt-soft);
  margin-bottom: 32px;
}
.steps h3 { color: var(--white); font-size: 20px; }
.steps p { margin-top: 12px; color: rgba(238, 240, 243, 0.68); max-width: 30em; }

/* ---------- About ---------- */
.about { padding-block: clamp(80px, 11vw, 150px); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 96px; align-items: start; }
.about h2 { max-width: 16ch; }
.about-copy p { color: var(--steel); font-size: 18px; line-height: 1.7; max-width: 32em; }
.about-copy p + p { margin-top: 20px; }
.about-copy .link-underline { margin-top: 32px; }

/* ---------- Contact ---------- */
.contact { background: var(--porcelain); padding-block: clamp(80px, 10vw, 136px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 96px; align-items: center; }
.contact h2 { max-width: 12ch; }
.contact-intro p { margin-top: 24px; color: var(--steel); max-width: 28em; }
.contact-card {
  background: var(--white);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--mist);
  display: flex; flex-direction: column;
}
.contact-card label { font-size: 15px; font-weight: 500; margin-bottom: 10px; }
.select-wrap { position: relative; margin-bottom: 24px; }
.select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--midnight); border-bottom: 1.5px solid var(--midnight);
  transform: rotate(45deg); pointer-events: none;
}
.select-wrap select {
  width: 100%; min-height: 54px; padding: 0 48px 0 16px;
  appearance: none; -webkit-appearance: none;
  background: var(--white); border: 1px solid var(--mist); border-radius: 0;
  font-size: 16px; cursor: pointer; transition: border-color .2s;
}
.select-wrap select:hover { border-color: var(--steel-light); }
.contact-card .button { width: 100%; }
.contact-note { margin-top: 12px; font-size: 14px; color: var(--steel); }
.contact-alt {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--mist);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-size: 15px; color: var(--steel);
}
.contact-alt a { color: var(--midnight); font-weight: 500; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--mist); padding-bottom: 2px; }
.contact-alt a:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: var(--porcelain); padding: 72px 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px 48px; align-items: start;
  padding-bottom: 56px;
  font-size: 15px; line-height: 1.7; color: rgba(238, 240, 243, 0.68);
}
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; justify-self: end; }
.footer-contact a { color: var(--porcelain); transition: color .2s; }
.footer-contact a:hover { color: var(--cobalt-soft); }
.footer .brand { color: var(--white); }
.footer-legal {
  border-top: 1px solid rgba(238, 240, 243, 0.12); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  font-size: 13px; color: var(--steel-light);
}
.footer-legal div { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--porcelain); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .slot { justify-self: stretch; width: auto; max-width: 420px; margin-right: 34px; }
  .services-head, .approach-head, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 28px 0 32px; }
  .step-num { font-size: 48px; margin: 0; grid-row: span 2; }
  .steps p { grid-column: 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top .brand { grid-column: 1 / -1; }
  .footer-contact { justify-self: start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 22px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 12px;
    background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--porcelain); font-size: 15px;
  }
  .menu-icon { width: 18px; height: 8px; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
  .menu-icon::before { top: 0; }
  .menu-icon::after { top: 6.5px; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 3.25px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 3.25px; transform: rotate(-45deg); }
  .header nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--midnight); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid rgba(238, 240, 243, 0.1);
    font-size: 18px;
  }
  .header nav.open { display: flex; }
  .header nav a { padding: 14px 0; border-bottom: 1px solid rgba(238, 240, 243, 0.08); }
  .header nav .nav-contact { margin-top: 16px; text-align: center; padding: 14px; }

  .hero-lede { font-size: 17px; }
  .hero-actions { gap: 24px; }
  .slot { max-width: none; margin-right: 30px; }
  .slot-dim-y { right: -28px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .values { flex-direction: column; gap: 10px; }

  .service-grid { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 36px 0 40px; border-left: 0; }
  .service-icon { margin-bottom: 24px; }

  .about-copy p { font-size: 17px; }
  .contact-alt { flex-direction: column; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
