/* Korelvia Tech: light, minimal, deep teal as the single accent. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f6;
  --tint: #e5f0f0;
  --ink: #121517;
  --ink-soft: #50575c;
  --muted: #8a9195;
  --line: #e3e6e7;
  --teal: #0b6f7a;
  --teal-deep: #084b53;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --sans: "Manrope", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.label {
  display: inline-block;
  margin-bottom: 18px;
  font: 500 0.76rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); }

.btn-outline { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-outline:hover { border-color: var(--ink); }

.link-arrow {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.link-arrow:hover { color: var(--teal); }
.link-arrow::after { content: " \2192"; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-name small {
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--teal);
}

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--teal); }

.header-cta { padding: 11px 22px; }
.header-cta[aria-current="page"] { background: var(--teal-deep); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
  content: "";
}

.nav-toggle span { top: 18px; }
.nav-toggle span::before { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 8px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav .mobile-cta { display: block; margin-top: 16px; }
  .site-nav .mobile-cta a,
  .site-nav .mobile-cta a:hover { display: inline-flex; border: 0; padding: 14px 24px; border-radius: 999px; color: #fff; background: var(--teal); }
}

@media (min-width: 1021px) {
  .site-nav .mobile-cta { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 760px; margin-bottom: 56px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2,
.split h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-head p { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }

.section-foot { margin-top: 48px; }
.section-foot.center { text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.split-wide { grid-template-columns: 0.85fr 1.15fr; }

.split .body p { font-size: 1.1rem; color: var(--ink-soft); }

.sticky { position: sticky; top: 120px; }

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .split, .split-wide { grid-template-columns: 1fr; gap: 32px; }
  .sticky { position: static; }
}

/* ---------- Home hero ---------- */
.hero { padding: 88px 0 0; overflow: hidden; }

.hero-center {
  max-width: 940px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero h1 em { font-style: normal; color: var(--teal); }

.hero .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero .actions { justify-content: center; }

.hero { padding-bottom: 104px; }

/* Team photo below the headline */
.hero-photo {
  margin: 72px 0 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-alt);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1947 / 808;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.hero-photo.in img,
html:not(.js) .hero-photo img { transform: none; }

@media (max-width: 700px) {
  .hero { padding: 56px 0 72px; }
  .hero-photo { margin-top: 48px; border-radius: 18px; }
  /* Taller crop on phones, centred on the people at the table */
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 58% center; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding: 96px 0 80px; text-align: center; }

.page-hero .container { max-width: 920px; }

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.page-hero .lead { max-width: 660px; margin: 0 auto; font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.card:hover { background: var(--bg); border-color: var(--line); transform: translateY(-3px); }

.card-num {
  margin-bottom: 40px;
  font: 500 0.78rem var(--mono);
  color: var(--teal);
}

.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); margin: 0; }

.section-alt .card { background: var(--bg); }
.section-alt .card:hover { border-color: var(--line); }

.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .cards, .values { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .card-num { margin-bottom: 24px; }
}

/* ---------- Accordion (solutions) ---------- */
.accordion { display: grid; gap: 12px; }

.acc-item {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.section-alt .acc-item { background: var(--bg); }

.acc-item[open] { background: var(--bg); border-color: var(--line); }

.acc-item summary {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
}

.acc-item summary::-webkit-details-marker { display: none; }

.acc-num { font: 500 0.8rem var(--mono); color: var(--teal); }
.acc-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }

.acc-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 17px;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
}

.acc-icon::after { transform: rotate(90deg); }

.acc-item[open] .acc-icon { transform: rotate(45deg); background: var(--teal); border-color: var(--teal); }
.acc-item[open] .acc-icon::before,
.acc-item[open] .acc-icon::after { background: #fff; }

.acc-body { padding: 0 28px 26px 84px; }
.acc-body p { margin: 0; color: var(--ink-soft); max-width: 620px; }

/* Smooth open/close where supported */
.acc-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}

.acc-item[open]::details-content { block-size: auto; }

