/* Amory agency site. Tokens from 01-amory/implementation/amory.tokens.json; composition from the three approved previews. */

@font-face {
  font-family: "Amory Display";
  src: url("/assets/fonts/SignylDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #123ba6;
  --paper: #f5eed8;
  --black: #171a20;
  --coral: #fa865b;
  --coral-deep: #e5583c;
  --teal: #79cfc2;
  --mist: #e2ece6;
  --max: 1460px;
  --gutter: clamp(20px, 3.9vw, 60px);
  --space: clamp(44px, 5vw, 76px);
  --rule: 1px solid currentColor;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Amory Display", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 clamp(17px, 1.72vw, 25px)/1.34 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* warm paper grain behind content, never over text */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .22 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; border-radius: 2px; }
p { margin: 0; text-wrap: pretty; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: 0; border-top: var(--rule); margin: 0; }

/* type */
.display { margin: 0; font-family: var(--display); font-weight: 900; font-synthesis: none; font-kerning: normal; letter-spacing: 0; word-spacing: .1em; line-height: .96; text-wrap: balance; }
.tabs a, .card .lbl { word-spacing: .1em; }
/* The display face's space is 0.115em, about half the gap ChatGPT's previews show between words; word-spacing restores it
   without touching letter spacing, which the type README fixes at 0. */
.h1 { font-size: clamp(54px, 10.4vw, 166px); }
.h2 { font-size: clamp(40px, 6.3vw, 98px); }
.h2-sm { font-size: clamp(34px, 4.9vw, 76px); }
.h3 { font-size: clamp(28px, 3.3vw, 50px); line-height: 1; }
.h3-sm { font-size: clamp(25px, 2.75vw, 42px); line-height: 1.02; }
.lede { font-size: clamp(19px, 1.85vw, 27px); line-height: 1.38; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 22px; border: 1.5px solid currentColor; border-radius: 3px; font: 600 19px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn .ico-arrow { width: .85em; height: .85em; transition: transform .25s var(--ease); }
.btn:hover .ico-arrow, .link-arrow:hover .ico-arrow { transform: translate(2px, -2px); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0d2f8c; }
.btn-lg { min-height: clamp(56px, 5.2vw, 76px); padding: 14px clamp(22px, 2.3vw, 34px); font-size: clamp(19px, 1.85vw, 27px); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: rgba(245, 238, 216, .1); }
.btn-coral { background: var(--coral-deep); border-color: var(--coral-deep); color: var(--paper); font-weight: 700; }
.btn-coral:hover { background: #d84c31; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 2px solid currentColor; font-weight: 600; font-size: clamp(19px, 1.85vw, 27px); text-decoration: none; }
.link-arrow .ico-arrow { width: .8em; height: .8em; transition: transform .25s var(--ease); }
.link-arrow.right:hover .ico-arrow { transform: translateX(3px); }
.circle-link { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.circle-link .ico-circle { width: 60px; height: 60px; }
.circle-link:hover { transform: translateX(4px); }

/* header */
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(16px, 1.7vw, 24px) clamp(14px, 1.5vw, 22px); border-bottom: var(--rule); }
.wordmark { display: block; width: clamp(130px, 14.2vw, 205px); }
.wordmark img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 42px); margin: 0; padding: 0; list-style: none; font: 500 clamp(16px, 1.36vw, 19.5px)/1.2 var(--body); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { min-height: clamp(46px, 3.6vw, 52px); padding: 10px clamp(16px, 1.6vw, 24px); font-size: inherit; font-weight: 500; }
.nav .btn:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; }
.hero-inner { position: relative; padding-block: clamp(28px, 3vw, 44px) clamp(40px, 4vw, 60px); border-bottom: var(--rule); min-height: clamp(520px, 49.5vw, 760px); }
.hero-copy { position: relative; z-index: 1; max-width: 66%; }
.hero-copy .h1 { margin-bottom: clamp(30px, 3.2vw, 52px); line-height: .82; }
.hero-copy .lede { max-width: 30em; margin-bottom: clamp(26px, 2.6vw, 38px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; }
.hero-art { position: absolute; right: calc(-1 * var(--gutter)); bottom: -1px; width: 52%; max-width: 900px; pointer-events: none; }
.hero-art svg { width: 100%; height: auto; }
.hero-home .hero-copy { max-width: 70%; }
.hero-home .h1 { font-size: clamp(54px, 11.4vw, 176px); line-height: .8; max-width: 5.6em; text-wrap: wrap; }
.hero-copy .lede { max-width: 30em; font-size: clamp(18px, 1.68vw, 24px); line-height: 1.34; }
.hero-seo .hero-copy .lede { max-width: 27em; font-size: clamp(18px, 1.8vw, 26px); }
.hero-home .hero-inner { padding-bottom: clamp(24px, 2vw, 30px); }
.hero-seo .hero-art { width: 50%; right: -8px; bottom: 0; }
.hero-approach .hero-copy { max-width: 77.5%; }
.hero-approach .h1 { font-size: clamp(54px, 9.9vw, 150px); }
.hero-approach .hero-copy .lede { max-width: 25em; font-size: clamp(18px, 1.85vw, 27px); }
.hero-approach .hero-art { width: 22.5%; right: 0; bottom: 0; }

/* services */
.services { padding-block: 34px 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 36px; border-bottom: var(--rule); }
.service { display: flex; flex-direction: column; padding: 0 clamp(20px, 2.6vw, 40px); }
.service:first-child { padding-left: 0; }
.service + .service { border-left: var(--rule); }
.service .art-service { width: clamp(220px, 23vw, 340px); height: auto; margin: 0 0 6px -18px; }
.service h3 { margin-bottom: 14px; font-size: clamp(26px, 2.9vw, 44px); }
.service p { margin-bottom: 24px; flex: 1; }

/* split rows: heading | rule | text */
.split { display: grid; grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr); align-items: start; }
.split > :last-child { padding-left: clamp(24px, 3.4vw, 52px); border-left: var(--rule); }
.split > :first-child { padding-right: clamp(24px, 3.4vw, 52px); }
.customer { padding-block: clamp(28px, 3vw, 44px); }
.customer .split { align-items: center; }

/* bands */
.band { position: relative; overflow: hidden; }
.band-ink { background: var(--ink); color: var(--paper); }
.band-coral { background: var(--coral); color: var(--ink); }
.band-mist { background: var(--mist); }
.band-ink::after, .band-coral::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band > .wrap { position: relative; z-index: 1; }

.platform .wrap { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); padding-block: clamp(32px, 3.6vw, 52px); }
.platform .main .h2 { max-width: 7.2em; text-wrap: wrap; }
.platform .main { padding-right: clamp(28px, 4vw, 64px); }
.platform .main .h2 { margin-bottom: 26px; }
.platform .main p:not(.eyebrow) { max-width: 760px; margin-bottom: 34px; font-size: clamp(18px, 1.92vw, 27.5px); line-height: 1.3; }
.platform .side { padding-left: clamp(28px, 4vw, 64px); border-left: var(--rule); }
.platform .side h3 { margin-bottom: 12px; }
.platform .side p { margin-bottom: 40px; }
.platform .art-band-peek { position: absolute; right: 0; bottom: -14px; width: clamp(200px, 24vw, 350px); z-index: 2; }

/* case study */
.case { padding-block: 36px 40px; border-bottom: var(--rule); }
.case-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px); }
.case-card { display: flex; flex-direction: column; align-items: flex-start; }
.case-card img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: 6px; margin-bottom: clamp(22px, 2vw, 30px); }
.case-h { margin-bottom: 18px; font-size: clamp(28px, 2.75vw, 42px); line-height: 1.02; text-wrap: balance; }
.case-card .link-arrow { margin-top: auto; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.case-tags li { padding: 7px 14px; border: var(--rule); border-radius: 2px; font-size: clamp(14px, 1.1vw, 16px); font-weight: 600; line-height: 1.2; }

/* principles in three columns */
.guides { padding-block: 34px 44px; border-bottom: var(--rule); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols3 > * { padding: 0 clamp(20px, 2.6vw, 40px); }
.cols3 > :first-child { padding-left: 0; }
.cols3 > * + * { border-left: var(--rule); }
.cols3 h3 { margin-bottom: 14px; text-wrap: wrap; }


/* closing CTA */
.cta .wrap { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 32px); min-height: clamp(200px, 17vw, 260px); padding-block: 32px; }
.cta .h2 { max-width: 7.8em; text-wrap: wrap; }
.cta-stack .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: clamp(18px, 1.8vw, 26px); min-height: clamp(240px, 23vw, 340px); }
.cta.cta-stack .h2 { font-size: clamp(40px, 7vw, 104px); }
.cta.cta-stack .art-cta-pair { width: clamp(260px, 41vw, 600px); }
.cta .h2 { flex: none; }
.cta .art-cta-pair { position: absolute; right: 0; bottom: -2px; width: clamp(240px, 31vw, 450px); z-index: 0; }

