/* Permetheon website. Strict black-and-white system (PRD section 8). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}

/* Metric-matched fallback so text does not jump when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

:root {
  --white: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #262626;
  --muted: #595959;
  --line: #e6e6e6;
  --line-strong: #c9c9c9;
  --surface: #f5f5f5;
  --dark: #0b0b0b;
  --dark-raised: #161616;
  --dark-line: #2c2c2c;
  --on-dark: #ffffff;
  --on-dark-muted: #b5b5b5;
  --focus: #0b0b0b;

  --font-display: "Outfit", "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --fs-display: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);

  --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
  --section: clamp(4rem, 2.8rem + 4.5vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

::selection {
  background: var(--ink);
  color: var(--white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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

.icon {
  width: 1.125em;
  height: 1.125em;
  flex: none;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-light:hover {
  background: #e9e9e9;
  border-color: #e9e9e9;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.1rem;
}

.text-link .icon {
  transition: transform 0.2s var(--ease);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 6px;
}

.brand img {
  width: 172px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.2rem + 2vw, 2rem);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 0.4rem + 1.6vw, 2rem);
  list-style: none;
}

.nav-list a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.1rem;
  height: 1.5px;
  background: var(--ink);
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 4rem;
  }

  .brand img {
    width: 132px;
  }

  .header-cta {
    display: none;
  }

  .nav-list a {
    font-size: 0.875rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-muted {
  background: var(--surface);
}

.section-dark {
  --focus: #ffffff;
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark + .section,
.section + .section-dark,
.section-muted + .section,
.section + .section-muted {
  border-top: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font: 600 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1.5px;
  background: currentColor;
}

.section-dark .eyebrow {
  color: var(--on-dark-muted);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-lead);
}

.section-dark .section-head p {
  color: var(--on-dark-muted);
}

.lead {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
  border-bottom: 1px solid var(--line);
  background-color: var(--white);
  background-image:
    linear-gradient(to right, #f1f1f1 1px, transparent 1px),
    linear-gradient(to bottom, #f1f1f1 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
}

.hero .lead {
  max-width: 36rem;
  margin-top: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  list-style: none;
}

.hero-tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* The inquiry flow panel: how this very site handles an inquiry. */
.flow-panel {
  --focus: #ffffff;
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45);
}

.flow-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dark-line);
}

.flow-panel-head h2 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.flow-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark-muted);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flow-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--white);
  animation: blink 2.4s ease-in-out infinite;
}

.flow {
  position: relative;
  display: grid;
  gap: 1.35rem;
  margin-top: 1.5rem;
  list-style: none;
}

.flow::before {
  content: "";
  position: absolute;
  left: 0.4375rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--dark-line);
}

.flow li {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding-left: 2.25rem;
}

.flow li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.875rem;
  height: 0.875rem;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  background: var(--dark);
  animation: step 8s var(--ease) infinite;
}

.flow li:nth-child(2)::before {
  animation-delay: 2s;
}

.flow li:nth-child(3)::before {
  animation-delay: 4s;
}

.flow li:nth-child(4)::before {
  animation-delay: 6s;
}

.flow-key {
  color: var(--on-dark-muted);
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
}

.flow-text {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.flow-note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--dark-line);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

@keyframes step {
  0%,
  20%,
  100% {
    background: var(--dark);
  }
  6%,
  14% {
    background: var(--white);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(3rem, 2rem + 3vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 52rem;
  font-size: var(--fs-h1);
}

.page-hero .lead {
  max-width: 44rem;
  margin-top: 1.5rem;
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}

@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

a.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgb(0 0 0 / 0.5);
}

.card-index {
  color: var(--muted);
  font: 500 0.8125rem/1 var(--font-mono);
}

.card h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
}

.card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

a.card:hover .card-more .icon {
  transform: translateX(3px);
}

.card-more .icon {
  transition: transform 0.2s var(--ease);
}

/* Ideas × Systems × Growth */
.pillars {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-line);
  list-style: none;
}

@media (min-width: 860px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pillars li {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--dark);
}

.pillar-word {
  font: 600 clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem)/1 var(--font-display);
  letter-spacing: 0.08em;
}

.pillars p {
  color: var(--on-dark-muted);
}

/* Numbered process steps */
.steps {
  display: grid;
  gap: 2rem;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.steps li {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--muted);
}

.steps h3 {
  font-size: var(--fs-h3);
}

