@font-face { font-family: 'Profile Display'; src: url('assets/display.ttf') format('truetype'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Profile Sans'; src: url('assets/sans.ttf') format('truetype'); font-weight: 600; font-display: swap; }
:root {
  --bg: #0a0b0e;
  --bg-2: #101217;
  --bg-3: #171a21;
  --text: #f2f3f5;
  --muted: #9aa3ad;
  --blue: #3b82f6;
  --blue-soft: #a7c9dc;
  --blue-deep: #102f4b;
  --red: #ff3b3b;
  --rule: #23262d;
  --gutter: clamp(24px, 5.3vw, 90px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 18px/1.75 'Profile Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: 'Profile Display', Arial, sans-serif; font-weight: 800; }
p + p { margin-top: 24px; }
.skip-link { position: absolute; left: 18px; top: -100px; z-index: 10; padding: 12px 20px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 76px; padding: 0 var(--gutter); background: rgba(10,11,14,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.brand { font: 800 28px/1 'Profile Display', Arial, sans-serif; text-decoration: none; padding: 12px 0; }
.brand-dot { color: var(--blue); }
nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--muted); transition: color .25s; }
nav a:hover, nav a[aria-current] { color: var(--text); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr; min-height: min(780px, calc(100svh - 76px)); background: var(--bg); color: var(--text); overflow: hidden; isolation: isolate; }
.signal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 20%, transparent 75%); }
.hero-portrait { grid-column: 2; grid-row: 1; position: relative; z-index: 1; min-height: 680px; }
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; filter: grayscale(.45) contrast(1.05) brightness(1.18);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%), linear-gradient(0deg, transparent 0%, #000 18%);
  mask-composite: intersect; -webkit-mask-composite: source-in; }
.hero-portrait::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,11,14,.35) 18%, transparent 42%), linear-gradient(0deg, var(--bg) 0%, transparent 22%), radial-gradient(60% 50% at 70% 35%, rgba(59,130,246,.18), transparent 70%); }
.hero-copy { grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 2; padding: 72px clamp(32px, 4vw, 60px) 90px var(--gutter); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; line-height: 1.4; text-transform: uppercase; letter-spacing: .2em; color: var(--blue-soft); margin-bottom: 28px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(59,130,246,.6); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59,130,246,.65); } 70% { box-shadow: 0 0 0 12px rgba(59,130,246,0); } 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); } }
h1 { font-size: clamp(58px, 8.2vw, 132px); line-height: .96; letter-spacing: -.05em; text-wrap: balance; max-width: 12ch; }
h1 .w { display: inline-block; }
h1 .accent { color: var(--red); position: relative; text-shadow: 0 0 28px rgba(255,59,59,.35); }
h1 .accent::after { content: ''; position: absolute; left: .04em; right: .04em; bottom: -.06em; height: .06em; background: var(--red); transform: scaleX(0); transform-origin: left; }
.js h1 .accent.underlined::after { transition: transform .7s cubic-bezier(.2,.8,.2,1); transform: scaleX(1); }
.standfirst { font-size: 19px; line-height: 1.7; max-width: 40ch; margin-top: 34px; color: #c9d0d8; }
.standfirst + .standfirst { margin-top: 18px; color: var(--text); }
.hero-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 38px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--blue-soft); }
.hero-link span { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; font-size: 15px; transition: transform .3s, border-color .3s; }
.hero-link:hover span { transform: translateY(4px); border-color: var(--blue); }
.hero-readout { position: absolute; left: var(--gutter); bottom: 26px; z-index: 2; font: 600 11px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: #5b6673; }
.hero-readout span::after { content: '_'; animation: blink 1s steps(1) infinite; color: var(--blue); }
@keyframes blink { 50% { opacity: 0; } }

/* Headline reveal states (JS adds .js) */
.js .hero-copy .eyebrow, .js .standfirst, .js .hero-link { opacity: 0; transform: translateY(18px); }
.js h1 .w { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
.js .hero-portrait img { opacity: 0; transform: scale(1.06); }

/* Feature panels */
.feature { display: flow-root; background: var(--bg); position: relative; }
.feature::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--rule) 20%, var(--rule) 80%, transparent); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; width: min(100% - 2 * var(--gutter), 1200px); margin: clamp(90px, 11vw, 160px) auto; }
.panel > * { min-width: 0; }
.panel.flip .panel-photo { order: 2; }
.panel-photo { margin: 0; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.panel-photo img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.95); will-change: transform; }
.panel-photo::before { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--bg); transform-origin: top; }
.js .panel-photo::before { transition: transform 1.1s cubic-bezier(.76,0,.24,1); }
.js .panel-photo.in-view::before { transform: scaleY(0); }
.panel-copy { padding-block: 24px; }
.panel-copy .eyebrow { color: var(--blue); gap: 18px; }
.panel-copy .eyebrow::after { content: ''; width: 54px; height: 1px; background: var(--blue); opacity: .5; }
h2 { font-size: clamp(38px, 4vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 30px; }
.lead { font-size: 23px; line-height: 1.45; letter-spacing: -.012em; color: var(--text); }
.panel-copy p + p { margin-top: 22px; }
.panel-copy p:not(.eyebrow):not(.lead) { color: var(--muted); font-size: 17px; line-height: 1.85; }
.js .reveal { opacity: 0; transform: translateY(28px); }

/* Pull quote: words light up on scroll */
.pull-quote { width: min(100% - 2 * var(--gutter), 1100px); margin: 110px auto 130px; padding: 60px 32px; text-align: center; position: relative; }
.pull-quote::before, .pull-quote::after { content: ''; position: absolute; left: 50%; translate: -50% 0; width: 72px; height: 1px; background: var(--blue); opacity: .6; }
.pull-quote::before { top: 0; } .pull-quote::after { bottom: 0; }
.pull-quote p { font: 800 clamp(34px, 4.2vw, 62px)/1.1 'Profile Display', Arial, sans-serif; letter-spacing: -.035em; text-wrap: balance; max-width: 980px; margin-inline: auto; color: var(--text); }
.pull-quote .qw { color: #3a3f48; transition: color .4s; }
.pull-quote .qw.lit { color: var(--text); }

/* Closing */
.closing { padding: 0; background: var(--bg); }
.coastal-stage { height: min(82svh, 820px); min-height: 480px; position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; background: var(--bg-2); }
.coastal-frame { position: absolute; inset: 0; margin: 0; }
.coastal-frame img { width: 100%; height: 120%; object-fit: cover; filter: saturate(.7) brightness(.55); will-change: transform; }
.coastal-shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,11,14,.2) 35%, rgba(10,11,14,.35) 70%, var(--bg) 100%); }
.coastal-title { position: relative; z-index: 1; }
.closing h2 { font-size: clamp(48px, 5.6vw, 80px); margin: 0; letter-spacing: -.045em; }
.reading { width: min(100% - 2 * var(--gutter), 680px); margin-inline: auto; }
.closing-body { padding: 70px 0 110px; }
.closing-body p { font-size: 21px; line-height: 1.55; color: #c9d0d8; }
.contact-button { display: inline-flex; justify-content: space-between; gap: 46px; align-items: center; margin-top: 36px; padding: 17px 24px; background: var(--blue); color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; min-height: 56px; border-radius: 2px; transition: background .25s, transform .25s; }
.contact-button:hover { background: #2563eb; transform: translateY(-2px); }
.contact-button span { font-size: 22px; line-height: 1; font-weight: 400; }
footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--rule); padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
footer > span { font: 800 24px 'Profile Display', Arial, sans-serif; color: var(--text); text-transform: none; letter-spacing: 0; }
footer a { padding: 12px 0; text-decoration: none; }

@media (max-width: 1000px) and (min-width: 701px) {
  h1 { font-size: clamp(46px, 6.4vw, 64px); }
  .hero-copy { padding: 50px 30px; }
  .hero-portrait { min-height: 640px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.8; }
  .site-header { min-height: 64px; padding: 0 20px; gap: 22px; }
  .brand { font-size: 26px; }
  nav { flex: 1; justify-content: flex-end; gap: 22px; font-size: 11px; }
  .hero { display: block; min-height: 0; }
  .hero-portrait { position: absolute; inset: 0 0 auto; min-height: 0; aspect-ratio: 3 / 2; }
  .hero-portrait img { object-position: 40% 50%; mask-image: linear-gradient(0deg, transparent 0%, #000 35%); -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .hero-portrait::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,11,14,.3) 50%, transparent 100%); }
  .hero-copy { position: relative; padding: 64vw var(--gutter) 70px; }
  .hero .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(42px, 12vw, 70px); line-height: 1; max-width: none; }
  .standfirst { font-size: 15px; margin-top: 24px; }
  .hero-readout { display: none; }
  .panel { display: block; margin: 70px auto; }
  .panel-photo { margin-bottom: 34px; aspect-ratio: 4 / 4.4; }
  h2 { font-size: 38px; margin-bottom: 22px; }
  .lead { font-size: 20px; }
  .pull-quote { margin: 60px auto 70px; padding: 40px 0; }
  .pull-quote p { font-size: clamp(30px, 8.4vw, 46px); }
  .closing h2 { font-size: 44px; }
  .closing-body { padding: 50px 0 70px; }
  .closing-body p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .hero-readout span::after { animation: none; }
}

.portrait-name { position: absolute; right: var(--gutter); bottom: 34px; z-index: 3; margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }
.portrait-name::before { content: ''; display: inline-block; width: 34px; height: 1px; background: var(--blue); vertical-align: middle; margin-right: 14px; }
@media (max-width: 700px) { .portrait-name { display: none; } }

/* Full-width bands */
.band { position: relative; display: flex; align-items: center; min-height: min(84svh, 780px); border-top: 1px solid var(--rule); overflow: hidden; isolation: isolate; }
.band-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.band::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,11,14,.82) 28%, rgba(10,11,14,.3) 55%, transparent 80%); }
.band.flip::before { background: linear-gradient(270deg, var(--bg) 0%, rgba(10,11,14,.82) 28%, rgba(10,11,14,.3) 55%, transparent 80%); }
.band-copy { position: relative; z-index: 2; width: min(560px, 100% - 2 * var(--gutter)); margin: 90px var(--gutter); }
.band.flip .band-copy { margin-left: auto; }
.band-copy p:not(.lead) { color: #aab3bd; font-size: 17px; line-height: 1.85; margin-top: 22px; }
.band-copy .lead { margin: 0; }
@media (max-width: 700px) {
  .band { min-height: 0; }
  .band::before, .band.flip::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,11,14,.88) 55%, rgba(10,11,14,.55) 100%); }
  .band.flip .band-copy { margin-left: var(--gutter); }
  .band-copy { margin-block: 64px; }
}

/* Contact page */
body.contact main { min-height: 70svh; }
.reading-head { padding: clamp(70px, 9vw, 130px) 0 40px; }
.page-head-inner, .reading-grid { width: min(100% - 2 * var(--gutter), 680px); margin-inline: auto; }
body.contact h1 { font-size: clamp(52px, 6vw, 88px); max-width: none; }
body.contact .lead { margin-top: 26px; color: #c9d0d8; }
.reading { padding-bottom: 110px; }
.contact-form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; font: 600 17px/1.6 'Profile Sans', Arial, sans-serif; color: var(--text); background: var(--bg-2); border: 1px solid var(--rule); border-radius: 2px; padding: 15px 16px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--bg-3); }
.field textarea { resize: vertical; min-height: 170px; }
.field [aria-invalid="true"] { border-color: var(--red); }
.form-closing { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-closing .contact-button { margin-top: 0; border: 0; cursor: pointer; font-family: inherit; }
.form-closing .contact-button:disabled { opacity: .6; cursor: default; }
.form-status { margin: 0; color: var(--blue-soft); font-size: 15px; }
