/* ===========================================
   Breakwater Partners — Minimal
   =========================================== */

:root {
    --ink: #0f1419;
    --ink-soft: #4a5460;
    --ink-faint: #8a929c;
    --line: #e5e7ea;
    --line-soft: #f0f1f3;
    --bg: #ffffff;
    --bg-alt: #f7f7f5;
    --accent: #b8763a;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1080px;
    --gutter: clamp(1.25rem, 4vw, 2rem);
    --section-pad: clamp(4.5rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ============= Nav ============= */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.nav__brand {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.nav__brand span {
    color: var(--ink-faint);
    font-weight: 400;
}
.nav__links {
    display: flex;
    gap: 1.75rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.nav__links a:hover { color: var(--ink); }

@media (max-width: 640px) {
    .nav__links { display: none; }
}

/* ============= Hero ============= */
.hero {
    padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
}
.hero__headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 22ch;
    margin-bottom: 1.5rem;
}
.hero__lede {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 58ch;
    margin-bottom: 2rem;
}
.link-arrow {
    display: inline-block;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============= Sections ============= */
.section {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }

.kicker {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1.5rem;
}
.kicker--sub {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.section__title {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 32ch;
    margin-bottom: 3rem;
}

/* ============= Grids ============= */
.grid {
    display: grid;
    gap: 2rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
    .grid--2, .grid--3 { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ============= Cards (What we do) ============= */
.card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}
.card h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.card {
    padding-top: 1.25rem;
    border-top: 1px solid var(--ink);
}
.card--quiet {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

/* ============= Steps (How we work) ============= */
.steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 3rem;
    margin-bottom: 4.5rem;
    counter-reset: step;
}
.steps li {
    display: flex;
    gap: 1.25rem;
}
.steps li span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-faint);
    letter-spacing: 0.05em;
    padding-top: 3px;
    flex-shrink: 0;
}
.steps h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.35rem;
    letter-spacing: -0.005em;
}
.steps p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 42ch;
}

@media (max-width: 720px) {
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
}

.models {
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* ============= Reasons (Why) ============= */
.grid--reasons { gap: 2.5rem 4rem; }
.grid--reasons h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}
.grid--reasons p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 44ch;
}

/* ============= Boundaries ============= */
.boundaries {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.boundaries ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}
.boundaries li {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}
.boundaries strong {
    display: block;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

@media (max-width: 720px) {
    .boundaries ul { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============= Case (Work) ============= */
.case {
    max-width: 64ch;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ink);
    margin-bottom: 2rem;
}
.case__meta {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.75rem;
}
.case__title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.005em;
    margin-bottom: 1rem;
    line-height: 1.35;
}
.case__body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 1rem;
}
.case__body:last-of-type { margin-bottom: 0; }
.case__list {
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}
.case__list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.case__list li:last-child { border-bottom: 0; }
.case__list strong {
    color: var(--ink);
    font-weight: 500;
}
.case__note {
    font-size: 0.82rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* ============= Contact ============= */
.section--contact {
    background: var(--bg-alt);
}
.section--contact .section__title {
    margin-bottom: 1.25rem;
}
.contact__body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: 2.5rem;
}
.contact__email {
    display: inline-block;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
    transition: color .2s ease, border-color .2s ease;
}
.contact__email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.contact__location {
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-top: 1.5rem;
    letter-spacing: 0.02em;
}

/* ============= Footer ============= */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--ink-faint);
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============= Reveal ============= */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
