
:root {
    --ink: #10232d;
    --ink-soft: #42555f;
    --muted: #667982;
    --blue: #0b5f8e;
    --blue-dark: #173f58;
    --blue-light: #87b7cc;
    --paper: #fbfcfc;
    --paper-2: #f1f5f6;
    --white: #ffffff;
    --line: #d9e3e7;
    --line-dark: #b9cbd3;
    --max: 1180px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 1000;
    background: var(--white); color: var(--ink); padding: 10px 14px;
}
.skip-link:focus { left: 12px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251,252,252,.95);
    border-bottom: 1px solid rgba(16,35,45,.08);
    backdrop-filter: blur(10px);
}
.header-inner {
    min-height: 74px; display: flex; align-items: center; justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
    flex: 0 0 auto;
}
.brand-mark {
    width: 39px; height: 39px; border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 0 18%, #2f85b3 19% 23%, transparent 24% 34%,
        #0b5f8e 35% 40%, transparent 41% 50%, #91bacd 51% 55%, transparent 56%);
    border: 1px solid #c8d9e1;
}
.brand-word { font-size: 1.45rem; line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.brand-sub {
    display: block; margin-top: 4px; color: var(--muted);
    font-size: .52rem; font-weight: 750; letter-spacing: .24em; text-transform: uppercase;
}
.menu-toggle {
    display: none; border: 1px solid var(--line-dark); background: var(--white);
    border-radius: 5px; padding: 8px 11px; color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 25px; }
.site-nav a { color: #334851; font-size: .88rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav .contact-link {
    padding: 8px 14px; border: 1px solid #aabec7; border-radius: 999px;
}

/* Type and common */
.eyebrow {
    color: var(--blue); font-size: .72rem; font-weight: 800;
    letter-spacing: .15em; text-transform: uppercase;
}
h1,h2,.display {
    font-family: var(--serif); font-weight: 500; letter-spacing: -.035em;
}
h1 { margin: 0; font-size: clamp(3rem, 6.1vw, 5rem); line-height: .99; }
h2 { margin: 0; font-size: clamp(2.25rem, 4.1vw, 3.35rem); line-height: 1.05; }
h3 { margin: 0; letter-spacing: -.02em; }
.lead { color: var(--ink-soft); font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.6; }
.copy { color: var(--ink-soft); }
.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 17px; border-radius: 5px;
    background: var(--blue-dark); color: var(--white);
    text-decoration: none; font-size: .88rem; font-weight: 750;
}
.button.secondary {
    background: var(--white); color: var(--ink); border: 1px solid #aabec7;
}
.text-link {
    color: var(--blue); font-weight: 700; text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; }
.section { padding: 88px 0; }
.section.alt { background: var(--paper-2); }
.section-head {
    display: grid; grid-template-columns: .66fr 1.34fr; gap: 70px; margin-bottom: 44px;
}
.section-head p { margin: 12px 0 0; max-width: 720px; }
.rule { height: 1px; background: var(--line); }