@media (max-width: 560px) {
  .acc-item summary { grid-template-columns: 32px 1fr 36px; padding: 20px; }
  .acc-title { font-size: 1.1rem; }
  .acc-body { padding: 0 20px 22px 64px; }
}

/* ---------- Technology tabs ---------- */
.tab-list {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 6px;
  background: var(--bg-alt);
  border-radius: 999px;
}

.section-alt .tab-list { background: var(--bg); }

.js .tab-list { display: flex; }

.tab-list button {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: 600 0.93rem var(--sans);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: var(--ink); color: #fff; }

.tab-panel + .tab-panel { margin-top: 40px; }
.js .tab-panel + .tab-panel { margin-top: 0; }

.tab-panel-title { margin-bottom: 20px; font-size: 1.2rem; text-align: center; }
.js .tab-panel-title { display: none; }

.tab-panel-desc { max-width: 560px; margin: 0 auto 28px; text-align: center; color: var(--ink-soft); }

.tab-panel.fade { animation: fadeUp 0.45s var(--ease); }

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.section-alt .logos li { background: var(--bg); }

.logos img { width: 48px; height: 48px; object-fit: contain; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 64px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font: 500 0.8rem var(--mono);
}

.steps li::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 56px;
  right: -20px;
  height: 1px;
  background: var(--line);
}

.steps li:last-child::after { display: none; }

.steps h3 { font-size: 1.25rem; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Logo panel ---------- */
/* Photo beside text, shown uncropped at its natural wide shape. */
.side-photo {
  margin: 0;
  align-self: center;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-alt);
}

.side-photo img { width: 100%; height: auto; }

