:root{--navy:#002e4e;--silver:#d7d7d7;--paper:#f8f9fa;--white:#fff;--muted:#506372;--line:#dbe1e5;--ink:#092d46}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);line-height:1.6}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #458db6;outline-offset:3px}img{display:block;max-width:100%;height:auto}button,input,textarea,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin:0 0 16px}h1,h2,h3{line-height:1.06;letter-spacing:-.04em}h1{font-size:clamp(3rem,7vw,6.8rem);font-weight:760}h2{font-size:clamp(2rem,4.1vw,3.9rem);font-weight:720}h3{font-size:1.55rem}p{color:var(--muted)}.wrap{width:min(1180px,calc(100% - 72px));margin:auto}.header{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:12px max(24px,calc((100vw - 1180px)/2));background:white;min-height:85px;border-bottom:1px solid var(--line)}.brand{flex:none;width:120px}.brand img{max-height:62px;object-fit:contain}.header nav{display:flex;align-items:center;gap:clamp(12px,2vw,26px);font-size:.9rem;font-weight:650}.menu{display:none}.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 22px;background:var(--navy);color:white;border:1px solid var(--navy);border-radius:3px;font-weight:650;font-size:.95rem;transition:transform .2s,background .2s}.button:hover{text-decoration:none;transform:translateY(-2px);background:#12466a}.button.small{padding:8px 15px;min-height:38px;font-size:.85rem}.button.light{background:white;border-color:white;color:var(--navy)}.button.ghost{background:transparent;color:white;border-color:#ffffff70}.button.outline{background:transparent;color:var(--navy)}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.hero{min-height:650px;background:var(--navy);color:white;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;position:relative}.hero-copy{padding:90px 30px 75px max(36px,calc((100vw - 1180px)/2));z-index:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.eyebrow{display:block;text-transform:uppercase;font-size:.72rem;font-weight:750;letter-spacing:.17em;margin-bottom:18px}.hero h1{font-size:clamp(3.6rem,7.4vw,7.4rem);letter-spacing:-.085em;margin:12px 0 24px;line-height:.94}.hero h1 i{font-style:normal;color:#a7bdca}.hero p{color:#e0e8ed;font-size:1.22rem;max-width:520px}.hero-index{font-size:.65rem;letter-spacing:.15em;color:#a7bdca;margin-top:70px}.hero-art{position:relative;display:grid;place-items:center;overflow:hidden;min-height:400px;background:radial-gradient(ellipse at center,#376b8b 0,#123e5c 36%,#002e4e 75%)}.orbit{position:absolute;border:1px solid #a9c7d45c;border-radius:50%;width:80%;aspect-ratio:1;transform:rotate(-30deg) scaleY(.67)}.o2{width:95%;transform:rotate(35deg) scaleY(.62)}.o3{width:65%;transform:rotate(85deg) scaleY(.85)}.hero-word{font-size:clamp(5rem,13vw,12rem);font-weight:850;letter-spacing:-.12em;line-height:.72;transform:rotate(-8deg);color:#e4ebef;text-shadow:7px 10px 0 #002e4e66;position:relative}.hero-word span{color:#91afc0}.art-label{position:absolute;bottom:30px;right:32px;font-size:.65rem;letter-spacing:.2em;color:#b8d1dd}.ticker{background:var(--silver);text-align:center;letter-spacing:.16em;font-weight:750;font-size:clamp(.65rem,1.1vw,.9rem);padding:16px}.ticker span{margin:0 15px}.section{padding-top:72px;padding-bottom:72px}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:32px}.section-head p{max-width:420px;margin-bottom:8px}.section-head h2{margin-bottom:0}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.division{background:white;border:1px solid var(--line);padding:28px;display:grid;grid-template-columns:1fr;gap:18px}.division-mark{height:180px;display:grid;place-items:center;background:#eef1f3}.division-mark img{width:55%;max-height:130px;object-fit:contain}.division h3{font-size:2rem}.service{background:white;padding:28px;border:1px solid var(--line);min-height:190px}.service>span{color:#68849a;font-weight:700;letter-spacing:.12em;font-size:.8rem;text-transform:uppercase}.service h3{margin-top:22px}.service a,.textlink{font-weight:700}.service p{min-height:48px}.entry{background:white;border:1px solid var(--line);overflow:hidden}.entry-image{display:block;aspect-ratio:4/3;overflow:hidden;background:var(--silver)}.entry-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.entry-image:hover img{transform:scale(1.04)}.entry-body{padding:23px}.placeholder{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:24px;background:linear-gradient(145deg,#e4e9ed,#aebfca);overflow:hidden}.placeholder span{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase}.placeholder b{font-size:8rem;line-height:.85;align-self:flex-end;color:#002e4e66}.meta{font-weight:650;font-size:.9rem;color:#31536a}.band{background:var(--navy);color:white;padding:78px 0}.band p{color:#dbe5eb;max-width:680px;font-size:1.2rem}.intro{padding-top:85px;padding-bottom:44px}.intro h1{max-width:1000px}.lede{font-size:1.2rem;max-width:740px}.academy-banner{display:flex;align-items:center;gap:35px;background:var(--silver);padding:32px}.academy-banner img{width:110px;max-height:140px;object-fit:contain}.academy-banner h2{font-size:2rem}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.filters a{border:1px solid var(--line);padding:8px 14px;background:white;font-size:.9rem}.filters a.active{background:var(--navy);color:white}.empty{padding:35px;border:1px dashed #afbec8;background:white}.detail{padding-bottom:75px}.cover{width:100%;max-height:650px;object-fit:contain;background:#e8edf0;margin-bottom:35px}.detail-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:35px;align-items:start}.panel{background:white;border:1px solid var(--line);padding:28px;min-width:0}.panel h2{font-size:2rem}.prose{white-space:pre-wrap;overflow-wrap:anywhere}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}.founder img,.founder-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:24px;background:var(--silver)}.founder-placeholder{display:grid;place-items:center;letter-spacing:.15em;font-weight:700}.form{display:flex;flex-direction:column;gap:15px}.form label,.panel label{display:flex;flex-direction:column;gap:5px;font-weight:650;font-size:.9rem}.form input,.form textarea,.form select,.panel select{width:100%;border:1px solid #b8c7d0;border-radius:3px;background:#fafbfc;padding:10px;color:var(--navy);min-width:0}.form label.check{flex-direction:row;align-items:center;font-weight:500}.form input[type=checkbox]{width:auto}.form .button{align-self:flex-start}.narrow{max-width:520px;margin:auto}.thumb{max-width:200px;max-height:160px;object-fit:contain}.trap{position:absolute;left:-10000px}.notice,.error{padding:12px;border:1px solid #a2b7c6;color:var(--navy);background:#edf3f7}.error{border-color:#b35b5b;color:#842020;background:#fff3f3}.admin-head{padding-top:55px}.admin-head h1{font-size:clamp(2.5rem,5vw,4rem)}.table-scroll{overflow:auto;margin-top:24px}table{width:100%;border-collapse:collapse;background:white}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line)}th{background:var(--silver)}td a,td button{margin-right:8px}.inline{display:inline}.link{border:0;background:none;padding:0;text-decoration:underline;color:var(--navy)}.danger{color:#9e3333}.pill{padding:4px 8px;background:#e7edf1;font-size:.8rem}.admin-gallery label{display:block}footer{background:#e7ebee;padding:46px max(36px,calc((100vw - 1180px)/2)) 20px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:24px}.footer-grid a{display:block;margin:8px 0}.footer-logo{width:180px;margin-bottom:16px}.footline{border-top:1px solid #bac8d0;margin-top:35px;padding-top:16px;display:flex;flex-wrap:wrap;gap:20px;font-size:.8rem;color:#486274}.skip{position:absolute;left:-1000px}.skip:focus{left:10px;top:10px;z-index:10;background:white;padding:12px}small{color:var(--muted)}@media(max-width:900px){.header{flex-wrap:wrap}.menu{display:block;border:1px solid var(--line);background:white;padding:9px 15px}.header nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;gap:12px;padding-bottom:12px}.header nav.open{display:flex}.hero{min-height:unset;grid-template-columns:1fr}.hero-copy{padding:65px 36px 35px}.hero-index{margin-top:35px}.hero-art{min-height:350px}.grid.three,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.section{padding:50px 0}}@media(max-width:560px){.wrap{width:calc(100% - 36px)}.hero-copy{padding:50px 18px 20px}.hero-art{min-height:270px}.hero-word{font-size:6.5rem}.grid.two,.grid.three,.grid.four,.footer-grid{grid-template-columns:1fr}.academy-banner{align-items:flex-start;flex-direction:column;gap:15px;padding:20px}.intro{padding-top:48px}.panel{padding:19px}.ticker span{margin:0 4px}.division-mark{height:140px}footer{padding:30px 18px}.section{padding:36px 0}.band{padding:50px 0}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

.project-video { margin-block: 2rem; }
.project-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: var(--navy); }
.project-video p { margin-top: .75rem; }
@media (prefers-reduced-motion: no-preference) {
    .reveal-in { animation: reveal-in 480ms cubic-bezier(.22,.61,.36,1) both; }
    @keyframes reveal-in {
        from { opacity: .65; transform: translateY(12px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.portfolio-back { display: inline-block; margin-bottom: 1.25rem; font-weight: 700; }
.project-cover { display: block; position: relative; margin-bottom: 2rem; }
.project-cover .cover { margin: 0; border-radius: 12px; }
.project-cover span { position: absolute; right: 1rem; bottom: 1rem; padding: .5rem 1rem; color: white; background: var(--navy); border-radius: 6px; }
.gallery-title { margin: 2rem 0 .75rem; }
.detail .gallery a { display: block; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.detail .gallery img { transition: transform .25s ease; }
.detail .gallery a:hover img { transform: scale(1.04); }
.photo-viewer { width: min(94vw, 1050px); max-height: 94dvh; padding: clamp(.5rem, 2vw, 1.25rem); border: 1px solid var(--silver); border-radius: 12px; background: var(--navy); color: white; }
.photo-viewer::backdrop { background: rgb(0 18 31 / .9); }
.photo-viewer img { width: 100%; height: min(70dvh, 740px); object-fit: contain; }
.photo-toolbar, .photo-controls { display: flex; align-items: center; gap: .5rem; }
.photo-toolbar { justify-content: flex-end; margin-bottom: .5rem; }
.photo-controls { justify-content: center; margin-top: .5rem; }
.photo-viewer button { min-height: 44px; padding: .35rem .65rem; border: 1px solid var(--silver); border-radius: 6px; color: var(--navy); background: white; }
html:has(.photo-viewer[open]) { overflow: hidden; }

/* EyeFord design refinement */
:root {
    --paper: #f3f5f6;
    --line: #d4dce1;
    --surface: #fff;
    --radius: 14px;
}
.header {
    position: relative;
    z-index: 2;
    background: var(--surface);
}
.header nav > a:not(.button) { padding-block: .45rem; }
.hero {
    isolation: isolate;
    min-height: clamp(32rem, 72vh, 49rem);
    background: linear-gradient(125deg, #071f32, var(--navy) 72%);
}
.hero-copy { padding-block: clamp(3rem, 8vw, 7rem); }
.hero h1 i { color: var(--silver); }
.hero-art {
    background: radial-gradient(ellipse at 54% 42%, #275f80 0%, #103d5d 45%, var(--navy) 78%);
}
.hero-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#d7d7d71a 1px, transparent 1px), linear-gradient(90deg, #d7d7d71a 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse, black, transparent 73%);
}
.orbit { border-color: #d7d7d754; }
.hero-word { color: #f4f6f7; text-shadow: 4px 6px 0 #002e4e; }
.hero-word span { color: var(--silver); }
.hero-index, .art-label { display: none; }
.button { border-radius: 8px; }
.button.light:hover { color: var(--navy); background: var(--silver); }
.button.outline:hover { background: #e6edf1; }
.division, .service, .entry, .panel, .academy-banner, .empty {
    border-radius: var(--radius);
}
.division, .service, .entry, .panel {
    box-shadow: 0 8px 24px #002e4e09;
}
.division-mark { border-radius: 9px; }
.entry-body { padding: clamp(1rem, 2vw, 1.75rem); overflow-wrap: anywhere; }
.entry .eyebrow { color: #39596f; }
.entry h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.filters a { border-radius: 99px; }
.intro { padding-bottom: clamp(1.25rem, 4vw, 3rem); }
.intro h1 { font-size: clamp(2.75rem, 7vw, 6rem); overflow-wrap: anywhere; }
.band { background: linear-gradient(115deg, #071f32, var(--navy) 72%, #184f70); }
.admin-head + .section { padding-top: clamp(1.25rem, 4vw, 3rem); }
.table-scroll { border: 1px solid var(--line); border-radius: var(--radius); }
footer { background: var(--navy); color: #fff; }
footer .footer-logo { padding: .65rem; background: var(--surface); border-radius: 8px; }
footer p, footer .footline { color: var(--silver); }
footer .footline { border-color: #ffffff40; }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > :not(.hero-index) { animation: reveal-in 560ms ease-out both; }
    .hero-copy h1 { animation-delay: 70ms; }
    .hero-copy p { animation-delay: 140ms; }
    .hero-copy .actions { animation-delay: 210ms; }
    .hero-art::before { animation: hero-grid 1.5s ease-out both; }
    .entry, .division, .service { transition: border-color .22s ease, box-shadow .22s ease; }
    .entry:hover, .division:hover, .service:hover { border-color: #8da7b7; box-shadow: 0 12px 30px #002e4e14; }
    @keyframes hero-grid {
        from { opacity: 0; transform: scale(1.08); }
        to { opacity: 1; transform: scale(1); }
    }
}
@media (max-width: 900px) {
    .hero { min-height: auto; }
    .hero-copy { padding-block: clamp(2.5rem, 8vw, 5rem); }
}
@media (max-width: 560px) {
    .hero h1 { font-size: clamp(2.65rem, 11vw, 4rem); }
    .hero-art { min-height: 235px; }
    .hero-word { font-size: clamp(4.25rem, 20vw, 7rem); }
}
@media (prefers-reduced-motion: reduce) {
    .detail .gallery a:hover img { transform: none; }
}

:root {
    --gutter: clamp(1.125rem, 4vw, 2.25rem);
    --section-space: clamp(2.5rem, 6vw, 5rem);
    --layout-gap: clamp(1rem, 2.5vw, 2rem);
    --content-gap: clamp(.75rem, 1.5vw, 1.25rem);
}
.wrap { width: min(1180px, calc(100% - 2 * var(--gutter))); }
.header, footer { padding-inline: max(var(--gutter), calc((100% - 1180px) / 2)); }
.section, .band { padding-block: var(--section-space); }
.section + .section { padding-top: 0; }
.intro { padding-block: var(--section-space) var(--layout-gap); }
.intro + .section, .admin-head + .section { padding-top: var(--layout-gap); }
.intro > :last-child, .section-head p, .panel > :last-child,
.service > :last-child, .entry-body > :last-child, .band .wrap > :last-child {
    margin-bottom: 0;
}
.section-head { gap: var(--content-gap); margin-bottom: var(--layout-gap); }
.grid, .detail-grid, .footer-grid, .academy-banner { gap: var(--layout-gap); }
.division, .service, .panel, .empty, .academy-banner { padding: clamp(1.125rem, 3vw, 2rem); }
.service { display: flex; flex-direction: column; gap: var(--content-gap); min-height: 0; }
.service h2, .service h3, .service p { margin: 0; }
.service p { min-height: 0; }
.service > a { margin-top: auto; align-self: flex-start; }
.section > .grid + .button { margin-top: var(--layout-gap); }
.section > .actions:first-child { margin-top: 0; }
.detail { padding-bottom: var(--section-space); }
.cover, .project-cover { margin-bottom: var(--layout-gap); }
.project-cover .cover { margin-bottom: 0; }
.project-video { margin-block: var(--layout-gap); }
.gallery { margin-top: var(--content-gap); gap: var(--content-gap); }
.detail .gallery:empty { display: none; }
.form { gap: var(--content-gap); }
.form .actions { margin-top: var(--content-gap); }
.admin-head { padding-top: var(--section-space); }
.admin-head p { margin-bottom: 0; }
.footline { margin-top: var(--layout-gap); }
@media (max-width: 900px) {
    .hero-copy { padding-inline: var(--gutter); }
}
