:root {
  --navy: #102a43;
  --navy-deep: #081b2c;
  --blue: #245b78;
  --gold: #c9a86a;
  --gold-soft: #e7d4ab;
  --red: #b43d49;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #ece8df;
  --text: #15202b;
  --muted: #5b6874;
  --line: rgba(16, 42, 67, .14);
  --shadow: 0 24px 80px rgba(8, 27, 44, .14);
  --radius: 28px;
  --container: min(1180px, calc(100% - 40px));
}

html[data-theme="dark"] {
  --paper: #091825;
  --surface: #102535;
  --surface-2: #173246;
  --text: #f5f1e8;
  --muted: #b4c0ca;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 20px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 12px 35px rgba(8, 27, 44, .07); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; }
.brand-dot { color: var(--red); }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav a { font-size: .91rem; color: var(--muted); font-weight: 650; }
.primary-nav a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 8px; }
.icon-button { min-width: 40px; height: 40px; border: 1px solid var(--line); color: var(--text); background: var(--surface); border-radius: 999px; cursor: pointer; font-size: .78rem; font-weight: 800; }
.icon-button:hover { border-color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; width: 24px; background: var(--text); margin: 5px auto; transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: 100svh; position: relative; display: block; padding: 130px 0 80px; overflow: hidden; }
.hero::before { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 470px); align-items: center; gap: 70px; position: relative; z-index: 2; }
.hero-copy { max-width: 720px; padding-top: clamp(18px, 4vh, 46px); }
.eyebrow { margin: 0 0 20px; font-size: .78rem; font-weight: 850; letter-spacing: .2em; color: var(--red); }
.hero h1, .section h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 { margin: 0; font-size: clamp(2.35rem, 3.65vw, 4.2rem); }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-lead { max-width: 680px; margin: 28px 0; font-size: clamp(1.06rem, 1.7vw, 1.32rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 13px 21px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: white; box-shadow: 0 15px 35px rgba(16, 42, 67, .22); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.hero-tags { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span { border-left: 2px solid var(--gold); padding-left: 10px; color: var(--muted); font-size: .86rem; }
.hero-glow { display: none; }
.hero-glow-one { width: 440px; height: 440px; background: var(--gold-soft); top: 14%; right: 8%; }
.hero-glow-two { width: 300px; height: 300px; background: #8db9d3; right: 30%; bottom: -8%; }
.hero-emblem-wrap { width: 100%; max-width: 470px; min-height: 650px; position: relative; display: grid; place-items: center; justify-self: end; align-self: center; }
.hero-emblem-card { width: 100%; max-width: 470px; margin: 0; padding: 18px; border-radius: 34px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 95%, transparent), color-mix(in srgb, var(--paper) 92%, transparent)); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.hero-emblem-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-bottom: 12px; padding: 7px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.hero-emblem-image { display: block; width: 100%; max-width: 420px; max-height: 540px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 22px 38px rgba(8, 27, 44, .12)); }
.hero-emblem-caption { max-width: 420px; margin: 10px auto 0; color: var(--muted); }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.hero-scroll b { font-size: 1.1rem; animation: bounce 1.8s infinite; }
@keyframes bounce { 50% { transform: translateY(5px); } }

.section { padding: 120px 0; }
.section-heading h2, .family-copy h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.6rem); }
.centred { text-align: center; max-width: 860px; margin: 0 auto 60px; }
.story { background: var(--navy); color: white; }
.story .eyebrow { color: var(--gold-soft); }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.story-copy { border-left: 1px solid rgba(255,255,255,.18); padding-left: 60px; }
.story-copy p { color: rgba(255,255,255,.72); }
.large-text { font-size: clamp(1.35rem, 2.4vw, 2.05rem); line-height: 1.42; color: inherit !important; }
.principles { margin-top: 55px; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.principles div { border-top: 1px solid rgba(255,255,255,.22); padding-top: 18px; }
.principles strong { display: block; color: var(--gold); font-size: .8rem; margin-bottom: 8px; }
.principles span { font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.profile-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 45px rgba(8, 27, 44, .06); }
.profile-image-wrap { height: 450px; background: linear-gradient(135deg, #123f65, #061b2d); overflow: hidden; }
.profile-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s ease; }
.profile-card:hover .profile-image-wrap img { transform: scale(1.025); }
.victoria-image { background: linear-gradient(180deg, #f3f0ec 0%, #e9e5e0 100%); }
.victoria-image img { object-fit: cover; object-position: center top; padding-top: 0; transform-origin: center top; }
.profile-card:hover .victoria-image img { transform: scale(1.01); }
.profile-content { padding: 34px; }
.profile-number { color: var(--red); font-weight: 900; letter-spacing: .14em; font-size: .72rem; }
.profile-content h3 { margin: 5px 0 4px; font-family: Georgia, serif; font-size: 2rem; }
.profile-role { margin: 0 0 22px; color: var(--gold); font-weight: 750; }
.profile-content > p:not(.profile-number):not(.profile-role) { color: var(--muted); }
.expertise-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0; }
.expertise-list span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: var(--red); }

.family { background: var(--surface-2); }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.family-visual { min-height: 560px; position: relative; display: grid; place-items: center; }
.family-visual::before, .family-visual::after { content: ""; position: absolute; inset: 8%; border: 1px solid var(--line); border-radius: 50%; }
.family-visual::after { inset: 20%; border-style: dashed; }
.family-monogram { width: 220px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--navy); font-size: 8rem; font-family: Georgia, serif; box-shadow: var(--shadow); z-index: 2; }
.family-word { position: absolute; padding: 9px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 800; box-shadow: 0 10px 30px rgba(8,27,44,.08); z-index: 3; }
.family-word-one { top: 12%; left: 14%; }
.family-word-two { right: 8%; top: 28%; }
.family-word-three { bottom: 17%; right: 14%; }
.family-word-four { bottom: 9%; left: 13%; }
.family-copy p { color: var(--muted); }
.family-copy blockquote { margin: 35px 0 0; padding: 24px 28px; border-left: 3px solid var(--red); background: var(--surface); font-family: Georgia, serif; font-size: 1.4rem; font-style: italic; }

.projects .section-heading { max-width: 800px; margin-bottom: 55px; }
.project-grid { display: grid; gap: 14px; }
.project-card { display: grid; grid-template-columns: 70px 1fr auto; gap: 25px; align-items: center; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateX(8px); border-color: var(--gold); }
.project-index { color: var(--gold); font-weight: 900; }
.project-kicker { color: var(--red); letter-spacing: .16em; font-weight: 850; font-size: .68rem; margin: 0 0 4px; }
.project-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; }
.project-card p:last-child { margin: 8px 0 0; color: var(--muted); }
.project-arrow { width: 44px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 1.2rem; }