/* footer */
.site-footer .wrap { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-block: 26px 40px; }
.site-footer .wordmark { width: clamp(130px, 13vw, 190px); flex: none; }
.site-footer .line { flex: 1; border-top: var(--rule); }
.site-footer nav ul { display: flex; gap: clamp(18px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; font-weight: 500; font-size: clamp(17px, 1.6vw, 23px); }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer small { font-size: clamp(15px, 1.4vw, 20px); white-space: nowrap; }

/* SEO page */
.tabs ul { display: flex; margin: 0; padding: 0; list-style: none; border-block: var(--rule); }
.tabs li { position: relative; flex: 1 1 auto; display: flex; justify-content: center; }
.tabs li:first-child { justify-content: flex-start; }
.tabs li:last-child { justify-content: flex-end; }
.tabs li + li::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; border-left: var(--rule); }
.tabs a { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 26px); min-height: clamp(76px, 9vw, 132px); padding: 12px clamp(12px, 1.8vw, 26px); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: clamp(17px, 1.95vw, 28px); white-space: nowrap; }
.tabs li:last-child a { padding-right: 0; }
.tabs li:first-child a { justify-content: flex-start; padding-left: 0; }
.tabs a svg { width: clamp(34px, 4vw, 58px); height: clamp(34px, 4vw, 58px); flex: none; transition: transform .3s var(--ease); }
.tabs a:hover svg { transform: translateY(-3px) rotate(-4deg); }
.tabs a:hover span { text-decoration: underline; text-underline-offset: .2em; }

