/* ==========================================================================
   Praxis Steinlechner — Physiotherapie & Osteopathie
   Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
  --bg: #f4efe7;
  --bg-soft: #ece4d8;
  --paper: #fbf8f2;
  --ink: #1f382d;
  --ink-deep: #14271f;
  --ink-soft: #58645d;
  --sage: #c9d1c2;
  --sage-deep: #9fae9b;
  --terracotta: #b25f42;
  --terracotta-button: #a85236;
  --terracotta-deep: #9c4a2f;
  --sand: #e9d8c6;
  --line: rgba(31, 56, 45, 0.15);
  --line-strong: rgba(31, 56, 45, 0.25);
  --line-light: rgba(251, 248, 242, 0.18);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max-width: 1280px;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --shadow-soft: 0 30px 80px -30px rgba(20, 39, 31, 0.28);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23noise)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--terracotta);
  color: var(--paper);
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.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: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--terracotta);
}

.eyebrow--light {
  color: rgba(251, 248, 242, 0.62);
}

.eyebrow--light::before {
  background: var(--sage);
}

.eyebrow-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.display {
  margin-top: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.display em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.035em;
}

.display--light {
  color: var(--paper);
}

.display--light em {
  color: var(--sand);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.75;
}

.section {
  padding-block: clamp(86px, 10.5vw, 148px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.58fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head .display {
  max-width: 14ch;
}

.section-intro {
  max-width: 40ch;
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.4;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease-out);
}

.text-link:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-deep);
}

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

.text-link--light {
  border-color: var(--line-light);
  color: var(--paper);
}

.text-link--light:hover {
  border-color: var(--sand);
  color: var(--sand);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  min-height: 52px;
  padding: 12px 14px 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  transition: transform 0.35s var(--ease-out), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(251, 248, 242, 0.13);
  transition: transform 0.35s var(--ease-out), background 0.3s ease;
}

.btn-arrow svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--terracotta);
}

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

.btn--accent {
  background: var(--terracotta-button);
  color: var(--paper);
}

.btn--accent:hover {
  background: var(--terracotta-deep);
}

.btn--header {
  min-height: 46px;
  padding: 8px 9px 8px 18px;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
}

.btn--header .btn-arrow {
  width: 26px;
  height: 26px;
  background: rgba(31, 56, 45, 0.08);
}

.btn--header:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--header:hover .btn-arrow {
  background: rgba(251, 248, 242, 0.14);
}

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

.btn--light .btn-arrow {
  background: rgba(31, 56, 45, 0.1);
}

.btn--light:hover {
  background: var(--sand);
}

.btn--submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 26px;
  padding-left: 24px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(31, 56, 45, 0.09);
  background: rgba(244, 239, 231, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 94px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--ink);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-sub {
  color: var(--ink-soft);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand--light {
  color: var(--paper);
}

.brand--light .brand-mark {
  color: var(--paper);
}

.brand--light .brand-sub {
  color: rgba(251, 248, 242, 0.55);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding-block: 6px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  transition: color 0.25s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

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

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.menu-toggle:hover {
  border-color: var(--ink);
  background: rgba(31, 56, 45, 0.05);
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 30px;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid var(--line-light);
}

.menu-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  transition: background 0.25s ease, transform 0.35s var(--ease-out);
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

.menu-close:hover {
  background: rgba(251, 248, 242, 0.1);
  transform: rotate(90deg);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  margin-top: clamp(36px, 8vh, 82px);
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.1;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}

.menu-nav a:hover {
  padding-left: 8px;
  color: var(--sand);
}

.menu-num {
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.menu-foot {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 42px;
  color: rgba(251, 248, 242, 0.66);
  font-size: 0.8rem;
}

.menu-foot a:hover {
  color: var(--paper);
}

.menu-foot p {
  margin-top: 6px;
  color: rgba(251, 248, 242, 0.58);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-top: clamp(132px, 16.5vh, 184px);
  padding-bottom: clamp(64px, 9vh, 106px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  top: -16%;
  right: -8%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(201, 209, 194, 0.9), rgba(201, 209, 194, 0) 68%);
  filter: blur(26px);
  opacity: 0.8;
}

.hero-dots {
  position: absolute;
  bottom: 9%;
  left: 45%;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(rgba(31, 56, 45, 0.32) 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: 0.4;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.78fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-eyebrow {
  animation: fade-up 0.8s 0.08s both;
}

.hero-title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 7.1vw, 6.9rem);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

.hero-title .line > span {
  display: block;
  transform: translateY(118%);
  animation: hero-line 1.05s var(--ease-out) var(--line-delay) forwards;
}

.hero-title em {
  color: var(--terracotta);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 41rem;
  margin-top: 30px;
  color: var(--ink-soft);
  font-size: clamp(0.99rem, 1.15vw, 1.08rem);
  line-height: 1.78;
  animation: fade-up 0.9s 0.45s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 36px;
  animation: fade-up 0.9s 0.58s both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 46px;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
  animation: fade-up 0.9s 0.7s both;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 470px;
  animation: hero-visual 1.2s 0.24s var(--ease-out) both;
}

.hero-orbit {
  position: absolute;
  top: 47%;
  left: 48%;
  z-index: -1;
  width: 122%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 6%;
  right: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 5px rgba(178, 95, 66, 0.12);
}

.hero-figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5.05;
  overflow: hidden;
  border-radius: 999px 999px 20px 20px;
  background: var(--sage);
  box-shadow: var(--shadow-soft);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(251, 248, 242, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.9) contrast(0.99);
}

.hero-card {
  position: absolute;
  bottom: 26px;
  left: -34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 248px;
  padding: 12px 13px;
  border: 1px solid rgba(31, 56, 45, 0.1);
  border-radius: 15px;
  background: rgba(251, 248, 242, 0.93);
  box-shadow: 0 20px 55px -18px rgba(20, 39, 31, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
}

.hero-card-icon svg {
  width: 19px;
  height: 19px;
}

.hero-card-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hero-card-label {
  color: var(--ink-soft);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-card-copy strong {
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero-card-link {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.25s ease, transform 0.3s var(--ease-out);
}

.hero-card-link svg {
  width: 15px;
  height: 15px;
}

.hero-card-link:hover {
  background: var(--terracotta);
  transform: translateX(2px);
}

.seal {
  position: absolute;
  top: 24px;
  right: -28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: 0 16px 40px -12px rgba(156, 74, 47, 0.55);
}

.seal-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: seal-spin 34s linear infinite;
}

.seal-ring text {
  fill: rgba(251, 248, 242, 0.9);
  font-family: var(--font-body);
  font-size: 8.7px;
  font-weight: 600;
  letter-spacing: 2.05px;
}

.seal-center {
  width: 27px;
  height: 27px;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 242, 0.28);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-inline: 28px;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.trust-value {
  min-width: 2.2ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.trust-item:nth-child(3) .trust-value {
  color: var(--terracotta);
  font-size: 0.7rem;
}

.trust-value--small {
  font-size: 1.55rem;
}

.trust-label {
  color: var(--ink-soft);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.approach {
  position: relative;
}

.approach-top {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.64fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  margin-bottom: clamp(50px, 7vw, 86px);
}

.approach-top .display {
  max-width: 14ch;
}

.approach-intro {
  padding-bottom: 4px;
}

.approach-intro p + p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.8;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.principle {
  min-height: 226px;
  padding: 28px 34px 0 0;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  padding-right: 0;
  border-right: 0;
}

.principle:not(:first-child) {
  padding-left: 34px;
}

.principle-num {
  color: var(--terracotta-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.principle h3 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.principle p {
  max-width: 32ch;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.78;
}

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

.services {
  background: var(--bg-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: clamp(28px, 3.4vw, 42px);
  background: var(--bg-soft);
  transition: background 0.45s ease, color 0.45s ease;
}

.service-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--terracotta-deep);
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-out), background 0.4s ease;
}

.service-icon svg {
  width: 31px;
  height: 31px;
}

.service-index {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  transition: color 0.35s ease;
}

.service-card h3 {
  margin-top: 31px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.1vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.service-card p {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.78;
  transition: color 0.35s ease;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 0.35s ease, color 0.35s ease;
}

.service-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.014em;
  text-transform: none;
  transition: color 0.35s ease;
}

.service-meta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover,
.service-card:focus-within {
  background: var(--ink);
  color: var(--paper);
}

.service-card:hover .service-icon,
.service-card:focus-within .service-icon {
  border-color: var(--line-light);
  background: rgba(251, 248, 242, 0.06);
  color: var(--sand);
  transform: rotate(-5deg);
}

.service-card:hover .service-index,
.service-card:focus-within .service-index {
  color: rgba(251, 248, 242, 0.48);
}

.service-card:hover p,
.service-card:focus-within p {
  color: rgba(251, 248, 242, 0.68);
}

.service-card:hover .service-meta,
.service-card:focus-within .service-meta {
  border-color: var(--line-light);
  color: rgba(251, 248, 242, 0.5);
}

.service-card:hover .service-meta a,
.service-card:focus-within .service-meta a {
  color: var(--paper);
}

.service-card:hover .service-meta svg,
.service-meta a:hover svg {
  transform: translateX(3px);
}

.service-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 34px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.7;
  text-align: center;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.about-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.about-figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--sage);
  box-shadow: 0 30px 70px -40px rgba(20, 39, 31, 0.4);
}

.about-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(251, 248, 242, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: saturate(0.88) contrast(0.98);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 25px -24px -24px 25px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}

.about-badge {
  position: absolute;
  right: -18px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  border: 6px solid var(--bg);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(20, 39, 31, 0.55);
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.about-badge span {
  margin-top: 4px;
  color: rgba(251, 248, 242, 0.6);
  font-size: 0.49rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  padding-left: 7px;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-caption::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--terracotta);
}

.about-copy {
  min-width: 0;
}

.about-copy .display {
  max-width: 13ch;
}

.about-copy .lead {
  max-width: 48ch;
  margin-top: 27px;
}

.about-copy > p:not(.eyebrow):not(.lead) {
  max-width: 54ch;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.about-quote {
  max-width: 23ch;
  margin-top: 30px;
  padding-left: 22px;
  border-left: 1px solid var(--terracotta);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 20px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.credentials li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.55;
}

.credentials li::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  border: 1px solid rgba(178, 95, 66, 0.55);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.8 6.2 5 8.4l4.2-4.8' stroke='%239c4a2f' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

.signature-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 17px;
  margin-top: 31px;
}

.signature {
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  transform: rotate(-2.5deg);
}

.signature-role {
  color: var(--ink-soft);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Practice
   -------------------------------------------------------------------------- */

