/* ryanschrope.com: editorial, black and white, one green. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --soft: #f3f3f1;
  --green: #0fb47c;
  --green-hi: #13d693;
  --mute-l: #55554f;
  --mute-d: #a6a6a6;
  --rule-l: rgba(0, 0, 0, .14);
  --rule-d: rgba(255, 255, 255, .16);
  --gut: clamp(20px, 4vw, 56px);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --nav: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--green); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 780px; margin-inline: auto; padding-inline: var(--gut); text-align: center; }
h2, h3, .ihelp, .pull, h1, .nav-mark, .foot-mail { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.005em; text-wrap: balance; }
em { font-style: italic; }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--mute-l); }
.label--dark { color: var(--mute-d); }
.pull { font-style: italic; font-size: clamp(1.5rem, 2.4vw, 1.8rem); line-height: 1.2; color: var(--ink); text-wrap: balance; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: var(--green-hi); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2a2a; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); background: var(--paper); border-bottom: 1px solid var(--rule-l); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-inline: var(--gut); }
.nav-side { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.nav-side--end { justify-content: flex-end; }
.nav-side a:hover { color: var(--mute-l); }
.nav-mark { font-size: 26px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.nav-side .nav-cta { border-bottom: 2px solid var(--green); padding-bottom: 2px; }
@media (max-width: 820px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-side:first-child, .hide-sm { display: none; }
  .nav-side { font-size: 10.5px; letter-spacing: .12em; }
}

/* Top: black-and-white loop in a band. Left column is the name and portrait, right column is the I help line and CTA. */
.top { --band: clamp(280px, min(44vh, 34vw), 480px); --pad: clamp(20px, 3.4vh, 36px); position: relative; isolation: isolate; display: flow-root; background: var(--soft); padding-bottom: clamp(48px, 6vw, 80px); }
.top-band { position: absolute; inset: 0 0 auto 0; z-index: -1; height: var(--band); overflow: hidden; background: var(--ink); }
.hero-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.top-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10, 10, 10, .82), rgba(10, 10, 10, .7) 44%, rgba(10, 10, 10, .24) 72%, rgba(10, 10, 10, .3)); }
.top-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "title copy" "card copy"; column-gap: clamp(36px, 5vw, 72px); padding-top: var(--pad); }
.top h1 { grid-area: title; color: var(--paper); font-size: clamp(4rem, min(9.5vw, 18vh), 8.6rem); line-height: .95; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.top h1 em { color: var(--green); }
.hero-card { grid-area: card; width: min(100%, 50vh); margin-top: clamp(10px, 1.6vh, 18px); }
.top-copy { grid-area: copy; padding-top: calc(var(--band) - var(--pad) + clamp(22px, 4vh, 40px)); }
.ihelp { font-size: clamp(1.8rem, min(3.2vw, 5.6vh), 3rem); line-height: 1.12; margin-top: 12px; text-wrap: pretty; }
.cta-row { margin-top: clamp(18px, 3vh, 28px); }
@media (max-width: 760px) {
  .top { --band: clamp(200px, 56vw, 320px); }
  .top-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "title" "copy" "card"; padding-top: 0; }
  .top h1 { font-size: clamp(3.2rem, 14.5vw, 5.4rem); padding-top: calc(var(--band) - 1.14em); }
  .top-copy { padding-top: 24px; }
  .ihelp { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  .hero-card { width: 100%; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-loop { display: none; }
  .top-band { background: var(--ink) url("/assets/img/hero-poster.webp") center 42% / cover no-repeat; }
}
.cred { max-width: 1120px; margin: clamp(40px, 5vw, 64px) auto 0; padding-inline: var(--gut); display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.cred li + li { border-left: 1px solid var(--rule-l); }
.cred li { padding-inline: 8px; }
.cred b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.1; }
.cred span { display: block; margin-top: 6px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-l); line-height: 1.4; }
@media (max-width: 760px) {
  .cred { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .cred li + li { border-left: 0; }
  .cred li:last-child { grid-column: 1 / -1; }
}

/* Story */
.story { padding-block: clamp(64px, 9vw, 120px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.story-copy { display: grid; gap: 18px; }
.story-copy p:not(.label):not(.pull), .today p:not(.pull) { color: var(--mute-l); max-width: 34em; text-wrap: pretty; }

/* Today */
.today { background: var(--soft); padding-block: clamp(56px, 7vw, 96px); }
.today-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.today-grid > div { display: grid; gap: 18px; }
.today figure { margin-block: calc(-1 * clamp(0px, 4vw, 56px)); }

/* All about / not about */
.about-not { padding-block: clamp(72px, 9vw, 120px); }
.an-grid { max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.an-grid .narrow { padding-inline: 0; }
.an-pic img { width: 100%; }
.an-pic:last-child { margin-top: clamp(0px, 5vw, 72px); }
.an-pic:first-child { margin-bottom: clamp(0px, 5vw, 72px); }
.about-not h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.about-not p { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; margin-top: 10px; text-wrap: balance; }
.rule { display: block; width: 120px; height: 1px; background: var(--rule-l); margin: 34px auto; }
.text-link { display: inline-block; margin-top: 36px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; border-bottom: 2px solid var(--green); padding-bottom: 3px; }

/* Facts */
.facts { background: var(--ink); color: var(--paper); }
.facts-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 7vw, 90px); }
.facts ol { margin-top: 18px; }
.facts li { display: grid; grid-template-columns: 52px minmax(0, 1fr); padding-block: 18px; border-bottom: 1px solid var(--rule-d); }
.facts li:last-child { border-bottom: 0; }
.facts li > span { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--green); }
.facts h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.15; }
.facts li p { color: var(--mute-d); font-size: 14.5px; margin-top: 4px; }
.facts-card { margin: 0 14px 14px 0; box-shadow: 14px 14px 0 var(--green); }
.facts-card img { width: 100%; }

/* Companies */
.companies { padding-block: clamp(64px, 9vw, 120px); }
.co-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.co img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border: 1px solid var(--rule-l); }
.co div { background: var(--paper); position: relative; margin: -34px 0 0 0; width: 88%; padding: 16px 18px 4px 0; }
.co h3 { font-size: 1.5rem; line-height: 1.1; }
.co p { color: var(--mute-l); font-size: 14.5px; margin-top: 6px; line-height: 1.45; }
@media (hover: hover) { .co:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.co-free { margin-top: 36px; color: var(--mute-l); }
.co-free a { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--green); }