.pillar { position: relative; padding-top: 38px; }
.pillar-row { display: grid; grid-template-columns: clamp(110px, 13.6vw, 200px) minmax(0, 1fr) clamp(170px, 20vw, 300px); gap: 0; align-items: start; }
.pillar-num { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 9.4vw, 150px); line-height: .86; padding-right: 20px; }
.pillar-body { padding-left: clamp(24px, 3vw, 44px); border-left: var(--rule); padding-bottom: 30px; }
.pillar-body .h2 { margin-bottom: 22px; font-size: clamp(40px, 6.2vw, 92px); text-wrap: wrap; }
.pillar-body p { max-width: 920px; font-size: clamp(17px, 1.6vw, 23px); line-height: 1.45; }
.pillar .art-pillar { width: 100%; height: auto; align-self: end; margin-top: -12px; }
.scope { display: flex; margin: 0; padding: 0; list-style: none; border-top: var(--rule); }
.scope li { flex: 1 1 0; padding: clamp(14px, 1.6vw, 22px) 16px; text-align: center; font-weight: 600; font-size: clamp(16px, 1.65vw, 24px); line-height: 1.2; }
.scope li:first-child { text-align: left; padding-left: 0; }
.scope li:last-child { text-align: right; padding-right: 0; }
.scope li { position: relative; }
.scope li + li::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; border-left: var(--rule); }

.ai .wrap { padding-block: 46px 0; }
.ai .ai-row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 24vw, 340px); align-items: end; }
.ai .h2 { margin-bottom: 20px; font-size: clamp(56px, 10vw, 160px); }
.ai p:not(.eyebrow) { max-width: 1040px; padding-bottom: 28px; font-size: clamp(17px, 1.75vw, 25px); }
.ai .art-ai-peek { width: 100%; height: auto; margin-bottom: -1px; }
.ai .scope { border-color: var(--paper); }