.contact { padding-top: 40px; }
.contact-panel { background: linear-gradient(135deg, var(--navy), #1f526e); color: white; border-radius: 34px; padding: clamp(35px, 6vw, 75px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; box-shadow: var(--shadow); }
.contact-panel .eyebrow { color: var(--gold-soft); }
.contact-panel h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4.5rem); }
.contact-panel p:not(.eyebrow) { color: rgba(255,255,255,.72); max-width: 700px; }
.contact-actions { display: grid; gap: 12px; }
.button-light { background: white; color: var(--navy); }
.button-outline-light { border: 1px solid rgba(255,255,255,.34); color: white; }

.site-footer { padding: 60px 0 35px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 45px; align-items: start; border-top: 1px solid var(--line); padding-top: 45px; }
.footer-brand { margin-bottom: 18px; }
.site-footer p { color: var(--muted); font-size: .88rem; }
.footer-links { display: grid; gap: 10px; font-weight: 700; }
.footer-note { text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-actions { margin-left: 0; }
  .primary-nav { position: fixed; top: 78px; left: 20px; right: 20px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
  .primary-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .story-grid, .family-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 135px; }
  .hero-copy { padding-top: 0; }
  .hero-emblem-wrap { min-height: 520px; max-width: 470px; width: 100%; margin-inline: auto; justify-self: center; }
  .hero-emblem-card { margin-inline: auto; }
  .story-grid, .family-grid { gap: 55px; }
  .story-copy { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding: 40px 0 0; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 28px, 1180px); --radius: 22px; }
  .nav-wrap { min-height: 68px; gap: 10px; }
  .brand { font-size: .86rem; }
  .brand-mark { width: 34px; }
  .primary-nav { top: 68px; }
  .nav-actions { gap: 5px; }
  .icon-button { min-width: 36px; height: 36px; }
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero h1 { font-size: clamp(2.15rem, 9.5vw, 3.15rem); }
  .hero-grid { gap: 45px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-scroll { display: none; }
  .hero-emblem-wrap { min-height: 400px; max-width: 320px; }
  .hero-emblem-card { padding: 14px; border-radius: 26px; }
  .hero-emblem-image { width: 100%; max-width: 280px; max-height: 360px; }
  .section { padding: 85px 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-image-wrap { height: 360px; }
  .principles { grid-template-columns: 1fr; }
  .family-visual { min-height: 400px; }
  .family-monogram { width: 155px; font-size: 5.4rem; }
  .family-word { font-size: .78rem; }
  .project-card { grid-template-columns: 45px 1fr; padding: 24px 20px; gap: 12px; }
  .project-arrow { display: none; }
  .contact-panel { padding: 34px 24px; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-note { text-align: left; }
}

@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; }
}

.hero-emblem-card-simple {
  padding: 16px;
}
.hero-emblem-card-simple .hero-emblem-image {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .hero-emblem-card-simple {
    padding: 12px;
  }
  .hero-emblem-card-simple .hero-emblem-image {
    max-width: 280px;
  }
}