/* ---------- Service detail list ---------- */
.service-list { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 1.3fr;
  gap: 24px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.service-row .num { font: 500 0.85rem/2.2 var(--mono); color: var(--teal); }
.service-row h2 { font-size: 1.6rem; letter-spacing: -0.02em; }
.service-row p { color: var(--ink-soft); }
.service-row p:last-child { margin: 0; }

.typical {
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.typical strong {
  display: block;
  margin-bottom: 4px;
  font: 500 0.72rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (max-width: 860px) {
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row > div:last-child { grid-column: 2; }
}

/* ---------- Careers: tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
}

.tag-dept { border-color: #bcd9db; background: var(--tint); color: var(--teal-deep); }

.page-hero .tags { justify-content: center; margin-top: 28px; }
.page-hero .tag { padding: 5px 14px; font-size: 0.85rem; }

/* ---------- Careers: role cards ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.role-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.role-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(18, 21, 23, 0.08); }

.role-photo {
  aspect-ratio: 16 / 9;
  background: var(--tint);
  overflow: hidden;
}

/* Until a role photo is added, show a soft panel with the logo mark. */
.role-photo:empty {
  background: var(--tint) url("../assets/logo-mark.png") center / 64px no-repeat;
  background-blend-mode: multiply;
}

.role-photo img { width: 100%; height: 100%; object-fit: cover; }

.role-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.role-body h3 { font-size: 1.2rem; margin-bottom: 12px; }
.role-body .tags { margin-bottom: 14px; }
.role-body p { flex: 1; margin: 0 0 22px; font-size: 0.95rem; color: var(--ink-soft); }

.role-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn-sm { justify-content: center; padding: 11px 16px; font-size: 0.88rem; border-radius: 10px; }

@media (max-width: 960px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .role-grid { grid-template-columns: 1fr; }
}

/* ---------- Careers: role details popup ---------- */
.role-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(18, 21, 23, 0.25);
}

.role-dialog::backdrop { background: rgba(18, 21, 23, 0.55); }
.role-dialog:focus-visible { outline: none; }
.role-dialog[open] { animation: fadeUp 0.35s var(--ease); }

body:has(.role-dialog[open]) { overflow: hidden; }

.dialog-inner { position: relative; padding: 44px 44px 36px; }

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.dialog-close:hover { border-color: var(--ink); }

.role-dialog h2 { margin: 0 48px 14px 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.role-dialog .tags { margin-bottom: 22px; }
.role-dialog p { color: var(--ink-soft); }
.role-dialog h3 { margin: 26px 0 10px; font-size: 1.05rem; }
.role-dialog ul:not(.tags) { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.role-dialog li { margin-bottom: 6px; }
.role-dialog li::marker { color: var(--teal); }

@media (max-width: 560px) {
  .dialog-inner { padding: 32px 22px 26px; }
}

/* ---------- Apply page ---------- */
.apply-hero {
  padding: 88px 0 0;
  background: var(--ink);
  color: #fff;
}

.apply-hero .label { color: #6fd0d8; }
.apply-hero .label::before { content: "\2014\2002"; }

.apply-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.apply-hero .lead { max-width: 620px; margin: 0; font-size: 1.1rem; color: #c3cbce; }

.apply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 48px 0 0;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dfe5e6;
}

.apply-meta li::before { content: "\25CF"; margin-right: 10px; color: #6fd0d8; font-size: 0.6rem; vertical-align: middle; }

.apply-wrap { max-width: 760px; margin: 0 auto; }

.notice {
  margin-bottom: 32px;
  padding: 18px 22px;
  border: 1px solid #bcd9db;
  border-radius: var(--radius-sm);
  background: var(--tint);
  font-size: 0.93rem;
  color: var(--teal-deep);
}

.notice p { margin: 0; }
.notice p + p { margin-top: 8px; }
.notice a { color: var(--teal-deep); font-weight: 600; }

.form.apply-form { padding: 0; background: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.position-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.position-box .field { margin-bottom: 0; }

.form-section {
  margin: 36px 0 0;
  padding: 32px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.form-section legend,
.form-section .legend {
  float: left;
  width: 100%;
  margin-bottom: 22px;
  padding: 0;
  font: 500 0.76rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-section legend + * { clear: both; }

.req { color: #b3261e; }

.hint { display: block; margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }

.field-check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}

.field-check label { margin: 0; font-weight: 500; }
.field-check .hint,
.field-check .field-error { grid-column: 2; }

.resume-note {
  padding: 16px 20px;
  border: 1px dashed #bcd9db;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.resume-note strong { display: block; margin-bottom: 4px; color: var(--ink); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .apply-hero { padding-top: 56px; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

/* ---------- Closing call to action ---------- */
.cta { padding: 0 0 120px; }

.cta-box {
  padding: 88px 32px;
  background: var(--tint);
  border-radius: 28px;
  text-align: center;
}

.cta-box h2 { max-width: 760px; margin: 0 auto 20px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-box p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; color: var(--ink-soft); }
.cta-box .actions { justify-content: center; margin-top: 32px; }

@media (max-width: 620px) {
  .cta { padding-bottom: 80px; }
  .cta-box { padding: 56px 22px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-grid h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.contact-grid .lead { font-size: 1.1rem; color: var(--ink-soft); }

.next-steps { margin-top: 48px; }
.next-steps h2 { margin-bottom: 16px; font-size: 1.15rem; letter-spacing: -0.01em; }

.next-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next;
  border-top: 1px solid var(--line);
}

.next-steps li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  counter-increment: next;
}

.next-steps li::before {
  content: counter(next, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font: 500 0.8rem/1.9 var(--mono);
  color: var(--teal);
}

.next-steps strong { color: var(--ink); }

.contact-link { margin-top: 16px !important; }

.contact-details {
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.contact-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt { font: 500 0.76rem/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 600; }

.form {
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.field .optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11, 111, 122, 0.15); }

.field [aria-invalid="true"] { border-color: #b3261e; }

.field-error { display: block; margin-top: 6px; font-size: 0.85rem; color: #b3261e; }
.field-error:empty { display: none; }

.form-status {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--teal-deep);
  font-weight: 600;
}

.form-status[hidden] { display: none; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Plain text page ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-tagline { margin: 22px 0 6px; font-size: 1.15rem; font-weight: 600; }
.footer-contact { margin: 0; color: var(--ink-soft); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 400 0.78rem var(--mono);
  color: var(--muted);
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-photo img { transform: none; }
}