.measure { padding-block: 44px; }
.icon-row { display: grid; grid-template-columns: clamp(120px, 15vw, 220px) minmax(0, 1fr); align-items: center; }
.icon-row .ico { padding-right: 20px; }
.icon-row .ico svg { width: clamp(64px, 8.4vw, 124px); height: clamp(64px, 8.4vw, 124px); }
.icon-row .txt { padding-left: clamp(24px, 3vw, 44px); border-left: var(--rule); padding-block: 4px; }
.icon-row .txt .h2-sm { margin-bottom: 18px; }
.icon-row + .icon-row { margin-top: 36px; padding-top: 36px; border-top: var(--rule); }

/* approach page */
.diagnosis { position: relative; overflow: hidden; padding-top: 34px; }
.diagnosis .wrap { position: relative; }
.diagnosis .h2 { max-width: 80%; margin-bottom: 26px; font-size: clamp(40px, 6vw, 94px); }
.diagnosis .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 78%; padding-bottom: 54px; font-size: clamp(17px, 1.78vw, 25.5px); }
.diagnosis .two > :first-child { padding-right: clamp(24px, 3vw, 44px); }
.diagnosis .two > :last-child { padding-left: clamp(24px, 3vw, 44px); border-left: var(--rule); }
.diagnosis .art-diagnosis { position: absolute; right: calc(-1 * var(--gutter)); bottom: -2px; width: 28%; max-width: 440px; }

.capacity .wrap { padding-block: clamp(28px, 2.8vw, 40px) 48px; }
.capacity .h2 { max-width: 90%; margin-bottom: 40px; font-size: clamp(40px, 7.4vw, 116px); }
.capacity .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 86%; }
.capacity .two > :first-child { padding-right: clamp(24px, 3vw, 52px); }
.capacity .two > :last-child { padding-left: clamp(24px, 3vw, 52px); border-left: var(--rule); }
.capacity .two h3 { margin-bottom: 14px; }
.capacity .two p:not(.eyebrow) { font-size: clamp(17px, 1.85vw, 27px); }
.capacity .after { max-width: 76%; margin-top: 40px; padding-top: 34px; border-top: var(--rule); font-size: clamp(17px, 1.85vw, 27px); }
.capacity .art-pair-peek { position: absolute; right: 0; bottom: -2px; width: clamp(220px, 26vw, 400px); z-index: 2; }

.principles { padding-block: 36px 0; }
.principle { display: grid; grid-template-columns: clamp(110px, 13.4vw, 200px) minmax(0, 1fr) minmax(0, 1.36fr); align-items: center; padding-block: clamp(20px, 2.2vw, 32px); }
.principle + .principle { border-top: var(--rule); }
.principle .num { font-family: var(--display); font-weight: 900; font-size: clamp(60px, 8.2vw, 130px); line-height: .86; }
.principle .h3 { padding: 6px clamp(20px, 3vw, 44px); border-left: var(--rule); font-size: clamp(26px, 3vw, 44px); text-wrap: wrap; }
.principle p:not(.num) { padding: 6px 0 6px clamp(20px, 3vw, 44px); border-left: var(--rule); font-size: clamp(17px, 1.85vw, 27px); line-height: 1.38; }
.principles-list { border-bottom: var(--rule); }

.knowledge { padding-block: 40px 30px; border-bottom: var(--rule); }
.knowledge .h2 { margin-bottom: 22px; }
.knowledge > .wrap > p:not(.eyebrow) { max-width: 88%; margin-bottom: 34px; font-size: clamp(17px, 1.85vw, 27px); line-height: 1.4; }
.cards { position: relative; padding: 26px clamp(12px, 2vw, 34px) 12px; }
.card-list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); margin: 0; padding: 0; list-style: none; }
.cards .leafs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.card { position: relative; display: flex; align-items: center; gap: 16px; min-height: clamp(130px, 13vw, 190px); padding: 26px 20px; }
.card .paper { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.card .scrap { position: absolute; top: -18px; left: 22%; width: 52%; height: 38px; transform: rotate(-4deg); }
.card .ico-k { position: relative; width: clamp(44px, 5vw, 72px); height: clamp(44px, 5vw, 72px); flex: none; color: var(--ink); }
.card .lbl { position: relative; font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.35vw, 35px); line-height: 1.02; }
.card .lbl::after { content: ""; display: block; height: 7px; margin-top: 10px; border-radius: 6px; background: var(--u); opacity: .85; transform: rotate(-1deg); }


