/* Startup Advisory - site styles */

@font-face { font-family: "Newsreader"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/newsreader-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/newsreader-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ground: #F6F4EE;
  --ground-2: #EDEAE1;
  --surface: #FFFFFF;
  --photo: #E4E0D5;
  --ink: #17201B;
  --text: #2E3632;
  --muted: #4C544F;
  --rule: #DCD8CE;
  --rule-strong: #CFCABD;
  --field: #A9A395;
  --accent: #4A6332;
  --accent-dark: #2F4220;
  --on-dark: #F6F4EE;
  --on-dark-muted: #C9CCC4;
  --on-dark-faint: #A9AEA6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(24px, 7vw, 120px);
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); }
p, ul, ol, dl, dd, blockquote { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--on-dark); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 24px; height: 24px; flex-shrink: 0; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .nav-link { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; background: var(--accent); color: #FFFFFF; border: 0; border-radius: 2px; font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav .btn { color: #FFFFFF; }
.btn-light { background: var(--on-dark); color: var(--ink); font-weight: 600; }
.btn-light:hover { background: #FFFFFF; color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow svg, .btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Type helpers */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); }
.section { padding-block: var(--section); }
.section-alt { background: var(--ground-2); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.015em; }
.rule-top { border-top: 1px solid var(--rule); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 112px) clamp(44px, 7vw, 104px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; gap: 44px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.07; letter-spacing: -0.02em; }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.hero-actions .btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.hero-actions .btn-outline:hover { background: var(--ink); color: var(--on-dark); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-self: end; }
.stats div { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--rule-strong); }
.stats div:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule-strong); }
.stats dt { font-family: var(--serif); font-size: clamp(32px, 3vw, 40px); line-height: 1.1; font-weight: 500; color: var(--accent); }
.stats dd { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Cards */
.grid-2 { display: grid; gap: 14px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 44px); background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; }
.card .num { font-size: 13px; font-weight: 600; color: var(--accent); }
.card h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
a.card { color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--accent); color: var(--ink); }
.card .stat { font-family: var(--serif); font-size: clamp(46px, 4.4vw, 64px); line-height: 1; font-weight: 500; color: var(--accent); }
.card .title { font-family: var(--serif); font-size: clamp(23px, 2vw, 28px); line-height: 1.2; font-weight: 500; }
.card .more { font-size: 15px; font-weight: 600; color: var(--accent); padding-top: 4px; }

/* How I work */
.how { display: grid; gap: 32px; }
.how-steps { display: grid; gap: 28px; }
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
.step h3 { font-size: clamp(24px, 2.2vw, 28px); line-height: 1.2; }
.step p { font-size: 16px; color: var(--muted); }
.step .label { letter-spacing: 0.08em; }

