:root {
    --ink: #142033;
    --navy: #0c2340;
    --navy-2: #163454;
    --paper: #f3efe6;
    --paper-2: #fffdf8;
    --teal: #0f766e;
    --teal-ink: #084840;
    --mint: #9ee6c4;
    --line: #e2d8c8;
    --danger: #8f2d2d;
    --muted: #5c6b7a;
    --shadow: 0 18px 50px rgba(12, 35, 64, 0.16);
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
    --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.55;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 0 0 0.7rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.9rem; }

.skip { position: absolute; left: 0.5rem; top: -4rem; background: white; padding: 0.4rem 0.7rem; z-index: 5; }
.skip:focus { top: 0.5rem; }

.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 2rem)); }

.site-header { background: var(--navy); color: #f4efe6; position: sticky; top: 0; z-index: 4; }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { display: flex; gap: 0.7rem; align-items: center; color: inherit; text-decoration: none; }
.mark {
    display: grid; place-items: center;
    width: 2.3rem; height: 2.3rem; border-radius: 0.6rem;
    border: 2px solid rgba(244, 239, 230, 0.75);
    font-family: var(--serif); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
}
.brand strong { display: block; font-size: 1rem; }
.brand small { display: block; color: #c9d4e0; font-size: 0.78rem; }
.header-nav { display: flex; gap: 1.1rem; align-items: center; }
.header-nav a { color: #f4efe6; text-decoration: none; font-size: 0.95rem; }
.header-cta { border: 1px solid rgba(244, 239, 230, 0.45); border-radius: 999px; padding: 0.45rem 0.9rem; white-space: nowrap; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; color: var(--mint); margin-bottom: 0.7rem; }
.eyebrow.dark { color: var(--teal); }

.hero { position: relative; isolation: isolate; color: #f7f3ea; padding: 4rem 0 4.5rem; overflow: hidden; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-photo img { object-fit: cover; object-position: center 45%; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(12, 35, 64, 0.84) 0%, rgba(12, 35, 64, 0.6) 50%, rgba(12, 35, 64, 0.88) 100%);
}
.hero h1, .hero .lede { color: #f7f3ea; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.hero h1 { max-width: 16ch; }
.lede { font-size: 1.12rem; max-width: 42rem; color: #e6ecf3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.ghost { color: #f4efe6; text-decoration: underline; text-underline-offset: 0.2em; }

.button, button[type="submit"] {
    display: inline-block; font: inherit; font-weight: 600;
    background: var(--teal); color: white; text-decoration: none;
    border: 0; border-radius: 999px; padding: 0.75rem 1.2rem; min-height: 3rem; cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: var(--teal-ink); }
.button-lg { font-size: 1.08rem; padding: 0.95rem 1.6rem; min-height: 3.4rem; }

.section { padding: 3rem 0; }
.cards { display: grid; gap: 1rem; margin-top: 0.6rem; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem 1.3rem 0.8rem; }
.card h3 { color: var(--navy); }

.photo-band, .contact { position: relative; isolation: isolate; color: #f7f3ea; overflow: hidden; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: center 40%; }
.photo-band::before, .contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 35, 64, 0.8); }
.contact::before { background: rgba(8, 72, 64, 0.78); }
.band-copy { padding: 3.2rem 1rem; }
.photo-band h2, .contact h2 { color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.photo-band p, .contact p { color: #e6ecf3; }
.work-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.work { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1rem; padding: 1.3rem 1.3rem 1rem; }
.work h3 a { color: var(--mint); text-decoration: none; }
.work .more { color: #f4efe6; font-size: 0.95rem; }

.ipg { background: var(--paper-2); }
.ipg-grid { display: grid; gap: 1.5rem; align-items: center; }
.ipg-photo { margin: 0; }
.ipg-photo img { border-radius: 1rem; box-shadow: var(--shadow); display: block; }

.plain-list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.8rem; }
.plain-list li { padding-left: 1rem; border-left: 3px solid var(--teal); }

.contact-grid { display: grid; gap: 1.6rem; padding: 3.2rem 1rem; }
.contact-form { background: var(--paper-2); color: var(--ink); border-radius: 1.1rem; padding: 1.3rem 1.3rem 1.4rem; box-shadow: var(--shadow); }
.contact-form p { color: var(--ink); }
.field { margin: 0 0 0.9rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; padding: 0.75rem 0.8rem; min-height: 3rem;
    border-radius: 0.6rem; border: 1px solid #cabbab; background: white; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 8rem; }
.fields { display: grid; gap: 0.8rem; }
.field-error, .form-error { color: var(--danger); margin: 0.3rem 0 0; }
.form-error { background: #fdecec; border: 1px solid #f0c2c2; border-radius: 0.6rem; padding: 0.7rem 0.8rem; margin-bottom: 0.9rem; }
.contact-form .button-lg { width: 100%; text-align: center; }
.fine { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 0; }
.contact-form .fine { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.receipt h1 { color: var(--navy); }
.prose h2 { font-size: 1.4rem; margin-top: 1.4rem; }

.site-footer { background: var(--navy); color: #d5deea; padding: 1.8rem 0 2.2rem; }
.site-footer a { color: #f4efe6; }
.footer-grid { display: grid; gap: 1rem; }
.footer-grid div:last-child { display: flex; flex-direction: column; gap: 0.35rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

@media (max-width: 560px) {
    .brand small { display: none; }
    .header-nav a:not(.header-cta) { display: none; }
}

@media (min-width: 800px) {
    .hero { padding: 6rem 0 6.5rem; }
    .cards { grid-template-columns: repeat(3, 1fr); }
    .work-grid { grid-template-columns: 1fr 1fr; }
    .ipg-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; padding: 5rem 1rem; }
    .fields { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr; }
    .band-copy { padding: 5rem 1rem; }
}
