:root {
    --tor-primary: #072544;
    --tor-secondary: #155A96;
    --tor-accent: #BC8871;
    --tor-bg-dark: #041C36;
    --tor-bg-alt: #163B5E;
    --tor-text-primary: #FFFFFF;
    --tor-text-secondary: #B8C7D9;
    --tor-text-muted: #6F8CA8;
    --tor-border: rgba(255, 255, 255, 0.08);
    --tor-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

/* =========================
   BASE
   ========================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tor-bg-dark);
    color: var(--tor-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem 0;
    color: var(--tor-text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

p {
    margin: 0 0 1rem 0;
    color: var(--tor-text-secondary);
}

ul,
ol {
    margin: 0 0 1rem 0;
    padding-left: 1.25rem;
    color: var(--tor-text-secondary);
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--tor-secondary);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

    a:hover,
    a:focus {
        color: var(--tor-accent);
    }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

section {
    margin: 0;
}

/* =========================
   HEADER / NAV
   ========================= */

header,
.navbar {
    margin-bottom: 0 !important;
}

.navbar {
    position: relative;
    height: 0.75in;
    min-height: 64px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 15% 50%, rgba(120, 170, 220, 0.25), transparent 35%), radial-gradient(circle at 85% 50%, rgba(40, 90, 160, 0.25), transparent 35%), linear-gradient(90deg, #041C36 0%, #072544 22%, #155A96 50%, #072544 78%, #041C36 100%);
    border-bottom: 1px solid var(--tor-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

    .navbar::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 28%, rgba(140, 200, 255, 0.16) 48%, transparent 68%);
        opacity: 0.45;
        pointer-events: none;
    }

    .navbar::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
        pointer-events: none;
    }

    .navbar > * {
        position: relative;
        z-index: 2;
    }

/* Header content layout */
.site-header .container,
.nav-inner {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand,
.navbar-brand {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--tor-text-primary) !important;
    margin: 0;
}

.nav,
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

    .nav a,
    .nav-link {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        font-size: 1.06rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        line-height: 1;
        color: var(--tor-accent) !important;
        margin-left: 28px;
        text-decoration: none;
    }

        .nav a:hover,
        .nav a:focus,
        .nav-link:hover,
        .nav-link:focus {
            color: var(--tor-accent) !important;
            opacity: 0.82;
            transform: translateY(-1px);
        }

/* Shared page width */
.page-shell {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
}

/* =========================
   HOME HERO
   ========================= */

.hero-section {
    position: relative;
    min-height: calc(100vh - 0.75in);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 74% 44%, rgba(188, 136, 113, 0.10), transparent 18%), radial-gradient(circle at 18% 20%, rgba(21, 90, 150, 0.10), transparent 22%), linear-gradient(180deg, var(--tor-bg-dark) 0%, var(--tor-primary) 100%);
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    }

.hero-inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    min-height: calc(100vh - 0.75in);
    display: flex;
    align-items: center;
    gap: 2vw;
    position: relative;
    z-index: 1;
}

.hero-left,
.hero-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.hero-left {
    flex: 0 0 56%;
    justify-content: flex-start;
    padding: 2rem 1.5rem 2rem 2rem;
}

.hero-right {
    flex: 0 0 44%;
    justify-content: center;
    padding: 2rem 2rem 2rem 1.5rem;
}

.hero-copy {
    width: 100%;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.75rem, 4.1vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    max-width: 18ch;
    margin-bottom: 1.35rem;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1.18rem;
    line-height: 1.55;
    max-width: 540px;
    color: var(--tor-text-secondary);
    margin-bottom: 0;
}

.hero-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(1.5vw);
}

.hero-logo {
    width: min(82%, 470px);
    max-width: 470px;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.30));
}

/* =========================
   CONTACT HERO
   ========================= */

.contact-hero-section {
    position: relative;
    min-height: calc(100vh - 0.75in);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 72% 42%, rgba(188, 136, 113, 0.10), transparent 18%), radial-gradient(circle at 18% 20%, rgba(21, 90, 150, 0.10), transparent 22%), linear-gradient(180deg, var(--tor-bg-dark) 0%, var(--tor-primary) 100%);
}

    .contact-hero-section::before {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    }

.contact-hero-inner {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    min-height: calc(100vh - 0.75in);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2vw;
    position: relative;
    z-index: 1;
}

