/* iankoncevich.com — site styles (one file for every page) */

:root {
  --paper: #F5F4F0;
  --surface: #FFFFFF;
  --soft: #FBFAF7;
  --ink: #111113;
  --ink-2: #2A2C31;
  --muted: #5A5D65;
  --line: #E2E0DA;
  --line-strong: #CFCCC4;
  --accent: #FF2E7E;
  --accent-ink: #C2185B;
  --dark: #0E0E10;
  --dark-line: #2A2B30;
  --dark-muted: #B9BBC2;
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.label { font: 500 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); font-weight: 700; }
.btn-accent:hover { color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { color: var(--ink); background: var(--surface); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { color: var(--ink); background: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.brand::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  display: flex; align-items: center; height: 72px;
  font-size: 15px; font-weight: 500; color: #3A3C42; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-id { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); background: #D9D7D1; }
.hero h1 { margin-top: 28px; font-size: clamp(52px, 7.2vw, 96px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700; }
.hero-lead { margin-top: 24px; max-width: 580px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin-left: 8px; }
.stats { margin: 48px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats li { padding: 0 20px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; margin-bottom: 4px; font: 700 40px/1.05 var(--display); letter-spacing: -0.03em; color: var(--ink); }

/* ---------- Video (click-to-play, player loads only on click) ---------- */
.video-card { background: var(--dark); border-radius: 24px; padding: 14px; }
.video-card h2 { margin: 16px 10px 8px; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.video-card p { margin: 0 10px 10px; color: var(--dark-muted); font-size: 14px; line-height: 1.55; }
.facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #1C1C20; color: #fff; text-decoration: none;
}
.facade--tall { aspect-ratio: 16 / 10; }
.facade img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.facade::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 16, 0.15); transition: background .2s; }
.facade:hover::after { background: rgba(14, 14, 16, 0.05); }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); transition: transform .15s ease;
}
.facade:hover .play { transform: scale(1.07); }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.duration { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 4px 8px; border-radius: 6px; background: rgba(14, 14, 16, 0.82); color: #fff; font: 12px/1.3 var(--mono); }
.facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facade.is-playing::after { display: none; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.trust li { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.trust strong { font: 700 22px/1.2 var(--display); color: var(--ink); letter-spacing: -0.01em; }

.trust--card { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 18px; }
.trust--card ul { padding-left: 28px; padding-right: 28px; }

/* ---------- Sections ---------- */
.section { padding-top: 112px; scroll-margin-top: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.section-note { font: 13px/1.4 var(--mono); color: var(--muted); }
.link-arrow { font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Portfolio cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; gap: 12px; }
.work-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #E4E2DC; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.work-card:hover .work-thumb img { transform: scale(1.03); }
.tags { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.work-card h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.work-card h3 a { text-decoration: none; }
.work-card p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.review-shot { display: block; height: 96px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.review-shot img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.card-link { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }

.recent { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
.recent h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.recent-intro { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.recent li { padding-left: 24px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.recent li strong { display: block; margin-bottom: 6px; font-size: 15.5px; color: var(--ink); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; }
.about-text p { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.shots { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shots a { display: block; aspect-ratio: 1.4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.skills-col { padding-top: 34px; }
.skills-col h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skills li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.skills strong { font-size: 16px; color: var(--ink); }
.ico { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* ---------- Upwork contracts (expandable rows) ---------- */
.contracts { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.contract + .contract { border-top: 1px solid var(--line); }
.contract summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 230px 110px 18px; align-items: center; gap: 20px;
  padding: 20px 28px;
}
.contract summary::-webkit-details-marker { display: none; }
.contract summary:hover, .contract[open] { background: var(--soft); }
.contract h3 { font: 600 17px/1.35 var(--body); letter-spacing: 0; }
.c-meta { display: flex; flex-direction: column; gap: 2px; font: 12px/1.4 var(--mono); color: var(--muted); }
.c-amount { text-align: right; font: 600 19px/1.1 var(--display); }
.chev { width: 18px; height: 18px; transition: transform .2s ease; }
.contract[open] .chev { transform: rotate(180deg); }
.c-body { padding: 4px 28px 28px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.c-quote { padding-left: 16px; border-left: 3px solid var(--accent); font-size: 17px; line-height: 1.6; color: var(--ink); }
.c-facts { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 14.5px; }
.c-facts dt { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.c-facts dd { margin: 4px 0 0; }
.c-seo { margin-top: 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.c-shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }

.show-all { display: none; width: 100%; height: 56px; align-items: center; justify-content: center; border: 0; border-top: 1px solid var(--line); background: var(--surface); font: 600 14.5px/1 var(--body); color: var(--ink); cursor: pointer; }
.contracts:not(.is-collapsed) .show-all { display: none; }

/* ---------- Intro video + transcript ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.intro .facade { border-radius: 20px; }
.transcript { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.transcript h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.transcript p { margin-bottom: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14.5px; font-weight: 600; cursor: pointer; border-bottom: 1.5px solid var(--ink); }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { display: none; }
.more > summary svg { width: 16px; height: 16px; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-card { display: flex; gap: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.post-card:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-2px); }
.post-card img { width: 132px; height: 132px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: #1C1C20; }
.post-card-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.post-card .meta { font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.post-card h2, .post-card h3 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.post-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts--3 .post-card img { width: 112px; height: 112px; }
.posts--3 .post-card h3 { font-size: 18px; }

/* ---------- Contact band + footer ---------- */
.talk { margin-top: 112px; background: var(--dark); color: #fff; padding: 96px 0 40px; }
.talk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.talk .kicker { color: var(--dark-muted); }
.talk h2 { color: #fff; font-size: clamp(52px, 6vw, 80px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 700; }
.talk-lead { margin-top: 16px; font-size: 20px; line-height: 1.5; color: #C9CBD1; }
.talk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-tiles { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-tiles a { height: 100%; padding: 24px; border: 1px solid var(--dark-line); border-radius: 18px; display: flex; flex-direction: column; gap: 8px; color: #fff; text-decoration: none; transition: border-color .15s ease; }
.contact-tiles a:hover { color: #fff; border-color: #4A4B52; }
.contact-tiles span { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-muted); }
.contact-tiles strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.talk--compact { padding-top: 72px; }
.talk--compact h2 { font-size: clamp(40px, 4.5vw, 56px); }
.talk--compact .talk-lead { font-size: 19px; }
.site-footer { margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--dark-line); display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; font-size: 14px; color: var(--dark-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Inner pages ---------- */
.page-head { padding-top: 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 12.5px/1.5 var(--mono); color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }
.page-title { margin-top: 24px; font-size: clamp(44px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.page-lead { margin-top: 16px; max-width: 680px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.page-body { padding-top: 56px; }

.feature-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; transition: border-color .15s ease; }
.feature-card:hover { color: inherit; border-color: var(--line-strong); }
.feature-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: #E4E2DC; }
.feature-card h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.03em; margin: 12px 0 14px; }
.feature-card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.feature-card .card-link { display: inline-block; margin-top: 20px; font-size: 15px; }

/* ---------- Article (blog posts + case study) ---------- */
.article-head { padding-top: 40px; }
.article-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 436px); justify-content: space-between; gap: 64px; align-items: center; }
.article-grid--wide { grid-template-columns: minmax(0, 620px) minmax(0, 520px); }
.article-head h1 { margin-top: 22px; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; }
.article-lead { margin-top: 22px; font-size: 21px; line-height: 1.55; color: var(--ink-2); }
.byline { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #D9D7D1; }
.byline strong { display: block; font-size: 15px; color: var(--ink); }
.article-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: #1C1C20; box-shadow: 0 18px 40px rgba(17, 17, 19, 0.14); }
.article-cover--wide { aspect-ratio: 4 / 3; }
.article-layout { padding-top: 88px; }
.article-layout .wrap { display: grid; grid-template-columns: 260px minmax(0, 700px); gap: 100px; align-items: start; }
.toc { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.toc nav { display: flex; flex-direction: column; gap: 4px; }
.toc .label { margin-bottom: 10px; font-size: 11px; }
.toc a { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { border-left-color: var(--accent); color: var(--ink); }
.cta-mini { background: var(--dark); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cta-mini strong { color: #fff; font: 600 19px/1.25 var(--display); }
.cta-mini span { color: var(--dark-muted); font-size: 13.5px; line-height: 1.5; }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 { margin: 56px 0 18px; font-size: 30px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; scroll-margin-top: 100px; }
.prose h2 .num { margin-right: 12px; font: 500 14px/1 var(--mono); letter-spacing: 0; color: var(--muted); vertical-align: 6px; }
.prose h3 { margin: 32px 0 12px; font-size: 21px; font-weight: 600; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose .pull { margin: 8px 0 28px; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font: 600 24px/1.35 var(--display); letter-spacing: -0.015em; color: var(--ink); }
.prose blockquote { margin: 0 0 24px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; font-size: 18px; color: var(--ink); }
.prose .callout { margin: 0 0 20px; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.prose .callout ul { margin: 0; }
.prose .callout li:last-child { margin-bottom: 0; }
.prose .facade { margin: 0 0 32px; border-radius: 18px; }
.cta-box { margin-top: 56px; padding: 40px; background: var(--dark); border-radius: 22px; color: #C9CBD1; font-size: 17px; line-height: 1.65; }
.cta-box h2 { margin: 0 0 16px; color: #fff; }
.cta-box p { margin: 0 0 16px; }
.cta-box a:not(.btn) { color: #fff; }
.cta-box .talk-actions { margin-top: 24px; }
.author-box { margin-top: 48px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: flex; gap: 20px; align-items: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.author-box img { width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: #D9D7D1; }
.author-box strong { display: block; font-size: 18px; color: var(--ink); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s ease; }
.contact-list a:hover { color: inherit; border-color: var(--line-strong); }
.contact-list span { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.contact-list strong { font-size: 18px; overflow-wrap: anywhere; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.contact-form h2 { font-size: 28px; margin-bottom: 24px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 20px; padding: 13px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--soft);
  font: 16px/1.5 var(--body); color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 1px; background: #fff; }
.contact-form button { border: 0; }
.hidden-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 0; height: 0; opacity: 0; pointer-events: none; }
#status { margin-top: 12px; font-size: 14px; }
#status.error { color: #B00020; }
#status.success { color: #0A7A43; }

/* ---------- 404 ---------- */
.not-found { min-height: 62vh; padding: 120px 0 40px; text-align: center; }
.not-found .page-title { margin-top: 0; }
.not-found p { margin: 16px auto 32px; max-width: 520px; font-size: 18px; color: var(--ink-2); }

/* ---------- Venture builder components ---------- */
.hero-role { margin-top: 18px; font: 600 clamp(22px, 2.3vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.hero-promise { margin-top: 20px; font: 700 clamp(18px, 1.7vw, 22px)/1.4 var(--body); color: var(--ink); }
.hero-promise + .hero-lead { margin-top: 10px; }

.now-card { background: var(--dark); border-radius: 24px; padding: 14px; color: #fff; text-decoration: none; display: block; }
.now-card:hover { color: #fff; }
.now-card .now-img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #DCE3F4; }
.now-card .now-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.now-card:hover .now-img img { transform: scale(1.02); }
.now-body { padding: 16px 10px 8px; display: flex; flex-direction: column; gap: 6px; }
.now-body .label { color: var(--dark-muted); display: flex; align-items: center; gap: 8px; }
.now-body .label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }
.now-body strong { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; }
.now-body span.desc { font-size: 14px; line-height: 1.55; color: var(--dark-muted); }

.journey { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey ol { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.journey li { position: relative; padding: 0 16px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); counter-increment: step; }
.journey li strong { font: 700 20px/1.2 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.journey li strong::before { content: counter(step, decimal-leading-zero) " "; font: 500 11px/1 var(--mono); color: var(--accent-ink); vertical-align: 4px; margin-right: 4px; }
.journey li:not(:last-child)::after { content: "→"; position: absolute; right: 14px; top: 2px; font-size: 18px; color: var(--line-strong); }

.venture-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.venture-card .v-img { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #DCE3F4; }
.venture-card .v-img img { width: 100%; height: 100%; object-fit: cover; }
.venture-card h3 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin: 10px 0 12px; }
.venture-card .v-desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.v-facts { margin: 24px 0 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 20px; font-size: 15px; line-height: 1.5; }
.v-facts dt { font: 500 11px/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.v-facts dd { margin: 0; color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 2px 10px; border-radius: 999px; background: #E7F8EE; color: #0A6B3B; font-weight: 600; font-size: 13.5px; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1DB866; }
.v-stack { margin-top: 18px; font: 12px/1.5 var(--mono); color: var(--muted); }
.v-links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.subhead { margin: 64px 0 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.subhead h2, .subhead h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.subhead p { margin-top: 8px; font-size: 15px; color: var(--muted); max-width: 620px; }

.build { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.build .h2 { margin-bottom: 18px; }
.build-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.structures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.structures li { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.structures strong { font: 600 17px/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.criteria { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.criteria li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.criteria li:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--muted); font-weight: 400; }
.criteria--steps li { background: var(--surface); }
.bring { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.bring li { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 14.5px; line-height: 1.55; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.bring strong { font: 600 18px/1.25 var(--display); color: var(--ink); letter-spacing: -0.01em; }
.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: center; margin-bottom: 40px; }
.origin p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-top: 16px; }
.about-text .lead-line { font: 700 26px/1.25 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-top: 20px; }

.structures--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .venture-card, .build, .origin { grid-template-columns: minmax(0, 1fr); }
  .structures--4, .work-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .journey li:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .hero-role { margin-top: 12px; font-size: 21px; }
  .hero-promise { margin-top: 14px; font-size: 17px; }
  .now-card { border-radius: 20px; padding: 10px; }
  .now-body strong { font-size: 19px; }
  .journey ol { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: 16px; padding-bottom: 16px; }
  .journey li { padding: 0; }
  .journey li span { display: none; }
  .journey li::after { display: none; }
  .journey li strong { font-size: 16px; }
  .venture-card { padding: 14px; gap: 20px; border-radius: 20px; }
  .v-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .v-facts dd { margin-bottom: 10px; }
  .build { padding: 24px 20px; gap: 32px; border-radius: 20px; }
  .build-lead { font-size: 17px; }
  .structures { grid-template-columns: minmax(0, 1fr); }
  .subhead { margin-top: 48px; }
  .about-text .lead-line { font-size: 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .wrap, .about, .intro, .article-grid, .article-grid--wide, .contact-grid, .feature-card { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 40px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent { grid-template-columns: minmax(0, 1fr); }
  .skills-col { padding-top: 0; }
  .posts--3 { grid-template-columns: minmax(0, 1fr); }
  .article-cover { max-width: 520px; }
  .article-layout .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: calc(700px + var(--gutter) * 2); }
  .toc { display: none; }
  .contact-tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .site-header .wrap { height: 60px; }
  .brand { font-size: 18px; }
  .menu-toggle { display: inline-flex; margin-right: -10px; }
  .header-cta { display: none; }
  .nav { display: none; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 60px;
    padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(17, 17, 19, 0.08);
  }
  .site-header.is-open .nav a { height: 52px; border-bottom: 1px solid var(--line); margin: 0; font-size: 17px; }
  .site-header.is-open .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent-ink); }

  .hero { padding: 28px 0 8px; }
  .avatar { width: 48px; height: 48px; }
  .hero-id .label { font-size: 11px; }
  .hero h1 { margin-top: 20px; font-size: 46px; }
  .hero-lead { margin-top: 14px; font-size: 17px; line-height: 1.5; }
  .hero-cta { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta .btn { min-height: 52px; }
  .hero-note { margin: 0; text-align: center; font-size: 13px; }
  .stats { margin-top: 22px; padding-top: 16px; gap: 12px; }
  .stats li, .stats li:first-child { padding: 0; border: 0; font-size: 12px; line-height: 1.35; }
  .stats strong { font-size: 24px; }
  .video-card { border-radius: 20px; padding: 10px; }
  .video-card h2 { font-size: 19px; margin: 12px 8px 6px; }
  .video-card p { font-size: 13.5px; margin: 0 8px 8px; }
  .play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .play svg { width: 24px; height: 24px; }

  .trust--card ul { padding-left: 18px; padding-right: 18px; }
  .trust ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding-top: 18px; padding-bottom: 18px; }
  .trust li { flex-direction: column; gap: 0; font-size: 12px; }
  .trust strong { font-size: 18px; }

  .section { padding-top: 64px; }
  .section-head { margin-bottom: 24px; }
  .kicker { font-size: 11px; margin-bottom: 10px; }
  .section-note { display: none; }

  /* swipe row, like a feed */
  .work-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }
  .work-card { flex: 0 0 290px; scroll-snap-align: start; }
  .work-card h3 { font-size: 20px; }
  .review-shot { height: 88px; }
  .recent { margin-top: 24px; padding: 22px; gap: 14px; }
  .recent h2 { font-size: 21px; }
  .recent ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .recent li { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }

  .about { gap: 36px; }
  .about-text p { font-size: 16px; line-height: 1.6; margin-top: 14px; }
  .shots { margin-top: 20px; gap: 10px; }
  .skills-col h2 { font-size: 24px; margin-bottom: 14px; }
  .skills { gap: 12px; }
  .skills li { padding: 16px; font-size: 13px; }
  .skills strong { font-size: 15px; }
  .ico { display: none; }

  .contract summary { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 12px; padding: 14px 16px; min-height: 72px; }
  .contract h3 { font-size: 15px; }
  .c-meta { grid-column: 1; grid-row: 2; margin-top: -8px; font-size: 11px; }
  .c-amount { grid-column: 2; grid-row: 1 / span 2; font-size: 16px; }
  .chev { grid-column: 3; grid-row: 1 / span 2; width: 16px; height: 16px; }
  .c-body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 4px 16px 20px; }
  .c-quote { font-size: 15.5px; }
  .contracts.is-collapsed .contract:nth-child(n+7) { display: none; }
  .show-all { display: flex; }

  .intro { gap: 16px; }
  .transcript { padding: 18px; }
  .transcript h3 { font-size: 18px; }
  .transcript p { font-size: 14.5px; }

  .posts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-card { padding: 0; gap: 14px; align-items: center; background: transparent; border: 0; border-radius: 0; }
  .post-card:hover { transform: none; }
  .post-card img, .posts--3 .post-card img { width: 84px; height: 84px; }
  .post-card h2, .post-card h3, .posts--3 .post-card h3 { font-size: 16.5px; line-height: 1.25; }
  .post-card p { display: none; }

  .talk { margin-top: 64px; padding: 56px 0 28px; }
  .talk h2 { font-size: 52px; }
  .talk-lead { font-size: 17px; }
  .talk-actions, .talk-actions .btn { width: 100%; }
  .contact-tiles { margin-top: 28px; gap: 10px; }
  .contact-tiles a { padding: 16px 18px; }
  .contact-tiles strong { font-size: 16px; }
  .site-footer { margin-top: 40px; flex-direction: column-reverse; align-items: flex-start; font-size: 13px; }

  .page-head { padding-top: 28px; }
  .page-lead { font-size: 17px; }
  .page-body { padding-top: 32px; }
  .article-head { padding-top: 24px; }
  .article-grid { margin-top: 20px; gap: 28px; }
  .article-lead { font-size: 18px; }
  .article-layout { padding-top: 48px; }
  .prose { font-size: 17px; }
  .prose h2 { margin-top: 44px; font-size: 25px; }
  .prose .pull { font-size: 20px; }
  .cta-box { padding: 28px 22px; }
  .author-box { padding: 20px; align-items: flex-start; }
  .author-box img { width: 56px; height: 56px; }
  .feature-card { padding: 14px; gap: 20px; }
  .contact-form { padding: 22px; }
}


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