/* Home */
.hero {
    position: relative;
    padding: 118px 0 112px;
    background:
        linear-gradient(rgba(10,24,34,.48), rgba(10,24,34,.42)),
        url("../img/hero-sausalito.jpg") center center / cover no-repeat;
    color: var(--white);
}
.hero-grid {
    display: block;
}
.hero h1 {
    max-width: 760px;
    margin-top: 18px;
    color: var(--white);
}
.hero .lead {
    max-width: 760px;
    margin: 25px 0 30px;
    color: rgba(255,255,255,.92);
}
.hero .eyebrow { color: #c7e0ec; }
.hero .button.secondary {
    background: rgba(255,255,255,.08);
    color: var(--white);
    border-color: rgba(255,255,255,.42);
}
.hero-media { display: none; }
.hero-caption { display: none; }
.stats-band { border-block: 1px solid var(--line); background: var(--white); }
.stats {
    display: grid; grid-template-columns: repeat(4,1fr);
}
.stat { padding: 23px 22px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--blue-dark); font: 500 1.65rem var(--serif); }
.stat span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-card {
    min-height: 315px; padding: 28px; background: var(--white); border: 1px solid var(--line);
    display: flex; flex-direction: column;
}
.service-num { color: #91a9b3; font: 500 1.2rem var(--serif); }
.service-card h3 { margin-top: 82px; font-size: 1.32rem; }
.service-card p { color: var(--muted); margin: 10px 0 22px; }
.service-card a { margin-top: auto; color: var(--blue); font-size: .88rem; font-weight: 750; text-decoration: none; }

.feature-band { background: var(--blue-dark); color: var(--white); }
.feature-grid {
    display: block;
    min-height: 0;
}
.feature-media { display: none; }
.feature-copy {
    max-width: 900px;
    padding: 74px 0;
    align-self: center;
}
.feature-copy .eyebrow { color: #a2d0e3; }
.feature-copy h2 { margin: 16px 0 24px; }
.feature-copy p { color: #dbe8ed; font-size: 1.05rem; }
.feature-list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.2); }
.feature-list li {
    display: flex; justify-content: space-between; gap: 25px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.2);
}
.feature-list span:last-child { color: #a2d0e3; font-size: .88rem; }

.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 60px; }
.project-row { position: relative; padding: 23px 0 32px; border-top: 1px solid #a9bbc4; }
.project-row h3 { max-width: 480px; font: 500 1.65rem/1.15 var(--serif); letter-spacing: -.025em; }
.project-row p { color: var(--muted); max-width: 510px; margin: 10px 0 0; }
.project-meta { margin-top: 14px; color: var(--blue); font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.domain-preview {
    display: grid; grid-template-columns: repeat(4,1fr);
    border-top: 1px solid #cad8de; border-left: 1px solid #cad8de;
}
.domain-preview a {
    padding: 18px; background: rgba(255,255,255,.65); border-right: 1px solid #cad8de;
    border-bottom: 1px solid #cad8de; font: 500 1.15rem var(--serif); text-decoration: none;
}
.domain-preview a:hover { background: var(--white); color: var(--blue); }

.timeline { margin-top: 32px; }
.timeline-row {
    display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 14px 0;
    border-top: 1px solid var(--line);
}
.timeline-row strong { color: var(--blue-dark); font: 500 1.2rem var(--serif); }
.timeline-row span { color: var(--ink-soft); }

.cta-band { background: var(--ink); color: var(--white); padding: 68px 0; }
.cta-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta-band h2 { max-width: 860px; }
.cta-band p { color: #c5d3d9; max-width: 700px; margin-bottom: 0; }
.cta-band .button { background: var(--white); color: var(--ink); flex: 0 0 auto; }

/* Interior */
.page-hero { padding: 78px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { max-width: 800px; margin: 22px 0 0; }
.split {
    display: grid; grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr);
    gap: 70px; align-items: start;
}
.archive-image {
    width: min(100%, 500px);
    justify-self: end;
    background: #dbe7eb;
    border: 1px solid var(--line);
    padding: 12px;
}
.archive-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}
.note {
    padding: 20px 22px; background: var(--paper-2); border-left: 3px solid var(--blue);
    color: var(--ink-soft);
}
.logo-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.logo-tile {
    min-height: 100px; padding: 18px; background: var(--white); border: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: space-between;
}
.logo-tile strong { font: 500 1.2rem var(--serif); }
.logo-tile span { color: var(--muted); font-size: .8rem; }

.filterbar {
    display: flex; gap: 12px; align-items: center; margin: 26px 0;
}
.filterbar input {
    width: min(440px,100%); border: 1px solid var(--line-dark); background: var(--white);
    padding: 12px 13px; border-radius: 4px; color: var(--ink);
}
.domain-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.domain-item {
    padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--white); font: 500 1.08rem var(--serif);
}
.domain-item[hidden] { display: none; }

.cards-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.info-card { border: 1px solid var(--line); background: var(--white); padding: 27px; }
.info-card h3 { font: 500 1.45rem var(--serif); }
.info-card p { color: var(--muted); }

.team-list { display: grid; gap: 0; }
.team-member {
    display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding: 30px 0;
    border-top: 1px solid var(--line);
}
.team-member h3 { font: 500 1.45rem var(--serif); }
.team-role { color: var(--blue); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.team-member p { color: var(--ink-soft); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; align-items: start; }
.contact-aside p { color: var(--muted); }
.contact-form { background: var(--white); border: 1px solid var(--line); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 6px; font-size: .78rem; font-weight: 750; }
.field input, .field textarea, .field select {
    width: 100%; border: 1px solid #b9c8cf; background: #fff; color: var(--ink);
    padding: 11px 12px; border-radius: 3px;
}
.field textarea { min-height: 165px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: 3px solid rgba(11,95,142,.16); outline-offset: 1px; border-color: var(--blue);
}
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status {
    display: none; margin: 0 0 20px; padding: 12px 14px; border: 1px solid;
}
.form-status.show { display: block; }
.form-status.success { background: #edf6ee; border-color: #719479; }
.form-status.error { background: #fbefef; border-color: #ad6c6c; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #0b1b23; color: #9eb0b8; }
.footer-inner {
    display: grid; grid-template-columns: 1fr auto; gap: 50px; padding: 38px 0;
    align-items: end;
}
.footer-brand-name { color: var(--white); font-weight: 700; letter-spacing: -.02em; }
.footer-copy { font-size: .8rem; margin-top: 5px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a { font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* 404 / prose */
.prose h2 { margin-top: 1.8em; font-size: 1.8rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; }


/* Actual Epicenter publication covers */
.book-showcase {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}
.book-showcase-card { min-width: 0; }
.book-cover-frame {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #edf2f4;
    border: 1px solid var(--line);
    overflow: hidden;
}
.book-cover-frame img {
    display: block;
    max-width: 100%;
    max-height: 214px;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 24px rgba(15, 35, 45, .16);
}
.book-showcase-card h3 {
    margin-top: 15px;
    font: 500 1.18rem/1.2 var(--serif);
    letter-spacing: -.015em;
}
.book-showcase-card p {
    color: var(--muted);
    margin: 7px 0 0;
    font-size: .9rem;
}
.book-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    padding: 0;
    background: transparent;
    border: 0;
}
.book-collage .cover-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 18px;
    background: #edf2f4;
    border: 1px solid var(--line);
}
.book-collage img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(15,35,45,.16));
}
.info-card.with-cover {
    display: block;
}
.info-card.with-cover::after {
    content: "";
    display: block;
    clear: both;
}
.info-card .card-cover {
    float: left;
    width: 88px;
    height: 114px;
    object-fit: contain;
    object-position: center center;
    background: #edf1f2;
    border: 1px solid var(--line);
    padding: 5px;
    margin: 4px 18px 12px 0;
}
.info-card.with-cover .card-copy {
    min-width: 0;
    display: block;
}
.info-card.with-cover .card-copy h3 {
    margin-top: 6px;
}



/* Homepage selected publications */
.home-selected-work {
    background: var(--paper);
}
.selected-work-heading {
    max-width: 760px;
    margin-bottom: 38px;
}
.selected-work-heading .eyebrow {
    margin-bottom: 12px;
}
.selected-work-heading h2 {
    max-width: 720px;
    font-size: clamp(2.15rem, 3.4vw, 3rem);
}
.selected-work-heading .lead {
    max-width: 700px;
    margin: 13px 0 0;
    font-size: 1.08rem;
}
.home-book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.home-book-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.home-book-frame {
    height: 202px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #f1f5f6;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.home-book-frame img {
    display: block;
    width: 160px;
    height: 152px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 8px 10px rgba(15,35,45,.14));
}
.home-book-copy {
    padding: 17px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.home-book-card h3 {
    margin: 0;
    min-height: 3.45em;
    font: 500 1.05rem/1.35 var(--serif);
    letter-spacing: -.014em;
}
.home-book-card p {
    margin: auto 0 0;
    padding-top: 12px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}
.selected-work-footer {
    margin-top: 28px;
}
@media (max-width: 960px) {
    .home-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .home-book-grid { grid-template-columns: 1fr; }
    .home-book-frame { height: 190px; }
    .home-book-card h3 { min-height: 0; }
}

/* Responsive */
@media (max-width: 960px) {
    .hero-grid, .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }
    .service-card h3 { margin-top: 34px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-copy { padding: 55px 0; }
    .logo-list, .domain-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
    .wrap, .narrow { width: min(100% - 30px, var(--max)); }
    .menu-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 15px; right: 15px; top: 66px;
        padding: 18px; background: var(--white); border: 1px solid var(--line);
        box-shadow: 0 18px 45px rgba(16,35,45,.12);
        flex-direction: column; align-items: stretch; gap: 0;
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 10px 2px; }
    .site-nav .contact-link { border: 0; padding: 10px 2px; border-radius: 0; }
    .hero { padding: 82px 0 78px; }
    .hero-grid { gap: 40px; }
    .stats { grid-template-columns: 1fr; }
    .stat { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: 0; }
    .section { padding: 64px 0; }
    .section-head { gap: 16px; }
    .project-grid, .cards-2 { grid-template-columns: 1fr; }
    .book-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .book-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .domain-preview, .domain-grid, .logo-list { grid-template-columns: 1fr; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .team-member { grid-template-columns: 1fr; gap: 10px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .book-showcase { grid-template-columns: 1fr; }
    .book-collage { grid-template-columns: 1fr; }
    .book-cover-frame,
    .book-collage .cover-cell { min-height: 240px; height: auto; }
    .info-card .card-cover { width: 78px; height: 102px; margin: 4px 14px 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
