@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --black: #0b0c0e;
  --graphite: #17191d;
  --white: #f5f5f2;
  --gray: #a8abb2;
  --accent: #ff7438;
  --accent-ink: #b8400f; /* accent for small text on light backgrounds */
  --paper: #f3f3f1;
  --ink: #111111;
  --ink-2: #4a4d52;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(17, 17, 17, 0.14);
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--accent); color: var(--black);
  font-weight: 600; text-decoration: none; border-radius: 4px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* Labels */
.label, .num {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.light .label, .light .num { color: var(--accent-ink); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 15px 24px;
  background: var(--accent); color: var(--black);
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: #ff8a57; transform: translateY(-1px); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.link {
  color: var(--white); text-decoration: underline;
  text-decoration-color: var(--line-dark); text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease;
}
.link:hover { text-decoration-color: var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 14, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 24px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}
.logo-mark { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; }
#nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
#nav a:not(.btn) {
  font-size: 0.92rem; color: var(--gray); text-decoration: none;
  transition: color 0.15s ease;
}
#nav a:not(.btn):hover { color: var(--white); }
.menu-btn {
  display: none;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); background: none;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center; gap: 24px;
  min-height: min(860px, calc(100vh - 65px));
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.hero-copy { position: relative; z-index: 2; }
h1 {
  margin: 22px 0 28px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.1rem, 8.6vw, 7.4rem);
  line-height: 0.96; letter-spacing: -0.04em;
}
.dot { color: var(--accent); }
.lede { max-width: 30em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--gray); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

.hero-art { position: relative; perspective: 1700px; }
.board {
  position: relative;
  width: 108%;
  margin-left: 0;
  transform: rotateX(54deg) rotateZ(-33deg);
  transform-style: preserve-3d;
  animation: float 9s ease-in-out infinite alternate;
}
.board::before {
  content: ""; position: absolute; inset: 4%;
  background: radial-gradient(closest-side, rgba(255, 116, 56, 0.34), rgba(255, 116, 56, 0));
  filter: blur(46px);
  transform: translateZ(-130px) scale(1.25);
}
.board img {
  position: relative; width: 100%;
  border-radius: 3.4%;
  box-shadow: -1px 1px 0 #2c333b, -2px 2px 0 #262c33, -3px 3px 0 #20252b, -4px 4px 0 #1b1f24, -5px 5px 0 #15181c, -30px 44px 70px rgba(0, 0, 0, 0.7);
}
@keyframes float {
  from { transform: rotateX(54deg) rotateZ(-33deg) translateZ(0); }
  to { transform: rotateX(54deg) rotateZ(-33deg) translateZ(26px); }
}

/* Sections */
section.dark, section.light { padding: var(--section) 0; }
.dark.alt { background: var(--graphite); }
.light { background: var(--paper); color: var(--ink); }
.light.ruled { padding-top: 0; }
.light.ruled > .wrap::before {
  content: ""; display: block; height: 1px; background: var(--line-light);
  margin-bottom: var(--section);
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 16px 24px; align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 84px);
}
h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.035em;
  max-width: 14em;
}
h3 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1.2; letter-spacing: -0.015em;
}

/* Services */
.services {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 80px);
}
.services li {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 6px 12px; align-items: baseline;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line-dark);
}
.services p { grid-column: 2; color: var(--gray); max-width: 32em; }

/* Process */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
}
.steps li { padding-top: 22px; border-top: 2px solid var(--ink); }
.steps .num { display: block; margin-bottom: clamp(40px, 6vw, 84px); }
.steps .num::before { content: "0"; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); max-width: 22em; }

/* About */
.about-body {
  margin-left: calc(25% + 18px);
  max-width: 44rem;
  display: grid; gap: 1.1em;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4; letter-spacing: -0.015em;
}
.about-body p + p { color: var(--ink-2); }

/* Contact */
.contact h2 { margin: 26px 0 28px; font-size: clamp(2.5rem, 7.4vw, 6.4rem); line-height: 0.98; max-width: none; }
.muted { color: var(--gray); }
.contact .lede { margin-bottom: clamp(36px, 5vw, 60px); }
.email {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.25rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  transition: color 0.15s ease;
}
.email:hover { color: var(--accent); }

/* Inquiry form */
.form { max-width: 60rem; margin-bottom: clamp(40px, 6vw, 72px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form label { display: block; font-size: 0.9rem; font-weight: 500; }
.form label span { color: var(--gray); font-weight: 400; }
.form .wide { grid-column: 1 / -1; }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 14px;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--white);
  background: var(--graphite);
  border: 1px solid #7d8189; border-radius: 6px;
}
.form textarea { resize: vertical; min-height: 9em; }
.form input:focus-visible, .form textarea:focus-visible { outline-offset: 2px; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: #ff8f8f; box-shadow: 0 0 0 1px #ff8f8f; }
.form-note { margin: 18px 0 26px; font-size: 0.9rem; color: var(--gray); max-width: 40em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form button { border: 0; cursor: pointer; }
.form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-status { font-size: 0.95rem; }
.form-status.bad { color: #ffb3a1; }
.form[hidden] + .or { display: none; }
.or { margin-bottom: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-dark); }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 26px; padding-bottom: 30px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--gray);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }

/* Tablet and down */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-art { margin: 10px 0 -6%; }
  .board { width: 96%; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps .num { margin-bottom: 28px; }
  .about-body { margin-left: 0; }
}

/* Phone */
@media (max-width: 720px) {
  .js .menu-btn { display: inline-block; }
  .js #nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--black); border-bottom: 1px solid var(--line-dark);
  }
  .js #nav.open { display: flex; }
  .js #nav a:not(.btn) {
    width: 100%; padding: 14px 0; font-size: 1.05rem; color: var(--white);
    border-bottom: 1px solid var(--line-dark);
  }
  .js #nav .btn { margin-top: 20px; }
  html:not(.js) #nav a:not(.btn) { display: none; }
  .services li { grid-template-columns: 2.6rem minmax(0, 1fr); padding: 24px 0 26px; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .board { animation: none; }
  .btn, .link, .email, #nav a { transition: none; }
}