.contact-hero-left,
.contact-hero-right {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.contact-hero-left {
    flex: 0 0 55%;
    justify-content: flex-start;
    padding: 2rem 1.5rem 2rem 2rem;
}

.contact-hero-right {
    flex: 0 0 45%;
    justify-content: flex-end;
    padding: 2rem 2rem 2rem 1rem;
}

.contact-hero-copy {
    width: 100%;
    max-width: 760px;
    display: flex;
}

.contact-info-card,
.contact-map-card {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018)), rgba(255,255,255,0.02);
    border: 1px solid var(--tor-border);
    border-radius: 22px;
    box-shadow: var(--tor-shadow);
    backdrop-filter: blur(10px);
}

.contact-info-card {
    max-width: 720px;
    min-height: 100%;
    padding: 34px 34px 30px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-info-card h1 {
        font-size: clamp(2.2rem, 3.2vw, 3.6rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
        margin-bottom: 1.15rem;
    }

.contact-muted {
    color: var(--tor-text-muted);
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.contact-map-card {
    width: 100%;
    max-width: 540px;
    min-height: 100%;
    padding: 18px 18px 14px 18px;
    display: flex;
    flex-direction: column;
}

.contact-map {
    height: 360px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    flex: 1 1 auto;
}

.contact-map-note {
    margin: 10px 4px 0 4px;
    color: var(--tor-text-muted);
    font-size: 0.95rem;
}

.map-theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.96);
    color: #072544;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.tor-button--secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--tor-text-primary);
    box-shadow: none;
}

    .tor-button--secondary:hover,
    .tor-button--secondary:focus {
        color: var(--tor-text-primary);
        border-color: rgba(255,255,255,0.28);
        box-shadow: none;
    }

/* =========================
   ABOUT PAGE
   ========================= */

.about-page {
    position: relative;
    padding: 3.5rem 0 5rem;
    background: radial-gradient(circle at 18% 20%, rgba(21, 90, 150, 0.18), transparent 28%), radial-gradient(circle at 78% 28%, rgba(188, 136, 113, 0.10), transparent 20%), linear-gradient(180deg, #061a33 0%, #041c36 100%);
}

.about-shell {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.35fr;
    gap: 2rem;
    align-items: start;
}

.about-card {
    background: linear-gradient(180deg, rgba(11, 33, 67, 0.88) 0%, rgba(7, 26, 54, 0.94) 100%);
    border: 1px solid rgba(184, 199, 217, 0.14);
    border-radius: 28px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.founder-card {
    padding: 0;
}

.founder-image-wrap {
    position: relative;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 59, 94, 0.9) 0%, rgba(4, 28, 54, 1) 100%);
    border-bottom: 1px solid rgba(184, 199, 217, 0.12);
}

.founder-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.founder-content {
    padding: 2rem 2rem 2.2rem;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--tor-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.founder-name {
    margin: 0 0 0.45rem;
    color: var(--tor-text-primary);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.05;
}

.founder-role {
    margin: 0 0 1.35rem;
    color: var(--tor-text-secondary);
    font-size: 1.02rem;
    font-weight: 500;
}

.founder-bio p {
    margin: 0 0 1rem;
    color: var(--tor-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

    .founder-bio p:last-child {
        margin-bottom: 0;
    }

.posts-card {
    padding: 2rem;
}

.posts-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.4rem;
    border-bottom: 1px solid rgba(184, 199, 217, 0.12);
}

    .posts-header h2 {
        margin: 0;
        color: var(--tor-text-primary);
        font-size: clamp(1.7rem, 2.6vw, 2.35rem);
        font-weight: 800;
        line-height: 1.1;
    }

.posts-subtitle {
    max-width: 340px;
    margin: 0;
    color: var(--tor-text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    text-align: right;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    padding: 1.35rem 1.35rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid rgba(184, 199, 217, 0.10);
    border-radius: 22px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .post-item:hover {
        transform: translateY(-2px);
        border-color: rgba(188, 136, 113, 0.28);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.post-date {
    color: var(--tor-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.post-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(188, 136, 113, 0.12);
    border: 1px solid rgba(188, 136, 113, 0.22);
    color: #D7B09D;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.post-title {
    margin: 0 0 0.7rem;
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 700;
}

    .post-title a {
        color: var(--tor-text-primary);
        text-decoration: none;
    }

        .post-title a:hover {
            color: var(--tor-text-secondary);
        }

.post-excerpt {
    margin: 0 0 1rem;
    color: var(--tor-text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.post-link {
    color: var(--tor-accent);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

    .post-link:hover {
        color: var(--tor-text-primary);
    }

.empty-posts {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(184, 199, 217, 0.1);
}

    .empty-posts p {
        margin: 0 0 0.6rem;
        color: var(--tor-text-secondary);
        line-height: 1.7;
    }

        .empty-posts p:last-child {
            margin-bottom: 0;
        }

/* =========================
   CONTENT SECTIONS
   ========================= */

.content-section {
    padding: 76px 0;
}

    .content-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .content-section p:last-child,
    .content-section ul:last-child {
        margin-bottom: 0;
    }

.alt-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.015)), var(--tor-bg-alt);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

/* =========================
   CTA
   ========================= */

.cta-section {
    padding: 82px 0;
    background: radial-gradient(circle at 50% 0%, rgba(188, 136, 113, 0.10), transparent 22%), linear-gradient(180deg, var(--tor-bg-alt) 0%, var(--tor-primary) 100%);
}

.cta-inner {
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--tor-text-secondary);
}

/* =========================
   BUTTONS
   ========================= */

.tor-button,
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--tor-secondary), var(--tor-accent));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(7, 37, 68, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

    .tor-button:hover,
    .tor-button:focus,
    .btn-primary:hover,
    .btn-primary:focus {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 18px 36px rgba(7, 37, 68, 0.34);
    }

/* =========================
   UTILITIES
   ========================= */

.text-muted {
    color: var(--tor-text-muted) !important;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1199.98px) {
    .hero-left {
        flex-basis: 58%;
    }

    .hero-right {
        flex-basis: 42%;
    }

    .hero-title {
        max-width: 16ch;
    }

    .hero-logo {
        width: min(84%, 430px);
    }

    .contact-hero-left {
        flex-basis: 57%;
    }

    .contact-hero-right {
        flex-basis: 43%;
    }

    .contact-map-card {
        max-width: 500px;
    }
}

@media (max-width: 1100px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .posts-header {
        flex-direction: column;
        align-items: start;
    }

    .posts-subtitle {
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 991.98px) {
    .page-shell,
    .site-header .container,
    .nav-inner {
        width: min(100% - 32px, 1180px);
    }

    .navbar {
        height: auto;
        min-height: 72px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .brand,
    .navbar-brand {
        font-size: 1.35rem;
    }

    .nav a,
    .nav-link {
        font-size: 1rem;
        margin-left: 20px;
    }

    .hero-section,
    .hero-inner,
    .contact-hero-section,
    .contact-hero-inner {
        min-height: auto;
    }

    .hero-inner,
    .contact-hero-inner {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 64px 0 44px;
    }

    .hero-left,
    .hero-right,
    .contact-hero-left,
    .contact-hero-right {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 1rem 1rem;
    }

    .hero-copy,
    .contact-hero-copy {
        max-width: 760px;
    }

    .hero-title {
        max-width: none;
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        max-width: 620px;
        font-size: 1.05rem;
    }

    .hero-logo-wrap {
        transform: none;
    }

    .hero-logo {
        width: min(54%, 320px);
        margin-top: 0.5rem;
    }

    .contact-info-card,
    .contact-map-card {
        max-width: 760px;
        min-height: auto;
        margin-left: auto;
        margin-right: auto;
    }

        .contact-info-card h1 {
            font-size: 2.5rem;
        }

    .contact-map {
        height: 380px;
        flex: none;
    }

    .two-column,
    .three-column {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-section {
        padding: 58px 0;
    }

    .cta-section {
        padding: 64px 0;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    .site-header .container,
    .nav-inner {
        width: min(100% - 24px, 1180px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.65rem;
    }

    .navbar {
        min-height: 88px;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .brand,
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav,
    .navbar-nav {
        flex-wrap: wrap;
    }

        .nav a,
        .nav-link {
            margin-left: 0;
            margin-right: 18px;
            font-size: 0.98rem;
        }

    .hero-inner,
    .contact-hero-inner {
        width: min(100% - 24px, 1380px);
        padding: 52px 0 34px;
    }

    .hero-title {
        font-size: 2.15rem;
        line-height: 1.02;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-logo {
        width: min(62%, 260px);
    }

    .contact-info-card,
    .contact-map-card {
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 18px;
    }

        .contact-info-card h1 {
            font-size: 2.05rem;
        }

    .contact-map {
        height: 300px;
        border-radius: 14px;
    }

    .map-theme-toggle {
        top: 18px;
        right: 18px;
    }

    .about-page {
        padding: 2rem 0 3.5rem;
    }

    .about-shell {
        width: min(100% - 24px, 1320px);
    }

    .founder-content,
    .posts-card {
        padding: 1.35rem;
    }

    .post-item {
        padding: 1.1rem;
    }

    .content-section h2 {
        font-size: 1.65rem;
    }

    .cta-section h2 {
        font-size: 1.9rem;
    }

    .tor-button,
    .btn-primary {
        width: 100%;
        max-width: 320px;
    }
}
