@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('/fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url('/fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('/fonts/manrope-latin-600-normal.woff2') format('woff2'); }

:root {
  --navy: #161A3F;
  --navy-line: #2A3070;
  --ground: #F4F5F9;
  --card-line: #E2E5EF;
  --ink: #161A3F;
  --muted: #50557A;
  --indigo: #4753A3;
  --pale: #CCD5EA;
  --sky-pale: #9CD5F2;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img, svg, canvas { display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sky-pale); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: #FFFFFF; color: var(--navy); padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

/* Hero, with the triangle field behind it */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #FFFFFF;
  min-height: 780px;
  touch-action: pan-y;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The logo's text, placed by field.js beside the field's six logo triangles. */
.hero .lockup { position: absolute; pointer-events: none; visibility: hidden; }
.hero .wrap { position: relative; pointer-events: none; }
.hero a { pointer-events: auto; }

.intro {
  display: flex; flex-direction: column; gap: 28px; max-width: 600px;
  padding-block: clamp(120px, 15vw, 220px) clamp(120px, 13vw, 200px);
}
.intro h1 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.intro p { color: var(--pale); font-size: 19px; max-width: 540px; }
.button {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  background: #FFFFFF; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px;
}
.button:hover { background: var(--pale); }
/* Tablets: the logo sits centred below the hero text, in this reserved space (field.js uses the same numbers). */
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .intro { padding-bottom: 340px; }
}

/* Sections */
.band { padding-block: clamp(64px, 8vw, 112px) 0; }
.band:last-of-type { padding-bottom: clamp(64px, 8vw, 112px); }
.label { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.split { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.split .label { flex: 1 1 240px; }
.split p { flex: 999 1 560px; min-width: 0; max-width: 820px; }
.lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; font-weight: 500; }
.lead-soft { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; }

.work { display: flex; flex-direction: column; gap: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: #FFFFFF; border: 1px solid var(--card-line); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { color: var(--muted); }

/* Contact */
.contact { background: var(--navy); color: #FFFFFF; }
.contact .wrap:first-child { padding-block: clamp(64px, 8vw, 112px); display: flex; flex-direction: column; gap: 20px; }
.contact .label { color: var(--sky-pale); }
.email {
  align-self: flex-start; color: #FFFFFF;
  font-size: clamp(30px, 4vw, 56px); font-weight: 500; letter-spacing: -0.01em;
  text-decoration-thickness: 1px; text-underline-offset: 10px; overflow-wrap: anywhere;
}
.email:hover { color: var(--sky-pale); }
.site-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-block: 24px 40px; border-top: 1px solid var(--navy-line); color: var(--pale); font-size: 14px;
}
.site-footer a { color: var(--pale); padding-block: 8px; }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 0; }
  .intro { padding-block: 32px 300px; gap: 24px; }
  .intro p { font-size: 17px; }
  .button { align-self: stretch; min-height: 52px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card { padding: 24px; gap: 12px; }
  .card h3 { font-size: 19px; }
  .label { font-size: 14px; }
  .email { font-size: 30px; text-underline-offset: 8px; }
}
