/*
 * File: site.css
 * Path: /public_html/assets/css/site.css
 * Purpose: Premium Hull Software visual system with corrected responsive typography and overflow protection.
 */

/* -----------------------------------------------------------------------------
   1. Design System
----------------------------------------------------------------------------- */
:root {
    --ink: #0a111c;
    --navy: #101927;
    --navy-2: #162235;
    --navy-3: #1f2e45;
    --paper: #f3efe7;
    --paper-2: #faf8f3;
    --paper-3: #e9e2d6;
    --white: #ffffff;
    --slate: #5c6674;
    --slate-light: #aab3bf;
    --gold: #c6a36a;
    --gold-deep: #9a7543;
    --gold-pale: #eadcc5;
    --line-dark: rgba(255,255,255,.12);
    --line-light: rgba(10,17,28,.12);
    --shadow-soft: 0 30px 80px rgba(7,14,23,.12);
    --container: 1220px;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--navy);
    background: var(--paper-2);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.narrow {
    max-width: 920px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------------------------------------------
   2. Typography — corrected for real content widths
----------------------------------------------------------------------------- */
h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
}

h1 {
    font-size: clamp(2.9rem, 5.1vw, 5.85rem);
    line-height: .99;
}

h2 {
    font-size: clamp(2.15rem, 3.9vw, 4.15rem);
    line-height: 1.02;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.28;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--gold-deep);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow-gold {
    color: var(--gold);
}

.hero-lead,
.section-copy,
.section-heading > p:last-child {
    color: var(--slate);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
}

/* -----------------------------------------------------------------------------
   3. Header / Navigation
----------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(10,17,28,.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: max-content;
    color: var(--white);
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(198,163,106,.65);
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.08rem;
}

.brand-copy {
    display: grid;
    line-height: 1.08;
}

.brand-copy strong {
    color: var(--white);
    font-size: .98rem;
    letter-spacing: -.02em;
}

.brand-copy small {
    margin-top: 4px;
    color: #8f9bab;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-nav a {
    position: relative;
    color: #bcc5d1;
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
    color: var(--white);
}

.primary-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 1px;
    background: var(--gold);
}

.primary-nav .nav-cta {
    padding: 10px 17px;
    border: 1px solid rgba(198,163,106,.45);
    border-radius: 999px;
    color: var(--gold-pale);
}

.primary-nav .nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 1px;
    margin: 6px 0;
    background: var(--white);
}

/* -----------------------------------------------------------------------------
   4. Premium Home Hero
----------------------------------------------------------------------------- */
.premium-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 82px);
    background:
        radial-gradient(circle at 76% 33%, rgba(198,163,106,.09), transparent 30rem),
        linear-gradient(135deg, #09111c 0%, #101a29 57%, #111c2d 100%);
    color: var(--white);
}

.premium-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.premium-hero-grid {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 150px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(46px, 6vw, 88px);
    align-items: center;
    padding-top: clamp(64px, 7vw, 100px);
    padding-bottom: clamp(54px, 6vw, 78px);
}

.premium-hero-copy {
    min-width: 0;
}

.premium-hero-copy h1 {
    max-width: 780px;
    margin-bottom: 28px;
}

.premium-hero-copy h1 span {
    display: block;
    color: #cad3df;
}

