* { box-sizing: border-box; margin: 0; padding: 0; }

.page {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1F2922;
    background: #FAF7F0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow-x: hidden;
  }
  
  html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
  
  .container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
  .tnum { font-variant-numeric: tabular-nums; }

  .img-frame { background: #1F2922; overflow: hidden; position: relative; }
  .img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .img-caption { position: absolute; bottom: 8px; left: 8px; background: rgba(31,41,34,0.85); color: #D4A56A; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 4px 8px; backdrop-filter: blur(4px); }

  html {
    scrollbar-width: thin;
    scrollbar-color: #C2602F #FAF7F0;
  }
  
  body::-webkit-scrollbar {
    width: 10px;
  }
  
  body::-webkit-scrollbar-track {
    background: #FAF7F0;
  }
  
  body::-webkit-scrollbar-thumb {
    background: #C2602F;
    border-radius: 20px;
    border: 2px solid #FAF7F0;
  }
  
  body::-webkit-scrollbar-thumb:hover {
    background: #9E4A24;
  }

/* HEADER */
.header{
    padding:18px 0;
    border-bottom:0.5px solid rgba(31,41,34,0.4);
    background:rgba(250,247,240,0.95);
    backdrop-filter:blur(8px);
    position:sticky;
    top:0;
    z-index:10;
  }
  
  .header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  
/* NEW BRAND WRAPPER */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
}

/* SEPARATOR — vertical hairline between logo and mark */
.brand-divider{
  width:1px;
  height:36px;
  background:rgba(31, 41, 34, 0.25);
  flex-shrink:0;
}

/* LOGO PLACEHOLDER */
.logo-placeholder{
  width:152px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.logo-placeholder img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.mark{
  font-family:Georgia, serif;
  font-size:15px;
  color:#1F2922;
  line-height:1.1;
  letter-spacing:-0.2px;
  
}

/* .mark em{
  font-style:italic;
} */

  .nav{
    display:flex;
    gap:26px;
    align-items:center;
  }
  
  .nav a{
    font-size:13px;
    color:#1F2922;
    text-decoration:none;
    font-weight:500;
  }
  
  .nav a.with-caret::after{
    content:' ▾';
    font-size:9px;
    opacity:0.6;
  }
  
  .nav .cta{
    background:#C2602F;
    color:#FFFFFF;
    padding:9px 20px;
    font-weight:600;
    letter-spacing:0.02em;
    border-radius:3px 18px 18px 3px;
  }
  
  a {
      text-decoration: none;
  }


  /* SUBNAV */
  .subnav { background: #1F2922; padding: 12px 0; border-bottom: 0.5px solid rgba(212,165,106,0.3); }
  .subnav-inner { display: flex; gap: 28px; align-items: center; justify-content: center; }
  .subnav a { font-size: 11px; color: #B5C2A8; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; text-decoration: none; }
  .subnav a.active { color: #D4A56A; border-bottom: 1px solid #D4A56A; padding-bottom: 4px; }
  .subnav-divider { width: 4px; height: 4px; background: rgba(212,165,106,0.5); border-radius: 50%; }

    /* FOOTER */
    .footer { background: #14201A; color: #B5C2A8; padding: 64px 0 36px; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 44px; border-bottom: 0.5px solid rgba(181,194,168,0.2); }
    .footer-mark { font-family: Georgia, serif; font-size: 17px; color: #FAF7F0; line-height: 1.2; margin-bottom: 12px; }
    /* .footer-mark em { font-style: italic; } */
    .footer-mark-tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #6B7B5A; margin-top: 6px; display: block; font-weight: 600; }
    .footer-mission { font-size: 13px; line-height: 1.7; color: #B5C2A8; max-width: 320px; margin-top: 14px; }
    .footer-col-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #D4A56A; font-weight: 700; margin-bottom: 18px; }
    .footer-link { display: block; font-size: 13px; color: #B5C2A8; text-decoration: none; padding: 5px 0; }
    .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 11px; color: #6B7B5A; }
    .footer-schools-line { display: flex; gap: 18px; font-size: 11px; color: #6B7B5A; letter-spacing: 0.04em; }

    .footer-bottom-grid {
        padding-top: 44px;
      }
      
      .footer-subhead {
        margin-top: 28px;
      }


/* Motions */
/* PREMIUM REVEAL MOTION */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity 1s ease,
    transform 1.9s cubic-bezier(.16, 1, .3, 1);

  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-32px);
}

[data-reveal="right"] {
  transform: translateX(32px);
}

[data-reveal="scale"] {
  transform: scale(.96);
}

[data-reveal="up"]{
  transform: translateY(26px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* optional delay system */
[data-delay="1"] { transition-delay: 100ms; }
[data-delay="2"] { transition-delay: 400ms; }
[data-delay="3"] { transition-delay: 700ms; }
[data-delay="4"] { transition-delay: 1000ms; }
[data-delay="5"] { transition-delay: 1300ms; }
[data-delay="6"] { transition-delay: 1600ms; }
[data-delay="7"] { transition-delay: 1900ms; }
[data-delay="8"] { transition-delay: 2200ms; }
[data-delay="9"] { transition-delay: 2500ms; }
[data-delay="10"] { transition-delay: 28000ms; }
[data-delay="11"] { transition-delay: 3100ms; }
[data-delay="12"] { transition-delay: 34000ms; }

/* Respect accessibility */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   RESPONSIVE GLOBAL LAYER
   Paste at the bottom of the main stylesheet
========================================================= */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .container {
    max-width: 100%;
    padding: 0 32px;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 12px;
  }

  .nav a{
  position:relative;
}

.nav a.active{
  color:#C2602F !important;
  font-weight:700;
}

.nav a.active:not(.cta)::before{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:2px;
  background:#C2602F;
  border-radius:999px;
}

.nav .cta.active{
  background:#1F2922 !important;
  color:#FFFFFF !important;
}

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


/* Tablets */
@media (max-width: 900px) {
  .header {
    padding: 14px 0;
  }

  .header-inner {
    gap: 24px;
  }

  .logo-placeholder {
    width: 46px;
    height: 46px;
  }

  .mark {
    font-size: 14px;
  }

  .mark-tag {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 11px;
  }

  .nav .cta {
    padding: 8px 14px;
  }

  .subnav {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .subnav-inner {
    justify-content: flex-start;
    gap: 22px;
    padding: 0 32px;
    width: max-content;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .footer-schools-line {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}


/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 22px;
  }

  .header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .brand {
    width: 100%;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 18px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar,
  .subnav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .nav .cta {
    border-radius: 999px;
    padding: 8px 16px;
  }

  .subnav-inner {
    padding: 0 22px;
    gap: 20px;
  }

  .footer {
    padding: 52px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 36px;
  }

  .footer-mission {
    max-width: 100%;
  }

  [data-reveal],
  [data-reveal="left"],
  [data-reveal="right"],
  [data-reveal="scale"],
  [data-reveal="up"] {
    transform: translateY(18px);
  }
}


/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .logo-placeholder {
    width: 42px;
    height: 42px;
  }

  .mark {
    font-size: 13px;
  }

  .mark-tag {
    font-size: 7.5px;
    letter-spacing: 0.14em;
  }

  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 11.5px;
  }

  .subnav {
    padding: 10px 0;
  }

  .subnav a {
    font-size: 10px;
    letter-spacing: 0.13em;
  }

  .footer {
    padding: 44px 0 28px;
  }

  .footer-mark {
    font-size: 16px;
  }

  .footer-link,
  .footer-mission {
    font-size: 12.5px;
  }

  .footer-bottom {
    font-size: 10.5px;
  }
}

/* =========================================================
   SOCIAL ICONS — header cluster
   Add these rules to the existing template.css
========================================================= */

/* Screen-reader-only utility (kept safe if not already defined) */
.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;
}

/* SOCIAL CLUSTER */
.social {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(31, 41, 34, 0.15);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #1F2922;
  border-radius: 50%;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  color: #C2602F;
  background-color: rgba(194, 96, 47, 0.08);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid #C2602F;
  outline-offset: 2px;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}


/* =========================================================
   RESPONSIVE — social icons
========================================================= */

/* Tablets (≤900px) — tighten spacing */
@media (max-width: 900px) {
  .social {
    margin-left: 8px;
    padding-left: 10px;
    gap: 4px;
  }

  .social-link {
    width: 30px;
    height: 30px;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }
}

/* Mobile (≤768px) — nav is a scrollable strip.
   Move social icons out of the scroll and into their own row
   below the nav so they stay visible without swiping. */
@media (max-width: 768px) {
  /* Allow the nav to wrap so the .social row can drop below.
     The existing nav links keep `flex: 0 0 auto` and stay on the first line;
     only the .social element (with width:100%) is forced onto a new line. */
  .nav {
    flex-wrap: wrap;
  }

  .social {
    /* Break out of the horizontal scroll flow */
    order: 99;
    width: 100%;
    margin: 8px 0 0 0;
    padding: 12px 0 4px 0;
    padding-left: 0;
    border-left: none;
    border-top: 0.5px solid rgba(31, 41, 34, 0.15);
    justify-content: flex-start;
    gap: 8px;

    /* Prevent the icons row from being caught by nav's white-space:nowrap */
    white-space: normal;
    flex-wrap: wrap;
  }

  .social-link {
    width: 34px;
    height: 34px;
  }

  .social-icon {
    width: 17px;
    height: 17px;
  }
}

/* Small mobile (≤480px) — same layout, slightly smaller icons */
@media (max-width: 480px) {
  .social-link {
    width: 32px;
    height: 32px;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }
}

/* =========================================================
   FOOTER SOCIAL ICONS — cluster under address (Column 1)
   Add these rules to the existing template.css
   (append after your existing .footer rules)
========================================================= */

/* Wrapper spaces the cluster from the address above */
.footer-social-wrap {
  margin-top: 26px;
}

/* Small eyebrow label — same treatment as .footer-col-title but scaled down */
.footer-social-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #D4A56A;              /* ochre, matches footer's warm accent */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  padding: 0;
}

/* Icons row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-social li {
  margin: 0;
  padding: 0;
}

/* Icon button — circular, subtle border on the dark background */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #EDE6D5;              /* cream, matches surrounding footer text */
  border: 1px solid rgba(237, 230, 213, 0.2);
  border-radius: 50%;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #1F2922;              /* deep forest text on ochre bg */
  background-color: #D4A56A;   /* ochre wash — matches footer's warm accent */
  border-color: #D4A56A;
  transform: translateY(-1px);
}

.footer-social-link:focus-visible {
  outline: 2px solid #D4A56A;
  outline-offset: 2px;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}


/* =========================================================
   RESPONSIVE — footer social icons
========================================================= */

/* Tablet (≤900px) — no changes needed; existing footer-grid handles the reflow.
   The .footer-social-wrap follows .footer-mission naturally into whatever
   column layout the parent grid uses. */

/* Mobile (≤640px) — slight adjustments to breathing room */
@media (max-width: 640px) {
  .footer-social-wrap {
    margin-top: 20px;
  }

  .footer-social-link {
    width: 40px;             /* slightly bigger for touch */
    height: 40px;
  }

  .footer-social-icon {
    width: 18px;
    height: 18px;
  }
}

/* Language switcher (only the UK flag is shown on this page) */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  overflow: hidden;
  transition:
    border-color var(--transition),
    transform var(--transition);
}
.nav-lang a:hover {
  border-color: var(--marble-red);
  transform: translateY(-1px);
}
.nav-lang a:focus-visible {
  outline: 2px solid var(--marble-red);
  outline-offset: 2px;
}
.nav-lang svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: block;
}