.steps p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Two-column text block */
.split {
  display: grid;
  gap: 2rem 4rem;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.split h2 {
  font-size: var(--fs-h2);
}

.split-body {
  display: grid;
  gap: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-list .icon {
  margin-top: 0.2rem;
}

/* ---------- Services page ---------- */

.service-list {
  display: grid;
  list-style: none;
}

.service-item {
  display: grid;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.service-item:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .service-item {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr);
  }
}

.service-index {
  color: var(--muted);
  font: 500 0.875rem/1.6 var(--font-mono);
}

.service-item h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.service-scope {
  margin-top: 0.75rem;
  color: var(--ink);
  font-weight: 600;
}

.service-summary {
  margin-top: 0.75rem;
  color: var(--muted);
}

.service-item .btn {
  margin-top: 1.5rem;
}

.service-includes h3 {
  margin-bottom: 1rem;
  color: var(--muted);
  font: 600 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Call to action band ---------- */

.cta-band {
  --focus: #ffffff;
  padding-block: clamp(4rem, 3rem + 4vw, 6.5rem);
  background: var(--dark);
  color: var(--on-dark);
}

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.cta-band h2 {
  max-width: 40rem;
  font-size: var(--fs-h2);
}

.cta-band p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--on-dark-muted);
  font-size: var(--fs-lead);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-brand img {
  width: 220px;
}

.footer-brand p {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.footer-col h2 {
  margin-bottom: 1rem;
  font: 600 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-tagline {
  letter-spacing: 0.2em;
}

/* ---------- Contact page and form ---------- */

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
  }
}

.form-card {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
}

.form-intro {
  margin-bottom: 2rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 1.5rem 1.25rem;
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.field label,
.field .label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.hint {
  color: var(--muted);
  font-size: 0.8125rem;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
}

.textarea {
  min-height: 11rem;
  resize: vertical;
  line-height: 1.55;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #9a9a9a;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(11 11 11 / 0.12);
}

.is-invalid .input,
.is-invalid .select,
.is-invalid .textarea {
  border-color: var(--ink);
  border-width: 2px;
  background: #fafafa;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.field-error .icon {
  margin-top: 0.15rem;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.counter {
  flex: none;
  color: var(--muted);
  font: 500 0.8125rem/1.4 var(--font-mono);
}

.consent {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.is-invalid .consent {
  border-color: var(--ink);
  border-width: 2px;
}

.consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
}

.consent label {
  font-weight: 500;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.form-actions .btn {
  min-height: 3.5rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.form-status {
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.alert,
.error-summary {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 1rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.alert .icon,
.error-summary .icon {
  margin-top: 0.2rem;
}

.error-summary:focus {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.error-summary h2 {
  font: 600 1rem/1.4 var(--font-body);
  letter-spacing: 0;
}

.error-summary ul {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
}

.error-summary a {
  font-weight: 500;
}

.aside {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1000px) {
  .aside {
    position: sticky;
    top: 6.5rem;
  }
}

.aside-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h2 {
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.aside-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.aside-steps {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  counter-reset: aside;
}

.aside-steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  counter-increment: aside;
}

.aside-steps li::before {
  content: counter(aside);
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 600 0.8125rem/1 var(--font-mono);
}

.aside-steps strong {
  font-size: 0.9375rem;
}

.aside-steps span {
  color: var(--muted);
  font-size: 0.875rem;
}

.aside-dark {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--on-dark);
}

.aside-dark p {
  color: var(--on-dark-muted);
}

/* ---------- Long-form text (privacy policy) ---------- */

.prose {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  color: var(--ink);
  font-size: 1.5rem;
}

.prose p,
.prose ul {
  margin-bottom: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Error pages ---------- */

.error-page {
  padding-block: clamp(5rem, 4rem + 6vw, 9rem);
  text-align: center;
}

.error-code {
  color: var(--muted);
  font: 500 0.875rem/1 var(--font-mono);
  letter-spacing: 0.2em;
}

.error-page h1 {
  margin-top: 1.25rem;
  font-size: var(--fs-h1);
}

.error-page .lead {
  max-width: 34rem;
  margin: 1.25rem auto 0;
}

.error-page .hero-actions {
  justify-content: center;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band {
    display: none;
  }
}

main:focus {
  outline: none;
}

/* ---------- "Book a call" panel (Cal.com) ---------- */

.booking-launcher {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  bottom: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 600 0.9375rem/1 var(--font-body);
  text-decoration: none;
  box-shadow: 0 16px 32px -16px rgb(0 0 0 / 0.55);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.booking-launcher:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.booking-launcher:focus-visible {
  outline-color: var(--ink);
}

.booking-open .booking-launcher {
  visibility: hidden;
}

.booking-panel {
  position: fixed;
  inset: 0.75rem;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
}

.booking-panel[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .booking-panel {
    inset: auto 1.5rem 1.5rem auto;
    width: 30rem;
    height: min(46rem, calc(100dvh - 3rem));
  }
}

.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.booking-head h2 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.booking-head p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.booking-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.booking-close:hover {
  border-color: var(--ink);
}

.booking-frame {
  position: relative;
  flex: 1;
  background: var(--surface);
}

.booking-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.booking-foot {
  padding: 0.75rem 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.aside-book {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  /* Keep the footer's last line clear of the floating button. */
  .site-footer {
    padding-bottom: 5.5rem;
  }
}
