@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0a1d33;
  --ink-2: #33475c;
  --ink-3: #5b6d80;
  --cloud: #ffffff;
  --mist: #f3f8fd;
  --line: #dbe6f1;
  --sky-hi: #8cc4f5;
  --sky: #4d9be6;
  --grass: #1c7f3a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1200px;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; scroll-padding-block-start: 88px; }
body { margin: 0; background: var(--cloud); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 10; display: flex; align-items: center; gap: 32px; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding: 22px var(--gutter); }
.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 650; font-size: 1.375rem; letter-spacing: -0.02em; text-decoration: none; }
.nav nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav nav a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding-block: 12px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1.5px no-repeat; transition: background-size 200ms var(--ease-out); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 550; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 8px 24px rgb(10 29 51 / 0.22); }
.btn-glass { background: rgb(255 255 255 / 0.62); color: var(--ink); border: 1px solid rgb(255 255 255 / 0.8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.btn:not(:disabled):active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover { background-size: 100% 1.5px; }
  .btn-ink:hover { background: #12304f; transform: translateY(-1px); }
  .btn-glass:hover { background: rgb(255 255 255 / 0.86); transform: translateY(-1px); }
  .btn:not(:disabled):active { transform: scale(0.96); }
}

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-start; overflow: clip; isolation: isolate; background: var(--sky); }
.hero-sky { position: absolute; inset: 0; z-index: -1; }
.hero-sky img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.62) 0%, rgb(255 255 255 / 0.36) 38%, rgb(255 255 255 / 0.12) 70%, rgb(255 255 255 / 0) 100%); }
.hero-copy { padding-block-start: clamp(128px, 19vh, 200px); padding-block-end: 40vh; }
h1 { font-family: var(--display); font-weight: 620; font-size: clamp(2.625rem, 5.7vw, 5.125rem); line-height: 0.98; letter-spacing: -0.035em; }
.lede { margin-block-start: 26px; max-width: 34rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.45; color: var(--ink); font-weight: 450; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.fact { margin-block-start: 22px; font-size: 0.9375rem; font-weight: 550; color: var(--ink); }

/* what it does */
.does { padding-block: clamp(88px, 12vw, 168px); background: var(--cloud); }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; max-width: 18ch; }
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-block-start: clamp(48px, 6vw, 88px); counter-reset: job; }
.jobs li { padding-block-start: 22px; border-block-start: 2px solid var(--ink); }
.jobs h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.jobs p { margin-block-start: 12px; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }

/* built */
.built { position: relative; isolation: isolate; padding-block: clamp(88px, 12vw, 168px); overflow: clip; }
.built-field { position: absolute; inset: 0; z-index: -1; }
.built-field img { width: 100%; height: 100%; object-fit: cover; }
.sheet { max-width: 720px; padding: clamp(28px, 4.5vw, 56px); border-radius: 28px; background: rgb(255 255 255 / 0.82); border: 1px solid rgb(255 255 255 / 0.9); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25); box-shadow: 0 30px 80px rgb(10 29 51 / 0.18); }
.sheet h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.sheet-lede { margin-block-start: 18px; color: var(--ink-2); text-wrap: pretty; }
.stack { display: grid; gap: 0; margin-block: 28px 32px; }
.stack div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; padding-block: 14px; border-block-start: 1px solid rgb(10 29 51 / 0.14); }
.stack dt { font-weight: 600; }
.stack dd { color: var(--ink-2); }

/* footer */
.foot { padding-block: 36px; background: var(--ink); color: #dbe7f3; font-size: 0.9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot a { color: #fff; text-underline-offset: 3px; display: inline-block; padding-block: 10px; }
.foot :focus-visible { outline-color: #fff; }
.foot span { margin-inline: 6px; opacity: 0.5; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 700ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 90ms); }
  .hero-sky img { animation: drift 48s ease-in-out infinite alternate; transform-origin: 50% 100%; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateX(-0.8%); } }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-inline-start: auto; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block-end: 46vh; }
  .stack div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .actions .btn { flex: 1 1 100%; }
}