/* Free scan: white card sitting across the split */
.scan { background: linear-gradient(to bottom, var(--soft) 0 70%, var(--ink) 70% 100%); padding: clamp(56px, 7vw, 90px) var(--gut) 0; }
.scan-card { max-width: 1000px; margin-inline: auto; background: var(--paper); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; padding: clamp(24px, 4.5vw, 56px); }
.scan-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border: 10px solid var(--ink); border-radius: 14px; }
.scan-card > div { display: grid; gap: 14px; justify-items: start; }
.scan-card p:not(.label) { color: var(--mute-l); }
.scan-card .btn { margin-top: 8px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding-block: clamp(64px, 8vw, 100px) 28px; text-align: center; }
.foot-mail { display: inline-block; margin-top: 12px; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.1; overflow-wrap: anywhere; transition: color .2s; }
.foot-mail:hover { color: var(--green); }
.social { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; margin-top: 26px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.social a { display: inline-block; padding: 6px 0; }
.social a:hover { color: var(--green); }
.legal { margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--rule-d); display: flex; justify-content: space-between; gap: 10px 40px; flex-wrap: wrap; text-align: left; font-size: 12px; line-height: 1.5; color: #8f8f8f; }
.legal p:first-child { max-width: 62em; }

@media (max-width: 820px) {
  .story-grid, .today-grid, .facts-grid, .scan-card { grid-template-columns: minmax(0, 1fr); }
  .story-pic, .today figure { max-width: 480px; }
  .today figure { margin-block: 0; }
  .facts-card { max-width: 420px; }
  .an-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .an-grid .narrow { grid-column: 1 / -1; grid-row: 1; margin-bottom: 18px; }
  .an-pic:first-child, .an-pic:last-child { margin-block: 0; }
  .scan { background: linear-gradient(to bottom, var(--soft) 0 86%, var(--ink) 86% 100%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition-duration: .01ms !important; } }
@media (max-width: 640px) { .co-grid { grid-template-columns: minmax(0, 1fr); } }
