:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #5c6978;
  --soft: #edf5fb;
  --paper: #f8fbff;
  --white: #ffffff;
  --line: rgba(17, 24, 32, 0.14);
  --line-strong: rgba(17, 24, 32, 0.26);
  --harbour: #075ee8;
  --harbour-deep: #0b3f9f;
  --aqua: #19a6c8;
  --greenstone: #1b9a78;
  --kowhai: #f2c84b;
  --pohutukawa: #dc5148;
  --shadow: 0 24px 70px rgba(16, 44, 78, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(7, 94, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 94, 232, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

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

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

#possibility-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius);
  background: rgba(248, 251, 255, 0.84);
  box-shadow: 0 12px 40px rgba(16, 44, 78, 0.09);
  backdrop-filter: blur(22px);
}

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

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

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.nav-links a,
.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--ink);
  background: rgba(7, 94, 232, 0.08);
  transform: translateY(-1px);
}

.header-action {
  background: var(--ink);
  color: var(--white);
}

.header-action:hover {
  background: var(--harbour);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  min-height: calc(84vh - 82px);
  padding: clamp(58px, 9vh, 102px) 0 42px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--harbour-deep);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  flex: 0 0 36px;
  width: 36px;
  height: 8px;
  background:
    radial-gradient(circle at 4px 4px, var(--greenstone) 0 4px, transparent 4.5px),
    radial-gradient(circle at 18px 4px, var(--kowhai) 0 4px, transparent 4.5px),
    radial-gradient(circle at 32px 4px, var(--pohutukawa) 0 4px, transparent 4.5px);
  content: "";
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1 {
  max-width: 11ch;
  margin-block-end: 24px;
  font-size: clamp(4.2rem, 8.4vw, 8.8rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero-lede {
  max-width: 640px;
  margin-block-end: 34px;
  color: #31404f;
  font-size: clamp(1.16rem, 1.7vw, 1.42rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 740;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--harbour);
  background: var(--harbour);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(7, 94, 232, 0.22);
}

.button.primary:hover {
  background: var(--harbour-deep);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--line-strong);
  background: var(--white);
}

.button-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.signal-panel {
  align-self: end;
  margin-bottom: 10vh;
  padding: 18px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.signal-header,
.route-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signal-header {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--greenstone);
  box-shadow: 0 0 0 6px rgba(27, 154, 120, 0.14);
}

.address-composer {
  display: grid;
  grid-template-columns: 0.7fr 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
}

.address-composer span {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: #213142;
  font-size: 0.9rem;
  font-weight: 720;
}

.address-composer span:nth-child(4) {
  grid-column: span 3;
  background: var(--ink);
  color: var(--white);
}

.route-readout {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.route-readout strong {
  color: var(--greenstone);
}

.studio-band,
.contact-band {
  border-block: 1px solid rgba(17, 24, 32, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(52px, 6vw, 86px) 0 clamp(70px, 10vw, 128px);
}

h2 {
  margin-block-end: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 720;
  letter-spacing: 0;
  line-height: 0.98;
}

.studio-copy {
  display: grid;
  gap: 20px;
  align-content: center;
  color: #344455;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.studio-copy p {
  margin: 0;
}

.project-section {
  padding: clamp(74px, 10vw, 132px) 0;
}

.project-intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.project-intro p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: #344455;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  min-height: 360px;
  padding: clamp(16px, 2.6vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  border-color: rgba(7, 94, 232, 0.36);
  box-shadow: 0 28px 86px rgba(16, 44, 78, 0.19);
  transform: translateY(-3px);
}

.project-visual {
  min-height: 304px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 94, 232, 0.18), transparent 40%),
    #0f1822;
  overflow: hidden;
}

.mini-map {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 304px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
}

.mini-map::before,
.mini-map::after {
  position: absolute;
  inset: 26% 12% 18% 14%;
  border: 2px solid rgba(25, 166, 200, 0.82);
  border-right: 0;
  border-bottom: 0;
  border-radius: 26px 0 0 0;
  content: "";
  transform: skewY(-14deg);
}

.mini-map::after {
  inset: 43% 20% 24% 28%;
  border-color: rgba(242, 200, 75, 0.9);
  transform: skewY(18deg);
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14);
}

.n1 {
  top: 23%;
  left: 18%;
}

.n2 {
  top: 28%;
  right: 20%;
  background: var(--aqua);
}

.n3 {
  top: 50%;
  left: 34%;
  background: var(--kowhai);
}

.n4 {
  right: 28%;
  bottom: 24%;
  background: var(--greenstone);
}

.n5 {
  right: 16%;
  bottom: 42%;
  background: var(--pohutukawa);
}

.project-detail {
  display: grid;
  align-content: center;
}

.project-kicker {
  width: max-content;
  margin-bottom: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(7, 94, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 94, 232, 0.07);
  color: var(--harbour-deep);
  font-size: 0.84rem;
  font-weight: 760;
}

.project-detail h3 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.8vw, 4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.project-detail p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.project-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  align-self: start;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: clamp(76px, 10vw, 132px);
}

.principle {
  padding: 24px;
  border: 1px solid rgba(17, 24, 32, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.principle-index {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--harbour);
  font-size: 0.84rem;
  font-weight: 800;
}

.principle h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.1;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(70px, 10vw, 124px) 0;
}

.contact-layout h2 {
  max-width: 760px;
}

.contact-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  font-weight: 760;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.contact-link:hover {
  background: var(--harbour);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-options-page {
  background: var(--paper);
}

.brand-options {
  padding: 72px 0;
}

.brand-options-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.brand-options-header h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.brand-options-header p:last-child {
  color: var(--muted);
  font-size: 1.14rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.logo-option {
  display: grid;
  gap: 48px;
  align-content: space-between;
  min-height: 340px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 32, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(16, 44, 78, 0.08);
}

.logo-option h2 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.12;
}

.logo-option p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 84px;
  }

  h1 {
    max-width: 10ch;
  }

  .signal-panel {
    align-self: auto;
    max-width: 460px;
    margin: 0;
  }

  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-arrow {
    position: absolute;
    top: 22px;
    right: 22px;
  }

  .principles,
  .logo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .site-header {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    min-height: 62px;
  }

  .brand img {
    width: 132px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 54px 0 20px;
  }

  .split-layout {
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(3.45rem, 17vw, 5.2rem);
  }

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

  .button {
    width: 100%;
  }

  .address-composer {
    grid-template-columns: 1fr 1fr;
  }

  .address-composer span:nth-child(4) {
    grid-column: span 2;
  }

  .project-visual,
  .mini-map {
    min-height: 240px;
  }

  .project-detail h3 {
    font-size: clamp(1.66rem, 10vw, 2.8rem);
  }

  .contact-link {
    width: 100%;
    white-space: normal;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
