/* klinger-gabor.hu
   Shape rule: buttons are pills, cards 16px, inputs 10px. One accent (petrol); gold only for small details. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.3911b66d9f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.a30ddcd349.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f6f2;
  --white: #fdfcfa;
  --ink: #183447;
  --ink-2: #3e5566;
  --ink-3: #5b6f7c;
  --accent: #276b66;
  --accent-hover: #1e5551;
  --accent-tint: #e2ece9;
  --accent-tint-2: #d3e3df;
  --gold: #c99b61;
  --gold-tint: #f3ece1;
  --line: #e4e1d8;
  --line-strong: #d2cec2;
  --on-dark: #f7f6f2;
  --on-dark-2: #c6d3da;
  --danger: #a3372a;
  --danger-tint: #fbeeeb;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(24 52 71 / 0.06);
  --shadow: 0 1px 2px rgb(24 52 71 / 0.05), 0 14px 36px -18px rgb(24 52 71 / 0.28);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */

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

/* `hidden` must win over component display rules (grid, flex). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  text-wrap: balance;
}

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

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

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

strong {
  font-weight: 750;
}

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

.sr-only {
  position: absolute;
  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;
  z-index: 100;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-dark);
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 8px;
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

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

/* Missing data (placeholders from content.mjs): visible on purpose until filled in. */
mark.ph {
  padding: 0 0.3em;
  border-radius: 4px;
  outline: 1.5px dashed #b8892a;
  background: #fff1c2;
  color: #5a4300;
  font-weight: 700;
}

/* ---------- logo mark ---------- */

.mark__ring {
  stroke: var(--accent);
}

.mark__north {
  fill: var(--gold);
}

.mark__arms {
  fill: var(--ink);
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn--secondary {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--small {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 0.9375rem;
}

.btn--large {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

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

.btn__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.2s ease;
}

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

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link:hover {
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgb(247 246 242 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -16px rgb(24 52 71 / 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 38px;
  height: 38px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__role {
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgb(24 52 71 / 0.06);
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-cta {
  margin-left: 10px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1139px) {
  /* In the DOM the toggle comes first, so Tab goes from it straight into the opened menu;
     visually the call-to-action stays left of it. */
  .nav-cta {
    order: -1;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .nav-toggle .icon {
    width: 24px;
    height: 24px;
  }

  .nav-toggle__close,
  .is-open .nav-toggle__open {
    display: none;
  }

  .is-open .nav-toggle__close {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 32px -24px rgb(24 52 71 / 0.45);
  }

  .is-open .nav-menu {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    max-width: var(--container);
    margin-inline: auto;
  }

  .nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav-link:hover {
    background: none;
    color: var(--accent);
  }
}

@media (max-width: 639px) {
  .site-header__inner {
    gap: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand__role {
    display: none;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__name {
    font-size: 1.0625rem;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 40px;
    margin-left: 0;
    padding-inline: 15px;
    font-size: 0.875rem;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 359px) {
  .brand__mark {
    display: none;
  }
}

/* ---------- sections ---------- */

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

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark-2);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--on-dark);
}

.section--dark :focus-visible {
  outline-color: var(--gold);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2,
.split__aside h2,
.about__body h2,
.contact__intro h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.1vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.125rem;
}

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

/* Three classes: must beat ".section--dark .section-head p". */
.section .section-head .eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.5;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--accent-tint);
}

.cta-row__text {
  flex: 1 1 320px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
}

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

.hero {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
  overflow: clip;
}

.hero__grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  max-width: 17ch;
  font-size: clamp(2.25rem, 1.35rem + 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero__lead {
  margin-top: 22px;
  color: var(--accent);
  font-size: clamp(1.125rem, 0.98rem + 0.6vw, 1.375rem);
  font-weight: 700;
  line-height: 1.4;
}

.hero__text {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}

.hero__visual {
  justify-self: center;
  width: min(100%, 460px);
}

.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5.25;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--accent-tint-2) 100%);
}

.portrait__img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.trust {
  margin-top: clamp(40px, 6vw, 72px);
}

/* Caption over the three credentials, in the eyebrow style. */
.trust__lead {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust__list {
  display: grid;
  gap: 18px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.trust__item strong {
  display: block;
  color: var(--ink);
  font-size: 1.0625rem;
}

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

  .hero__visual {
    justify-self: end;
  }

  .trust__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .hero__visual {
    width: min(78%, 360px);
  }
}

@media (max-width: 479px) {
  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions .btn__icon {
    display: none;
  }
}

/* ---------- problems ---------- */

.problems {
  display: grid;
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The owner's sentence, drawn as a speech bubble. */
.problem__quote {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.problem__quote::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 30px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.problem__answer {
  padding-inline: 10px 4px;
  font-size: 1rem;
}

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

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

/* ---------- services ---------- */

.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
}

.split__aside .lead {
  margin-top: 20px;
}

.split__aside p + p {
  margin-top: 14px;
}

.split__aside .principle {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gold-tint);
  color: var(--ink);
  font-weight: 650;
}

.services {
  display: grid;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent);
}

.service__icon .icon {
  width: 28px;
  height: 28px;
}

.service__title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.012em;
}

.service__text {
  margin-top: 6px;
}

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

  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + 40px);
  }

  .services {
    padding-top: 6px;
  }
}