.premium-hero-lead {
    max-width: 690px;
    margin-bottom: 0;
    color: #aab4c2;
    font-size: clamp(1.02rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.premium-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .01em;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-gold {
    background: var(--gold);
    color: var(--ink);
}

.button-ghost-light {
    border-color: rgba(255,255,255,.17);
    color: var(--white);
    background: rgba(255,255,255,.025);
}

.button-primary {
    background: var(--navy);
    color: var(--white);
}

.button-secondary {
    border-color: var(--line-light);
    background: rgba(255,255,255,.55);
}

.button-dark {
    background: var(--ink);
    color: var(--white);
}

.premium-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 650px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
}

.premium-proof-row > div {
    min-width: 0;
    padding-right: 18px;
}

.premium-proof-row strong,
.premium-proof-row span {
    display: block;
}

.premium-proof-row strong {
    margin-bottom: 3px;
    color: var(--gold-pale);
    font-family: var(--serif);
    font-size: 1.34rem;
    font-weight: 500;
}

.premium-proof-row span {
    color: #808c9c;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

/* -----------------------------------------------------------------------------
   5. CSS Hero Artwork
----------------------------------------------------------------------------- */
.premium-hero-visual {
    position: relative;
    min-width: 0;
    min-height: 500px;
    display: grid;
    place-items: center;
}

.visual-frame {
    position: relative;
    width: min(100%, 470px);
    aspect-ratio: .82;
    overflow: hidden;
    border: 1px solid rgba(198,163,106,.25);
    background:
        radial-gradient(circle at 63% 37%, rgba(198,163,106,.17), transparent 11rem),
        linear-gradient(155deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
    box-shadow:
        0 50px 100px rgba(0,0,0,.28),
        inset 0 0 80px rgba(255,255,255,.02);
}

.visual-frame::before,
.visual-frame::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(255,255,255,.07);
    transform: rotate(10deg);
}

.visual-frame::after {
    inset: 21%;
    border-color: rgba(198,163,106,.16);
    transform: rotate(-13deg);
}

.visual-grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 46px 46px;
    transform: perspective(900px) rotateX(62deg) scale(1.25);
    transform-origin: center bottom;
}

.visual-plane {
    position: absolute;
    border: 1px solid rgba(198,163,106,.34);
    background: linear-gradient(135deg, rgba(198,163,106,.08), rgba(255,255,255,.01));
}

.visual-plane-one {
    width: 58%;
    height: 32%;
    left: 10%;
    top: 17%;
    transform: rotate(-8deg) skewY(-5deg);
}

.visual-plane-two {
    width: 52%;
    height: 29%;
    right: 8%;
    bottom: 20%;
    transform: rotate(12deg) skewY(5deg);
}

.visual-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .7;
}

.visual-line-a {
    width: 88%;
    top: 31%;
    left: 6%;
    transform: rotate(-18deg);
}

.visual-line-b {
    width: 72%;
    bottom: 32%;
    right: 8%;
    transform: rotate(26deg);
}

.visual-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(198,163,106,.8);
    border-radius: 50%;
    background: rgba(10,17,28,.78);
    box-shadow:
        0 0 0 18px rgba(198,163,106,.035),
        0 0 0 42px rgba(198,163,106,.018),
        0 0 60px rgba(198,163,106,.16);
    transform: translate(-50%,-50%);
}

.visual-core span {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.85rem;
    letter-spacing: .08em;
}

.visual-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #718094;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.premium-hero-orbit {
    position: absolute;
    border: 1px solid rgba(198,163,106,.06);
    border-radius: 50%;
}

.premium-hero-orbit-one {
    width: 900px;
    height: 900px;
    right: -480px;
    top: -360px;
}

.premium-hero-orbit-two {
    width: 620px;
    height: 620px;
    right: -260px;
    top: -210px;
}

.premium-hero-foot {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 26px;
    border-top: 1px solid var(--line-dark);
    color: #6f7d8f;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
   6. Editorial Capabilities — corrected widths
----------------------------------------------------------------------------- */
.editorial-section {
    padding: clamp(82px, 9vw, 132px) 0;
    background: var(--paper-2);
}

.editorial-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: clamp(52px, 8vw, 110px);
    align-items: end;
    margin-bottom: 62px;
}

.editorial-intro > div {
    min-width: 0;
}

.editorial-intro h2 {
    max-width: 650px;
    margin-bottom: 0;
}

.editorial-intro-copy p {
    max-width: 500px;
    margin-bottom: 5px;
    color: var(--slate);
    font-size: 1.04rem;
}

.editorial-services {
    border-top: 1px solid var(--line-light);
}

.editorial-service {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 28px;
    padding: 38px 0;
    border-bottom: 1px solid var(--line-light);
}

.editorial-number {
    padding-top: 4px;
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: 1.14rem;
}

.editorial-service > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 105px minmax(190px, .75fr) minmax(280px, 1.25fr) minmax(135px, auto);
    gap: 24px;
    align-items: start;
}

.editorial-service > div > * {
    min-width: 0;
}

.editorial-kicker {
    margin: 4px 0 0;
    color: var(--gold-deep);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.editorial-service h3 {
    margin-bottom: 0;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 1.7vw, 1.95rem);
    font-weight: 500;
    letter-spacing: -.025em;
    overflow-wrap: break-word;
}

.editorial-service p:not(.editorial-kicker) {
    margin-bottom: 0;
    color: var(--slate);
    font-size: .95rem;
}

