/* Outliers Collective. Tokens: ink, paper, lime, plus two greys derived for tiles and secondary text. */
@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 {
  --ink: #0E0F13;
  --paper: #F5F7FA;
  --lime: #C6FF3D;
  --tile: #DCDFE4;       /* the "pattern": everyone's grey sameness */
  --tile-ink: #8A8F98;   /* text on tiles */
  --muted: #4A4F58;      /* secondary text on paper */
  --muted-dark: #A9AEB7; /* secondary text on ink */
  --line: #0E0F13;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 900;
  font-stretch: 112%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(42px, 5.6vw, 84px); }
h1, h2, .ethos { text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: 26px; line-height: 1.05; }
p { margin: 0 0 1em; }

/* utility voice: condensed caps */
.tag, .tile, .steps li::before, label, legend, .nav a:not(.btn), .foot, .opt, .site-name, .ad-kicker {
  font-stretch: 75%;
  letter-spacing: 0.01em;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.services :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--lime); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-block;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 26px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .12s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 15px; }
.btn-ink:hover { box-shadow: 3px 3px 0 var(--lime); }
.link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* header */
.top {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand img { display: block; height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 18px; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* sections share one horizontal rhythm */
.hero, .services, .work, .how, .about, .contact { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); padding-left: var(--pad); padding-right: var(--pad); }
.services, .how, .contact, .foot { padding-left: calc(max(0px, (100% - var(--wrap)) / 2) + var(--pad)); padding-right: calc(max(0px, (100% - var(--wrap)) / 2) + var(--pad)); }
.hero > *, .work > *, .about > * { max-width: var(--wrap); }

/* hero: copy left, the pattern right */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-top: clamp(32px, 5vw, 72px);
}
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--muted); max-width: 34em; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }

.pattern {
  margin-right: 18%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  position: relative;
}
.tile {
  aspect-ratio: 1; background: var(--tile); color: var(--tile-ink);
  font-size: 14px; line-height: 1.25; padding: 12px; display: flex; align-items: flex-end;
}
.tile-out {
  background: var(--lime); color: var(--ink);
  transform: translate(52%, -40%);
  box-shadow: -8px 8px 0 var(--ink);
  align-items: flex-end;
}
.tile-out span { font-stretch: 112%; font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.01em; }
/* the slot the outlier left behind */
.pattern::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: calc((100% - 24px) / 3); aspect-ratio: 1;
  border: 2px dashed var(--tile-ink); opacity: .5; z-index: -1;
}

/* services: ink block */
.services { background: var(--ink); color: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 3px solid var(--lime); }
.svc { padding: 32px 32px 8px 0; }
.svc + .svc { padding-left: 32px; border-left: 1px solid #2A2D35; }
.svc p { color: var(--muted-dark); margin-top: 16px; }
.svc ul { list-style: none; padding: 0; margin: 20px 0 0; }
.svc li { padding: 10px 0; border-top: 1px solid #2A2D35; }
.svc li::before { content: "Ø"; color: var(--lime); font-weight: 900; margin-right: 12px; }

/* samples */
.work { max-width: var(--wrap); margin: 0 auto; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.work-head p { color: var(--muted); margin: 0; max-width: 26em; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; align-items: end; }
.sample { margin: 0; }
.sample figcaption { margin-top: 16px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.tag { background: var(--ink); color: var(--lime); font-size: 14px; padding: 3px 8px; font-weight: 700; }

.phone { width: 62%; margin: 0 auto; aspect-ratio: 9 / 18; background: var(--ink); border-radius: 26px; padding: 10px; }
.phone-screen {
  height: 100%; border-radius: 18px; background: #1C1E24; color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px;
}
.ad-kicker { color: var(--lime); font-size: 14px; font-weight: 700; }
.ad-line { font-weight: 900; font-stretch: 112%; font-size: 24px; line-height: 1.02; }
.ad-cta { font-size: 13px; color: var(--muted-dark); }

.still { aspect-ratio: 4 / 5; background: var(--tile); display: grid; place-items: center; }
.still-ph { color: var(--tile-ink); font-stretch: 75%; font-size: 15px; }

.browser { border: 3px solid var(--ink); background: #fff; aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 3px solid var(--ink); font-size: 12px; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--tile); }
.browser-bar span { margin-left: 8px; }
.browser-page { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.site-name { font-size: 14px; font-weight: 700; }
.site-h { font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.02; }
.site-btn { align-self: flex-start; background: #2F5D3A; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; }
.site-blocks { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site-blocks i { aspect-ratio: 1; background: #E7ECE5; }

/* how it works: lime block, a real sequence so it's numbered */
.how { background: var(--lime); color: var(--ink); }
.steps { list-style: none; counter-reset: step; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.steps li { counter-increment: step; padding: 0 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 3px solid var(--ink); }
.steps li::before { content: "Step " counter(step); display: block; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.steps p { margin-top: 12px; }

/* about */
.about { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-mark { width: 100%; height: auto; }
.about-copy p { max-width: 36em; margin-top: 20px; }
.about-copy h2 + p { margin-top: 28px; }
.ethos { font-weight: 900; font-stretch: 112%; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; margin-top: 36px !important; }

/* contact: ink block */
.contact { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.contact > * { min-width: 0; }
.contact-copy p { color: var(--muted-dark); margin-top: 24px; }
.contact-alt a { color: var(--lime); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field:nth-of-type(n+5), .form .btn, .form-status { grid-column: 1 / -1; }
label, legend { font-size: 15px; font-weight: 700; color: var(--paper); padding: 0; }
.opt { color: var(--muted-dark); font-weight: 400; }
input, textarea {
  font: inherit; font-size: 17px; color: var(--paper); background: #1A1C22;
  border: 2px solid #3A3E48; border-radius: 0; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus { border-color: var(--lime); outline: none; }
fieldset.field { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 22px; }
fieldset.field legend { width: 100%; margin-bottom: 10px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-stretch: 100%; letter-spacing: 0; font-weight: 500; font-size: 17px; }
.check input { width: 20px; height: 20px; accent-color: var(--lime); }
.form .btn { justify-self: start; border-color: var(--lime); }
.form .btn:hover { box-shadow: 3px 3px 0 var(--paper); }
.form-status { margin: 0; min-height: 1.5em; color: var(--lime); font-weight: 600; }
.form-status.err { color: #FFB4A8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.foot { background: var(--ink); color: var(--muted-dark); border-top: 1px solid #2A2D35; padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.foot img { width: 28px; height: 28px; }

/* responsive */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; }
  .pattern { max-width: 400px; margin-right: 22%; margin-top: 40px; }
  .svc-grid, .work-grid { grid-template-columns: 1fr; }
  .svc, .svc + .svc { padding: 28px 0 8px; border-left: 0; }
  .svc + .svc { border-top: 1px solid #2A2D35; }
  .work-grid { max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .about { grid-template-columns: 1fr; }
  .about-mark { width: 140px; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand img { height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(3) { padding: 0 0 0 20px; border-left: 3px solid var(--ink); }
  .form { grid-template-columns: 1fr; }
}