.practice {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.practice::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 209, 194, 0.11), transparent 68%);
  pointer-events: none;
}

.practice-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 700px;
}

.practice-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 0 32px 32px 0;
}

.practice-media picture,
.practice-media img {
  width: 100%;
  height: 100%;
}

.practice-media img {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.82) contrast(0.98);
}

.practice-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 39, 31, 0.04) 35%, rgba(20, 39, 31, 0.5));
  pointer-events: none;
}

.practice-tag {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(251, 248, 242, 0.92);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.practice-content {
  align-self: center;
  width: 100%;
  max-width: 760px;
  padding: clamp(62px, 7vw, 108px) clamp(30px, 6vw, 100px);
}

.practice-content .display {
  max-width: 12ch;
}

.practice-lead {
  max-width: 48ch;
  margin-top: 26px;
  color: rgba(251, 248, 242, 0.68);
  font-size: 0.96rem;
  line-height: 1.8;
}

.practice-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
  padding-block: 23px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.detail-label {
  display: block;
  color: var(--sage);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.practice-details p {
  margin-top: 8px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.practice-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 22px;
}

.practice-amenities li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 248, 242, 0.56);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice-amenities li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 25px;
  margin-top: 38px;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.testimonials .eyebrow {
  color: #4f5b54;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -8%;
  width: 42vw;
  aspect-ratio: 1;
  border: 1px solid rgba(31, 56, 45, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.testimonial-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: start;
}

.testimonial-head .display {
  max-width: 11ch;
}

.testimonial-head .display em {
  color: var(--terracotta-deep);
}

.testimonial-intro {
  max-width: 31ch;
  margin-top: 23px;
  color: #4f5b54;
  font-size: 0.88rem;
  line-height: 1.8;
}

.quote-slider {
  position: relative;
  min-width: 0;
  padding-top: 18px;
}

.quote-mark {
  position: absolute;
  top: -34px;
  left: -12px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: clamp(8rem, 13vw, 12rem);
  font-weight: 300;
  line-height: 0.7;
  opacity: 0.45;
  pointer-events: none;
}

.quote-stage {
  position: relative;
  min-height: 280px;
}

.quote-slide {
  padding-top: 48px;
  animation: quote-in 0.5s var(--ease-soft) both;
}

.quote-slide[hidden] {
  display: none;
}

.quote-slide blockquote {
  max-width: 23ch;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.62rem, 2.55vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.37;
  text-wrap: pretty;
}

.quote-slide figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-top: 27px;
  color: #4f5b54;
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.quote-author {
  color: var(--ink);
  font-weight: 600;
}

.quote-role {
  display: flex;
  align-items: center;
  gap: 13px;
}

.quote-role::before {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(31, 56, 45, 0.3);
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.quote-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(31, 56, 45, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.quote-btn svg {
  width: 19px;
  height: 19px;
}

.quote-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}

.quote-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 54px;
  color: #4f5b54;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  line-height: 1;
}

.quote-counter [data-quote-current] {
  color: var(--ink);
  font-weight: 600;
}

.quote-counter-sep {
  color: rgba(31, 56, 45, 0.3);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 8vw, 108px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 130px;
}

.faq-intro .display {
  max-width: 11ch;
}

.faq-intro > p:not(.eyebrow) {
  max-width: 32ch;
  margin-top: 23px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-intro .text-link {
  margin-top: 26px;
}

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

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

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.5vw, 1.28rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  text-align: left;
}

.faq-icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon {
  border-color: var(--ink);
  background: var(--ink);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--paper);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s var(--ease-soft);
}

.faq-panel > div {
  overflow: hidden;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel p {
  max-width: 60ch;
  padding: 0 44px 26px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.contact-copy .display {
  max-width: 12ch;
}

.contact-copy .lead {
  max-width: 41ch;
  margin-top: 24px;
}

.contact-list {
  margin-top: 39px;
  border-top: 1px solid var(--line);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-text {
  min-width: 0;
}

.contact-item-text small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.contact-item-text strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--ink-soft);
  transition: color 0.25s ease, transform 0.3s var(--ease-out);
}

.contact-item:hover .contact-icon {
  background: var(--ink);
  color: var(--paper);
}

.contact-item:hover .contact-arrow {
  color: var(--terracotta-deep);
  transform: translate(2px, -2px);
}

.contact-hours .detail-label {
  color: var(--terracotta-deep);
}

.contact-hours {
  margin-top: 30px;
  padding: 21px 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.contact-hours p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 7px;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.6;
}

.contact-hours p span {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.contact-hours-note {
  margin-top: 9px;
  padding-top: 12px !important;
  border-top: 1px solid var(--line);
  color: var(--ink-soft) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.04em;
}

.contact-form {
  position: relative;
  padding: clamp(27px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--bg);
  box-shadow: 0 35px 80px -46px rgba(20, 39, 31, 0.35);
}

.form-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.1vw, 1.95rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.form-head p {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.65;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 21px;
}

.field > span {
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.field > span small {
  color: #4f5b54;
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(88, 100, 93, 0.7);
  opacity: 1;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field select {
  padding-right: 22px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2358645d' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 14px 14px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta);
  box-shadow: 0 1px 0 var(--terracotta);
}

.field:focus-within > span {
  color: var(--terracotta-deep);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

main [tabindex="-1"]:focus {
  outline: none;
}

.btn--accent:focus-visible {
  outline-color: var(--ink);
}

.practice :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible {
  outline-color: var(--sand);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 0.71rem;
  line-height: 1.65;
}

.checkbox input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkbox a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 56, 45, 0.35);
  text-underline-offset: 2px;
}

.checkbox a:hover {
  color: var(--terracotta-deep);
}

.form-note {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.7;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 56, 45, 0.18);
  border-radius: 10px;
  background: rgba(201, 209, 194, 0.35);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.6;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 112px);
  background: var(--ink-deep);
  color: var(--paper);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--line-light);
}

.footer-top .display {
  max-width: 14ch;
}

.footer-top .btn {
  margin-bottom: 7px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.95fr 0.8fr;
  gap: clamp(26px, 4vw, 54px);
  padding-block: clamp(42px, 5.5vw, 60px);
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  min-width: 0;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 21px;
  color: rgba(251, 248, 242, 0.58);
  font-size: 0.82rem;
  line-height: 1.75;
}

.footer-col {
  min-width: 0;
}

.footer-col h3 {
  margin-bottom: 17px;
  color: rgba(251, 248, 242, 0.55);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin-bottom: 9px;
  color: rgba(251, 248, 242, 0.72);
  font-size: 0.79rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-col a {
  width: fit-content;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sand);
}

.footer-note {
  color: rgba(251, 248, 242, 0.55) !important;
  font-size: 0.68rem !important;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  padding-block: 23px;
  color: rgba(251, 248, 242, 0.58);
  font-size: 0.62rem;
  line-height: 1.6;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  color: rgba(251, 248, 242, 0.6);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--paper);
}

