:root {
    --navy: #123d5a;
    --navy-deep: #092b43;
    --blue: #1b6d93;
    --blue-soft: #eaf3f7;
    --ink: #182732;
    --muted: #657785;
    --line: #d9e2e8;
    --paper: #ffffff;
    --off-white: #f4f7f9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.reference-page {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.reference-page h1, .reference-page h2, .reference-page p { margin-top: 0; }
.reference-page h1, .reference-page h2 {
    color: var(--navy-deep);
    font-family: bod, Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.15;
}

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #fff; }
.header-inner, .section-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 104px; display: flex; align-items: center; }
.brand { display: block; line-height: 0; }
.brand img { width: min(420px, 55vw); height: auto; }

.hero { min-height: 570px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { background-size: cover; background-repeat: no-repeat; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(6, 30, 47, .96) 0%, rgba(6, 30, 47, .82) 42%, rgba(6, 30, 47, .12) 76%); }
.hero-content { position: relative; z-index: 1; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 68px; }
.eyebrow, .section-kicker { color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { margin-bottom: 16px; color: #a7d5e8; }
.hero h1 { max-width: 700px; margin-bottom: 20px; color: #fff; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.025em; }
.hero-subtitle { max-width: 660px; margin-bottom: 36px; color: #dce8ee; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta span { border: 1px solid rgba(255, 255, 255, .28); border-radius: 2px; padding: 8px 14px; background: rgba(8, 39, 59, .45); color: #fff; font-size: .82rem; font-weight: 700; }

.contact-panel { padding: 76px 0; background: var(--navy); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 52px; }
.contact-panel .section-kicker { margin-bottom: 10px; color: #a7d5e8; }
.contact-panel h2 { max-width: 650px; margin-bottom: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.02em; }
.contact-link { min-width: 290px; padding: 19px 22px; border: 1px solid rgba(255, 255, 255, .36); color: #fff !important; text-decoration: none; font-weight: 700; transition: background-color .2s ease, color .2s ease; }
.contact-link span { display: block; margin-bottom: 2px; color: #b7d8e6; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-link:hover, .contact-link:focus-visible { background: #fff; color: var(--navy-deep) !important; }
.contact-link:hover span, .contact-link:focus-visible span { color: var(--blue); }
.site-footer { padding: 24px; background: var(--navy-deep); text-align: center; }
.site-footer p { margin: 0; color: #acc0cc; font-size: .78rem; }

.hero-image {
    background-image: url("pix1.png");
    background-position: center 48%;
}

.reference-intro { padding: 96px 0 104px; }
.intro-copy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: end; margin-bottom: 44px; }
.intro-copy .section-kicker { grid-column: 1 / -1; margin-bottom: -46px; }
.intro-copy h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.intro-copy > p:last-child { margin-bottom: 4px; color: var(--muted); }

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

.dimension-nav a {
    min-height: 94px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--navy-deep);
    font-family: bod, Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.dimension-nav a span { color: var(--blue); font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.dimension-nav a:hover, .dimension-nav a:focus-visible { background: var(--navy); color: #fff; }
.dimension-nav a:hover span, .dimension-nav a:focus-visible span { color: #a7d5e8; }

.dimensions-list { padding: 100px 0 112px; background: var(--off-white); }
.dimension-card { scroll-margin-top: 24px; border: 1px solid var(--line); background: var(--paper); }
.dimension-card + .dimension-card { margin-top: 44px; }

.dimension-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 34px;
    border-bottom: 3px solid var(--blue);
    background: var(--navy);
}

.dimension-header > span {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    font-family: bod, Georgia, serif;
    font-size: 1.35rem;
}

.dimension-header p { margin-bottom: 4px; color: #a7d5e8; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.dimension-header h2 { margin-bottom: 0; color: #fff; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.dimension-copy { max-width: 900px; padding: 38px 40px 24px; }
.dimension-copy p { color: #425563; }
.dimension-copy p:last-child { margin-bottom: 0; }

.comparison-wrap { padding: 10px 40px 42px; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; color: #344957; }
.comparison-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.comparison-table th { padding: 18px 20px; border: 1px solid var(--navy); background: var(--navy-deep); color: #fff; font-size: .78rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.comparison-table td { width: 50%; padding: 17px 20px; border: 1px solid var(--line); vertical-align: top; }
.comparison-table tbody tr:nth-child(even) td { background: var(--blue-soft); }
.comparison-table tbody tr:hover td { background: #dcecf3; }

@media (max-width: 800px) {
    .header-inner { min-height: 86px; }
    .hero { min-height: 610px; }
    .hero-shade { background: rgba(6, 30, 47, .75); }
    .hero-image { background-position: 63% center; }
    .intro-copy { grid-template-columns: 1fr; gap: 18px; }
    .intro-copy .section-kicker { margin-bottom: 0; }
    .dimension-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-inner { align-items: flex-start; flex-direction: column; gap: 26px; }
    .contact-link { min-width: 0; width: 100%; }
}

@media (max-width: 520px) {
    .header-inner, .section-shell, .hero-content { width: min(100% - 30px, 1120px); }
    .brand img { width: 100%; max-width: 370px; }
    .hero { min-height: 640px; }
    .hero-content { padding-bottom: 44px; }
    .hero h1 { font-size: 2.65rem; }
    .hero-meta { gap: 7px; }
    .hero-meta span { padding: 7px 10px; font-size: .73rem; }
    .reference-intro { padding: 70px 0 76px; }
    .dimension-nav { grid-template-columns: 1fr; }
    .dimension-nav a { min-height: 76px; }
    .dimensions-list { padding: 72px 0 80px; }
    .dimension-card + .dimension-card { margin-top: 30px; }
    .dimension-header { align-items: flex-start; gap: 16px; padding: 24px 22px; }
    .dimension-header > span { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.15rem; }
    .dimension-copy { padding: 28px 22px 18px; }
    .comparison-wrap { padding: 8px 14px 28px; }
    .comparison-table th { padding: 13px 10px; font-size: .68rem; }
    .comparison-table td { padding: 13px 10px; font-size: .86rem; line-height: 1.45; }
    .contact-panel { padding: 58px 0; }
}

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