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

:root {
  --black: #000;
  --ink: #111;
  --white: #fff;
  --paper: #F2F2F2;
  --stage: #EDEDED;
  --graphite: #5C5C5C;
  --rule: #DADADA;
  --dim: #8E8E8E;
  --rule-dark: #2A2A2A;
  --gutter: clamp(20px, 4vw, 64px);
  --wide: 112.5%;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header: 76px;
  --wide-max: 1760px; /* header and hero run wider than the content below */
  --gutter-wide: clamp(20px, 2.6vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", Arial, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--black); color: var(--white); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.menu-open { overflow: hidden; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wide-max); padding-inline: var(--gutter-wide); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header
   Transparent over the hero, a solid bar once you scroll, hidden while scrolling down,
   back on scroll up, and inverted over dark sections. */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  color: var(--ink);
  transition: transform .5s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--rule); }
.header.is-dark { color: var(--white); }
.header.is-dark.is-solid { background: var(--black); box-shadow: 0 1px 0 var(--rule-dark); }
.header.is-hidden { transform: translateY(-100%); }
.header__bar {
  max-width: var(--wide-max); margin: 0 auto; height: var(--header);
  padding-inline: var(--gutter-wide);
  display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  font-size: .9375rem;
}
.header a { text-decoration: none; }
.header__mark { display: block; width: 34px; }
.header__mark svg { display: block; width: 100%; height: auto; }
.header__desc { color: var(--graphite); font-size: .875rem; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); line-height: 1.2; }
.header.is-dark .header__desc { color: var(--dim); border-color: var(--rule-dark); }
.header__nav { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.header__nav a:hover::after, .header__nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.header__time { color: var(--graphite); font-variant-numeric: tabular-nums; font-size: .875rem; white-space: nowrap; }
.header.is-dark .header__time { color: var(--dim); }
.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  font-weight: 600; font-size: .875rem; padding: 11px 16px; border-radius: 4px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.header__cta:hover { background: #333; }
.header.is-dark .header__cta { background: var(--white); color: var(--ink); }
.header.is-dark .header__cta:hover { background: #DDD; }
.header__menu { display: none; background: none; border: 0; padding: 8px 0; font-weight: 600; cursor: pointer; }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--black); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header) + 24px) var(--gutter) 32px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { font-stretch: var(--wide); font-weight: 560; font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1.15; letter-spacing: -0.03em; text-decoration: none; border-bottom: 1px solid var(--rule-dark); padding: 6px 0; }
.menu__foot { display: flex; justify-content: space-between; margin-top: 32px; color: var(--dim); font-size: .9375rem; }
.menu__foot a { text-decoration: none; }