.footer-credit {
  max-width: 500px;
  color: rgba(251, 248, 242, 0.58);
  text-align: right;
}

.footer-credit a {
  color: rgba(251, 248, 242, 0.56);
  text-decoration: underline;
  text-decoration-color: rgba(251, 248, 242, 0.18);
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: var(--paper);
}

.footer-wordmark::before {
  content: "praxis steinlechner";
  display: block;
}

.footer-wordmark {
  padding: 18px var(--gutter) 0;
  pointer-events: none;
  color: rgba(251, 248, 242, 0.055);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 17vw, 15rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.67;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes hero-line {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-visual {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes quote-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}

.has-js [data-reveal][data-delay="1"] {
  transition-delay: 0.11s;
}

.has-js [data-reveal][data-delay="2"] {
  transition-delay: 0.22s;
}

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

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-page {
  background: var(--bg);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

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

.legal-main {
  width: min(100% - (var(--gutter) * 2), 800px);
  margin-inline: auto;
  padding-block: clamp(64px, 10vw, 120px);
}

.legal-kicker {
  color: var(--terracotta-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-main h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1;
}

.legal-note {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(178, 95, 66, 0.35);
  border-radius: 10px;
  background: rgba(178, 95, 66, 0.07);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.7;
}

.legal-prose {
  margin-top: 42px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.8;
}

.legal-prose h2 {
  margin: 38px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.legal-prose p {
  margin-bottom: 12px;
}

.legal-prose ul {
  margin: 4px 0 16px 18px;
  list-style: disc;
}

.legal-prose li {
  margin-bottom: 5px;
}

.legal-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(31, 56, 45, 0.34);
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: var(--terracotta-deep);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.legal-footer nav {
  display: flex;
  gap: 18px;
}

.legal-footer a:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 22px;
  }

  .hero-grid {
    gap: 54px;
  }

  .hero-card {
    left: -18px;
  }

  .seal {
    right: -12px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.65fr 0.95fr 0.8fr;
    gap: 28px;
  }
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-inner {
    height: 84px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 42px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 7.4vw, 5.6rem);
  }

  .hero-visual {
    max-width: 410px;
  }

  .hero-meta {
    gap: 8px 18px;
    margin-top: 36px;
  }

  .trust-item {
    padding-inline: 20px;
  }

  .trust-label {
    font-size: 0.58rem;
  }

  .about-grid {
    gap: 54px;
  }

  .practice-content {
    padding-inline: clamp(28px, 4vw, 66px);
  }

  .testimonial-grid,
  .faq-grid,
  .contact-grid {
    gap: 50px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr 0.9fr;
    gap: 24px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 92px;
  }

  .header-inner {
    height: 78px;
  }

  .hero {
    padding-top: 124px;
    padding-bottom: 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

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

  .hero-title {
    font-size: clamp(3.6rem, 11.8vw, 6rem);
    max-width: 9ch;
  }

  .hero-lead {
    max-width: 46ch;
  }

  .hero-dots {
    display: none;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 470px);
    max-width: 470px;
    margin-top: 2px;
  }

  .hero-card {
    left: 18px;
  }

  .seal {
    top: 18px;
    right: 8px;
  }

  .trust-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 8px;
  }

  .trust-item {
    padding: 17px 18px;
    border-left: 0;
  }

  .trust-item:first-child {
    padding-left: 18px;
  }

  .trust-item:nth-child(odd) {
    padding-left: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .approach-top {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .approach-top .display {
    max-width: 15ch;
  }

  .approach-intro {
    max-width: 54ch;
  }

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

  .principle,
  .principle:not(:first-child) {
    min-height: 0;
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .principle h3 {
    margin-top: 16px;
  }

  .principle p {
    max-width: 54ch;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .section-intro {
    max-width: 48ch;
    padding-bottom: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .about-visual {
    width: min(100%, 460px);
    max-width: 460px;
  }

  .about-copy {
    max-width: 620px;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .practice-media {
    height: clamp(300px, 54vw, 480px);
    min-height: 0;
    border-radius: 0 0 28px 28px;
  }

  .practice-content {
    max-width: 720px;
    padding: 56px 0 66px;
  }

  .practice-grid .practice-content {
    padding-inline: var(--gutter);
  }

  .practice-content .display {
    max-width: 15ch;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonial-head .display,
  .testimonial-intro {
    max-width: 18ch;
  }

  .testimonial-intro {
    max-width: 38ch;
  }

  .quote-stage {
    min-height: 245px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro .display {
    max-width: 15ch;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-copy {
    max-width: 620px;
  }

  .contact-form {
    max-width: 680px;
  }

  .footer-top {
    display: block;
    padding-bottom: 44px;
  }

  .footer-top .display {
    max-width: 13ch;
  }

  .footer-top .btn {
    margin-top: 28px;
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 38px 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-credit {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .section {
    padding-block: 76px;
  }

  .display {
    font-size: clamp(2.35rem, 8.7vw, 3.4rem);
  }

  .hero {
    padding-top: 114px;
  }

  .hero-title {
    font-size: clamp(3.1rem, 12.8vw, 4.9rem);
  }

  .hero-lead {
    margin-top: 25px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .hero-meta {
    margin-top: 32px;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .hero-card {
    width: 232px;
    padding: 11px;
  }

  .seal {
    width: 90px;
    height: 90px;
  }

  .seal-ring text {
    font-size: 8.8px;
    letter-spacing: 2.1px;
  }

  .seal-center {
    width: 23px;
    height: 23px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .service-card {
    min-height: 0;
    padding: 28px 24px;
  }

  .service-card h3 {
    margin-top: 25px;
  }

  .service-icon {
    width: 52px;
    height: 52px;
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .credentials {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .about-quote {
    font-size: 1.35rem;
  }

  .about-badge {
    right: -8px;
    width: 108px;
    height: 108px;
    border-width: 5px;
  }

  .about-badge strong {
    font-size: 1.65rem;
  }

  .practice-media {
    height: clamp(300px, 54vw, 440px);
    min-height: 0;
  }

  .practice-tag {
    top: 20px;
    left: 20px;
  }

  .practice-content {
    padding-block: 48px 58px;
  }

  .practice-grid .practice-content {
    padding-inline: var(--gutter);
  }

  .practice-details {
    gap: 22px;
  }

  .quote-stage {
    min-height: 285px;
  }

  .quote-slide blockquote {
    max-width: 26ch;
    font-size: clamp(1.5rem, 5.6vw, 1.95rem);
  }

  .quote-mark {
    top: -28px;
    left: -5px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .footer-top .display {
    max-width: 15ch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .footer-legal {
    order: 3;
  }

  .footer-credit {
    order: 2;
  }

  .legal-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-sub {
    font-size: 0.44rem;
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    width: 43px;
    height: 43px;
  }

  .hero {
    padding-top: 106px;
    padding-bottom: 61px;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(2.85rem, 13.2vw, 4rem);
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .hero-meta {
    gap: 7px 17px;
  }

  .hero-meta li {
    gap: 7px;
  }

  .hero-card {
    bottom: 13px;
    left: 10px;
    width: 216px;
  }

  .hero-card-copy strong {
    font-size: 0.88rem;
  }

  .hero-card-icon {
    width: 34px;
    height: 34px;
  }

  .seal {
    top: 12px;
    right: 5px;
    width: 79px;
    height: 79px;
  }

  .seal-center {
    width: 20px;
    height: 20px;
  }

  .trust-value {
    font-size: 1.55rem;
  }

  .trust-value--small {
    font-size: 1.3rem;
  }

  .trust-label {
    font-size: 0.53rem;
    letter-spacing: 0.08em;
  }

  .trust-item {
    gap: 10px;
    padding: 15px 10px;
  }

  .trust-item:first-child {
    padding-left: 0;
  }

  .section {
    padding-block: 68px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .display {
    margin-top: 16px;
    font-size: clamp(2.2rem, 9.1vw, 2.85rem);
  }

  .section-intro,
  .approach-intro p + p {
    font-size: 0.88rem;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 1.7rem;
  }

  .service-note {
    display: block;
    text-align: left;
  }

  .service-note .text-link {
    margin-top: 9px;
  }

  .about-grid {
    gap: 48px;
  }

  .about-visual::before {
    inset: 16px -12px -14px 16px;
  }

  .about-badge {
    right: -4px;
    bottom: 22px;
    width: 96px;
    height: 96px;
  }

  .about-badge strong {
    font-size: 1.45rem;
  }

  .about-badge span {
    font-size: 0.42rem;
  }

  .signature {
    font-size: 1.9rem;
  }

  .practice-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .practice-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .practice-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .testimonial-head .display {
    max-width: 12ch;
  }

  .quote-stage {
    min-height: 312px;
  }

  .quote-controls {
    margin-top: 24px;
  }

  .quote-btn {
    width: 42px;
    height: 42px;
  }

  .faq-question {
    gap: 16px;
    padding: 21px 0;
    font-size: 1.06rem;
  }

  .faq-panel p {
    padding-right: 18px;
    font-size: 0.86rem;
  }

  .contact-list {
    margin-top: 30px;
  }

  .contact-item {
    gap: 11px;
  }

  .contact-icon {
    width: 39px;
    height: 39px;
  }

  .contact-item-text strong {
    font-size: 0.82rem;
  }

  .contact-hours {
    padding: 18px;
  }

  .contact-hours p {
    font-size: 0.75rem;
  }

  .checkbox {
    font-size: 0.68rem;
  }

  .form-note {
    font-size: 0.6rem;
  }

  .footer-col a,
  .footer-col p {
    font-size: 0.78rem;
  }

  .footer-wordmark {
    padding-top: 14px;
    font-size: 23vw;
  }

  .legal-main {
    padding-block: 48px 72px;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }

  .hero-title .line > span {
    transform: none;
    animation: none;
  }

  .hero-eyebrow,
  .hero-lead,
  .hero-actions,
  .hero-meta,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .seal-ring {
    animation: none;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-menu,
  .hero-bg,
  .hero-card,
  .seal,
  .scroll-cue,
  .quote-controls,
  .contact-form,
  .footer-wordmark {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .section,
  .practice,
  .site-footer {
    padding-block: 28px;
    background: #fff;
    color: #000;
  }

  .display,
  .display--light {
    color: #000;
  }
}