/* character life: blinking, antenna sway, waving, excitement ticks. Only with JS and motion allowed. */
.robot .r-eyes { transform-box: view-box; transition: transform .09s ease-in; }
.robot.blink .r-eyes { transform: scaleY(.12); }
.robot .r-pupil { transition: transform .35s var(--ease); }
.motion .r-antenna { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5.5s ease-in-out infinite; }
.motion .r-wave { transform-box: fill-box; transform-origin: 20% 90%; animation: wave 2.6s ease-in-out infinite; }
.motion .r-ticks { transform-box: fill-box; transform-origin: 50% 100%; animation: tick 2.4s ease-in-out infinite; }
.motion .r-sound { animation: sound 1.6s ease-in-out infinite; }
.motion .r-sound-2 { animation-delay: .2s; }
.motion .r-pencil { transform-box: fill-box; transform-origin: 50% 100%; animation: scribble 3.2s ease-in-out infinite; }
.motion .r-glass { transform-box: fill-box; transform-origin: 20% 80%; animation: scan 4s ease-in-out infinite; }
.motion .art-home-hero .r-big { animation: bob 6s ease-in-out infinite; }
.motion .r-big-arm { transform-box: view-box; transform-origin: 392px 470px; animation: draw 4.2s ease-in-out infinite; }
@keyframes sway { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-7deg); } 88% { transform: rotate(5deg); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes tick { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.88); } }
@keyframes sound { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes scribble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }
@keyframes scan { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-3px, 2px) rotate(-8deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes draw { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg); } }

/* reveal on scroll */
.js.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js.motion [data-reveal].is-in { opacity: 1; transform: none; }
.js.motion [data-rise] { transform: translateY(42%); transition: transform 1s var(--ease) .15s; }
.js.motion [data-rise].is-in { transform: none; }

@media (max-width: 1100px) {
  .pillar-row { grid-template-columns: 120px minmax(0, 1fr) 170px; }
  .principle { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.2fr); }
  .hero-inner { min-height: 540px; }
  .cta:not(.cta-stack) .art-cta-pair { width: clamp(240px, 26vw, 450px); }
}

