/* Goar Labs site styles. One stylesheet for every page; case studies add work/case-study.css. */
:root {
  --ink: #121212; --paper: #FFFFFF; --panel: #F3F3F1; --line: #DDDDDA; --muted: #555555;
  --studio: #FF5A1F; --bsbl: #2F5BFF; --sandlot: #1F7A4D;
  --display: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bsbl); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px 28px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 0; }
.site-nav a:hover { color: var(--muted); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-nav .nav-cta { background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 10px; }
.site-nav .nav-cta:hover { background: #333; color: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-family: var(--body); font-size: 16px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-panel { background: var(--panel); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; }
.section-head p { max-width: 520px; color: #333; font-size: 18px; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.96; }
.hero-lede { font-size: clamp(18px, 2vw, 21px); color: #333; max-width: 560px; margin: 24px 0 32px; }
.hero-tiles { display: flex; flex-direction: column; gap: 12px; }

/* Venture tiles: one color per part of Goar Labs */
.tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 112px; padding: 18px 24px; border-radius: 16px; text-decoration: none; transition: transform 0.25s; }
a.tile:hover { transform: translateX(4px); }
.tile b { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.tile span { font-size: 15px; font-weight: 600; }
.tile-studio { background: var(--studio); color: var(--ink); }
.tile-bsbl { background: var(--bsbl); color: var(--paper); }
.tile-sandlot { background: var(--sandlot); color: var(--paper); }
.tile-neutral { background: var(--panel); color: var(--ink); }
.tile-neutral span { color: var(--muted); }

/* Studio services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--paper); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.service h3 { font-size: 24px; }
.service p { color: #333; font-size: 16px; }
.service-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--studio); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.service-mark svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 16px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step h3::before { counter-increment: step; content: counter(step) "  "; color: var(--muted); }
.step p { color: #333; font-size: 16px; }

/* Products and companies */
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.venture { border-radius: 20px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.venture .eyebrow { color: inherit; opacity: 0.9; }
.venture h3 { font-size: clamp(34px, 4vw, 44px); font-weight: 900; }
.venture p { font-size: 17px; max-width: 460px; }
.venture .venture-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.venture .venture-links a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.venture-bsbl { background: var(--bsbl); color: var(--paper); }
.venture-sandlot { background: var(--sandlot); color: var(--paper); }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.work-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.work-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.work-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.5s; }
.work-card:hover .work-shot img { transform: scale(1.02); }
.work-card h3 { font-size: clamp(26px, 3vw, 34px); }
.work-card p { color: #333; font-size: 16px; }
.work-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.dot-studio { background: var(--studio); } .dot-bsbl { background: var(--bsbl); } .dot-sandlot { background: var(--sandlot); } .dot-ink { background: var(--ink); }
.work-card .text-link { align-self: flex-start; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.mini { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.mini h3 { font-size: 20px; }
.mini p { color: #333; font-size: 15px; }
.mini .status { margin-top: auto; font-size: 14px; color: var(--muted); }
.mini-wide { grid-column: 1 / -1; }

/* Writing */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post { background: var(--paper); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform 0.25s; }
.post:hover { transform: translateY(-3px); }
.post h3 { font-size: 22px; line-height: 1.2; }
.post p { color: #333; font-size: 15px; }
.post .work-meta { margin-top: auto; padding-top: 8px; }

/* About strip */
.about-strip .wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-strip img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-strip h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; margin-bottom: 16px; }
.about-strip p { font-size: 18px; color: #333; max-width: 640px; }
.about-strip .btn-row { margin-top: 24px; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.contact h2 { font-size: clamp(40px, 5vw, 60px); font-weight: 900; margin-bottom: 16px; }
.contact-intro p { font-size: 18px; color: #333; }
.contact-direct { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.contact-direct a { font-weight: 700; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid #BDBDB8; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-status { font-size: 15px; min-height: 1.5em; }
.form-status.is-error { color: #B42318; }
.form-status.is-ok { color: var(--sandlot); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 48px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.site-footer img { height: 32px; width: auto; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-cols b { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #BDBDBD; font-weight: 700; }
.footer-cols a { text-decoration: none; color: var(--paper); }
.footer-cols a:hover { text-decoration: underline; }
.footer-base { width: 100%; border-top: 1px solid #333; padding-top: 20px; font-size: 14px; color: #BDBDBD; }

/* Long-form pages (about, articles) */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 900; }
.page-head p { font-size: 20px; color: #333; max-width: 680px; margin-top: 18px; }
.article { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 64px; }
.article .back { font-weight: 700; text-decoration: none; font-size: 15px; }
.article .back:hover { text-decoration: underline; }
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.article h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 900; margin-bottom: 32px; }
.article-body p { font-size: 18px; line-height: 1.8; color: #262626; }
.article-body p + p { margin-top: 1.3em; }
.article-body strong { color: var(--ink); }
.article-body code { font-family: var(--mono); font-size: 0.85em; background: var(--panel); padding: 0.1em 0.4em; border-radius: 4px; }
.article-related { margin-top: 40px; padding: 22px 24px; background: var(--panel); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--ink); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-nav a { text-decoration: none; max-width: 45%; display: flex; flex-direction: column; gap: 4px; }
.article-nav a:hover b { text-decoration: underline; }
.article-nav span { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.article-date { font-size: 15px; color: var(--muted); }
.article-tag { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; background: var(--panel); padding: 4px 10px; border-radius: 6px; }
.article-title { font-size: clamp(36px, 5vw, 52px); font-weight: 900; margin-bottom: 32px; }
.article-related-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.article-related-link { font-weight: 700; }
.article-nav-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.article-nav-title { font-family: var(--display); font-size: 20px; font-weight: 800; }
.article-nav a:hover .article-nav-title { text-decoration: underline; }
.copied-toast { border-color: var(--sandlot) !important; color: var(--sandlot); }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-grid img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 420px; justify-self: end; }
.prose p { font-size: 18px; color: #262626; }
.prose p + p { margin-top: 1.2em; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.stat { background: var(--panel); border-radius: 14px; padding: 20px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; font-weight: 900; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-when { font-size: 15px; color: var(--muted); font-weight: 600; }
.timeline-item h3 { font-size: 22px; margin-bottom: 4px; }
.timeline-item .org { font-weight: 700; margin-bottom: 8px; }
.timeline-item p { color: #333; font-size: 16px; }

/* 404 */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; }
.not-found .code { font-family: var(--display); font-size: clamp(80px, 14vw, 160px); font-weight: 900; line-height: 0.9; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .work-card.featured, .contact .wrap, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .services, .steps, .post-grid, .mini-grid, .expertise { grid-template-columns: minmax(0, 1fr); }
  .ventures, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .about-strip .wrap { grid-template-columns: minmax(0, 1fr); }
  .about-strip img { max-width: 280px; }
  .about-grid img { justify-self: start; max-width: 320px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-nav { gap: 4px 18px; width: 100%; }
  .site-nav .nav-cta { margin-left: auto; }
  .field-row, .stat-row { grid-template-columns: minmax(0, 1fr); }
  .hero-tiles .tile { min-height: 88px; }
  .tile b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