/* ---------- how I work (dark band) ---------- */

.benefits {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
}

.benefit__icon {
  color: var(--gold);
}

.benefit__icon .icon {
  width: 34px;
  height: 34px;
}

.benefit__title {
  margin-top: 16px;
  font-size: 1.1875rem;
  font-weight: 750;
}

.benefit p {
  margin-top: 8px;
}

.steps-block {
  margin-top: clamp(56px, 7vw, 96px);
}

.steps-title {
  margin-bottom: 32px;
  font-size: 1.375rem;
  font-weight: 750;
}

.steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.0625rem;
  font-weight: 800;
}

.step__title {
  margin-top: 18px;
  font-size: 1.125rem;
  font-weight: 750;
}

.step p {
  margin-top: 6px;
  font-size: 1rem;
}

.step::before {
  content: "";
  position: absolute;
  background: rgb(201 155 97 / 0.38);
}

.step:last-child::before {
  display: none;
}

@media (min-width: 900px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .step::before {
    top: 22px;
    right: -32px;
    left: 44px;
    height: 1.5px;
  }
}

@media (max-width: 899px) {
  .step {
    padding-left: 64px;
  }

  .step__num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step__title {
    margin-top: 9px;
  }

  .step::before {
    top: 44px;
    bottom: -28px;
    left: 21px;
    width: 1.5px;
  }
}

/* ---------- outcomes ---------- */

.outcomes {
  display: grid;
  gap: 36px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome {
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}

.outcome__icon {
  color: var(--accent);
}

.outcome__icon .icon {
  width: 36px;
  height: 36px;
}

.outcome__title {
  margin-top: 14px;
  font-size: 1.1875rem;
  font-weight: 750;
}

.outcome p {
  margin-top: 8px;
}

.note {
  max-width: 720px;
  margin-top: clamp(36px, 5vw, 48px);
  color: var(--ink-3);
  font-size: 1rem;
}

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

@media (min-width: 1024px) {
  .outcomes {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
}

.plan--highlight {
  border: 2px solid var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
}

.plan__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 16px;
}

.plan__amount {
  color: var(--ink);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.plan__unit {
  color: var(--ink-3);
  font-size: 0.9375rem;
  font-weight: 650;
}

.plan__hours {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.plan__hours strong {
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 800;
}

.plan__details {
  display: grid;
  gap: 16px;
  margin: 22px 0 28px;
}

.plan__details dt {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 700;
}

.plan__details dd {
  margin: 3px 0 0;
  color: var(--ink);
}

.plan__cta {
  margin-top: auto;
}

.plans-info {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.start-box,
.notes {
  padding: 28px clamp(22px, 3vw, 32px);
  border-radius: var(--radius);
}

.start-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--gold-tint);
}

.start-box__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent);
}

.start-box p {
  font-size: 1.125rem;
}

.notes {
  border: 1px solid var(--line);
}

.start-box h3,
.notes h3 {
  font-size: 1.1875rem;
  font-weight: 750;
}

.start-box p {
  margin-top: 10px;
  color: var(--ink);
}

.notes ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.notes li {
  display: flex;
  gap: 10px;
  font-size: 1rem;
}

.notes__icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--accent);
}

@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .plans-info {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ---------- about ---------- */

.about {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
}

.about__body p {
  margin-top: 18px;
}

.about__body h2 + p {
  margin-top: 26px;
}

.about__card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--gold-tint);
}

.about__mark {
  width: 44px;
  height: 44px;
}

.about__motto {
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgb(201 155 97 / 0.45);
}

