/* ashleywilson.ai — studio theme. Wayfinding-inspired: one grotesk, hairlines, numbered lines. */
:root {
  --paper: #ffffff;
  --wash: #f4f3ef;
  --ink: #0c0c0c;
  --muted: #6b6b6b;
  --line: #d9d7d0;
  --signal: #ff4a1c;
  --l1: #d6246e; --l2: #0e8f6a; --l3: #e8890c; --l4: #b3261e; --l5: #2447f9; --l6: #f2c200;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --head: 'Newsreader', Georgia, 'Times New Roman', serif;
  --hw: 500;
  --track: -0.03em;
  --track-xl: -0.04em;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { padding: 0 var(--gutter); max-width: 1560px; margin: 0 auto; }

/* two-column rhythm: narrow label rail, wide content */
.rail { display: grid; grid-template-columns: minmax(150px, 2fr) 10fr; gap: var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 6px; }
section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--ink); }
h1, h2, h3 { font-family: var(--head, var(--sans)); font-weight: var(--hw, 600); letter-spacing: var(--track, -0.03em); word-spacing: 0.06em; line-height: 1; }
h2 { font-size: clamp(36px, 5.2vw, 76px); max-width: 16ch; }
.sub { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); max-width: 46ch; margin-top: 24px; line-height: 1.4; }
.link { border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-weight: 500; transition: color 0.15s, border-color 0.15s; }
.link:hover { color: var(--signal); border-color: var(--signal); }

