@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #121f38;
  --pale: #edf3f7;
  --paper: #fff;
  --accent: #dcc18a;
  --accent-hover: #f0dba9;
  --muted: #4f5d73;
  --rule: #c9d3e4;
  --on-dark: #e2eaf4;
  --dark-rule: #43536b;
  --display: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 5vw, 80px);
  --section-space: clamp(54px, 6.5vw, 100px);
  --measure: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "DM Sans", sans-serif;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, .model-panel h3, .process-heading h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .98;
}
h2, .page-heading { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.027em; }
p { max-inline-size: 62ch; }
a { color: inherit; }
img { display: block; max-inline-size: 100%; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-label, .location {
  margin-bottom: 1.25rem;
  font-size: .875rem;
  font-weight: 600;
}
.section-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
}
.section-label::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.page-intro, .local {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 6vw, 100px);
}
.page-intro { align-items: end; }
.local > div + div { color: var(--muted); }
.lead { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 48px;
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.3;
}
.button-accent { background: var(--accent); color: var(--ink); }
.button-accent:hover { background: var(--accent-hover); }
.button-navy { background: var(--ink); color: white; }
.button-navy:hover { box-shadow: inset 0 0 0 2px white; }
.text-link, .service-details a {
  width: fit-content;
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: .32em;
}
.text-link span, .service-details a span { margin-inline-start: .35em; }
.text-link:hover, .service-details a:hover { text-decoration-thickness: 2px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: .65rem 1rem;
  background: white;
}

.site-header { position: sticky; top: 0; z-index: 2; background: var(--ink); color: white; border-bottom: 1px solid var(--dark-rule); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-words { display: grid; line-height: 1.15; }
.brand-name { font-size: 1.38rem; font-weight: 600; letter-spacing: -.04em; }
.brand-description { color: var(--on-dark); font-size: .72rem; }
.navigation { display: flex; gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.navigation a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.navigation a:not(.button):is(:hover, [aria-current="page"]) {
  text-decoration: underline;
  text-underline-offset: .32em;
  text-decoration-color: var(--accent);
}
.navigation .button { min-height: 44px; }
.nav-group { display: flex; align-items: center; gap: 4px; }
.nav-services summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  list-style: none;
  border-radius: 4px;
}
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  transform: translateY(-2px) rotate(45deg);
}
.nav-services[open] summary::before { transform: translateY(2px) rotate(225deg); }
.nav-services summary:hover, .nav-services[open] summary { background: var(--dark-rule); }
.nav-service-list {
  position: absolute;
  inset: 100% 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  list-style: none;
  background: var(--rule);
  color: var(--ink);
  box-shadow: 0 12px 30px #121f382b;
}
.nav-service-list a { display: block; min-height: 52px; padding: 1rem 1.25rem; background: var(--paper); }
.nav-service-list a:hover { background: var(--pale); }
.menu-toggle { display: none; }