.about__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.about__name {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

/* ink-2, not ink-3: on the sand card ink-3 falls just under 4.5:1. */
.about__role {
  display: block;
  color: var(--ink-2);
  font-size: 0.875rem;
}

@media (min-width: 960px) {
  .about {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
  }

  .about__aside {
    order: 2;
  }
}

/* ---------- testimonials ---------- */

.quotes {
  display: grid;
  gap: 20px;
}

.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(26px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.quote__text {
  margin: 0;
}

.quote__text p {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
}

.quote__by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quote__name {
  color: var(--ink);
  font-weight: 800;
}

.quote__role {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.quote__more {
  margin-top: 16px;
}

.quote__more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.quote__more summary::-webkit-details-marker {
  display: none;
}

.quote__more summary:hover {
  text-decoration: underline;
}

.quote__caret {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.quote__more[open] .quote__caret {
  transform: rotate(180deg);
}

.quote__full {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* The lead quote supports the "outside view, inside knowledge" promise. */
.quote--lead {
  border-color: transparent;
  background: var(--accent);
  color: rgb(253 252 250 / 0.88);
}

.quote--lead .quote__text p {
  color: var(--white);
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.015em;
}

.quote--lead .quote__by {
  margin-top: auto;
  border-top-color: rgb(255 255 255 / 0.25);
}

.quote--lead .quote__text {
  margin-bottom: 28px;
}

.quote__mark {
  width: 52px;
  height: 52px;
  margin: -6px 0 22px -4px;
  color: var(--gold);
}

.quote--lead .quote__name {
  color: var(--white);
}

.quote--lead .quote__role {
  color: rgb(253 252 250 / 0.82);
}

.quote--lead .quote__more summary {
  color: var(--white);
}

.quote--lead :focus-visible {
  outline-color: var(--white);
}

.quote--small .quote__text p {
  font-size: 1.0625rem;
}

.quotes-more-title {
  margin: clamp(48px, 6vw, 64px) 0 20px;
  font-size: 1.25rem;
  font-weight: 750;
}

@media (min-width: 960px) {
  .quotes {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
  }

  .quote--lead {
    grid-row: span 2;
  }

  .quotes--more {
    grid-template-columns: 1fr 1fr;
  }

  /* An odd last quote takes the full row instead of leaving a gap. */
  .quotes--more > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line-strong);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq__q:hover h3 {
  color: var(--accent);
}

.faq__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 48px 24px 4px;
}

.faq__more {
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq__item,
    .quote__more {
      interpolate-size: allow-keywords;
    }

    .faq__item::details-content,
    .quote__more::details-content {
      overflow: hidden;
      block-size: 0;
      transition:
        block-size 0.3s ease,
        content-visibility 0.3s allow-discrete;
    }

    .faq__item[open]::details-content,
    .quote__more[open]::details-content {
      block-size: auto;
    }
  }
}

/* ---------- contact ---------- */

.section--contact {
  background: var(--accent-tint);
}

.contact {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}

.contact__intro > p {
  margin-top: 18px;
  font-size: 1.125rem;
}

.contact__direct {
  margin-top: 36px;
}

.contact__direct-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 750;
}

.contact__direct ul,
.simple__contacts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-link .icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
}

.contact-link:hover {
  color: var(--ink);
}

.contact-link:hover span {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.contact__panel {
  padding: clamp(22px, 4vw, 40px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

/* ---------- form ---------- */

.contact-form {
  position: relative;
}

.contact-form__fields {
  display: grid;
  gap: 20px;
}

.field-row {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field label {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.field__optional {
  color: var(--ink-3);
  font-weight: 500;
}

.field__hint {
  margin-top: -2px;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.45;
}

.field input:not([type="checkbox"]),
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  line-height: 1.5;
  resize: vertical;
}

.field input:not([type="checkbox"]):hover,
.field textarea:hover,
.field select:hover {
  border-color: #b9b4a6;
}

.field input:not([type="checkbox"]):focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(39 107 102 / 0.22);
}

.field [aria-invalid="true"] {
  border-color: var(--danger) !important;
}

.field__error {
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 650;
}

.select {
  position: relative;
}

.select select {
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

.select__caret {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
  transform: translateY(-50%);
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}

.field--check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.field--check label {
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
}

.field--check .field__error {
  grid-column: 1 / -1;
}

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

.form-summary {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 650;
}

.form-result {
  outline: none;
}

.form-result h3 {
  font-size: 1.375rem;
  font-weight: 800;
}

.form-result p {
  margin-top: 10px;
}

.form-result--success {
  padding: 12px 0;
}

.form-result__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}

.form-result__icon .icon {
  width: 30px;
  height: 30px;
}

.form-result--failure {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--danger-tint);
}

.form-result--failure h3 {
  color: var(--danger);
  font-size: 1.125rem;
}

.form-result .form-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 64px;
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 36px;
}

.brand--light,
.brand--light:hover {
  color: var(--on-dark);
}

.brand--light .brand__role {
  color: var(--on-dark-2);
}

.brand--light .mark__arms {
  fill: var(--on-dark);
}

.brand--light .mark__ring {
  stroke: #7fb3ac;
}

.site-footer__blurb {
  max-width: 36ch;
  margin-top: 16px;
}

.site-footer__title {
  margin-bottom: 12px;
  color: var(--on-dark);
  font-weight: 750;
}

.site-footer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:not(.brand) {
  color: var(--on-dark-2);
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.site-footer :focus-visible {
  outline-color: var(--gold);
}

.site-footer__bottom {
  margin-top: 48px;
  padding-block: 20px 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

/* ---------- legal & simple pages ---------- */

.legal h1,
.simple h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.legal .lead,
.simple .lead {
  margin-top: 20px;
}

.legal__updated {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.legal__section {
  margin-top: 48px;
}

.legal__section h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.legal__section p,
.legal__section ul {
  margin-top: 14px;
}

.legal__section ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.legal__facts {
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.legal__facts div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.legal__facts dt {
  color: var(--ink);
  font-weight: 700;
}

.legal__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.simple {
  min-height: 55vh;
}

.simple__contacts {
  margin-top: 24px;
}

.simple .lead + p,
.simple__contacts + p {
  margin-top: 32px;
}

@media (max-width: 479px) {
  .legal__facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