/* Shared */
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.section-title { grid-column: 1 / span 7; font-stretch: var(--wide); font-weight: 560; font-size: clamp(2.25rem, 5.2vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.section-note { grid-column: 9 / -1; color: var(--graphite); max-width: 34ch; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--white); text-decoration: none;
  font-weight: 600; padding: 17px 24px; border-radius: 4px;
  transition: background .3s var(--ease);
}
.button:hover { background: #2A2A2A; }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Hero */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.hero__mark { position: absolute; right: -8vw; top: 50%; width: min(58vw, 1080px); transform: translateY(-46%); }
.hero__mark svg { width: 100%; height: auto; overflow: visible; shape-rendering: geometricPrecision; }
.hero__mark .blade { transition: transform 1.4s var(--ease); transform: translate(calc(var(--dx) * var(--split, 0) * 1px), calc(var(--dy) * var(--split, 0) * 1px)); }
.hero__mark .b1 { --dx: 52; --dy: -90; }
.hero__mark .b2 { --dx: -100; --dy: 34; }
.hero__mark .b3 { --dx: 44; --dy: 96; }
.is-scrolling .hero__mark .blade { transition: none; }
.hero__inner { position: relative; flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-content: end; padding-top: calc(var(--header) + 72px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero__title {
  grid-column: 1 / span 9;
  font-stretch: var(--wide); font-weight: 560;
  font-size: clamp(2.9rem, 8.2vw, 9.75rem); line-height: .96; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__aside { grid-column: 1 / span 5; margin-top: clamp(24px, 4vh, 48px); }
.hero__lead { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; max-width: 44ch; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero__foot { position: relative; display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 22px; font-size: .875rem; color: var(--graphite); background: linear-gradient(var(--rule), var(--rule)) var(--gutter-wide) 0 / calc(100% - 2 * var(--gutter-wide)) 1px no-repeat; }

/* Work: light, each project hung on a soft grey wall */
.work { padding: clamp(96px, 12vw, 180px) 0 clamp(80px, 10vw, 160px); }
.index { border-top: 1px solid var(--ink); }
.index a {
  display: grid; grid-template-columns: 6fr 3fr 3fr 40px; align-items: baseline; gap: 24px;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: opacity .4s var(--ease);
}
.index__name { font-stretch: var(--wide); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; transition: transform .5s var(--ease); }
.index__meta { color: var(--graphite); font-size: .9375rem; }
.index__arrow { justify-self: end; font-size: 1.4rem; transition: transform .5s var(--ease); }
.index:hover a { opacity: .28; }
.index:hover a:hover { opacity: 1; }
.index a:hover .index__name { transform: translateX(14px); }
.index a:hover .index__arrow { transform: translate(4px, 4px); }
.preview { position: fixed; left: 0; top: 0; width: min(30vw, 440px); aspect-ratio: 16 / 10; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); }
.preview.is-on { opacity: 1; }

/* Services */
.services { padding: clamp(96px, 12vw, 180px) 0; border-top: 1px solid var(--rule); }
.service-list { border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--rule); }
.service summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 6fr 5fr 40px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; }
.service summary::-webkit-details-marker { display: none; }
.service__name { font-stretch: var(--wide); font-weight: 560; font-size: clamp(1.75rem, 3.8vw, 3.5rem); line-height: 1.02; letter-spacing: -0.03em; }
.service__line { color: var(--graphite); }
.service__toggle { justify-self: end; width: 22px; height: 22px; position: relative; }
.service__toggle::before, .service__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.service__toggle::after { transform: rotate(90deg); }
.service[open] .service__toggle::after { transform: rotate(0deg); }
.service__body { display: grid; grid-template-columns: 6fr 5fr 40px; gap: 24px; padding-bottom: clamp(28px, 3vw, 44px); }
.service__body p:first-child { font-size: 1.125rem; max-width: 52ch; }
.service__includes { color: var(--graphite); }
.service__includes b { color: var(--ink); font-weight: 600; }

/* Approach: the one dark block before the contact */
.approach { background: var(--black); color: var(--white); padding: clamp(96px, 12vw, 180px) 0; }
.approach__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; }
.approach__title { grid-column: auto; position: sticky; top: calc(var(--header) + 40px); align-self: start; }
.approach__statement { font-stretch: var(--wide); font-weight: 400; font-size: clamp(1.5rem, 2.7vw, 2.5rem); line-height: 1.22; letter-spacing: -0.02em; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 104px); position: relative; padding-top: 34px; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: #555; }
.stages li { position: relative; }
.stages li::before { content: ""; position: absolute; top: -34px; left: 0; width: 13px; height: 12px; background: var(--white); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.stages h3 { font-stretch: var(--wide); font-weight: 560; font-size: 1.375rem; letter-spacing: -0.01em; }
.stages p { color: var(--dim); margin-top: 8px; font-size: .9375rem; }

/* Motto */
.motto { padding: clamp(96px, 12vw, 180px) 0; }
.motto__row { display: grid; grid-template-columns: 8fr 4fr; gap: 24px; align-items: baseline; border-bottom: 1px solid var(--rule); padding: clamp(10px, 1.4vw, 20px) 0; }
.motto__row:first-child { border-top: 1px solid var(--ink); }
.motto__word { font-stretch: var(--wide); font-weight: 560; font-size: clamp(3rem, 10.5vw, 10.5rem); line-height: .95; letter-spacing: -0.045em; }
.motto__row p { color: var(--graphite); max-width: 30ch; }

/* Contact */
.contact { background: var(--black); color: var(--white); padding: clamp(110px, 13vw, 200px) 0 clamp(80px, 9vw, 140px); }
.contact__title { font-stretch: var(--wide); font-weight: 560; font-size: clamp(3rem, 10vw, 10rem); line-height: .95; letter-spacing: -0.045em; }
.contact__lead { margin-top: 32px; max-width: 46ch; color: #CFCFCF; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.contact__email { display: inline-block; margin-top: clamp(48px, 6vw, 88px); font-stretch: var(--wide); font-weight: 500; font-size: clamp(1.5rem, 4.4vw, 4rem); letter-spacing: -0.03em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 6px; transition: background-size .5s var(--ease); overflow-wrap: anywhere; }
.contact__email:hover { background-size: 100% 2px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule-dark); padding-top: 22px; }
.contact__grid span { display: block; color: var(--dim); font-size: .875rem; margin-bottom: 6px; }
.contact__grid a { text-decoration: none; }
.contact__grid a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.footer { background: var(--black); color: var(--white); border-top: 1px solid var(--rule-dark); font-size: .9375rem; }
.footer__top { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 24px; padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.footer__logo { width: 124px; }
.footer__brand p { color: var(--dim); max-width: 36ch; margin-top: 28px; line-height: 1.55; }
.footer__ask { display: inline-flex; gap: 8px; margin-top: 24px; font-weight: 600; text-decoration: none; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease); }
.footer__ask:hover { background-size: 0 1px; background-position: 100% 100%; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h2 { margin: 0 0 8px; color: var(--dim); font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.footer__col a { text-decoration: none; position: relative; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__time { color: var(--dim); margin-top: 8px; font-variant-numeric: tabular-nums; }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 22px 0 26px; border-top: 1px solid var(--rule-dark); color: var(--dim); font-size: .875rem; }
.footer__motto { font-stretch: var(--wide); color: var(--white); letter-spacing: -0.005em; }
.footer__top-link { justify-self: end; text-decoration: none; color: var(--white); }
.footer__top-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact__alt { margin-top: 20px; color: #CFCFCF; }
.contact__alt a { color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ask Triad assistant */
.ask { position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 70; font-size: .9375rem; }
.ask__launch { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border: 0; border-radius: 4px; padding: 13px 18px 13px 14px; font-weight: 600; cursor: pointer; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); transition: transform .3s var(--ease), background .3s var(--ease); }
.ask__launch:hover { background: #2A2A2A; transform: translateY(-2px); }
.ask__mark { width: 22px; display: block; }
.ask__mark svg { display: block; width: 100%; height: auto; }
.ask.is-open .ask__launch { display: none; }
.ask__panel { width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100svh - 40px)); background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); display: flex; flex-direction: column; overflow: hidden; }
.ask__panel[hidden] { display: none; }
.ask__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.ask__head strong { display: block; font-stretch: var(--wide); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }
.ask__head span { color: var(--graphite); font-size: .8125rem; }
.ask__close { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; position: relative; }
.ask__close::before, .ask__close::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.ask__close::after { transform: rotate(-45deg); }
.ask__log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ask__msg { max-width: 88%; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask__msg a { color: inherit; text-underline-offset: 3px; }
.ask__msg--assistant { align-self: flex-start; }
.ask__msg--user { align-self: flex-end; background: var(--paper); padding: 10px 14px; border-radius: 8px 8px 2px 8px; }
.ask__msg.is-thinking { color: var(--graphite); }
.ask__msg.is-thinking::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: ask-dots 1.2s steps(4) infinite; }
@keyframes ask-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ask__starters { padding: 0 20px 12px; display: grid; }
.ask__starters[hidden] { display: none; }
.ask__starters button { text-align: left; background: none; border: 0; border-top: 1px solid var(--rule); padding: 11px 0; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ask__starters button::after { content: "\2197"; color: var(--graphite); }
.ask__starters button:hover { color: var(--graphite); }
.ask__handoff { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--rule); background: var(--paper); font-size: .875rem; flex-wrap: wrap; }
.ask__handoff[hidden] { display: none; }
.ask__handoff span { color: var(--graphite); margin-right: auto; }
.ask__handoff button, .ask__handoff a { background: var(--ink); color: var(--white); border: 0; border-radius: 4px; padding: 7px 11px; font-weight: 600; font-size: .8125rem; cursor: pointer; text-decoration: none; }
.ask__handoff a { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ask__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 12px 20px; border-top: 1px solid var(--rule); }
.ask__form textarea { flex: 1; resize: none; border: 0; outline: 0; font: inherit; padding: 8px 0; max-height: 120px; background: none; color: inherit; }
.ask__form button { background: var(--ink); color: var(--white); border: 0; border-radius: 4px; padding: 9px 14px; font-weight: 600; cursor: pointer; }
.ask__form button:disabled { opacity: .4; cursor: default; }
.ask__note { padding: 0 20px 12px; color: var(--dim); font-size: .75rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .header__desc, .header__time { display: none; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .header__nav { justify-self: end; }
}

@media (max-width: 960px) {
  :root { --header: 64px; }
  .header__nav, .header__cta { display: none; }
  .header__bar { grid-template-columns: auto 1fr auto; }
  .header__menu { display: block; grid-column: 3; }
  .header.menu-on { color: var(--white); background: transparent; box-shadow: none; transform: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-title, .section-note { grid-column: 1; }
  .hero__mark { width: 92vw; right: -30vw; top: calc(var(--header) + 40px); transform: none; opacity: .09; }
  .hero__title, .hero__aside { grid-column: 1 / -1; }
  .hero__foot { flex-direction: column; gap: 4px; }
  .index a { grid-template-columns: 1fr 28px; }
  .index__meta { display: none; }
  .preview { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .footer__top-link { justify-self: start; }
  .service summary, .service__body { grid-template-columns: 1fr 28px; }
  .service__line { display: none; }
  .service__body p { grid-column: 1; }
  .approach__grid { grid-template-columns: 1fr; }
  .approach__title { position: static; margin-bottom: 32px; }
  .stages { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .motto__row { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

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

/* The floating assistant button steps aside at the contact section, which has its own link to it. */
.ask__launch { transition: transform .45s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.ask.is-tucked .ask__launch { transform: translateY(140%); opacity: 0; pointer-events: none; }