/* line badges, like transit bullets */
.ln { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; color: #fff; font-family: var(--sans); font-weight: 700; font-size: 0.82em; letter-spacing: 0; flex: none; }
.ln.l1 { background: var(--l1); } .ln.l2 { background: var(--l2); } .ln.l3 { background: var(--l3); }
.ln.l4 { background: var(--l4); } .ln.l5 { background: var(--l5); } .ln.l6 { background: var(--l6); color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink); }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.mark { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.mark i { width: 12px; height: 12px; background: var(--signal); display: block; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; align-items: center; }
.nav a:hover { color: var(--signal); }
.nav-toggle { display: none; background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { border-top: 0; padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(44px, 7.8vw, 132px); letter-spacing: var(--track-xl, -0.035em); line-height: 0.95; max-width: 13ch; }
.hero h1 .untyped { visibility: hidden; }
.hero h1 .caret { display: inline-block; width: 0; height: 0.8em; position: relative; vertical-align: baseline; }
.hero h1 .caret::after { content: ''; position: absolute; left: 0.04em; bottom: -0.06em; width: 0.07em; height: 0.86em; background: var(--signal); animation: caret 0.9s steps(1) infinite; }
.hero h1 .caret.done::after { animation: none; opacity: 0; transition: opacity 0.4s; }
@keyframes caret { 50% { opacity: 0; } }
.hero-foot { display: grid; grid-template-columns: 5fr 5fr; gap: var(--gutter); margin-top: clamp(36px, 5vw, 72px); align-items: end; }
.quote { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -0.01em; max-width: 24ch; }
.quote em { font-style: italic; }
.hero-copy { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; }
.hero-copy p { color: var(--muted); }
.hero-copy p strong { color: var(--ink); font-weight: 500; }
.actions { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 22px; font-size: 17px; }

.board { background: var(--ink); color: #fff; }
.board-in { display: grid; grid-template-columns: repeat(5, 1fr); }
.board-in div { padding: 18px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; text-transform: uppercase; color: #a9a9a9; border-left: 1px solid #333; }
.board-in div:first-child { border-left: 0; padding-left: 0; }
.board-in b { display: block; color: #fff; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; margin-bottom: 2px; }

/* work index */
.index { margin-top: clamp(36px, 4vw, 64px); border-top: 1px solid var(--ink); }
.index a { display: grid; grid-template-columns: 44px 2.4fr 5fr 1.4fr 3.4fr 24px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: background 0.12s, padding 0.12s; }
.index a:hover { background: var(--wash); padding-left: 10px; padding-right: 10px; }
.index .nm { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }
.index .ds { color: var(--muted); font-size: 16px; }
.index .mt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.index .ar { text-align: right; }

/* work tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(40px, 5vw, 80px) var(--gutter); margin-top: clamp(48px, 6vw, 96px); }
.tile { display: block; grid-column: span 2; }
.tile.big { grid-column: span 3; }
.th { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; min-height: 5.6em; }
.th .ln { font-size: 17px; margin-top: 4px; }
.th h3 { font-size: clamp(26px, 2.4vw, 36px); }
.tile.big .th h3 { font-size: clamp(34px, 3.6vw, 56px); }
.th .does { color: var(--ink); margin-top: 8px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.35; max-width: 34ch; }
.tile .hard { margin-top: 18px; font-size: 16px; }
.tile .hard b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 6px; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: clamp(36px, 4vw, 64px); padding-top: 14px; border-top: 1px solid var(--line); }
.tile.full { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; }
.frame { background: var(--wash); padding: clamp(16px, 2.4vw, 36px); overflow: hidden; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border: 1px solid var(--ink); }
.screen iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.photo { aspect-ratio: 4 / 5; overflow: hidden; background: #050805; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
a.tile:hover .photo img { transform: scale(1.03); }
.cap { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; }
.cap h3 { font-size: clamp(24px, 2.4vw, 34px); display: flex; gap: 12px; align-items: center; }
.cap .mt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-left: auto; white-space: nowrap; }
.tile p { color: var(--muted); max-width: 52ch; margin-top: 10px; }
.tile .go { display: inline-block; margin-top: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
a.tile:hover .go { color: var(--signal); border-color: var(--signal); }
.tile.full h3 { font-size: clamp(40px, 6vw, 96px); letter-spacing: var(--track-xl, -0.035em); display: flex; gap: 0.2em; align-items: center; }
.tile.full h3 .ln { font-size: 0.42em; }
.tile.full p { font-size: clamp(17px, 1.5vw, 21px); margin-top: 20px; }
.stack-list { margin-top: 22px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); max-width: 520px; }
.stack-list span { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }

/* practice */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 80px); border-top: 1px solid var(--ink); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols.three .col h3 { font-size: clamp(26px, 2.6vw, 40px); max-width: 14ch; }
.cols.three .col p { font-size: 17px; max-width: 38ch; }
.col .no { text-transform: uppercase; letter-spacing: 0.04em; }
.col { padding: 22px 22px 8px; border-left: 1px solid var(--line); }
.col:first-child { border-left: 0; padding-left: 0; }
.col .no { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.col h3 { font-size: clamp(22px, 2vw, 28px); margin: 44px 0 12px; line-height: 1.05; }
.col p { color: var(--muted); font-size: 16px; }
.col ul { list-style: none; margin-top: 18px; font-size: 15px; }
.col li { padding: 9px 0; border-top: 1px solid var(--line); }
.pay { margin-top: 26px; background: var(--wash); padding: 16px 18px; font-size: 17px; font-weight: 500; line-height: 1.35; }
.pay span { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }

/* about */
.about { display: grid; grid-template-columns: 4fr 6fr; gap: var(--gutter); align-items: end; }
.about .portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about .quote { max-width: 20ch; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.1; }
.about p.bio { color: var(--muted); max-width: 50ch; margin-top: 26px; font-size: clamp(17px, 1.4vw, 20px); }
.figs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.fig { padding: 18px 16px 0; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig b { display: block; font-size: clamp(40px, 5vw, 80px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.fig span { display: block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* speaking form */
.topics { margin-top: 28px; border-top: 1px solid var(--line); max-width: 420px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
.topics span { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); }
.speak { display: grid; grid-template-columns: 5fr 5fr; gap: var(--gutter); }
.speak-form { position: relative; }
.hp-field { position: absolute; left: -9999px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { border-bottom: 1px solid var(--ink); padding: 14px 0 6px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.req { color: var(--signal); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; padding: 6px 0; border: 0; background: transparent; color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.field input::placeholder, .field textarea::placeholder { color: #b5b3ac; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field:focus-within { border-bottom-color: var(--signal); box-shadow: 0 1px 0 var(--signal); }
.field textarea { min-height: 96px; resize: vertical; }
.speak-submit { margin-top: 26px; background: var(--ink); color: #fff; border: 0; font: inherit; font-weight: 500; padding: 16px 26px; cursor: pointer; }
.speak-submit:hover { background: var(--signal); }
.form-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.speak-success { position: absolute; inset: 0; background: var(--paper); display: none; flex-direction: column; justify-content: center; gap: 10px; }
.speak-success.show { display: flex; }
.speak-success h3 { font-size: 40px; }
.success-check { width: 48px; height: 48px; fill: none; stroke: var(--l2); stroke-width: 3; }

/* close */
.close { background: var(--ink); color: #fff; border-top: 0; }
.close .label { color: #8d8d8d; }
.close h2 { max-width: 14ch; font-size: clamp(44px, 8vw, 132px); letter-spacing: var(--track-xl, -0.035em); }
.close h2 a { border-bottom: 0.06em solid var(--signal); }
.close h2 a:hover { color: var(--signal); }
.close .sub { color: #a9a9a9; }
.close .actions a { border-color: #fff; }
footer { background: var(--ink); color: #8d8d8d; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; border-top: 1px solid #333; padding: 20px 0; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { margin-left: 24px; }
.foot a:hover { color: #fff; }

@media (max-width: 980px) {
  .rail { grid-template-columns: 1fr; gap: 18px; }
  .hero-foot, .tile.full, .about, .speak { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.big { grid-column: auto; }
  .th { min-height: 0; }
  .index a { grid-template-columns: 36px 1fr 24px; }
  .index .ds, .index .mt { display: none; }
  .cols, .figs { grid-template-columns: 1fr 1fr; }
  .cols.three { grid-template-columns: 1fr; }
  .cols.three .col { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .cols.three .col:first-child { border-top: 0; }
  .col:nth-child(odd), .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .col h3 { margin-top: 20px; }
  .col { padding-bottom: 28px; }
  .fig { padding-bottom: 24px; }
  .board-in { grid-template-columns: 1fr 1fr; }
  .board-in div { border-left: 0; padding: 12px 0; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: flex-start; padding: 20px var(--gutter); gap: 16px; font-size: 20px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .cap { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .cols, .figs, .field-grid { grid-template-columns: 1fr; }
  .col, .fig { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
