:root {
  --ink: #102a4a;
  --navy: #0c294b;
  --navy-2: #173f6a;
  --paper: #f7f2e9;
  --paper-2: #eee4d5;
  --white: #fffdf8;
  --gold: #ac8b3d;
  --gold-light: #dcc47e;
  --text: #26323e;
  --muted: #6b706f;
  --line: rgba(16, 42, 74, .16);
  --shadow: 0 18px 45px rgba(12, 41, 75, .11);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "IBM Plex Sans Arabic", "Manrope", Arial, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--white); background: var(--navy); }

.paper-grain {
  position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: -1;
  background-image: radial-gradient(rgba(12,41,75,.18) .45px, transparent .6px), radial-gradient(rgba(172,139,61,.18) .45px, transparent .6px);
  background-size: 13px 13px, 17px 17px;
  background-position: 0 0, 8px 6px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.skip-link { position: fixed; top: -5rem; inset-inline-start: 1rem; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: white; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,242,233,.92); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: border-color .25s ease; }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { width: min(var(--max), calc(100% - 3rem)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy); text-decoration: none; flex: none; }
.wordmark-portrait { width: 42px; height: 42px; flex: none; display: block; object-fit: cover; object-position: 50% 27%; border: 2px solid var(--gold-light); border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px rgba(255,253,248,.82), 0 5px 14px rgba(12,41,75,.13); animation: wordmark-portrait-in .58s cubic-bezier(.2,.7,.25,1) both; transition: transform .25s ease, box-shadow .25s ease; }
.footer-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); border-radius: 50%; font-family: var(--serif); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.wordmark-text { display: grid; line-height: 1.1; font-family: var(--sans); }
.wordmark-text strong { letter-spacing: .08em; font-size: .86rem; }
.wordmark-text small { color: var(--muted); font-size: .65rem; margin-top: .25rem; }
@keyframes wordmark-portrait-in { from { opacity: 0; transform: translateY(4px) scale(.88); } to { opacity: 1; transform: translateY(0) scale(1); } }
.wordmark:focus-visible .wordmark-portrait { box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px rgba(172,139,61,.55); }
@media (hover: hover) { .wordmark:hover .wordmark-portrait { transform: translateY(-1px) scale(1.045); box-shadow: 0 0 0 2px var(--paper), 0 0 0 5px rgba(172,139,61,.48), 0 8px 18px rgba(12,41,75,.18); } }
.desktop-nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); align-items: center; }
.desktop-nav a, .mobile-nav a { color: var(--navy); text-decoration: none; font-size: .84rem; font-weight: 600; transition: color .2s ease; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .mobile-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: .85rem; }
.language-switcher { display: flex; padding: 3px; gap: 1px; border: 1px solid var(--line); border-radius: 999px; direction: ltr; }
.lang-button { border: 0; min-width: 33px; height: 29px; padding: 0 .4rem; border-radius: 999px; color: var(--navy); background: transparent; font-size: .7rem; font-weight: 700; transition: .2s ease; }
.lang-button:hover, .lang-button.is-active { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--line); background: transparent; border-radius: 4px; }
.nav-toggle span:not(.visually-hidden) { display: block; height: 1px; margin: 4px 0; background: var(--navy); transition: transform .2s ease; }
.mobile-nav { width: min(var(--max), calc(100% - 3rem)); margin: 0 auto 1rem; padding: .7rem; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mobile-nav a { display: block; padding: .55rem .45rem; }

.hero { width: min(var(--max), calc(100% - 3rem)); min-height: 560px; margin: auto; padding: clamp(5.5rem, 11vw, 9rem) 0 5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; position: relative; }
.hero-rail { position: absolute; inset-inline-start: -5px; top: 24%; bottom: 13%; display: flex; flex-direction: column; justify-content: space-between; }
.hero-rail span { display: block; width: 1px; height: 23%; background: linear-gradient(var(--gold), transparent); }
.eyebrow { color: var(--gold); letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; font-weight: 700; margin: 0 0 .85rem; line-height: 1.2; }
.hero h1, h2, h3 { color: var(--navy); font-family: var(--serif); line-height: .98; }
.hero h1 { font-size: clamp(3.4rem, 8vw, 7.1rem); max-width: 760px; margin: 0; letter-spacing: -.035em; font-weight: 600; }
[dir="rtl"] .hero h1 { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", var(--sans); font-weight: 700; line-height: 1.15; font-size: clamp(2.6rem, 6vw, 5.8rem); }
.hero-deck { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 600px; color: #41505c; margin: 1.65rem 0 1.25rem; }
.hero-status { display: inline-flex; gap: .55rem; align-items: center; font-size: .75rem; color: var(--muted); background: rgba(255,253,248,.68); border: 1px solid var(--line); padding: .42rem .75rem; border-radius: 999px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(172,139,61,.14); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 46px; padding: .6rem 1.05rem; border: 1px solid transparent; font-size: .79rem; font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), color .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); border-color: var(--navy); }
.button-primary:hover { background: var(--navy-2); }
.button-outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-outline:hover { color: var(--white); background: var(--navy); }
.hero-aside { display: grid; gap: 1.3rem; align-content: center; }
.portrait-frame { width: min(100%, 310px); justify-self: end; position: relative; padding: 12px; border: 1px solid var(--gold-light); background: var(--white); }
.portrait-frame::before { content: ""; position: absolute; width: 54%; height: 54%; inset-inline-start: -13px; bottom: -13px; border-inline-start: 2px solid var(--gold); border-bottom: 2px solid var(--gold); z-index: -1; }
.portrait-frame img { display: block; width: 100%; aspect-ratio: 4 / 4.75; object-fit: cover; filter: contrast(1.02) saturate(.88); }
.portrait-caption { display: flex; justify-content: space-between; gap: .8rem; padding: .75rem .1rem .1rem; color: var(--muted); font-size: .65rem; }
.evidence-note { justify-self: end; width: min(100%, 350px); display: flex; gap: .7rem; padding-top: .3rem; font-size: .77rem; color: var(--muted); line-height: 1.65; }
.evidence-note p { margin: 0; }
.evidence-seal { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: .7rem; }

.document-strip { background: var(--navy); color: var(--white); min-height: 74px; padding: .8rem max(1.5rem, calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.document-strip div { display: flex; flex-wrap: wrap; align-items: baseline; gap: .65rem; }
.document-strip span { color: var(--gold-light); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.document-strip strong { font-size: .78rem; font-weight: 500; }

.section { width: min(var(--max), calc(100% - 3rem)); margin: auto; padding: clamp(4.7rem, 8vw, 7.5rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-kicker { display: flex; gap: .75rem; align-items: center; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.65rem; }
.section-kicker::after { content: ""; height: 1px; width: 90px; background: var(--gold); opacity: .7; }
.section-heading { max-width: 730px; }
.section-heading h2 { margin: 0; font-size: clamp(2.3rem, 4.3vw, 4.5rem); letter-spacing: -.025em; font-weight: 600; }
[dir="rtl"] .section-heading h2 { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: clamp(2rem, 4.5vw, 3.8rem); letter-spacing: 0; line-height: 1.2; }
.section-heading > p:last-child { max-width: 700px; margin: 1rem 0 0; color: var(--muted); font-size: .95rem; }
.editorial-cards { display: grid; gap: 1rem; margin-top: 2.4rem; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.two-up { grid-template-columns: repeat(2, 1fr); }
.info-card { position: relative; min-height: 218px; padding: 1.45rem; background: rgba(255,253,248,.72); border: 1px solid var(--line); transition: transform .26s var(--ease), box-shadow .26s ease, border-color .26s ease; overflow: hidden; }
.info-card:hover { transform: translateY(-5px); border-color: rgba(172,139,61,.6); box-shadow: var(--shadow); }
.info-card::after { content: attr(data-index); position: absolute; inset-inline-end: 1rem; bottom: -.55rem; color: rgba(12,41,75,.055); font-family: var(--serif); font-weight: 700; font-size: 5.4rem; line-height: 1; }
.info-card .card-type { display: block; color: var(--gold); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.5rem; }
.info-card h3 { margin: 0 0 .65rem; font-size: 1.75rem; font-weight: 600; }
[dir="rtl"] .info-card h3 { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
.info-card p { position: relative; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.8; z-index: 1; }
.info-card .card-link { position: relative; display: inline-flex; margin-top: 1rem; color: var(--navy); font-size: .75rem; font-weight: 700; text-decoration-color: var(--gold); text-underline-offset: .25em; z-index: 1; }
.info-card .card-link:hover, .info-card .card-link:focus-visible { color: var(--gold); }
.info-card .card-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card-thesis { position: relative; margin-top: 1rem; padding: .75rem .85rem; border-inline-start: 2px solid var(--gold); background: rgba(220,196,126,.12); z-index: 1; }
.card-thesis-label { display: block; margin-bottom: .35rem; color: var(--gold); font-size: .66rem; font-weight: 700; letter-spacing: .025em; }
.info-card .card-thesis p { color: var(--navy); font-size: .78rem; font-weight: 600; line-height: 1.65; }
.info-card .card-note { margin-top: 1rem; color: var(--navy); font-weight: 600; font-size: .73rem; }
.tag-list { position: relative; display: flex; flex-wrap: wrap; gap: .45rem; z-index: 1; margin-top: 1rem; }
.tag { padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-size: .68rem; line-height: 1.35; }
.pending { color: var(--gold)!important; font-weight: 700; }

.research-topline { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.research-tools { width: min(100%, 430px); }
.search-box { width: 100%; display: flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); background: rgba(255,253,248,.76); color: var(--gold); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: .78rem; }
.search-box input::placeholder { color: #81827c; }
.filter-group { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.filter-button { min-height: 30px; padding: .25rem .7rem; border: 1px solid var(--line); background: transparent; color: var(--navy); font-size: .68rem; font-weight: 700; transition: .2s ease; }
.filter-button:hover, .filter-button.is-active { color: white; background: var(--navy); border-color: var(--navy); }
.results-summary { min-height: 1.2rem; margin: 1rem 0 0; color: var(--muted); font-size: .75rem; }
.searchable-card.is-filtered { display: none!important; }

.phd-card { position: relative; margin-top: 1.25rem; padding: clamp(1.4rem, 3.7vw, 3.2rem); color: var(--white); background: linear-gradient(125deg, #0a2647, #0e3765 64%, #0b2e57); overflow: hidden; box-shadow: 0 26px 50px rgba(12,41,75,.17); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.phd-card:hover { transform: translateY(-5px); box-shadow: 0 33px 65px rgba(12,41,75,.24); }
.phd-card::before { content: ""; position: absolute; inset: 0; opacity: .44; background: radial-gradient(circle at 92% 8%, rgba(220,196,126,.26), transparent 21%), linear-gradient(115deg, transparent 65%, rgba(255,255,255,.045) 65%); }
.phd-card::after { content: ""; position: absolute; width: 42%; aspect-ratio: 1; border: 1px solid rgba(220,196,126,.25); border-radius: 50%; top: -44%; inset-inline-end: -13%; }
.phd-lines { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.phd-lines i { position: absolute; display: block; width: 35%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); opacity: .55; animation: accentShift 7s ease-in-out infinite; }
.phd-lines i:nth-child(1) { top: 15%; inset-inline-start: -4%; transform: rotate(-12deg); }
.phd-lines i:nth-child(2) { bottom: 24%; inset-inline-end: -10%; transform: rotate(-10deg); animation-delay: -2s; }
.phd-lines i:nth-child(3) { bottom: 8%; inset-inline-start: 29%; transform: rotate(10deg); animation-delay: -4s; }
.phd-topline, .phd-layout, .phd-points, .phd-footer { position: relative; z-index: 1; }
.phd-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.proposal-chip, .source-tag { display: inline-block; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.proposal-chip { padding: .35rem .6rem; background: var(--gold); color: var(--navy); font-weight: 800; }
.source-tag { color: rgba(255,255,255,.75); }
.phd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 2rem; margin-top: 2.2rem; align-items: center; }
.phd-card .light { color: var(--gold-light); }
.phd-card h3 { margin: 0; color: white; font-size: clamp(1.8rem, 3.3vw, 3.3rem); max-width: 900px; letter-spacing: -.02em; }
.phd-disclaimer { max-width: 740px; color: rgba(255,255,255,.8); font-size: .86rem; line-height: 1.85; margin: 1.2rem 0 0; }
.proposal-cover { margin: 0; transform: rotate(3deg); padding: 7px; background: #f8f5ed; box-shadow: 12px 16px 0 rgba(0,0,0,.16); }
.proposal-cover img { display: block; width: 100%; aspect-ratio: .72; object-fit: cover; object-position: top; }
.proposal-cover figcaption { color: var(--navy); font-size: .58rem; line-height: 1.2; padding-top: .35rem; }
.phd-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.2rem; border: 1px solid rgba(220,196,126,.42); background: rgba(220,196,126,.42); }
.phd-point { padding: 1rem; background: rgba(7,31,59,.52); }
.phd-point strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
[dir="rtl"] .phd-point strong { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 1rem; }
.phd-point p { margin: .4rem 0 0; color: rgba(255,255,255,.82); font-size: .75rem; line-height: 1.65; }
.phd-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.4rem; margin-top: 1.65rem; }
.phd-footer p { margin: 0; color: rgba(255,255,255,.78); font-size: .71rem; line-height: 1.65; max-width: 760px; }
.phd-footer strong { display: block; color: var(--gold-light); text-transform: uppercase; letter-spacing: .08em; font-size: .61rem; margin-bottom: .15rem; }
.text-link { color: var(--navy); font-size: .75rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; transition: color .2s ease; }
.text-link:hover { color: var(--gold); }
.light-link { flex: none; color: var(--gold-light); }

.record-list { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.record-item { display: grid; grid-template-columns: minmax(100px, .25fr) minmax(190px, .55fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; padding: 1.55rem 0; border-bottom: 1px solid var(--line); transition: background .2s ease, padding .2s ease; }
.record-item:hover { background: rgba(255,253,248,.64); padding-inline: .7rem; }
.record-year { color: var(--gold); font-size: .78rem; font-weight: 700; }
.record-item h3 { margin: 0; font-size: 1.45rem; font-weight: 600; }
[dir="rtl"] .record-item h3 { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 1.1rem; font-weight: 700; }
.record-item p { margin: 0; color: var(--muted); font-size: .83rem; }
.record-item .tag-list { margin-top: .5rem; }

.split-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; max-width: none; }
.split-heading > p { width: min(100%, 370px); }
.gallery-shell { margin-top: 2.3rem; padding: 1rem; background: var(--navy); }
.gallery-track { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); min-height: 395px; overflow: hidden; }
.gallery-media { min-height: 100%; background: #0a213d; overflow: hidden; }
.gallery-media img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; transition: transform .65s var(--ease); }
.gallery-shell:hover .gallery-media img { transform: scale(1.025); }
.gallery-copy { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.35rem, 4vw, 3rem); background: #11375f; color: white; }
.gallery-copy::after { content: attr(data-count); position: absolute; inset-inline-end: 1.5rem; bottom: 1rem; color: rgba(220,196,126,.16); font-family: var(--serif); font-size: 7rem; font-weight: 700; line-height: 1; }
.gallery-copy .eyebrow { color: var(--gold-light); }
.gallery-copy h3 { color: white; font-size: clamp(2rem, 3vw, 3.2rem); margin: 0; font-weight: 600; position: relative; z-index: 1; }
[dir="rtl"] .gallery-copy h3 { font-family: "IBM Plex Sans Arabic", var(--sans); font-size: 1.65rem; }
.gallery-copy p { margin: 1rem 0; color: rgba(255,255,255,.78); font-size: .82rem; position: relative; z-index: 1; }
.gallery-open { color: var(--gold-light); border-color: var(--gold-light); position: relative; z-index: 1; width: fit-content; }
.gallery-controls { display: flex; justify-content: flex-start; gap: .65rem; padding: .9rem .25rem .1rem; align-items: center; }
.round-button, .pause-button { min-height: 32px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; font-size: .7rem; }
.round-button { width: 32px; border-radius: 50%; font-size: 1rem; line-height: 1; }
.round-button:hover, .pause-button:hover { color: var(--navy); background: var(--gold-light); border-color: var(--gold-light); }
.pause-button { padding: .25rem .65rem; margin-inline-start: auto; }
.gallery-dots { display: flex; gap: .4rem; align-items: center; }
.gallery-dot { width: 7px; height: 7px; border: 0; padding: 0; border-radius: 50%; background: rgba(255,255,255,.4); }
.gallery-dot.is-active { width: 22px; border-radius: 8px; background: var(--gold-light); }

.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-metadata { display: grid; gap: .75rem; margin-top: 1.8rem; }
.contact-metadata > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-size: .76rem; }
.contact-metadata span { color: var(--muted); }
.contact-metadata strong { color: var(--gold); text-align: end; }
.contact-metadata .contact-direct { color: var(--navy); font-weight: 700; text-align: end; text-decoration-color: var(--gold); text-underline-offset: .22em; overflow-wrap: anywhere; }
.contact-metadata .contact-direct:hover, .contact-metadata .contact-direct:focus-visible { color: var(--gold); }
.contact-metadata .contact-direct:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contact-form { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); background: rgba(255,253,248,.78); box-shadow: 10px 10px 0 var(--paper-2); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.contact-form label { display: grid; gap: .38rem; color: var(--navy); font-size: .73rem; font-weight: 700; }
.contact-form > label { margin-top: .85rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: .65rem .7rem; border: 1px solid rgba(16,42,74,.25); border-radius: 0; outline: 0; color: var(--text); background: var(--white); font-size: .84rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(172,139,61,.15); }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.05rem; }
.form-actions .button { min-height: 40px; }
.form-privacy { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.form-message { min-height: 1.3rem; margin: .75rem 0 0; color: var(--navy); font-size: .74rem; font-weight: 700; }

.site-footer { display: flex; width: min(var(--max), calc(100% - 3rem)); margin: auto; padding: 1.5rem 0 2rem; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); }
.footer-main { display: grid; gap: .75rem; min-width: 0; }
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .7rem; }
.footer-mark { width: 27px; height: 27px; font-size: 1.15rem; }
.footer-office { display: grid; justify-items: start; gap: .18rem; padding-inline-start: .7rem; border-inline-start: 2px solid var(--gold-light); }
.footer-office-label { color: var(--gold); font-size: .61rem; font-weight: 700; letter-spacing: .06em; }
.footer-office-name { color: var(--navy); font-size: .72rem; font-weight: 700; line-height: 1.45; }
.footer-phone { color: var(--navy); font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: .025em; text-decoration: none; transition: color .2s ease; }
.footer-phone:hover, .footer-phone:focus-visible { color: var(--gold); text-decoration: underline; }
.footer-phone:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 2.5rem max(1.2rem, 5vw); background: rgba(5,20,37,.93); }
.lightbox[hidden] { display: none; }
.lightbox figure { width: min(100%, 920px); margin: 0; text-align: center; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 8rem); display: block; margin: auto; background: white; object-fit: contain; }
.lightbox figcaption { color: white; margin-top: .8rem; font-size: .78rem; }
.lightbox-close, .lightbox-step { position: absolute; border: 1px solid rgba(255,255,255,.65); color: white; background: rgba(255,255,255,.1); }
.lightbox-close { top: 1rem; inset-inline-end: 1rem; width: 38px; height: 38px; font-size: 1.6rem; }
.lightbox-step { top: 50%; transform: translateY(-50%); width: 42px; height: 42px; font-size: 1.2rem; }
.lightbox-prev { inset-inline-start: 1rem; }
.lightbox-next { inset-inline-end: 1rem; }
.lightbox-close:hover, .lightbox-step:hover { color: var(--navy); background: var(--gold-light); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes accentShift { 0%, 100% { opacity: .24; transform: translateX(-7%) rotate(var(--angle, 0deg)); } 50% { opacity: .8; transform: translateX(8%) rotate(var(--angle, 0deg)); } }

[dir="ltr"] { text-align: left; }
[dir="rtl"] { text-align: right; }
[dir="rtl"] .phd-lines i:nth-child(1) { --angle: -12deg; }
[dir="ltr"] .phd-lines i:nth-child(1) { --angle: -12deg; }

@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; padding-top: 4.7rem; }
  .hero-aside { grid-template-columns: minmax(180px, 250px) 1fr; align-items: end; }
  .portrait-frame, .evidence-note { justify-self: auto; }
  .three-up { grid-template-columns: repeat(2, 1fr); }
  .research-topline, .split-heading { align-items: start; flex-direction: column; }
  .research-tools { width: 100%; }
  .phd-layout { grid-template-columns: 1fr 130px; }
  .record-item { grid-template-columns: 100px minmax(0, 1fr); }
  .record-item > p { grid-column: 2; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .header-inner, .hero, .section, .site-footer { width: min(100% - 2rem, var(--max)); }
  .wordmark-portrait { width: 36px; height: 36px; }
  .wordmark-text { display: none; }
  .hero { padding-top: 3.5rem; }
  .hero-rail { display: none; }
  .hero-aside { grid-template-columns: 1fr; }
  .portrait-frame { justify-self: start; width: min(78%, 260px); }
  .evidence-note { justify-self: start; }
  .document-strip { padding: .8rem 1rem; align-items: start; flex-direction: column; }
  .three-up, .two-up, .phd-points { grid-template-columns: 1fr; }
  .phd-layout { grid-template-columns: 1fr; }
  .proposal-cover { width: 130px; }
  .phd-footer { display: grid; }
  .record-item { grid-template-columns: 1fr; gap: .45rem; }
  .record-item > p { grid-column: auto; }
  .gallery-track { grid-template-columns: 1fr; }
  .gallery-media { min-height: 280px; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer { align-items: start; flex-direction: column; }
  .lightbox-step { top: auto; bottom: 1.1rem; transform: none; }
  .lightbox-prev { inset-inline-start: calc(50% - 50px); }
  .lightbox-next { inset-inline-end: calc(50% - 50px); }
}
@media print {
  @page { margin: 12mm; size: A4; }
  * { box-shadow: none!important; animation: none!important; transition: none!important; }
  body { background: #fff!important; color: #111!important; font-size: 10pt; }
  .paper-grain, .site-header, .hero-actions, .research-tools, .results-summary, .gallery-controls, .contact-form, .lightbox, .hero-rail { display: none!important; }
  .hero, .section, .site-footer { width: 100%; padding: 1.2rem 0; }
  .hero { min-height: 0; grid-template-columns: 1fr 155px; gap: 1rem; }
  .hero h1 { color: #102a4a!important; font-size: 38pt!important; }
  .hero-aside { display: block; }
  .portrait-frame { width: 130px; padding: 5px; }
  .evidence-note { display: none; }
  .document-strip { padding: .6rem; background: #102a4a!important; color: white!important; }
  .section { break-inside: avoid; }
  .section-heading h2 { font-size: 28pt!important; }
  .editorial-cards, .two-up, .three-up, .phd-points { gap: .5rem; }
  .three-up { grid-template-columns: repeat(3, 1fr); }
  .info-card { min-height: 0; padding: .8rem; background: #fff!important; }
  .phd-card { padding: 1rem; break-inside: avoid; background: #102a4a!important; color: #fff!important; }
  .phd-card h3 { font-size: 17pt; }
  .proposal-cover { width: 90px; }
  .record-item { padding: .7rem 0; }
  .gallery-shell { padding: .4rem; }
  .gallery-track { min-height: 220px; }
  .gallery-copy { padding: 1rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .reveal { opacity: 1!important; transform: none!important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .reveal { opacity: 1; transform: none; }
}
