/* ==========================================================================
   Web2Front — Layout: header, navigation, footer, buttons, forms
   ========================================================================== */

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

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--logo-word);
  transition: opacity 0.25s ease;
}

.brand:hover {
  opacity: 0.78;
}

.brand svg {
  width: 146px;
  height: 32px;
}

.brand--footer svg {
  width: 158px;
  height: auto;
}

/* Center pill nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.primary-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .primary-nav a[aria-current="page"] {
  background: var(--surface-3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.header-cta {
  height: 40px;
  padding-inline: 18px;
  font-size: 0.8rem;
}

/* Scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* Menu toggle */
.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s ease, top 0.35s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 25px;
}

body.menu-open .menu-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--pad) 32px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0.3s;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
  transition: color 0.2s ease, padding-left 0.3s var(--ease);
}

.mobile-nav a span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--accent-text);
  padding-left: 8px;
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.mobile-menu__contact a:hover {
  color: var(--accent-text);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 12px 32px var(--glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 16px 40px var(--glow);
}

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

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding-inline: 4px;
  height: auto;
}

.btn-ghost:hover {
  color: var(--accent-text);
  transform: none;
}

.btn--sm {
  height: 44px;
  padding-inline: 20px;
  font-size: 0.82rem;
}

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

.btn--dark {
  background: #0a0b0e;
  color: #f4f5f7;
  border-color: rgba(255, 255, 255, 0.15);
}

.btn--dark:hover {
  background: #15171e;
}

.btn--light,
.btn.btn-light {
  background: #ffffff;
  color: #0a0b0e;
  border-color: #ffffff;
}

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

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease, gap 0.3s var(--ease);
}

.arrow-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

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

.arrow-link:hover svg {
  transform: translate(3px, -3px);
}

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

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-2);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  white-space: nowrap;
}

.tag--accent {
  color: var(--accent-text);
  border-color: var(--accent-soft-2);
  background: var(--accent-soft);
}

.tag--solid {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ---------- Section headings ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head__label {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.section-head__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-head__body .lead {
  max-width: 62ch;
}

.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head--center .lead {
  max-width: 60ch;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--split .section-head__body {
  max-width: 760px;
}

.section-index {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(114px, 12.5vw, 158px);
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: clip;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(820px 420px at 78% -6%, var(--accent-soft), transparent 68%),
    linear-gradient(to bottom, transparent 62%, var(--bg));
  pointer-events: none;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 44px);
}

.page-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  max-width: 15ch;
}

.page-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: end;
}

.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 6px;
}

.page-hero__aside p {
  color: var(--text-2);
  font-size: 0.97rem;
  max-width: 36ch;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.page-hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-hero__meta span {
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sticky subnav ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 10px;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.subnav a:hover {
  color: var(--text);
  background: var(--surface-3);
}

.subnav a.is-active {
  color: var(--on-accent);
  background: var(--accent);
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.5vw, 26px) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

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

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

.faq__icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.25s ease;
}

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

.faq details[open] .faq__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(45deg);
}

.faq details[open] .faq__icon::before,
.faq details[open] .faq__icon::after {
  background: #fff;
}

.faq__answer {
  padding: 0 52px 26px 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 72ch;
}

/* ---------- Forms ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
}

.field label span {
  color: var(--accent-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
  padding: 14px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input {
  height: 52px;
}

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

.field select {
  height: 52px;
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.form__note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.form__status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form__status.is-visible {
  display: block;
}

.form__status.is-success {
  background: color-mix(in srgb, #18a558 14%, transparent);
  border: 1px solid color-mix(in srgb, #18a558 40%, transparent);
  color: color-mix(in srgb, #18a558 80%, var(--text));
}

.form__status.is-error {
  background: color-mix(in srgb, #d64545 12%, transparent);
  border: 1px solid color-mix(in srgb, #d64545 38%, transparent);
  color: color-mix(in srgb, #d64545 82%, var(--text));
}

.form.is-sending .btn-primary {
  pointer-events: none;
  opacity: 0.72;
}

.form.is-sending .btn-primary .btn-label::after {
  content: "…";
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
}

.form-success.is-visible {
  display: flex;
  animation: riseIn 0.5s var(--ease) both;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.form-success__icon svg {
  width: 22px;
  height: 22px;
}

.form-success h3 {
  font-size: 1.6rem;
}

.form-success p {
  color: var(--text-2);
  font-size: 0.92rem;
  max-width: 44ch;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow-soft);
}

.form-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-card__head h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.form-card__head span {
  font-size: 0.71rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- CTA panel ---------- */
.cta-section {
  padding-block: clamp(48px, 7vw, 96px);
}

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(36px, 6.5vw, 84px);
  border-radius: var(--r-xl);
  background: var(--accent);
  color: #fff;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px 380px at 92% 8%, rgba(255, 255, 255, 0.24), transparent 65%),
    radial-gradient(560px 340px at 4% 100%, rgba(0, 0, 0, 0.22), transparent 70%);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -190px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.05), 0 0 0 160px rgba(255, 255, 255, 0.035);
  z-index: -1;
  pointer-events: none;
}

.cta-panel .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel .eyebrow::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}

.cta-panel h2 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5.4vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.cta-panel .serif {
  color: #fff;
}

.cta-panel__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.cta-panel__aside p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  max-width: 32ch;
}

.cta-panel__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.cta-panel__mail:hover {
  border-color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 88px);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(40px, 4vw, 56px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-brand p {
  max-width: 30ch;
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.65;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-location::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23c16b;
  box-shadow: 0 0 0 4px color-mix(in srgb, #23c16b 18%, transparent);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-2);
  width: fit-content;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--accent-text);
  transform: translateX(2px);
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

.footer-social a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-2px);
}

.footer-social a[href=""] {
  cursor: default;
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 28px;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-legal a {
  transition: color 0.2s ease;
}

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

.footer-legal__link {
  margin-left: 6px;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-legal__link:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.footer-legal__link[aria-current="page"] {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.to-top svg {
  width: 13px;
  height: 13px;
}

/* ---------- Floating utility dock ---------- */
.utility-dock {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.35s var(--ease);
}

.dock-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.3s var(--ease), opacity 0.25s ease, visibility 0.25s ease;
}

.dock-btn:hover {
  border-color: var(--line-strong);
  color: var(--accent-text);
  transform: translateY(-2px);
}

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

.dock-btn::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.dock-btn:hover::after,
.dock-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%);
}

.dock-btn--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
}

.dock-btn--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.dock-btn--top.is-visible:hover {
  transform: translateY(-2px);
}

.footer-wordmark {
  position: relative;
  width: 100%;
  padding-inline: var(--pad);
  padding-bottom: 12px;
  overflow: hidden;
  line-height: 0.72;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.footer-wordmark span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16.6vw, 17rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0.55;
  transform: translateY(0.16em);
}

/* ---------- Reveal animation ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease) var(--reveal-delay, 0ms),
    transform 0.9s var(--ease) var(--reveal-delay, 0ms);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.form.is-hidden {
  display: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
