:root {
  --ink: #121211;
  --paper: #fdfdfb;
  --muted: #666560;
  --line: #d8d6cf;
  --radius: .55rem;
  --wrap: min(100% - 3rem, 1440px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--ink); color: var(--paper); transition: top .2s; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; }
.wordmark img { width: auto; }
.wordmark__mark { height: 1.9rem; }
.wordmark__text { height: 1rem; }
/* header logo at 60% of the default size */
.site-header .wordmark { gap: .42rem; }
.site-header .wordmark__mark { height: 1.14rem; }
.site-header .wordmark__text { height: 1rem; }

.button { appearance: none; border: 1px solid var(--ink); border-radius: 999px; min-height: 2.9rem; padding: .62rem .95rem .62rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; color: var(--paper); background: var(--ink); font-size: .78rem; font-weight: 500; letter-spacing: -.01em; transition: transform .25s var(--ease), background .25s, color .25s; }
.button:hover { transform: translateY(-1px); background: #454541; border-color: #454541; }
.button--small { min-height: 2.8rem; padding: .58rem .9rem .58rem 1.1rem; font-size: .78rem; }
.button--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button:focus-visible, .text-link:focus-visible, input:focus-visible, textarea:focus-visible, .close-button:focus-visible { outline: 3px solid #8a8983; outline-offset: 4px; }

.hero { display: grid; justify-items: center; align-content: center; gap: 2rem; min-height: 50svh; padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.eyebrow { margin: 0; color: var(--muted); font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .04em; line-height: 1.5; text-transform: uppercase; }
.eyebrow span { padding-inline: .3rem; }
.hero__title { white-space: nowrap; margin: 0; font-size: clamp(2.95rem, 5.6vw, 5.8rem); font-stretch: 96%; font-weight: 500; letter-spacing: -.07em; line-height: .91; }
.reveal-line-wrap { display: block; overflow: clip; padding-bottom: .08em; }
.reveal-line { display: block; opacity: 0; transform: translateY(112%); transition: transform 1s cubic-bezier(.16, .78, .25, 1), opacity .8s var(--ease); }
.hero__title.reveal { opacity: 1; transform: none; transition: none; }
.hero__title.is-visible .reveal-line { opacity: 1; transform: translateY(0); }
.hero__title.is-visible .reveal-line-wrap + .reveal-line-wrap .reveal-line { transition-delay: .12s; }
.hero__bottom { display: grid; justify-items: center; gap: 1rem; }
.hero__bottom p { max-width: 29rem; margin: 0; font-size: clamp(.98rem, 1.2vw, 1.08rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.42; }
.text-link { border: 0; padding: 0 0 .28rem; background: none; border-bottom: 1px solid var(--ink); color: var(--ink); font-size: .84rem; font-weight: 500; white-space: nowrap; transition: opacity .2s; }
.text-link:hover { opacity: .55; }

.work { padding-bottom: clamp(6rem, 20svh, 12rem); }
.image-grid { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.5rem, 1vw, .85rem); }
.tile { flex: 0 1 calc((100% - 2 * clamp(.5rem, 1vw, .85rem)) / 3); aspect-ratio: 4 / 3; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #000; border-radius: var(--radius); background: #e9e7df; }
.tile img { transition: opacity .5s var(--ease); }
.tile:hover img { opacity: .88; }

.section-rule { border-top: 1px solid var(--line); }
.process { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.section-heading { display: grid; justify-items: center; gap: 1.25rem; padding-bottom: clamp(3rem, 5vw, 4rem); text-align: center; }
.section-heading h2, .contact h2, .speed h2 { margin: 0; font-size: clamp(2.15rem, 4.2vw, 4.25rem); font-weight: 500; letter-spacing: -.07em; line-height: .94; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.step { border-top: 1px solid var(--ink); padding-top: 1rem; text-align: center; }
.step__number { display: block; color: var(--muted); font-family: "DM Mono", monospace; font-size: .65rem; margin-bottom: clamp(1rem, 2vw, 1.75rem); }
.step h3 { margin: 0 0 .6rem; font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 500; letter-spacing: -.05em; }
.step p { max-width: 17rem; margin: 0 auto; color: var(--muted); font-size: .92rem; letter-spacing: -.01em; line-height: 1.48; }

.speed { display: grid; justify-items: center; gap: 1.5rem; padding: clamp(3.5rem, 6vw, 5rem) 1.5rem; background: #efeee9; border-radius: var(--radius); text-align: center; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; width: 100%; max-width: 60rem; margin: 0; }
.specs dt { margin-bottom: .5rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.specs dd { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.05; }
.speed__note { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.contact { display: grid; justify-items: center; gap: 2rem; padding: clamp(5rem, 9vw, 8rem) 0; text-align: center; }
.contact__intro .eyebrow { margin-bottom: 1rem; }
.contact__intro h2 { max-width: 14ch; }
.contact__aside { max-width: 22rem; margin: 1rem auto 0; color: var(--muted); font-size: .92rem; line-height: 1.48; }
.contact > .button { justify-self: center; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: center; min-height: 5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.site-footer p { margin: 0; }
.site-footer p span { color: inherit; }
.site-footer a:hover { color: var(--ink); }

.contact-dialog { width: min(100% - 2rem, 40rem); max-height: calc(100vh - 2rem); overflow: auto; padding: clamp(1.5rem, 4vw, 3rem); color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: 0 1.5rem 5rem rgba(0,0,0,.25); }
.contact-dialog::backdrop { background: rgba(18,18,17,.7); backdrop-filter: blur(4px); }
.contact-dialog__top { display: flex; align-items: start; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.contact-dialog h2 { margin: .6rem 0 0; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 500; letter-spacing: -.07em; line-height: .92; }
.close-button { width: 2.7rem; height: 2.7rem; padding: 0; color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.8rem; font-weight: 300; line-height: 1; }
.close-button:hover { background: #ecebe6; border-color: #ecebe6; }
.form-row { display: grid; gap: .6rem; padding-bottom: 1.15rem; }
.form-row label { font-size: .72rem; font-weight: 500; letter-spacing: -.02em; }
.form-row label span { color: var(--muted); font-weight: 400; }
.form-row input:not([type=file]), .form-row textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: .65rem 0; color: var(--ink); background: transparent; outline: 0; resize: vertical; }
.form-row input[type=file] { font-size: .78rem; }
.form-row input[type=file]::file-selector-button { margin-right: .75rem; border: 1px solid var(--ink); border-radius: 999px; padding: .45rem .7rem; color: var(--ink); background: transparent; font: inherit; cursor: pointer; }
.form-row input.is-invalid, .form-row textarea.is-invalid { border-color: #b72d1f; }
.honeypot { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.form-status { min-height: 1.4rem; margin: .35rem 0 1.1rem; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.form-status.is-success { color: #27672f; }
.form-status.is-error { color: #a13224; }
body:has(.contact-dialog[open]) { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(.8rem); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.steps .step:nth-child(2) { transition-delay: .1s; }
.steps .step:nth-child(3) { transition-delay: .2s; }

@media (max-width: 760px) {
  :root { --wrap: min(100% - 2.25rem, 1440px); }
  .site-header { min-height: 5.25rem; }
  .hero__title { white-space: normal; }
  .image-grid { gap: .7rem; }
  .tile { flex-basis: 100%; }
  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .step__number { margin-bottom: 1rem; }
  .speed { border-radius: 0; width: 100%; }
  .specs { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact { gap: 1.5rem; }
  .site-footer { grid-template-columns: 1fr; gap: .8rem; padding: 1.75rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-line { opacity: 1; transform: none; }
}
