:root {
  color-scheme: light;
  --ink: #111d29;
  --navy: #101a24;
  --blue: #aee7ef;
  --teal: #10616d;
  --paper: #f6f7f4;
  --muted: #485765;
  --line: #d1d9d9;
  font-family: Geist, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #2a8b9a; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 5rem, 82rem); margin-inline: auto; }
.skip { position: fixed; top: 1rem; left: 1rem; transform: translateY(-200%); z-index: 4; padding: .75rem; background: white; }
.skip:focus { transform: none; }

.site-header, .hero { background: var(--navy); color: #f7fbfd; }
.site-header { border-bottom: 1px solid #394653; }
.header-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.28rem; font-weight: 700; letter-spacing: .15em; }
.brand img { object-fit: contain; }
.desktop-nav { display: flex; gap: clamp(1.5rem, 4vw, 4rem); }
.desktop-nav a { color: #d2dce1; font-size: .94rem; }
.desktop-nav a:hover, .text-link:hover { color: var(--blue); }
.mobile-nav { display: none; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.35rem; min-height: 3.2rem; padding: .72rem 1rem; border: 1px solid #657884; font-weight: 650; font-size: .92rem; transition: background .18s ease, color .18s ease; }
.button:hover { border-color: var(--blue); background: var(--blue); color: var(--navy); }
.button.primary { border-color: var(--blue); background: var(--blue); color: var(--navy); }
.button.primary:hover { background: #d4f5f9; }
.button span, .text-link span { font-size: 1.1rem; }

.hero { padding-block: clamp(2.4rem, 6vw, 6rem) 0; }
.hero-grid { display: grid; grid-template-columns: 1.01fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kicker { display: flex; align-items: center; gap: .6rem; color: var(--teal); font: 500 .74rem/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .085em; }
.kicker span { width: .6rem; height: .6rem; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.hero .kicker, .contact .kicker { color: var(--blue); }
h1, h2, .feature h3 { font-weight: 600; letter-spacing: -.075em; line-height: .99; }
h1 { font-size: clamp(3.45rem, 6.1vw, 6.65rem); margin-block: 1.4rem; }
h1 em { color: var(--blue); font-style: normal; }
.intro, .contact p { color: #c2d0d9; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; max-width: 29rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .92rem; padding-block: .65rem; }
.hero-figure { position: relative; min-width: 0; background: #253947; border: 1px solid #4a6574; }
.hero-figure img { width: 100%; height: clamp(21rem, 35vw, 32rem); object-fit: cover; object-position: center 44%; }
.hero-figure figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .45rem 1rem; padding: .95rem 1.1rem; flex-wrap: wrap; background: #172732; }
.hero-figure figcaption span { font-weight: 650; }
.hero-figure small { color: var(--blue); font: 500 .72rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); padding-block: 1.25rem; border-top: 1px solid #394653; color: #c2d0d9; font-size: .83rem; }

.section { padding-block: clamp(3.8rem, 8vw, 7rem); }
.section-heading { display: grid; align-items: end; grid-template-columns: 1fr minmax(17rem, .55fr); gap: 2rem; margin-bottom: clamp(2rem, 4.5vw, 4rem); }
h2 { font-size: clamp(2.7rem, 5.5vw, 5.5rem); margin-top: .9rem; }
.section-heading > p, .feature-copy > p:not(.kicker), .experience p { color: var(--muted); font-size: 1.04rem; line-height: 1.65; max-width: 31rem; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; align-items: start; }
.capabilities details { border-top: 1px solid var(--line); }
.capabilities details:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.capabilities summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding-block: 1.25rem; gap: 1rem; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -.045em; }
.capabilities summary::-webkit-details-marker { display: none; }
.capabilities summary::after { content: "+"; color: var(--teal); font-size: 1.35rem; }
.capabilities details[open] summary::after { content: "−"; }
.capabilities details p { padding-bottom: 1.25rem; color: var(--muted); line-height: 1.6; max-width: 29rem; }

.work { background: #e8eeee; }
.feature { display: grid; grid-template-columns: 1.14fr .86fr; background: #f9fbf9; border: 1px solid #c7d4d5; }
.feature > img { width: 100%; height: 100%; min-height: 24rem; max-height: 33rem; object-fit: cover; object-position: center; }
.feature-copy { padding: clamp(1.5rem, 5vw, 5rem); align-self: center; }
.feature h3 { font-size: clamp(2.4rem, 5vw, 4.65rem); margin-block: 1.1rem 1.25rem; }
.feature dl { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.2rem; }
.feature dt { color: var(--muted); font-size: .8rem; }
.feature dd { font-weight: 650; margin-top: .25rem; }
.experience { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 5rem); }
.experience h3 { font-size: 1.7rem; letter-spacing: -.045em; margin-bottom: .55rem; }
.experience ul { list-style: none; padding: 0; border-top: 1px solid #b9c9ca; }
.experience li { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.2rem; padding-block: .95rem; border-bottom: 1px solid #b9c9ca; }
.experience li span { color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.person { min-width: 0; padding: 1.5rem 1rem 1.5rem 1.5rem; border-left: 1px solid var(--line); }
.person:first-child { border-left: 0; padding-left: 0; }
.person img { width: 4.4rem; height: 4.4rem; object-fit: cover; border-radius: 50%; }
.person h3 { font-size: 1.06rem; line-height: 1.24; letter-spacing: -.02em; margin: .95rem 0 .35rem; }
.person p { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.contact { background: var(--navy); color: #f7fbfd; }
.contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact h2 + p { margin-top: 1.25rem; }
.contact-links { margin-top: 1.3rem; list-style: none; padding: 0; }
.contact-links li a { display: inline-flex; gap: .65rem; color: var(--blue); font-weight: 600; padding-block: .4rem; }
.contact-links li a:hover { text-decoration: underline; }
.enquiry { display: grid; gap: .7rem; padding: clamp(1.25rem, 3vw, 2.6rem); border: 1px solid #435865; background: #182733; }
.enquiry label { font-weight: 600; font-size: .95rem; }
.enquiry select, .enquiry textarea { width: 100%; min-width: 0; padding: .75rem; margin-bottom: .65rem; border: 1px solid #697e89; border-radius: 0; background: #101e29; color: #f7fbfd; }
.enquiry textarea { resize: vertical; }
.enquiry textarea::placeholder { color: #b4c2cb; }
.enquiry .form-note { font-size: .82rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; padding-block: 1.4rem; color: var(--muted); }
.footer .brand { color: var(--ink); }
.footer p, .footer small { font-size: .83rem; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 3rem); }
  .desktop-nav { gap: 1.15rem; }
  .hero-grid { gap: 1.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .person:nth-child(odd) { padding-left: 0; border-left: 0; }
  .person:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; padding: .55rem .7rem; border: 1px solid #657884; font-size: .9rem; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: calc(100% - .1rem); right: 0; z-index: 2; background: #182733; border: 1px solid #657884; min-width: 11rem; }
  .mobile-nav nav a { display: block; padding: .8rem 1rem; }
  .mobile-nav nav a:hover { background: #243c4a; }
  .hero-grid, .section-heading, .feature, .experience, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  h1 { font-size: clamp(3rem, 10.5vw, 4.65rem); }
  .hero-figure img { height: clamp(16rem, 65vw, 25rem); }
  .hero-foot { justify-content: flex-start; }
  .section-heading, .experience { gap: .9rem; }
  .capabilities { grid-template-columns: 1fr; }
  .capabilities details:nth-last-child(2) { border-bottom: 0; }
  .feature > img { min-height: 0; height: clamp(15rem, 60vw, 22rem); }
  .experience li { grid-template-columns: 1fr; }
}

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