@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --tint: #f6f7f9;
  --ink: #0b0d12;
  --ink-2: #55606e;
  --line: #e4e7ec;
  --accent: #1e4fd8;
  --accent-ink: #163da8;
  --accent-soft: #eaf0ff;
  --error: #c0262d;

  --font: "Archivo", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --space: clamp(72px, 9vw, 128px);
  --radius: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-ink); }
img { display: block; max-width: 100%; height: auto; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus, .skip:hover { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.nav, .hero, .section, .footer, .lost { padding-inline: var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / .92);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
@supports (backdrop-filter: blur(8px)) { .nav { background: rgb(255 255 255 / .8); backdrop-filter: saturate(1.4) blur(12px); } }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; padding: 0; display: flex; gap: 28px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }

/* Type */
h1 {
  font-size: clamp(44px, 6.2vw, 80px); line-height: 1.02; font-weight: 680;
  letter-spacing: -.035em; text-wrap: balance;
}
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 660; letter-spacing: -.028em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 640; letter-spacing: -.012em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.meta { font-size: 14px; font-weight: 550; color: var(--ink-2); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 4.5vw, 64px); }
.hero + .section { padding-top: clamp(40px, 4.5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy .lede { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; white-space: nowrap; margin-top: 36px; font-size: 15px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #9aa3af; }
.hero-photo { margin: 0; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; background: var(--tint); }
.hero-photo figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.hero-photo strong { display: block; color: var(--ink); font-weight: 650; font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-photo { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-photo { animation-delay: .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { padding-block: var(--space); }
.section-tint { background: var(--tint); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { font-size: 18px; color: var(--ink-2); max-width: 38em; }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.service { padding-top: 22px; border-top: 2px solid var(--ink); }
.service h3 { margin-bottom: 10px; }
.service p { font-size: 16px; color: var(--ink-2); }

/* Work */
.feature { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3.5vw, 48px); }
.feature-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 64px); align-items: start; margin-bottom: clamp(28px, 3.5vw, 44px); }
.feature-text .checks { margin-top: 4px; }
.feature h3, .case h3 { font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; }
.feature .meta, .case .meta { margin: 6px 0 16px; }
.feature-text > p:not(.meta) { font-size: 17px; }
.shot { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(11 13 18 / .04), 0 16px 40px -12px rgb(11 13 18 / .18); }
.checks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: #eceef2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2355606e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.link { display: inline-flex; gap: 6px; margin-top: 24px; font-weight: 600; text-decoration: none; }
.link:hover span { transform: translateX(3px); }
.link span { transition: transform .2s var(--ease); }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.case { background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.case > p:not(.meta) { font-size: 17px; }

/* Approach */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { padding: clamp(24px, 3vw, 36px); background: var(--tint); border-radius: var(--radius); }
.offer h3 { font-size: 24px; letter-spacing: -.02em; }
.offer-for { margin: 4px 0 14px; color: var(--ink); font-weight: 600; }
.offer p:last-child { color: var(--ink-2); }
.principles { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.principles li { position: relative; padding-left: 28px; font-size: 16px; }
.principles li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: #eceef2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2355606e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Experience */
.experience { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.roles { list-style: none; padding: 0; margin-top: 36px; }
.roles li { display: grid; grid-template-columns: 9.5em 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.roles li:last-child { border-bottom: 1px solid var(--line); }
.when { font-size: 15px; font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
.roles h3 { font-size: 18px; }
.roles p { font-size: 15.5px; color: var(--ink-2); }
.creds-panel { background: #fff; border-radius: var(--radius); padding: 28px; }
.creds-panel h3 { font-size: 17px; margin-bottom: 8px; }
.creds { list-style: none; padding: 0; }
.creds li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.creds li:last-child { border-bottom: 0; }
.creds span { display: block; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 26em; }
.contact-copy .contact-alt { font-size: 16px; }
.inquiry { display: grid; gap: 18px; background: var(--tint); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; min-width: 0; }
label, .choice legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d3d8e0; border-radius: 10px; padding: 12px 14px;
  caret-color: var(--accent);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { resize: vertical; min-height: 140px; }
textarea::-webkit-resizer { background: transparent; }
html { scrollbar-color: #c3c9d2 var(--bg); }
input:hover, textarea:hover { border-color: #b9c0cb; }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(30 79 216 / .18); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.choice legend { margin-bottom: 8px; float: left; width: 100%; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid #d3d8e0; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.seg label:hover span { border-color: #b9c0cb; }
.seg input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.send { justify-self: start; min-width: 180px; }
.send:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ink); font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 14px; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1020px) {
  .services { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .feature-text { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero-grid, .section-head, .cases, .offers, .experience, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .section-head { gap: 12px; }
}
@media (max-width: 560px) {
  .services, .principles, .row2 { grid-template-columns: 1fr; }
  .roles li { grid-template-columns: 1fr; gap: 4px; }
  .footer-inner { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-photo { max-width: 240px; }
  .facts { white-space: normal; }
}

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: left; }
.lost .wrap { max-width: 720px; display: grid; gap: 20px; justify-items: start; }