.editorial-service a {
    color: var(--navy);
    font-size: .76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: normal;
}

/* -----------------------------------------------------------------------------
   7. Heritage
----------------------------------------------------------------------------- */
.heritage-section {
    position: relative;
    overflow: hidden;
    padding: clamp(82px, 9vw, 132px) 0;
    background:
        radial-gradient(circle at 13% 20%, rgba(198,163,106,.08), transparent 24rem),
        var(--navy);
    color: var(--white);
}

.heritage-grid {
    display: grid;
    grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr);
    gap: clamp(55px, 8vw, 120px);
}

.heritage-heading {
    position: sticky;
    top: 125px;
    align-self: start;
    min-width: 0;
}

.heritage-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.35rem, 4vw, 4.1rem);
}

.heritage-timeline {
    min-width: 0;
    border-top: 1px solid var(--line-dark);
}

.heritage-item {
    display: grid;
    grid-template-columns: 90px minmax(0,1fr);
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--line-dark);
}

.heritage-year {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.08rem;
}

.heritage-item h3 {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: -.02em;
}

.heritage-item p {
    max-width: 620px;
    color: #a9b4c2;
}

.heritage-item a {
    color: var(--gold-pale);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   8. Training Pathways
----------------------------------------------------------------------------- */
.pathways-section {
    padding: clamp(82px, 9vw, 132px) 0;
    background: var(--paper);
}

.pathways-heading {
    max-width: 820px;
    margin-bottom: 52px;
}

.pathways-heading h2 {
    font-size: clamp(2.3rem, 4vw, 4.15rem);
}

.pathways-heading > p:last-child {
    max-width: 700px;
    color: var(--slate);
    font-size: 1.04rem;
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.pathway {
    position: relative;
    min-width: 0;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.pathway span {
    margin-bottom: 10px;
    color: var(--slate);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pathway strong {
    max-width: calc(100% - 45px);
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.1vw, 2.15rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.08;
    overflow-wrap: break-word;
}

.pathway em {
    position: absolute;
    top: 26px;
    right: 26px;
    color: var(--gold-deep);
    font-style: normal;
    font-size: 1.15rem;
}

.pathway:hover,
.pathway:focus-visible {
    background: var(--navy);
    color: var(--white);
}

/* -----------------------------------------------------------------------------
   9. Premium Contact
----------------------------------------------------------------------------- */
.premium-contact {
    padding: clamp(78px, 8vw, 112px) 0;
    background: var(--ink);
    color: var(--white);
}

.premium-contact-grid {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
    gap: 52px;
    align-items: end;
}

.premium-contact-grid > * {
    min-width: 0;
}

.premium-contact h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(2.3rem, 4vw, 4.25rem);
}

.premium-contact-actions {
    display: grid;
    justify-items: start;
    gap: 22px;
}

.premium-contact-actions > div {
    display: grid;
    gap: 3px;
}

.premium-contact-actions > div a {
    color: #9ca8b8;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   10. Existing Inner Page Compatibility
----------------------------------------------------------------------------- */
.page-hero {
    padding: clamp(76px, 8vw, 112px) 0 clamp(58px, 6vw, 82px);
    background:
        radial-gradient(circle at 90% 10%, rgba(198,163,106,.12), transparent 28rem),
        var(--paper);
}

.page-hero h1 {
    font-size: clamp(2.75rem, 5vw, 5.25rem);
}

.compact-hero {
    padding-bottom: 60px;
}

.section {
    padding: clamp(72px, 7vw, 100px) 0;
}

.section-soft {
    background: var(--paper);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}

.section-accent {
    background: var(--paper-3);
}

.section-heading {
    max-width: 790px;
    margin-bottom: 44px;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: clamp(42px, 7vw, 92px);
}

.split-section > * {
    min-width: 0;
}

.align-center {
    align-items: center;
}

.prose-light p {
    color: #b4becb;
    font-size: 1.02rem;
}

.card-grid {
    display: grid;
    gap: 20px;
}

.three-column {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.service-card {
    min-width: 0;
    min-height: 250px;
    padding: 28px;
    border: 1px solid var(--line-light);
    background: rgba(255,255,255,.75);
}

.service-card h2 {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.service-card h3 {
    overflow-wrap: break-word;
}

.service-card p,
.stack-list p,
.contact-card-large p:last-child {
    color: var(--slate);
}

.service-card a,
.text-link-light {
    color: var(--gold-deep);
    font-weight: 800;
    text-decoration: none;
}

.card-number {
    display: block;
    margin-bottom: 34px;
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: 1.1rem;
}

.stack-list > div {
    padding: 24px 0;
    border-top: 1px solid var(--line-light);
}

.stack-list > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.stat-panel {
    overflow: hidden;
    border: 1px solid var(--line-light);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.stat-panel > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 22px;
    padding: 24px 26px;
    border-top: 1px solid var(--line-light);
}

.stat-panel > div:first-child {
    border-top: 0;
}

.stat-panel strong {
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: 1.28rem;
}

.stat-panel span {
    color: var(--slate);
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px;
}

.contact-card-large {
    min-width: 0;
    padding: clamp(30px,4vw,48px);
    border: 1px solid var(--line-light);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.contact-card-large h2 {
    font-family: var(--sans);
    font-size: clamp(1.3rem,2.4vw,1.95rem);
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.contact-card-large h2 a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.cta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.cta-row h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(2.15rem, 3.7vw, 3.9rem);
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
}

.cta-actions span {
    font-size: .86rem;
    font-weight: 700;
}

.cta-actions span a {
    text-decoration: none;
}

/* -----------------------------------------------------------------------------
   11. Footer
----------------------------------------------------------------------------- */
.site-footer {
    padding: 64px 0 28px;
    background: #070d15;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr .8fr 1fr;
    gap: 46px;
}

.footer-grid > * {
    min-width: 0;
}

.footer-brand {
    color: var(--white);
}

.footer-brand .brand-copy small {
    color: #758295;
}

.footer-summary {
    max-width: 500px;
    margin-top: 20px;
    color: #8996a8;
}

.footer-heading {
    margin-bottom: 16px;
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-grid > div:not(:first-child) a {
    display: block;
    margin: 9px 0;
    color: #a9b4c2;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #667386;
    font-size: .74rem;
}

/* -----------------------------------------------------------------------------
   12. Responsive
----------------------------------------------------------------------------- */
@media (max-width: 1120px) {
    .editorial-service > div {
        grid-template-columns: 90px minmax(180px,.8fr) minmax(240px,1.2fr);
    }

    .editorial-service > div > a {
        grid-column: 2 / -1;
    }
}

@media (max-width: 1000px) {
    .premium-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .premium-hero-copy h1 {
        max-width: 850px;
    }

    .premium-hero-visual {
        min-height: 430px;
    }

    .visual-frame {
        max-width: 430px;
    }

    .premium-hero-foot {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        padding: 16px;
        border: 1px solid rgba(255,255,255,.10);
        background: var(--navy);
        box-shadow: var(--shadow-soft);
    }

    .primary-nav.is-open {
        display: grid;
        gap: 0;
    }

    .primary-nav a {
        padding: 12px 8px;
    }

    .primary-nav a[aria-current="page"]::after {
        display: none;
    }

    .primary-nav .nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .editorial-intro,
    .heritage-grid,
    .premium-contact-grid,
    .split-section,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .heritage-heading {
        position: static;
    }

    .editorial-service > div {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .editorial-service > div > a {
        grid-column: auto;
        margin-top: 8px;
    }

    .three-column {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .cta-row,
    .cta-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(var(--container), calc(100% - 30px));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-copy small {
        display: none;
    }

    h1 {
        font-size: clamp(2.65rem, 12.8vw, 4.45rem);
        line-height: 1;
    }

    h2 {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .premium-hero {
        min-height: auto;
    }

    .premium-hero-grid {
        padding-top: 58px;
    }

    .premium-proof-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .premium-hero-visual {
        min-height: 350px;
    }

    .visual-frame {
        width: 100%;
        max-width: 360px;
    }

    .visual-caption {
        font-size: .52rem;
    }

    .premium-hero-foot {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .editorial-service {
        grid-template-columns: 42px 1fr;
        gap: 16px;
    }

    .heritage-item {
        grid-template-columns: 64px 1fr;
        gap: 18px;
    }

    .pathways-grid,
    .three-column {
        grid-template-columns: 1fr;
    }

    .pathway {
        min-height: 165px;
    }

    .pathway strong {
        font-size: clamp(1.4rem, 7vw, 1.95rem);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