/* the closing band stacks its button under the heading before it reaches the robots */
@media (max-width: 960px) {
  .cta:not(.cta-stack) .wrap { flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 800px) {
  body { font-size: 17px; }
  .site-header .bar { padding-block: 18px 14px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid currentColor; border-radius: 3px; background: none; color: inherit; font: 600 16px/1 var(--body); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: var(--rule); }
  .nav.open { display: flex; }
  .nav a { min-height: 52px; font-size: 19px; border-bottom: 1px solid rgba(18, 59, 166, .2); }
  .nav li:last-child a { margin-top: 14px; justify-content: center; border-bottom: 1.5px solid currentColor; }
  .site-header { position: relative; }
  .hero-inner { min-height: 0; padding-block: 28px 0; }
  .hero-art { position: relative; right: auto; width: 100%; max-width: 460px; margin: 20px calc(-1 * var(--gutter)) 0 auto; }
  .hero-seo .hero-art, .hero-approach .hero-art { width: 80%; right: auto; }
  .hero-approach .hero-art { width: 40%; margin-right: 0; }
  .hero-copy .lede { margin-bottom: 26px; }
  .btn-lg { min-height: 56px; font-size: 19px; }
  .link-arrow { font-size: 19px; }
  .service-grid, .cols3 { grid-template-columns: 1fr; }
  .service, .cols3 > * { padding: 28px 0 0; }
  .service + .service, .cols3 > * + * { border-left: 0; border-top: var(--rule); margin-top: 28px; }
  .service .art-service { width: 190px; }
  .split, .case-cards, .platform .wrap, .diagnosis .two, .capacity .two { grid-template-columns: 1fr; }
  .hero-home .hero-copy, .hero-seo .hero-copy, .hero-approach .hero-copy { max-width: none; }
  .diagnosis .h2, .diagnosis .two, .capacity .h2, .capacity .two, .capacity .after, .knowledge > .wrap > p:not(.eyebrow) { max-width: none; }
  .br-wide { display: none; }
  .split > :first-child, .platform .main, .diagnosis .two > :first-child, .capacity .two > :first-child { padding-right: 0; }
  .split > :last-child, .platform .side, .diagnosis .two > :last-child, .capacity .two > :last-child { padding-left: 0; border-left: 0; padding-top: 22px; margin-top: 22px; border-top: var(--rule); }
  .platform .side { padding-bottom: 120px; }
  .platform .art-band-peek { width: 170px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; padding-bottom: 170px; }
  .cta .art-cta-pair { width: 250px; }
  .site-footer .wrap { flex-wrap: wrap; }
  .site-footer .line { display: none; }
  .tabs ul { display: grid; grid-template-columns: 1fr 1fr; }
  .tabs li, .tabs li:last-child { justify-content: flex-start; }
  .tabs li + li::before { display: none; }
  .tabs li:nth-child(even) { border-left: var(--rule); }
  .tabs li:nth-child(n+3) { border-top: var(--rule); }
  .tabs a, .tabs li:first-child a, .tabs li:last-child a { padding: 12px; min-height: 68px; gap: 12px; white-space: normal; }
  .tabs li:nth-child(odd) a { padding-left: 0; }
  .pillar-row { grid-template-columns: 64px minmax(0, 1fr); }
  .pillar-num { font-size: 46px; padding-right: 8px; }
  .pillar-body { padding-left: 18px; }
  .pillar .art-pillar { grid-column: 2; max-width: 210px; justify-self: end; margin-top: 0; }
  .scope { flex-wrap: wrap; }
  .scope li, .scope li:first-child, .scope li:last-child { flex: 1 1 50%; text-align: left; padding: 14px 12px 14px 0; border-left: 0; }
  .scope li + li::before { display: none; }
  .ai .ai-row { grid-template-columns: 1fr; }
  .ai .art-ai-peek { width: 210px; justify-self: end; }
  .icon-row { grid-template-columns: 64px minmax(0, 1fr); }
  .icon-row .ico svg { width: 46px; height: 46px; }
  .icon-row .txt { padding-left: 18px; }
  .diagnosis .art-diagnosis { position: relative; right: auto; width: 76%; margin-left: auto; margin-right: calc(-1 * var(--gutter)); }
  .diagnosis .two { padding-bottom: 8px; }
  .capacity .after { padding-right: 0; padding-bottom: 130px; }
  .capacity .art-pair-peek { width: 210px; }
  .principle { grid-template-columns: 64px minmax(0, 1fr); gap: 0; }
  .principle .num { font-size: 46px; grid-row: span 2; align-self: start; }
  .principle .h3 { padding: 0 0 10px 18px; }
  .principle p:not(.num) { padding: 0 0 0 18px; }
  .cards { padding-inline: 0; }
  .card-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .card-list { grid-template-columns: 1fr; }
  .tabs ul { grid-template-columns: 1fr; }
  .tabs li:nth-child(even) { border-left: 0; }
  .tabs li + li { border-top: var(--rule); }
  .tabs li a, .tabs li:nth-child(odd) a { padding-left: 0; }
}

/* Phones: Daydream's mobile spacing, measured on withdaydream.com at 390 px (23 Oct 2026) and set in Amory's own type and
   colours. Daydream: 24 px side margins; sections open about 80 px above their first line and close about 60 px below
   their last; body 17/1.5; headings 48, 32 and 24 at 1.06; heading to text 16; text to button 32; buttons
   full width, stacked 12 apart. Kept from Amory on purpose: the display face and its weight, left-aligned text, the rules. */
@media (max-width: 800px) {
  :root { --gutter: 24px; --m-top: 80px; --m-bottom: 64px; --m-item: 44px; }
  body { font-size: 17px; line-height: 1.5; }
  .lede, .hero-copy .lede, .platform .main p:not(.eyebrow), .ai p:not(.eyebrow), .diagnosis .two,
  .capacity .after, .principle p:not(.num), .knowledge > .wrap > p:not(.eyebrow) { font-size: 17px; line-height: 1.5; }
  .display { line-height: 1.06; }
  .h1, .hero-home .h1, .hero-approach .h1, .hero-copy .h1 { font-size: 48px; line-height: 1.02; max-width: none; }
  .h2, .h2-sm { font-size: 32px; }
  .h3, .principle .h3 { font-size: 24px; line-height: 1.1; }
  .h3-sm { font-size: 22px; line-height: 1.1; }
  .service h3 { font-size: 24px; }
  .cta.cta-stack .h2, .pillar-body .h2, .ai .h2, .diagnosis .h2, .capacity .h2 { font-size: 32px; margin-bottom: 16px; }

  /* the opening */
  .hero-inner { padding-block: 72px 0; }
  .hero-copy .h1 { margin-bottom: 16px; }
  .hero-copy .lede { margin-bottom: 32px; }
  .actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .actions .link-arrow { align-self: flex-start; }
  .btn-lg { width: 100%; min-height: 48px; padding: 12px 20px; font-size: 17px; }
  .link-arrow { font-size: 17px; }
  .hero-art { margin-top: 48px; max-width: 380px; }

  /* sections */
  .services, .customer, .case, .guides, .measure, .principles, .knowledge { padding-block: var(--m-top) var(--m-bottom); }
  .platform .wrap, .capacity .wrap, .ai .wrap { padding-block: var(--m-top) var(--m-bottom); }
  .diagnosis, .pillar { padding-top: var(--m-top); }
  .service-grid { padding-bottom: 0; border-bottom: 0; }
  .service, .cols3 > * { padding: 0; }
  .service + .service, .cols3 > * + * { margin-top: var(--m-item); padding-top: var(--m-item); }
  .service .h3, .cols3 .h3-sm { margin-bottom: 12px; }
  .service .circle-link { margin-top: 20px; }
  .split > :last-child, .platform .side, .diagnosis .two > :last-child, .capacity .two > :last-child { padding-top: 0; margin-top: 16px; border-top: 0; }
  .platform .main .h2 { margin-bottom: 16px; }
  .platform .main p:not(.eyebrow) { margin-bottom: 32px; }
  .platform .side { margin-top: var(--m-item); padding-top: var(--m-item); border-top: var(--rule); }
  .platform .side h3 { margin-bottom: 8px; }
  .platform .side p { margin-bottom: 32px; }
  .case-cards { gap: 56px; }
  .case-h { margin-bottom: 16px; font-size: 32px; }
  .case-card img { margin-bottom: 24px; }
  .case-tags { margin-bottom: 24px; }
  .cta .wrap { padding-top: var(--m-top); gap: 32px; align-items: stretch; }
  .cta .btn-lg { width: 100%; }
  .site-footer .wrap { padding-block: 48px 64px; gap: 24px; }
  .pillar-body { padding-bottom: var(--m-bottom); }
  .pillar-body .h2 { margin-bottom: 16px; }
  .icon-row + .icon-row { margin-top: var(--m-item); padding-top: var(--m-item); }
  .diagnosis .two { padding-bottom: 32px; }
  .capacity .after { margin-top: var(--m-item); padding-top: var(--m-item); }
  .principle { padding-block: 32px; }
  /* numbered and icon rows stack full width, number or icon first, as Daydream's method cards do */
  .pillar-row, .icon-row, .principle { grid-template-columns: minmax(0, 1fr); }
  .pillar-num, .principle .num { font-size: 32px; line-height: 1; padding: 0; margin-bottom: 12px; grid-row: auto; }
  .pillar-body, .icon-row .txt { padding-left: 0; border-left: 0; }
  .pillar .art-pillar { grid-column: 1; }
  .icon-row .ico { padding: 0; margin-bottom: 16px; }
  .icon-row .ico svg { width: 44px; height: 44px; }
  .icon-row .txt .h2-sm { margin-bottom: 16px; }
  .principle .h3, .principle p:not(.num) { padding: 0; border-left: 0; }
  .principle .h3 { padding-bottom: 12px; }
  .capacity .two { margin-top: 32px; }
  .capacity .two h3 { margin-bottom: 8px; }
}

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