*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text-primary); font: 300 1.05rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3, .project-name, .brand { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; }
h1, h2, h3 { line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 5.5vw, 5.15rem); }
h2, .section-title { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.55rem; }
h1 em, h2 em, h3 em { color: var(--accent); font-style: normal; font-weight: 700; }
.wrap { width: min(calc(100% - 96px), var(--max-width)); margin-inline: auto; }
.hex-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='125' viewBox='0 0 72 125'%3E%3Cpath d='M36 0 72 20.8v41.7L36 83.3 0 62.5V20.8Zm0 83.3V125M0 62.5l-36 20.8m108-20.8 36 20.8' fill='none' stroke='%23393939' stroke-width='.85'/%3E%3C/svg%3E"); mask-image: linear-gradient(105deg, transparent 12%, black 100%); }
.skip-link { position: fixed; top: 0; left: 16px; transform: translateY(-130%); z-index: 5; background: var(--accent); color: var(--bg); padding: .6rem 1rem; }
.skip-link:focus { transform: translateY(8px); color: var(--bg); }
#site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.masthead { display: flex; align-items: center; gap: 44px; min-height: 80px; }
.brand { display: inline-block; text-decoration: none; white-space: nowrap; font-size: 1.48rem; line-height: 1.2; }
.brand:hover { color: var(--text-primary); }
.brand span { color: var(--accent); }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 40px); margin-left: auto; }
.main-nav a, .social-top, .social-links a, .eyebrow, .section-label, .card-meta, .btn, figcaption, .footer-caption { font: 500 .75rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.main-nav a, .social-top, .social-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.main-nav a { color: var(--text-secondary); }
.main-nav a:hover, .main-nav a[aria-current="page"], .social-links a:hover { color: var(--accent); }
.social-top { gap: 10px; border-left: 1px solid var(--border-hover); padding-left: clamp(16px, 3vw, 40px); }
.menu-toggle { display: none; }
.hero { padding-block: clamp(54px, 7.3vw, 104px); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 78px); }
.split > *, .project-grid > *, .proof-grid > * { min-width: 0; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 12px; color: var(--accent); margin: 0 0 20px; }
.eyebrow::before, .section-label::before { content: ''; width: 26px; height: 1px; background: currentColor; flex-shrink: 0; }
.lede { max-width: 62ch; font-size: clamp(1.08rem, 1.65vw, 1.31rem); line-height: 1.5; color: #bebebe; margin-top: 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; gap: 12px; border: 1px solid var(--border-hover); background: var(--bg-card); color: var(--text-primary); text-align: center; text-decoration: none; transition: background-color .18s, border-color .18s; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--text-primary); border-color: var(--text-primary); color: var(--bg); }
.btn-secondary { background: transparent; border-color: #484848; }
.btn-secondary:hover { border-color: var(--accent); }
.home-hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(210px,.66fr); align-items: center; gap: clamp(36px,8vw,120px); padding: clamp(48px,5.2vw,78px) 0; }
.home-hero h1 { font-size: clamp(2.7rem,4.55vw,4.5rem); line-height: 1.03; }
.home-hero .lede { max-width: 49ch; }
.keep-together { white-space: nowrap; }
.portrait { position: relative; justify-self: end; width: min(100%,320px); }
.portrait::before { content: ''; position: absolute; inset: -6px -6px 6px 6px; border: 1px solid #385040; z-index: -1; }
.portrait img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: center 35%; }
.section { border-top: 1px solid var(--border-hover); padding-block: clamp(42px,5.1vw,72px); }
.section-title + p, .section h2 + p, .reading > p + p, .project-intro p + p { margin-top: 16px; }
.section p { max-width: 68ch; }
.project-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 20px; margin-top: 28px; }
.project-card { position: relative; grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--border-hover); color: var(--text-primary); background: var(--bg-card); text-decoration: none; }
.project-card.company-card { grid-column: span 3; }
.project-card:hover, .project-card:focus-visible { border-color: var(--accent); color: var(--text-primary); }
.card-image { overflow: hidden; border-bottom: 1px solid var(--border-hover); }
.card-image img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.company-card .card-image img { aspect-ratio: 2.85 / 1; }
.card-image.heelbase { background: #fff; }
.card-image.heelbase img { object-fit: contain; }
.card-image.the-engine img { object-position: 50% 25%; }
.card-copy { padding: 20px 22px 23px; }
.card-meta { display: block; color: var(--text-secondary); margin-bottom: 7px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-heading span { font: 400 1.2rem var(--mono); color: var(--accent); }
.card-copy p { margin-top: 8px; font-size: 1rem; color: #bcbcbc; line-height: 1.55; }
.home-notes { display: grid; grid-template-columns: 1.35fr .75fr; gap: clamp(24px,7vw,100px); }
.home-notes p { margin: 16px 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; font-weight: 500; }
.project .project-intro h1 { overflow-wrap: break-word; }
.project-visual { margin: 0; }
.project-visual img { width: 100%; height: auto; max-height: 410px; object-fit: contain; }
figcaption { color: var(--text-secondary); margin-top: 9px; line-height: 1.55; text-transform: none; letter-spacing: .02em; }
.reading { max-width: 72ch; }
.reading p + p { margin-top: 14px; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 22px; margin-top: 24px; }
.proof-item { border-top: 1px solid var(--border-hover); padding-top: 15px; }
.proof-item strong, .proof-item dt { display: block; margin-bottom: 5px; font: 600 clamp(1.5rem,3vw,2.4rem)/1.14 var(--display); letter-spacing: -.02em; }
.proof-item dd { margin: 0; }
.proof-item p, .proof-item dd { color: #b6b6b6; }
.ask-copy { max-width: 62ch; }
.ask-section { border-top-color: #36533b; }
.project > .section:last-child { padding-bottom: clamp(48px,7vw,100px); }
#site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border-hover); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 31px; }
.footer-caption { color: var(--text-secondary); margin: 6px 0 0; text-transform: none; letter-spacing: .015em; }
.social-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.reveal { animation: revealFallback .25s ease 2s both; }
@keyframes revealFallback { from { opacity: .96; } to { opacity: 1; } }
@media (max-width: 850px) {
 .wrap { width: min(calc(100% - 48px), var(--max-width)); }
 .masthead { gap: 22px; min-height: 68px; }
 .split { gap: 28px; grid-template-columns: 1.05fr .95fr; }
 .project-grid { gap: 14px; }
 .card-copy { padding: 16px; }
 .card-image img { aspect-ratio: 1.7 / 1; }
 .home-notes { gap: 36px; }
}
@media (max-width: 680px) {
 .wrap { width: min(calc(100% - 36px), var(--max-width)); }
 .masthead { min-height: 62px; gap: 8px 20px; flex-wrap: wrap; padding-block: 8px; }
 .masthead .brand { margin-right: auto; }
 .social-top { padding-left: 0; border: 0; }
 .main-nav { order: 3; width: 100%; margin: 0; justify-content: flex-start; gap: 24px; }
 .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border-hover); color: var(--text-primary); background: var(--bg); }
 .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 17px; height: 1px; background: currentColor; position: relative; }
 .menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; top: -5px; }
 .menu-toggle span::after { top: 5px; }
 .js .main-nav[data-open="false"] { display: none; }
 .hero { padding-block: 38px; }
 .split, .home-notes { grid-template-columns: 1fr; }
 .project-visual img { max-height: 340px; }
 .home-hero { grid-template-columns: minmax(0,1fr) 60px; gap: 12px; padding: 28px 0 38px; align-items: center; }
 .home-hero .home-intro { display: contents; }
 .home-hero .eyebrow { grid-area: 1 / 1; margin: 0; }
 .home-hero h1 { grid-area: 2 / 1 / 3 / -1; font-size: clamp(2.06rem,6.9vw,2.95rem); }
 .home-hero .portrait { grid-area: 1 / 2; width: 52px; }
 .home-hero .portrait img { aspect-ratio: 1 / 1.15; }
 .home-hero .lede, .home-hero .actions { grid-column: 1 / -1; }
 .home-hero .lede { margin-top: 6px; }
 .home-hero .actions { margin-top: 6px; }
 .project-grid { grid-template-columns: 1fr; }
 .project-card, .project-card.company-card { grid-column: auto; display: grid; grid-template-columns: 110px 1fr; }
 .card-image { border: 0; border-right: 1px solid var(--border-hover); min-height: 100%; }
 .card-image img, .company-card .card-image img { height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; }
 .card-image.heelbase img { object-fit: contain; }
 .card-heading h3 { font-size: 1.32rem; }
 .card-copy { padding: 14px 12px; }
 .card-copy p { font-size: 1rem; line-height: 1.42; }
 .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
 .social-links { gap: 22px; }
}
@media (max-width: 380px) {
 .main-nav { gap: 16px; }
 .home-hero { grid-template-columns: minmax(0,1fr) 56px; }
 .home-hero .portrait { width: 54px; }
 .project-card, .project-card.company-card { grid-template-columns: 75px 1fr; }
 .actions { gap: 8px; }
 .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.proof-item h3 + p { margin-top: 10px; }
.section .proof-grid + .text-link { margin-top: 20px; }
.reply-address { color: var(--text-secondary); font-size: .95rem; margin-top: 10px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .14em; }
@media (max-width: 380px) {
 .masthead { column-gap: 8px; }
 .masthead .brand { font-size: 1.24rem; }
}
