:root {
  --bg: #ffffff;
  --bg-tint: #fafafa;
  --text: #171717;
  --muted: #666666;
  --subtle: #4d4d4d;
  --line: rgba(0, 0, 0, 0.08);
  --focus: hsla(212, 100%, 48%, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "liga" 1;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #0072f5;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.mono-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
}

.site-chrome::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px var(--line);
  z-index: -1;
}

.site-shell {
  position: relative;
  width: 100%;
}

.topbar {
  position: relative;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 861px) {
  .site-chrome {
    min-height: 64px;
    width: 100%;
    padding-inline: max(1.25rem, calc((100vw - 1080px) / 2));
  }

  .site-shell {
    flex: 0 0 auto;
  }

  .topbar-inner {
    min-height: unset;
    width: auto;
    padding: 0;
  }

  .nav-toggle {
    display: none;
  }

  .top-nav-out {
    position: fixed;
    top: 0;
    right: max(1.25rem, calc((100vw - 1080px) / 2));
    left: auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    background: transparent;
    padding: 0;
    z-index: 41;
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.mark {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--subtle);
}

.top-nav a:hover {
  color: var(--text);
}

.nav-cta {
  color: #fff !important;
  background: var(--text);
  padding: 0.55rem 1rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  border-radius: 999px;
}

.top-nav a.is-active:not(.nav-cta) {
  color: var(--text);
}

.nav-cta:hover {
  background: #000 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  margin-inline: auto;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: clamp(4.5rem, 12vw, 7.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
}

.hero-inner {
  max-width: 820px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: var(--bg-tint);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.trust-rail {
  border-block: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--bg-tint);
}

.trust-rail-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--subtle);
}

.trust-rail .mono-label {
  display: block;
  margin-bottom: 0.35rem;
}

.block {
  padding: clamp(4rem, 9vw, 6rem) 0;
}

.block-tint {
  background: var(--bg-tint);
}

.block-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.block h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.advice-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  box-shadow: 0 -1px 0 0 var(--line);
}

.advice-list li:last-child {
  box-shadow: 0 -1px 0 0 var(--line), 0 1px 0 0 var(--line);
}

.advice-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.35rem;
}

.advice-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.advice-list p {
  margin: 0;
  color: var(--subtle);
  max-width: 40rem;
}

.approach-split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.approach-split p {
  color: var(--subtle);
  max-width: 36rem;
}

.panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 2px,
    rgba(0, 0, 0, 0.04) 0 8px 8px -8px;
}

.panel-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.panel-list li {
  padding: 0.7rem 0;
  box-shadow: 0 1px 0 0 var(--line);
  font-size: 0.95rem;
}

.panel-list li:last-child {
  box-shadow: none;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: #0072f5;
}

.office-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.address {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1rem 0;
}

.office-note {
  color: var(--subtle);
  max-width: 28rem;
}

.office-contacts {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.contact-chip {
  display: block;
  text-decoration: none;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  transition: background 0.15s ease;
}

.contact-chip:hover {
  background: var(--bg-tint);
  color: inherit;
}

.contact-chip strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.fine {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.block-enquire {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.enquire-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.enquire-grid > div p {
  color: var(--subtle);
  max-width: 28rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--bg-tint);
  box-shadow: 0 0 0 1px var(--line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--text);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #ebf5ff;
  color: #0068d6;
  font-size: 0.9rem;
}

.form-success[hidden] {
  display: none !important;
}

.footer {
  padding: 2.5rem 0 3rem;
  box-shadow: 0 -1px 0 0 var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}

.footer p {
  margin: 0.5rem 0 0;
  max-width: 36rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--subtle);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 0;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.page-hero .hero-lede {
  margin-bottom: 0;
}

.prose {
  max-width: 40rem;
}

.prose p {
  color: var(--subtle);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.advice-list h3 a,
.link-card h2 {
  text-decoration: none;
  color: inherit;
}

.advice-list h3 a:hover {
  color: #0072f5;
}

.more-link {
  margin: 1.5rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.link-card {
  display: block;
  text-decoration: none;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  min-height: 100%;
}

.link-card:hover {
  background: var(--bg-tint);
  color: inherit;
  box-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 8px 16px -8px;
}

.link-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.link-card p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.note-panel {
  margin-top: 1.5rem;
}

.note-panel p {
  margin: 0;
  color: var(--subtle);
}

.check-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 0 var(--line);
  color: var(--subtle);
}

.check-list li:last-child {
  box-shadow: none;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    rgba(0, 0, 0, 0.08) 0 0 0 1px,
    rgba(0, 0, 0, 0.04) 0 2px 2px;
}

.team-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.team-card p {
  margin: 0 0 0.75rem;
  color: var(--subtle);
  font-size: 0.95rem;
}

.team-card p:last-child {
  margin-bottom: 0;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  padding: 1.75rem 0;
  box-shadow: 0 -1px 0 0 var(--line);
}

.news-item:last-child {
  box-shadow: 0 -1px 0 0 var(--line), 0 1px 0 0 var(--line);
}

.news-item h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.news-item p:last-child {
  margin: 0;
  color: var(--subtle);
}

.subhead {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .trust-rail-inner,
  .approach-split,
  .office-row,
  .enquire-grid,
  .form-row,
  .team-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-chrome {
    position: sticky;
    z-index: 55;
  }

  .topbar-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .top-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.35rem;
    z-index: 50;
    overflow-y: auto;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 0.9rem 0.25rem;
    font-size: 1.15rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.75rem;
    min-height: 48px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .advice-list li {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
  }
}

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

  .hamburger span {
    transition: none;
  }
}
