:root {
    --ink: #182b31;
    --deep: #153f47;
    --teal: #2e7e7e;
    --mint: #acd9c8;
    --cream: #f4f0e6;
    --coral: #ef8c74;
    --line: rgba(24, 43, 49, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    padding: 86px 0 58px;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(172, 217, 200, .65), transparent 31rem),
        radial-gradient(circle at 5% 82%, rgba(239, 140, 116, .18), transparent 27rem),
        var(--cream);
}
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 5vw, 76px);
    border-bottom: 1px solid var(--line);
    background: rgba(244, 240, 230, .9);
    backdrop-filter: blur(18px);
}
.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 600;
}
.brand-mark { color: var(--coral); font-size: 1.45rem; }
.tabs { display: flex; gap: clamp(9px, 2.8vw, 38px); height: 100%; }
.tabs button {
    position: relative;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.tabs button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--coral);
    transform: scaleX(0);
    transition: transform .25s ease;
}
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:focus-visible, .text-link:focus-visible, a:focus-visible, .submit-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

main { min-height: calc(100vh - 144px); }
.panel {
    position: relative;
    min-height: calc(100vh - 144px);
    padding: clamp(58px, 9vh, 110px) clamp(24px, 8vw, 128px);
    animation: arrive .45s ease both;
}
.panel[hidden] { display: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--teal);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow span { width: 34px; height: 1px; background: var(--coral); }
h1, h2, h3 { margin: 0; font-family: "Playfair Display", serif; font-weight: 600; line-height: 1.04; }
h1 { max-width: 780px; margin-top: 24px; font-size: clamp(3.5rem, 8vw, 7.8rem); letter-spacing: -.045em; }
h1 em, h2 em { color: var(--teal); font-weight: 500; }
.lead { max-width: 620px; margin: 32px 0 0; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.5; }
.intro { max-width: 560px; margin: 15px 0 27px; color: rgba(24, 43, 49, .7); line-height: 1.75; }
.text-link, .project-card a {
    padding: 0 0 5px;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: var(--deep);
    background: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}
.text-link span, .project-card a span, .submit-button span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.text-link:hover span, .project-card a:hover span, .submit-button:hover span { transform: translateX(5px); }

.orbit-art { position: absolute; top: 11%; right: 8%; width: 340px; height: 340px; opacity: .62; z-index: -1; }
.planet { position: absolute; top: 115px; left: 115px; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), #f5c4a5); box-shadow: 0 20px 60px rgba(239, 140, 116, .3); }
.ring { position: absolute; inset: 40px; border: 1px solid rgba(46, 126, 126, .35); border-radius: 50%; transform: rotate(-22deg) scaleY(.44); }
.ring-two { inset: 0; border-style: dashed; transform: rotate(27deg) scaleY(.6); }

.section-heading { text-align: center; }
.section-heading .eyebrow { justify-content: center; }
h2 { margin-top: 19px; font-size: clamp(3rem, 6vw, 5.8rem); letter-spacing: -.04em; }
.section-heading > p { color: rgba(24, 43, 49, .68); font-size: 1.08rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin: 50px auto 0; }
.project-card { position: relative; min-height: 365px; padding: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(24, 43, 49, .11); }
.book-card { color: #f8f4e9; background: var(--deep); }
.fact-card { background: rgba(255, 255, 255, .43); }
.card-number { position: absolute; top: 32px; right: 35px; opacity: .45; font-size: .75rem; letter-spacing: .15em; }
.card-symbol { height: 115px; color: var(--coral); font-size: 4.2rem; }
.card-type { margin: 0 0 10px; opacity: .68; font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.project-card h3 { font-size: clamp(2rem, 4vw, 3.1rem); }
.project-card > p:not(.card-type) { max-width: 410px; margin: 17px 0 27px; opacity: .76; line-height: 1.65; }
.book-card .coming-soon { color: var(--mint); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }

#contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr); gap: clamp(40px, 9vw, 130px); align-items: center; max-width: 1300px; margin: auto; }
#contact[hidden] { display: none; }
.contact-copy > p { max-width: 460px; color: rgba(24, 43, 49, .72); font-size: 1.1rem; line-height: 1.75; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 20px; padding: 32px; border: 1px solid var(--line); background: rgba(255, 255, 255, .38); box-shadow: 18px 18px 0 rgba(172, 217, 200, .42); }
.contact-form label { margin-top: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(24, 43, 49, .36); border-radius: 0; outline: none; color: var(--ink); background: transparent; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral); }
.contact-form label:nth-of-type(n+3), .contact-form input:nth-of-type(n+4), .contact-form textarea, .contact-form .g-recaptcha, .submit-button, .form-notice { grid-column: 1 / -1; }
.contact-form textarea { resize: vertical; }
.g-recaptcha { margin-top: 12px; }
.submit-button { justify-self: start; margin-top: 8px; padding: 13px 22px; border: 1px solid var(--deep); color: #fff; background: var(--deep); cursor: pointer; font-weight: 600; }
.honey { position: absolute !important; left: -9999px !important; }
.form-notice { padding: 12px 14px; font-size: .9rem; }
.form-notice.success { color: #174e3f; background: rgba(172, 217, 200, .55); }
.form-notice.error { color: #762f23; background: rgba(239, 140, 116, .23); }

.site-footer { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); border-top: 1px solid var(--line); color: rgba(24, 43, 49, .64); background: rgba(244, 240, 230, .92); backdrop-filter: blur(16px); font-size: .75rem; letter-spacing: .05em; }

@media (max-width: 800px) {
    body { padding-top: 124px; }
    .site-header { height: 124px; align-items: flex-start; padding-top: 20px; }
    .brand { font-size: 1.08rem; }
    .tabs { position: absolute; bottom: 0; left: 18px; right: 18px; height: 54px; justify-content: space-around; }
    .tabs button { padding: 0 8px; }
    main, .panel { min-height: calc(100vh - 182px); }
    .panel { padding: 48px 24px 80px; }
    .orbit-art { top: 20%; right: -150px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { min-height: 330px; padding: 30px; }
    #contact { display: block; }
    .contact-form { margin-top: 38px; padding: 23px; box-shadow: 10px 10px 0 rgba(172, 217, 200, .42); }
}

@media (max-width: 480px) {
    h1 { font-size: 3.25rem; }
    .footer-note { display: none; }
    .site-footer { justify-content: center; }
    .contact-form { grid-template-columns: 1fr; }
    .contact-form label, .contact-form input { grid-column: 1; }
    .g-recaptcha { transform: scale(.83); transform-origin: left center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
