:root {
  --ink: #081018;
  --ink-2: #101820;
  --panel: #141e29;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --text: #edf2f6;
  --muted: #a7b4c0;
  --ink-text: #17211c;
  --ink-muted: #5c675f;
  --blue: #7eb6ff;
  --lime: #d6f25c;
  --copper: #c9844a;
  --line: rgba(237, 242, 246, 0.12);
  --line-dark: rgba(23, 33, 28, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 1120px;
  --header: 96px;
  --brand: #1a5192;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 420;
  font-size: 1.05rem;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin: 0;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--lime);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--copper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  background: #f7f4ee;
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 76px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: #3c4840;
  font-size: 0.95rem;
  font-weight: 520;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23, 33, 28, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #17211c;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(126, 182, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(214, 242, 92, 0.08), transparent 70%),
    radial-gradient(rgba(237, 242, 246, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: end;
}

.hero-copy,
.hero-panel,
.about-layout > *,
.contact-layout > *,
.service-list li > * {
  min-width: 0;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  font-weight: 640;
  overflow-wrap: break-word;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.lede {
  max-width: 38rem;
  margin-top: 1.4rem;
  color: #d5dee6;
  font-size: 1.15rem;
}

.lede-quiet {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--lime);
  color: #17210a;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  background: #e4f98a;
}

.button-light {
  background: var(--text);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  background: #fff;
}

.text-link {
  color: var(--text);
  border-bottom: 1px solid rgba(237, 242, 246, 0.4);
  padding-bottom: 0.1rem;
}

.hero-panel {
  background: rgba(20, 30, 41, 0.86);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem 1.4rem 0.4rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.panel-kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}

.hero-panel li span {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  padding-top: 0.25rem;
}

.hero-panel strong {
  display: block;
  font-weight: 600;
}

.hero-panel p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about,
.banking {
  background: var(--paper);
  color: var(--ink-text);
}

.about {
  padding: 6.5rem 0;
}

.about-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4rem;
  align-items: start;
}

.about h2,
.services h2,
.ev h2,
.banking h2,
.contact h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  max-width: 14ch;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy p {
  font-size: 1.08rem;
  color: #2a352e;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 0;
}

.facts div {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-dark);
}

.facts dt {
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.3rem 0 0;
  font-weight: 560;
}

.services,
.ev,
.contact {
  padding: 6.5rem 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.8rem;
}

.section-head p:last-child,
.contact-layout > div > p:last-child {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list .index {
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  padding-top: 0.45rem;
}

.service-list h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.service-list p {
  max-width: 40rem;
  margin-top: 0.55rem;
  color: var(--muted);
}

.ev {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(214, 242, 92, 0.12), transparent 60%),
    var(--ink-2);
}

.ev-grid,
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ev-grid article,
.product-grid li {
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 16, 24, 0.35);
}

.chip {
  display: inline-block;
  margin-bottom: 1.3rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ev-grid h3,
.product-grid strong {
  font-size: 1.7rem;
}

.ev-grid p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.banking {
  padding: 6.5rem 0 7rem;
}

.banking-intro {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.banking-kicker {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink-text);
}

.banking-intro p:last-child {
  margin-top: 0.8rem;
  color: #314038;
  font-size: 1.08rem;
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
}

.product-grid li {
  background: #fffdf8;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 28, 0.08);
}

.product-grid strong {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.product-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--copper);
  font-size: 0.92rem;
  font-weight: 600;
}

.product-grid p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.office-card {
  font-style: normal;
  padding: 1.8rem;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.office-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.office-card p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.enquiry {
  padding: 6.5rem 0 7rem;
  background: #ffffff;
  color: var(--ink-text);
}

.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: start;
}

.enquiry-copy h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  max-width: 12ch;
}

.enquiry-copy p:last-child {
  margin-top: 1rem;
  color: #314038;
  font-size: 1.08rem;
  max-width: 32rem;
}

.enquiry-form {
  padding: 1.6rem;
  border-radius: 28px;
  background: #fffdf8;
  border: 1px solid rgba(23, 33, 28, 0.1);
  box-shadow: 0 18px 50px rgba(23, 33, 28, 0.06);
}

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

.form-row {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.form-row label {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 33, 28, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink-text);
  font: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(92, 103, 95, 0.7);
}

.form-row select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(26, 81, 146, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 81, 146, 0.12);
}

.form-row textarea {
  resize: vertical;
  min-height: 140px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.form-status {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.form-status.is-success {
  color: #2f6b2f;
}

.form-status.is-error {
  color: #b42318;
}

.site-footer {
  background: #f7f4ee;
  border-top: 1px solid rgba(23, 33, 28, 0.1);
  padding: 1.2rem 0 1.5rem;
}

.footer-inner {
  height: auto;
  align-items: center;
}

.footer-inner p {
  color: #5c675f;
  font-size: 0.92rem;
}

.footer-inner .brand img {
  height: 64px;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: 30;
    inset: var(--header) 0 0 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 2rem;
    background: #081018;
    overflow: auto;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
    color: var(--text);
  }

  .hero-layout,
  .about-layout,
  .contact-layout,
  .enquiry-layout,
  .ev-grid,
  .product-grid,
  .form-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero h1 {
    max-width: none;
  }

  .about,
  .services,
  .ev,
  .banking,
  .contact,
  .enquiry {
    padding: 4.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 2rem));
  }

  .brand img,
  .footer-inner .brand img {
    height: 58px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: 2.65rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
