@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('/fonts/Satoshi-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/SpaceGrotesk-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #FBFCFC; }
a { color: inherit; text-decoration: none; }
a:hover { color: #0D5964; }
input, textarea, button { font-family: inherit; }
::placeholder { color: #98A9AF; }
::selection { background: rgba(124, 197, 207, 0.35); }
a:focus-visible, button:focus-visible { outline: 2px solid #167F90; outline-offset: 3px; }
[hidden] { display: none !important; }

/* Cross-page transition between Home and Contact; must load at first paint on both pages. */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.42s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
::view-transition-old(hero-copy) { animation: 0.2s ease both dl-vt-out; }
::view-transition-new(hero-copy) { animation: 0.38s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both dl-vt-in; }
::view-transition-old(hero-card), ::view-transition-new(hero-card) {
  animation-duration: 0.42s;
  animation-timing-function: ease;
  height: 100%;
  object-fit: none;
}
@keyframes dl-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes dl-vt-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Page */
.page {
  display: flex;
  flex-direction: column;
  background: radial-gradient(90% 60% at 85% 0%, #E8F3F4 0%, #F4F9F9 40%, #FBFCFC 75%);
  color: #172D36;
  font-family: 'Satoshi', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.page-full { min-height: 100vh; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 40px; }

/* Header */
.site-head { view-transition-name: site-header; padding-block: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 3px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: #172D36; }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: #167F90; display: inline-block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 13px; font-weight: 500; color: #3E5862; }
.nav a[aria-current="page"] { color: #0D5964; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 80px); display: flex; flex-direction: column; }
.hero-home { flex: 1; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 72px; align-items: start; }
.hero-copy { view-transition-name: hero-copy; display: flex; flex-direction: column; }
.hero-copy-home { padding-top: clamp(0px, calc(100vw - 1040px), 72px); }
.hero-copy-contact { align-self: center; }
.kicker { font-size: 13px; font-weight: 500; color: #0D5964; }
h1 { font-size: clamp(60px, 8.6vw, 124px); font-weight: 500; letter-spacing: -0.058em; line-height: 0.92; margin-top: 28px; }
.hero-copy-contact h1 { margin-top: -0.06em; }
h1 span { color: #0D5964; }
.lede { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.6; color: #3E5862; margin-top: 36px; max-width: 36ch; text-wrap: pretty; }
.lede-home { min-height: 4.8em; hyphens: manual; }
.early {
  margin-top: 8px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #0D5964;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(13, 89, 100, 0.28);
  transition: border-color 0.2s;
}
.early:hover { border-bottom-color: #0D5964; color: #0A4A53; }

/* The right card: one box on both pages, which the page transition relies on. */
.hero-card { view-transition-name: hero-card; width: 100%; aspect-ratio: 5 / 6; max-height: 560px; border-radius: 20px; }

/* Isobel panel */
.panel {
  position: relative;
  overflow: hidden;
  background: #123039;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(10, 48, 58, 0.10), 0 22px 44px -22px rgba(10, 64, 76, 0.42);
}
.panel-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(65% 50% at 50% 44%, rgba(22, 127, 144, 0.32) 0%, rgba(18, 48, 57, 0) 72%),
    linear-gradient(180deg, #143640 0%, #0F2A32 100%);
}
.panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.panel-edge {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.panel-centre {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 32px;
  text-align: center;
  transform: translateY(-5%);
  pointer-events: none;
}
.panel-centre img { height: clamp(34px, 4vw, 46px); width: auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.35)); }
.panel-status { position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; justify-content: center; pointer-events: none; }
.panel-status span { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: #7FA9B0; }

/* Facts row */
.facts { view-transition-name: site-facts; margin-top: clamp(72px, 9vw, 104px); border-top: 1px solid #DCE8E9; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.facts > div { padding: 24px 24px 28px 0; display: flex; flex-direction: column; gap: 8px; }
.facts > div:last-child { padding-right: 0; }
.label { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: #647A83; }
.value { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.mail { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: #172D36; }
.mail:hover { color: #0D5964; }

/* Footer */
.site-foot { view-transition-name: site-footer; padding-block: 28px 36px; }
.foot-row { border-top: 1px solid #E7F0F1; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #647A83; }
.copy { font-size: 12px; }
.makers { display: flex; align-items: center; gap: 6px; }
.makers img { height: 12px; width: auto; margin-top: 1px; }

/* Contact: form card */
.card {
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #FFFFFF;
  border: 1px solid #E3ECED;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 1px 2px rgba(10, 48, 58, 0.08), 0 22px 44px -24px rgba(10, 64, 76, 0.30);
}
.form { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field-grow { flex: 1; min-height: 0; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.optional { font-size: 12px; color: #98A9AF; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #E3ECED;
  background: #FFFFFF;
  color: #3E5862;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.topic[aria-checked="false"]:hover { border-color: #B9D6DA; }
.topic[aria-checked="true"] { border-color: #0D5964; background: #0D5964; color: #FFFFFF; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.input {
  height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #E3ECED;
  background: #FFFFFF;
  font-size: 16px;
  color: #172D36;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { height: auto; flex: 1; min-height: 88px; padding: 14px 16px; line-height: 1.55; resize: none; }
.input[aria-invalid="true"] { border-color: #C15D68; }
.input:focus { border-color: #167F90; box-shadow: 0 0 0 3px rgba(22, 127, 144, 0.12); }
.err { font-size: 13px; color: #C15D68; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.note { font-size: 13px; line-height: 1.5; color: #647A83; max-width: 34ch; }
.send {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  background: #0D5964;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 48, 58, 0.12), 0 10px 20px -12px rgba(10, 64, 76, 0.55);
  transition: background 0.15s;
}
.send:hover { background: #0A4A53; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Contact: sent state */
.sent { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.sent-icon { width: 44px; height: 44px; border-radius: 50%; background: #E6F3F5; display: flex; align-items: center; justify-content: center; }
.sent-dot { width: 10px; height: 10px; border-radius: 50%; background: #167F90; box-shadow: 0 0 0 5px rgba(22, 127, 144, 0.15); }
.sent h2 { font-size: clamp(32px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.sent h2:focus { outline: none; }
.sent p { font-size: 17px; line-height: 1.6; color: #3E5862; max-width: 34ch; text-wrap: pretty; }
.again { margin-top: 8px; font-size: 12px; font-weight: 500; color: #0D5964; background: none; border: none; padding: 0; cursor: pointer; }

/* Phones: the form outgrows a 5:6 card, so it takes its natural height. */
@media (max-width: 560px) {
  .card { aspect-ratio: auto; max-height: none; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 24px; }
}