/* About */
.about { display: grid; gap: 28px; }
.about-photo { background: var(--photo); border-radius: 2px; overflow: hidden; aspect-ratio: 15 / 16; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-copy { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.about-copy h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.015em; }
.about-copy p { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.65; color: var(--text); }

/* Closing band + footer */
.band { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px); }
.band .wrap { display: flex; flex-direction: column; gap: 22px; }
.band h2 { color: var(--on-dark); font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.015em; }
.band p { color: var(--on-dark-muted); font-size: clamp(17px, 1.4vw, 19px); }
.site-footer { background: var(--ink); color: var(--on-dark-faint); font-size: 14px; border-top: 1px solid #333D37; }
.site-footer .wrap { display: flex; flex-direction: column-reverse; gap: 12px; padding-block: 28px 36px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.band + .site-footer { border-top-color: #333D37; }
.page-end { background: var(--ink); }

/* Case study */
.cs-head { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.cs-head .wrap { display: flex; flex-direction: column; gap: 22px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; align-self: flex-start; }
.back svg { width: 16px; height: 16px; }
.cs-head h1 { max-width: 1000px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.02em; }
.cs-head .lead { max-width: 820px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.cs-body { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 96px); }
.cs-body .wrap { display: grid; gap: 40px; }
.glance { align-self: start; padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; }
.glance h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.glance div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid #E6E2D8; }
.glance div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: 14px; color: var(--muted); }
.glance dd { font-size: 17px; font-weight: 500; }
.glance dd.big { font-family: var(--serif); font-size: 34px; line-height: 1.15; color: var(--accent); }
.prose { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--text); max-width: 720px; }
.prose h2 { font-size: clamp(27px, 2.4vw, 32px); line-height: 1.2; margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose blockquote { margin: 8px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.4; font-style: italic; color: var(--ink); }
.prose em { font-style: italic; }
.prose strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 4px 0; border: 1px solid var(--rule); border-radius: 2px; background: var(--surface); }
.table-wrap table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #E6E2D8; }
.table-wrap thead th { font-weight: 600; color: var(--ink); background: var(--ground-2); }
.table-wrap tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.cta-box { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); background: var(--ground-2); border-radius: 2px; }
.cta-box h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; }
.cta-box p { font-size: 18px; color: var(--muted); margin-top: 8px; }
.more-cs { padding-block: clamp(56px, 7vw, 96px); }
.more-cs h2 { font-size: clamp(28px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 28px; }
.grid-3 { display: grid; gap: 14px; }
.grid-3 .stat { font-size: clamp(40px, 3.4vw, 44px); }
.grid-3 .title { font-size: 23px; line-height: 1.25; }

/* Contact */
.contact { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.contact .wrap { display: grid; gap: 40px; }
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.contact-intro h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }
.steps-list { list-style: none; padding: 0; margin-top: 12px; }
.steps-list li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--rule-strong); font-size: 17px; line-height: 1.55; color: var(--text); }
.steps-list li:last-child { border-bottom: 1px solid var(--rule-strong); }
.steps-list span { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.4vw, 48px); background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; align-self: start; }
.row { display: grid; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--field); border-radius: 2px; }
.field select { padding: 0 12px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 14px; line-height: 1.55; color: var(--muted); }
.form .btn { align-self: flex-start; }
.form-error { display: none; font-size: 15px; color: #8A2D1F; }
.form-error.show { display: block; }
.simple { padding-block: clamp(64px, 10vw, 140px); }
.simple .wrap { display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin-inline: 0; }
.simple h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.02em; }

/* Keep wide tables scrolling inside their box on small screens */
.cs-body .wrap { grid-template-columns: minmax(0, 1fr); }
.prose { min-width: 0; }
.table-wrap { max-width: 100%; }

/* Comparison: cards on phones, table from tablet up */
.compare-cards { display: grid; gap: 14px; }
.compare-card { padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; }
.compare-card h3 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.compare-card dl div { padding: 10px 0; border-bottom: 1px solid #E6E2D8; }
.compare-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.compare-card dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.compare-card dd { font-size: 16px; line-height: 1.5; }
.table-wrap { display: none; }
@media (min-width: 720px) { .compare-cards { display: none; } .table-wrap { display: block; } }

/* Tablet */
@media (min-width: 720px) {
  .hero-actions { flex-direction: row; align-items: center; gap: 28px; }
  .hero-actions .btn-outline { background: transparent; border: 0; padding: 0; min-height: 0; color: var(--ink); gap: 8px; }
  .hero-actions .btn-outline:hover { background: transparent; color: var(--accent); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .band .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .band .btn { flex-shrink: 0; }
  .cta-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .cta-box .btn { flex-shrink: 0; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; min-height: 96px; padding-block: 24px; }
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
}

/* Desktop */
@media (min-width: 1024px) {
  .site-header .wrap { height: 88px; }
  .brand svg { width: 28px; height: 28px; }
  .brand span { font-size: 25px; }
  .nav .nav-link { display: inline; }
  .nav .btn-sm { padding: 0 20px; font-size: 16px; }
  .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 8vw, 128px); }
  .stats { grid-template-columns: 1fr; }
  .stats div:nth-last-child(-n+2) { border-bottom: 0; }
  .stats div:last-child { border-bottom: 1px solid var(--rule-strong); padding-block: 20px; }
  .stats div { padding-block: 20px; }
  .stats dd { font-size: 15px; }
  .how { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 112px); }
  .cs-body .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 112px); }
  .glance { position: sticky; top: 32px; padding: 32px; }
  .contact .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); }
  .section-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; gap: 40px; }
  .section-head.split > div { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
  .section-head.split > p { max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card { transition: none; }
}