.hero {
  display: grid;
  position: relative;
  isolation: isolate;
  align-items: center;
  min-height: clamp(560px, 48vw, 700px);
  background: var(--ink);
  color: white;
}
.hero-copy {
  grid-area: 1 / 1;
  z-index: 1;
  padding-block: clamp(65px, 8vw, 124px);
  padding-inline: max(var(--gutter), (100% - var(--measure)) / 2);
}
.location { color: var(--accent); }
.hero h1 {
  max-inline-size: 9ch;
  font-size: clamp(5.45rem, 9.4vw, 9rem);
  line-height: .86;
  letter-spacing: -.025em;
}
.hero-description { max-inline-size: 37ch; margin-block: 1.65rem; color: var(--on-dark); font-size: clamp(1rem, 1.65vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.3rem; }
.hero-explore { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; text-underline-offset: .3em; }
.hero-explore:hover { color: var(--accent); }
.hero-visual { position: absolute; inset: 0; overflow: hidden; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #101c32f5 0%, #101c32c9 25%, #101c3255 57%, transparent 84%),
    linear-gradient(0deg, #101c32d9 0%, transparent 42%);
}
.hero-image, .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.hero-video { position: absolute; inset: 0; opacity: 0; }
.hero-video.is-visible { opacity: 1; }
.hero-media-bar {
  position: absolute;
  inset: auto 0 1.05rem;
  z-index: 1;
  padding-top: .55rem;
  border-top: 1px solid #ffffff55;
  font-size: .78rem;
  font-weight: 600;
}

.firm-intro { padding-block: clamp(40px, 5vw, 72px); background: var(--pale); text-align: center; }
.firm-intro h2, .home-section-heading h2, .home-approach h2, .home-contact h2 {
  font-size: clamp(2.75rem, 5vw, 4.85rem);
}
.firm-intro p { margin: 1rem auto; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.firm-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-inline-size: 870px;
  margin: 2rem auto 0;
  padding: 1px;
  background: var(--rule);
}
.firm-facts div { display: flex; flex-direction: column-reverse; justify-content: start; padding: 1rem .5rem; background: var(--pale); }
.firm-facts dt { color: var(--muted); font-size: .875rem; }
.firm-facts dd { margin: 0; color: var(--ink); font: 400 clamp(1.65rem, 4vw, 3.5rem)/1.1 var(--display); }
.home-section-heading, .home-contact .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.home-section-heading { align-items: end; margin-bottom: clamp(24px, 4vw, 45px); }
.home-section-heading p { margin-top: .8rem; color: var(--muted); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 25px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .72rem;
  min-height: 100%;
  padding: 0 1.45rem 1.45rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
}
.service-art {
  position: relative;
  align-self: stretch;
  height: 96px;
  margin: 0 -1.45rem .45rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--accent);
}
.service-art::after {
  content: "";
  position: absolute;
  inset: -110% -20% -130% 23%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 10px, currentColor 11px, transparent 12px 19px);
  opacity: .6;
  transform: rotate(-28deg) scale(1.01);
}
.service-cards li:nth-child(3n + 2) .service-art::after { transform: rotate(32deg) scale(1.01); }
.service-cards li:nth-child(3n) .service-art::after { transform: rotate(85deg) scale(1.01); }
.service-cards li:nth-child(even) .service-art { background: #dce7eb; color: #445c72; }
.service-card h3 { font: 600 clamp(1.22rem, 2vw, 1.55rem)/1.18 "DM Sans", sans-serif; letter-spacing: -.028em; }
.service-card p { margin-bottom: .35rem; color: var(--muted); }
.service-card:hover { background: var(--pale); border-color: var(--ink); }
.service-card:hover h3 { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.card-action {
  margin-top: auto;
  border-bottom: 1px solid currentColor;
  font-size: .875rem;
  font-weight: 600;
}
.home-approach { background: var(--pale); }
.home-approach .wrap { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 6vw, 95px); }
.home-approach img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.home-approach p { margin-top: 1rem; color: var(--muted); }
.home-approach .button { margin-top: 1.4rem; }
.home-contact { background: var(--ink); color: white; border-bottom: 1px solid var(--dark-rule); }
.home-approach .button, .home-contact .button { flex-shrink: 0; }

.page-masthead { padding-block: var(--section-space); background: var(--ink); color: white; }
.page-masthead :is(.section-label, .text-link) { color: var(--accent); }
.page-intro > p, .about-copy { color: var(--on-dark); }
.about-copy .lead { color: white; }
.about-copy { align-self: center; }
.about-copy p + p, .about-copy .text-link { margin-top: 1.15rem; }
.about-copy .text-link { display: inline-block; }

.expertise { background: var(--pale); }
.service-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.85rem; }
.service-index a { padding: .65rem .9rem; border: 1px solid var(--rule); background: var(--paper); font-size: .875rem; text-decoration: none; }
.service-index a:hover { border-color: var(--ink); }
.services-grid { border-top: 1px solid var(--rule); }
.service { border-bottom: 1px solid var(--rule); }
.service summary {
  display: grid;
  grid-template-columns: minmax(125px, .8fr) minmax(190px, 1.25fr) minmax(200px, 1.5fr) auto;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  padding: 1.25rem .8rem;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service summary:hover, .service[open], .service:target summary { background: var(--paper); }
.service:target { border-inline-start: 3px solid var(--accent); }
.service-name { color: var(--ink); font-size: .85rem; font-weight: 600; }
.service-title { font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.service-description { color: var(--muted); font-size: .92rem; }
.service-expand {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
}
.service-expand::after { content: "+" / ""; font-size: 1.35rem; line-height: 1; }
.service[open] .service-expand { background: var(--ink); border-color: var(--ink); color: white; }
.service[open] .service-expand::after { content: "−" / ""; }
.service-details { padding: .15rem .8rem 1.6rem; }
.service-details ul { margin-block: 0 .95rem; padding-inline-start: 1.25rem; color: var(--muted); }
.service-details li + li { margin-top: .25rem; }

.model-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.model-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: .65rem clamp(8px, 2.5vw, 34px);
  color: var(--ink);
  background: var(--paper);
  border: 0;
  text-align: left;
  font-weight: 600;
}
.model-tabs button + button { border-inline-start: 1px solid var(--rule); }
.model-tabs button:hover { background: var(--pale); }
.model-tabs button[aria-selected="true"] { background: var(--ink); color: white; }
.model-tabs button:focus-visible { outline-offset: -5px; }
.model-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 82px);
  padding: clamp(26px, 5vw, 70px);
  background: var(--pale);
}
.model-panel + .model-panel { margin-top: 2px; }
.model-kicker { margin-bottom: .75rem; color: var(--ink); font-weight: 600; font-size: .875rem; }
.model-panel[role="tabpanel"] .model-kicker { display: none; }
.model-panel h3 { font-size: clamp(2.6rem, 5vw, 5.25rem); letter-spacing: -.025em; }
.check-list { margin-block: 1rem 1.4rem; padding-inline-start: 1.25rem; }
.check-list li + li { margin-top: .35rem; }
.check-list li::marker, .service-details li::marker { color: var(--ink); }

