@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Sora:wght@300;400;500;600&display=swap');

:root {
    --bg: #f4f6f3;
    --bg-strong: #e6ece6;
    --surface: #ffffff;
    --surface-soft: #edf1ed;
    --surface-contrast: #f7f9f7;
    --ink: #0f1a1f;
    --muted: #5a6a70;
    --muted-strong: #2e3c42;
    --accent: #2a6f6b;
    --accent-strong: #1e4f4a;
    --accent-soft: rgba(42, 111, 107, 0.12);
    --border: rgba(15, 26, 31, 0.12);
    --shadow: 0 22px 46px rgba(15, 26, 31, 0.1);
    --shadow-soft: 0 12px 26px rgba(15, 26, 31, 0.08);
}

html[data-theme='dark'] {
    --bg: #0f1416;
    --bg-strong: #141b1e;
    --surface: #161e21;
    --surface-soft: #1c2427;
    --surface-contrast: #182226;
    --ink: #eef3f3;
    --muted: #b1bdc2;
    --muted-strong: #d0d9dc;
    --accent: #68b2a6;
    --accent-strong: #82c8bb;
    --accent-soft: rgba(104, 178, 166, 0.12);
    --border: rgba(238, 243, 243, 0.14);
    --shadow: 0 24px 46px rgba(6, 9, 10, 0.5);
    --shadow-soft: 0 10px 22px rgba(6, 9, 10, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, rgba(42, 111, 107, 0.08), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg-strong));
    line-height: 1.65;
}

.page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(42, 111, 107, 0.12), transparent 42%),
        radial-gradient(circle at 84% 6%, rgba(30, 79, 74, 0.1), transparent 38%);
    pointer-events: none;
    opacity: 0.7;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(244, 246, 243, 0.86);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 6vw 1rem;
    backdrop-filter: blur(18px);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

html[data-theme='dark'] .site-header {
    background: rgba(15, 20, 22, 0.82);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "brand toggle"
        "nav nav";
    gap: 1rem;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-area: brand;
}

.brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.35rem;
    box-shadow: var(--shadow-soft);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.brand-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    letter-spacing: 0.08rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.brand-subtitle {
    font-size: 0.92rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.84rem;
    letter-spacing: 0.08rem;
    font-family: 'Sora', sans-serif;
    padding: 0.65rem 0;
    grid-area: nav;
}

.theme-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    padding: 0;
    transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    color: var(--muted-strong);
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-strong);
    position: absolute;
    inset: 0;
    margin: auto;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.6;
}

.toggle-icon--sun {
    opacity: 1;
}

.toggle-icon--moon {
    opacity: 0;
}

html[data-theme='dark'] .toggle-icon--sun {
    opacity: 0;
}

html[data-theme='dark'] .toggle-icon--moon {
    opacity: 1;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted-strong);
    font-weight: 500;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    border-color: var(--accent);
    background: rgba(42, 111, 107, 0.08);
}

main {
    scroll-snap-type: none;
}

.section {
    padding: 5.2rem 6vw 4.6rem;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.section--alt {
    background: linear-gradient(180deg, var(--surface-contrast), transparent 78%);
}

.section-header {
    display: grid;
    gap: 0.35rem;
    max-width: 860px;
}

.section::before {
    content: none;
}

.section > * {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.hero .section-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem;
    align-items: start;
    min-height: 70vh;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.4rem, 5.5vw, 3.9rem);
    letter-spacing: 0.06rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.typing {
    display: inline-block;
    min-height: 1em;
    position: relative;
    white-space: nowrap;
}

.typing::after {
    content: "";
    position: absolute;
    right: -0.35rem;
    top: 50%;
    transform: translateY(-55%);
    width: 2px;
    height: 1.05em;
    background: var(--accent);
    animation: caret 0.9s steps(1) infinite;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.hero-lead {
    max-width: 560px;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    font-size: 0.66rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.hero-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.stat-title {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    color: var(--muted);
}

.stat-value {
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
}

.hero-panels {
    margin-top: 2.2rem;
}

.card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    font-size: 0.62rem;
    color: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3.2vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.section-lead {
    max-width: 760px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1.02rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.profile,
.service,
.stage {
    background: var(--surface);
    border-radius: 18px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.profile:hover,
.service:hover,
.stage:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.card.highlight {
    background: var(--surface-soft);
    border-color: var(--accent);
}

.section-subhead {
    margin: 2.6rem 0 1.4rem;
    display: grid;
    gap: 0.35rem;
}

.section-subhead .eyebrow {
    margin-bottom: 0;
}

.section-subhead h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--ink);
}

.service--compact {
    padding: 1.4rem;
}

.service--compact h3 {
    font-size: 1.02rem;
}

.service-compact-grid {
    align-items: stretch;
}

.profile h3,
.service h3,
.card h3,
.stage h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--ink);
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(42, 111, 107, 0.18), rgba(15, 26, 31, 0.06));
    border: 1px dashed rgba(42, 111, 107, 0.35);
    margin-bottom: 1.3rem;
}

.profile-role {
    font-weight: 600;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.statement {
    background: var(--surface);
    border-radius: 18px;
    padding: 2.3rem;
    font-size: 1.05rem;
    color: var(--muted-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.statement.span-two {
    grid-column: 1 / -1;
}

.contact-form {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted-strong);
}

.form-field span {
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    font-size: 0.62rem;
}

.form-field input,
.form-field textarea {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0.85rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 111, 107, 0.16);
}

.form-field.span-two {
    grid-column: 1 / -1;
}

.form-submit {
    justify-self: start;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.form-submit:hover,
.form-submit:focus-visible {
    background: var(--accent-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.stage {
    position: relative;
}

.stage-number {
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.note {
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    color: var(--muted-strong);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.spacer {
    margin-top: 2.5rem;
}

.site-footer {
    padding: 2.5rem 6vw 3rem;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: transparent;
}

.site-footer p {
    max-width: 1040px;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typing::after {
        animation: none !important;
    }

    .reveal {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
        padding: 1.4rem 6vw 1rem;
    }

    .header-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "toggle";
    }

    .theme-toggle {
        justify-self: start;
    }

    .site-nav {
        padding: 0.65rem 0;
    }

    main {
        scroll-snap-type: none;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes caret {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}