.process-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-block: clamp(52px, 7vw, 98px) 1.65rem;
}
.process-heading h3 { font-size: clamp(2.4rem, 4.2vw, 4.5rem); }
.process-heading p, .process p { color: var(--muted); }
.process { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.process li { padding: .95rem 1rem 0 0; border-top: 1px solid var(--rule); }
.process li > span { color: var(--ink); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.process h4 { margin-block: .6rem .25rem; font-size: 1.05rem; }
.process p { font-size: .875rem; line-height: 1.4; }
.local { align-items: start; }
.local .lead + p, .audience { margin-top: 1rem; }
.local-list { margin-block: 1.25rem; padding: 0; list-style: none; }
.local-list li { padding-block: .55rem; border-bottom: 1px solid var(--rule); }

.contact { background: var(--ink); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 105px); }
.contact .section-label { color: var(--accent); }
.contact-copy > p:not(.section-label) { margin-block: 1.45rem; color: var(--on-dark); }
.contact-email, .contact-phone { display: block; width: fit-content; text-underline-offset: .3em; }
.contact-email { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 600; overflow-wrap: anywhere; }
.contact-phone { margin-top: .75rem; }
.contact-email:hover, .contact-phone:hover { color: var(--accent); }
.contact address { margin-top: 1.2rem; color: var(--on-dark); font-size: .9rem; font-style: normal; }
.enquiry-form { align-self: start; padding: clamp(20px, 3.5vw, 44px); background: var(--paper); color: var(--ink); }
.enquiry-form h3 { margin-bottom: 1.25rem; font-size: 1.35rem; letter-spacing: -.025em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field { min-width: 0; margin-bottom: .85rem; }
.field label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 600; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid #9aa9c1;
  border-radius: 3px;
  background: white;
  color: var(--ink);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { display: block; resize: vertical; }
.form-note, .form-status { margin-top: .75rem; color: var(--muted); font-size: .82rem; }
.form-status:empty { display: none; }

.site-footer { padding-block: 2.25rem 1.5rem; background: var(--ink); color: white; border-top: 1px solid var(--dark-rule); }
.footer-top, .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-brand { text-decoration: none; font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
.footer-brand span { display: block; margin-top: .2rem; color: var(--on-dark); font-size: .72rem; letter-spacing: normal; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.footer-links a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.back-top { font-weight: 600; text-underline-offset: .28em; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--dark-rule); color: var(--on-dark); font-size: .82rem; }

@media (max-width: 900px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .service-description { grid-column: 2; }
  .service-expand { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 84px; }
  .header-inner { position: static; min-height: 68px; flex-wrap: wrap; gap: 0 16px; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    color: white;
    border: 1px solid var(--dark-rule);
    border-radius: 4px;
    background: transparent;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .navigation { flex: 1 0 100%; display: grid; align-items: start; gap: .4rem; padding-block: 12px; }
  .menu-toggle:not([hidden]) + .navigation { display: none; }
  .menu-toggle[aria-expanded="true"] + .navigation {
    display: grid;
    position: absolute;
    inset: 100% 0 auto;
    padding: var(--gutter);
    border-top: 1px solid var(--dark-rule);
    background: var(--ink);
    max-height: calc(100dvh - 69px);
    overflow-y: auto;
  }
  .navigation > a, .nav-group > a { padding-block: .65rem; }
  .navigation .button { justify-self: start; }
  .nav-group { display: grid; grid-template-columns: minmax(0, 1fr); }
  .nav-group > a { grid-area: 1 / 1; align-self: start; justify-self: start; }
  .nav-services { grid-area: 1 / 1; pointer-events: none; }
  .nav-services summary { margin-inline-start: auto; pointer-events: auto; }
  .nav-service-list {
    position: static;
    grid-template-columns: 1fr;
    margin-block: .25rem .4rem;
    border: 0;
    box-shadow: none;
    background: var(--ink);
    color: white;
    pointer-events: auto;
  }
  .nav-service-list a { min-height: 44px; padding: .65rem .8rem; background: var(--dark-rule); }
  .nav-service-list a:hover { background: var(--ink); }
}

@media (max-width: 720px) {
  .page-intro, .local, .model-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: 580px; align-items: end; }
  .hero-copy { padding-block: 9rem 6.5rem; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6.2rem); }
  .hero-visual::after { background: linear-gradient(0deg, #101c32 5%, #101c32e8 31%, #101c3266 67%, transparent 100%); }
  .hero-image, .hero-video { object-position: 73% center; }
  .page-intro, .local { gap: 1.4rem; }
  .home-approach .wrap { grid-template-columns: 1fr; }
  .home-contact .wrap { flex-direction: column; align-items: start; }
  .process { grid-template-columns: 1fr; }
  .process li {
    display: grid;
    grid-template-columns: 1.65rem minmax(90px, .7fr) 1fr;
    align-items: baseline;
    gap: .45rem;
    padding: .85rem 0;
  }
  .process h4 { margin: 0; }
}

@media (max-width: 480px) {
  .home-section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .service-cards { grid-template-columns: 1fr; }
  .hero-media-bar { inset-block-end: .7rem; font-size: .72rem; }
  .footer-links { flex-basis: 100%; }
  .service summary { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; }
  .service-description { grid-column: 1; }
  .service-expand { grid-column: 2; grid-row: 1 / 4; }
  .model-tabs button { justify-content: center; font-size: .84rem; }
  .model-tabs button span { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@keyframes lift-in {
  from { opacity: .18; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: lift-in .75s cubic-bezier(.2, .7, .3, 1) both; }
  .hero-copy h1 { animation-delay: .08s; }
  .hero-description { animation-delay: .16s; }
  .hero-actions { animation-delay: .24s; }
  .nav-services[open] .nav-service-list, .service[open] .service-details { animation: lift-in .24s ease-out both; }
  .service-cards .is-entering { animation: lift-in .58s ease-out var(--entry-delay, 0ms) both; }
  .service-card { transition: background .22s, border-color .22s, box-shadow .22s; }
  .service-card:is(:hover, :focus-visible) { box-shadow: 0 8px 22px #121f381f; }
  .service-art::after { transition: scale .45s cubic-bezier(.2, .7, .3, 1); }
  .service-card:is(:hover, :focus-visible) .service-art::after { scale: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
