/* Mavero Marketing — macOS Sonoma / Apple.com design language */
:root {
  --bg-base: #f5f5f7;
  --bg-alt: #fbfbfd;
  --bg-window-chrome: #d1d1d6;
  --bg-window-frame: #c7c7cc;
  --bg-window-inner: #e8e8ed;
  --bg-titlebar: linear-gradient(180deg, #fafafa 0%, #e3e3e8 52%, #d8d8de 100%);
  --bg-toolbar: #f2f2f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-elevated-solid: #ffffff;
  --bg-button-secondary: #e8e8ed;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --link: #0066cc;
  --accent: #007aff;
  --accent-hover: #0077ed;
  --accent-pressed: #006edb;
  --separator: rgba(0, 0, 0, 0.08);
  --separator-opaque: #d2d2d7;
  --window-shadow:
    0 0 0 1px var(--bg-window-frame),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 28px 60px rgba(0, 0, 0, 0.16),
    0 8px 16px rgba(0, 0, 0, 0.06);
  --window-shadow-hover:
    0 0 0 1px #b0b0b8,
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 36px 72px rgba(0, 0, 0, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.08);
  --dock-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --radius-window: 10px;
  --radius-sheet: 12px;
  --radius-pill: 980px;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --topbar-h: 40px;
  --header-h: var(--topbar-h);
  --layout-max: 980px;
  --container: min(var(--layout-max), calc(100% - 2rem));
  --container-wide: min(var(--layout-max), calc(100% - 2rem));
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-dock: cubic-bezier(0.32, 0.72, 0, 1);
  --transition: 0.4s var(--ease-apple);
  --glass-plate: rgba(255, 255, 255, 0.28);
  --glass-plate-border: rgba(255, 255, 255, 0.55);
  --glass-chrome: linear-gradient(180deg, #e5e5ea 0%, #d1d1d6 100%);
  --btn-primary-top: #4da3ff;
  --btn-primary-mid: #007aff;
  --btn-primary-bottom: #0055d4;
  --btn-ring: rgba(0, 122, 255, 0.45);
  --traffic-close: #ff5f57;
  --traffic-min: #febc2e;
  --traffic-max: #28c840;
}

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

html:not(.lenis) {
  scroll-behavior: smooth;
}

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

  .wallpaper,
  .marquee,
  .mac-dock__dot {
    animation: none !important;
  }

  .mac-dock {
    transition: none;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
  }



  .reveal {
    filter: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }

  .btn--blue::after {
    display: none;
  }

  .footer-status.is-open .footer-status__dot {
    animation: none;
  }

  .footer-plate.is-entered .footer-row {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .mac-window.is-idle .mac-window__media img,
  .mac-window.is-focused .mac-window__titlebar-shine {
    animation: none !important;
  }

  .mac-window__motion {
    transition: none;
  }

  .widget-grid.is-visible .widget-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

body.is-preloading {
  overflow: hidden;
}

/* Site preloader — macOS splash */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: var(--bg-base);
  transition:
    opacity 0.7s var(--ease-dock),
    visibility 0.7s var(--ease-dock),
    transform 0.7s var(--ease-dock);
}

.site-preloader.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.site-preloader__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 122, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(94, 92, 230, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(48, 209, 88, 0.06), transparent 45%);
  animation: preloaderMeshDrift 8s ease-in-out infinite alternate;
}

.site-preloader__panel {
  position: relative;
  z-index: 1;
  width: min(20rem, calc(100vw - 2.5rem));
  padding: 5px;
  border-radius: 22px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
  animation: preloaderPanelIn 0.9s var(--ease-dock) both;
}

.site-preloader__surface {
  padding: 1.35rem 1.65rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-preloader__titlebar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.15rem;
}

.site-preloader__traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.45);
  animation: preloaderTrafficPop 0.55s var(--ease-dock) both;
}

.site-preloader__traffic--close {
  background: var(--traffic-close);
  animation-delay: 0.15s;
}

.site-preloader__traffic--min {
  background: var(--traffic-min);
  animation-delay: 0.22s;
}

.site-preloader__traffic--max {
  background: var(--traffic-max);
  animation-delay: 0.29s;
}

.site-preloader__logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  animation: preloaderLogoIn 0.85s 0.12s var(--ease-dock) both, preloaderLogoBreath 2.4s 1.2s ease-in-out infinite;
}

.site-preloader__bar {
  position: relative;
  height: 4px;
  margin-top: 1.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.site-preloader__bar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 38%;
  border-radius: inherit;
  will-change: left;
  background: linear-gradient(90deg, #007aff, #5ac8fa 50%, #007aff);
  background-size: 220% 100%;
  animation:
    preloaderBarIndeterminate 1.15s ease-in-out infinite,
    preloaderBarShine 1.4s linear infinite;
}

.site-preloader__caption {
  margin: 0.7rem 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-tertiary);
  animation: preloaderCaptionPulse 1.6s ease-in-out infinite;
}

@keyframes preloaderMeshDrift {
  from {
    transform: scale(1);
    opacity: 0.92;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes preloaderPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes preloaderTrafficPop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes preloaderLogoIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes preloaderLogoBreath {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes preloaderBarIndeterminate {
  0% {
    left: -45%;
  }
  100% {
    left: 107%;
  }
}

@keyframes preloaderBarShine {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@keyframes preloaderCaptionPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader.is-exiting {
    transform: none;
    transition: none;
  }

  .site-preloader__mesh,
  .site-preloader__panel,
  .site-preloader__logo,
  .site-preloader__traffic,
  .site-preloader__caption {
    animation: none !important;
  }

  .site-preloader__bar-fill {
    animation: preloaderBarIndeterminate 1.15s ease-in-out infinite !important;
  }

  .site-preloader__panel {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.menu-open {
  overflow: hidden;
}

body.has-dock {
  padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0));
  transition: padding-bottom 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}

body.has-dock.dock-collapsed {
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s var(--ease-apple);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--wide {
  width: var(--container-wide);
  margin-inline: auto;
}

/* macOS wallpaper mesh (static, subtle) */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 122, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(94, 92, 230, 0.07), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(48, 209, 88, 0.05), transparent 45%),
    var(--bg-base);
}

body.page-ready .wallpaper {
  animation: wallpaperDrift 24s ease-in-out infinite alternate;
}

@keyframes wallpaperDrift {
  from {
    filter: hue-rotate(0deg);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(8deg);
    transform: scale(1.02);
  }
}

/* Informational top bar — macOS menu bar (minimal) */
.info-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(44px) saturate(195%);
  -webkit-backdrop-filter: blur(44px) saturate(195%);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.75) inset;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.info-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0.5px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 20px rgba(0, 0, 0, 0.05);
}

.info-topbar__row {
  height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.info-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.info-topbar__brand:hover {
  opacity: 0.82;
  text-decoration: none;
}

.info-topbar__logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(260px, 52vw);
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
}

.info-topbar__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.info-topbar__brand-text strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.info-topbar__brand-text span {
  font-size: 10px;
  font-weight: 500;
  color: #86868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-topbar__center {
  margin: 0;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #6e6e73;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-topbar__tag {
  color: #1d1d1f;
  font-weight: 600;
}

.info-topbar__dot {
  margin-inline: 0.35rem;
  opacity: 0.45;
}

.info-topbar__trailing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
}

.info-topbar__action {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #0066cc;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, opacity 0.2s;
}

.info-topbar__action:hover {
  color: #0077ed;
  text-decoration: none;
}

.info-topbar__action--muted {
  color: #6e6e73;
}

.info-topbar__action--muted:hover {
  color: #1d1d1f;
}

.info-topbar__clock {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding-left: 0.65rem;
  border-left: 0.5px solid rgba(0, 0, 0, 0.12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.info-topbar__time {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.info-topbar__tz {
  font-size: 10px;
  font-weight: 500;
  color: #86868b;
}

@media (max-width: 1024px) {
  .info-topbar__action--muted {
    display: none;
  }
}

@media (max-width: 767px) {
  .info-topbar {
    height: auto;
    min-height: var(--topbar-h);
  }

  .info-topbar__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.75rem;
    padding-block: 0.5rem;
    text-align: center;
  }

  .info-topbar__brand {
    justify-content: center;
  }

  .info-topbar__logo {
    object-position: center;
    max-width: min(240px, 78vw);
  }

  .info-topbar__trailing {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
  }

  .info-topbar__clock {
    border-left: none;
    padding-left: 0;
  }

  .info-topbar__center {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    font-size: 11px;
  }

  .info-topbar__action {
    max-width: min(16rem, 88vw);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  :root {
    --header-h: 62px;
  }
}

@media (max-width: 480px) {
  .info-topbar__brand-text span {
    display: none;
  }

  .info-topbar__center span:not(.info-topbar__tag):not(.info-topbar__dot) {
    display: none;
  }

  .info-topbar__center .info-topbar__dot {
    display: none;
  }
}
/* macOS window chrome */
.mac-window {
  --win-mx: 50%;
  --win-my: 35%;
  position: relative;
  border-radius: calc(var(--radius-window) + 3px);
  padding: 6px;
  overflow: visible;
  box-shadow: var(--window-shadow);
  background: linear-gradient(180deg, #ececf1 0%, #e3e3e8 38%, var(--bg-window-chrome) 100%);
  border: 1px solid var(--bg-window-frame);
  transition:
    box-shadow 0.5s var(--ease-dock),
    transform 0.5s var(--ease-dock);
}

.mac-window::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.mac-window::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -16px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.22), transparent 68%);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.45s var(--ease-dock), transform 0.45s var(--ease-dock);
}

.mac-window__motion {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s var(--ease-dock);
}

.mac-window__surface {
  border-radius: var(--radius-window);
  overflow: hidden;
  background: var(--bg-window-inner);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.mac-window--interactive {
  cursor: default;
}

.mac-window--interactive:hover,
.mac-window.is-focused {
  box-shadow: var(--window-shadow-hover);
}

.mac-window.is-focused {
  box-shadow:
    0 0 0 2px rgba(0, 122, 255, 0.38),
    var(--window-shadow-hover);
}

.mac-window.is-focused::after {
  opacity: 0.82;
  transform: scale(1.06);
}

.mac-window--float {
  transition: box-shadow 0.5s var(--ease-dock);
}

.hero__parallax-layer {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

body.page-ready .hero__window-wrap.is-visible .mac-window--float .mac-window__motion {
  animation: windowSettle 1.15s var(--ease-dock) both;
}

@keyframes windowSettle {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(8deg) translateY(40px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  }
}

.mac-window.is-shake {
  animation: windowShake 0.45s var(--ease-out);
}

.mac-window.is-minimize {
  animation: windowMinimize 0.35s var(--ease-out);
}

.mac-window.is-maximize {
  animation: windowMaximize 0.4s var(--ease-out);
}

@keyframes windowShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes windowMinimize {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.97) translateY(6px);
    opacity: 0.92;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes windowMaximize {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.mac-window__titlebar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-titlebar);
  border-bottom: 1px solid #c6c6cc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.mac-window__titlebar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.mac-window.is-focused .mac-window__titlebar-shine {
  opacity: 1;
  animation: titlebarShine 1.1s var(--ease-dock);
}

@keyframes titlebarShine {
  to {
    transform: translateX(120%);
  }
}

.mac-window__traffic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.traffic {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease-dock), filter 0.2s;
}

.mac-window__traffic:hover .traffic::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 0, 0.55);
  content: "";
}

.mac-window__traffic:hover .traffic--close::after {
  content: "×";
  margin-top: -1px;
}

.mac-window__traffic:hover .traffic--min::after {
  content: "−";
}

.mac-window__traffic:hover .traffic--max::after {
  content: "+";
  font-size: 10px;
}

.traffic:hover {
  transform: scale(1.12);
  filter: brightness(1.05);
}

.traffic:active {
  transform: scale(0.92);
}

.traffic--close {
  background: var(--traffic-close);
}

.traffic--min {
  background: var(--traffic-min);
}

.traffic--max {
  background: var(--traffic-max);
}

.mac-window__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.52);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.mac-window.is-focused .mac-window__title {
  color: rgba(0, 0, 0, 0.72);
}

.mac-window__content {
  background: #0a0a0c;
  line-height: 0;
  position: relative;
}

.mac-window__media {
  position: relative;
  overflow: hidden;
}

.mac-window__media img {
  width: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.75s var(--ease-dock);
  will-change: transform;
}

.mac-window.is-focused .mac-window__media img,
.mac-window--interactive:hover .mac-window__media img {
  transform: scale(1.06);
}

.mac-window.is-idle .mac-window__media img {
  animation: windowMediaDrift 22s var(--ease-dock) infinite alternate;
}

.mac-window.is-idle.is-focused .mac-window__media img {
  animation: none;
}

.mac-window__media-shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--win-mx) var(--win-my),
    rgba(255, 255, 255, 0.28) 0%,
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease-dock);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.mac-window__media-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.mac-window.is-focused .mac-window__media-shine,
.mac-window--interactive:hover .mac-window__media-shine {
  opacity: 1;
}

.mac-window.is-content-dim .mac-window__media img {
  filter: brightness(0.72) saturate(0.85);
  transition: filter 0.35s ease, transform 0.75s var(--ease-dock);
}

@keyframes windowMediaDrift {
  0% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

.mac-window__content--hero img {
  aspect-ratio: 16 / 9;
}

.mac-window__content--4x3 img {
  aspect-ratio: 4 / 3;
}

.mac-window__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-toolbar);
  border-top: 1px solid #c6c6cc;
  font-size: 11px;
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: background 0.35s var(--ease-dock);
}

.mac-window.is-focused .mac-window__toolbar {
  background: linear-gradient(180deg, #f7f7fc 0%, var(--bg-toolbar) 100%);
}

.mac-window__toolbar strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Buttons — macOS Sonoma (dock-matched depth) */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 1.5rem;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.2;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.42s var(--ease-dock),
    box-shadow 0.42s var(--ease-dock),
    border-color 0.25s ease,
    filter 0.25s ease;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  box-shadow:
    0 0 0 3px var(--btn-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(0, 113, 255, 0.35);
}

.btn--lg {
  min-height: 48px;
  padding: 0 1.65rem;
  font-size: 17px;
  border-radius: 13px;
}

.btn--sm {
  min-height: 36px;
  padding: 0 1rem;
  font-size: 14px;
  border-radius: 10px;
}

.btn--blue {
  overflow: hidden;
  color: #fff;
  border-color: rgba(0, 58, 140, 0.35);
  background: linear-gradient(
    180deg,
    var(--btn-primary-top) 0%,
    var(--btn-primary-mid) 42%,
    var(--btn-primary-bottom) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 6px 20px rgba(0, 113, 255, 0.32);
}

.btn--blue::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%);
  pointer-events: none;
}

.btn--blue::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-dock);
  pointer-events: none;
}

.btn--blue:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 28px rgba(0, 113, 255, 0.38);
}

.btn--blue:hover::after {
  transform: translateX(130%);
}

.btn--blue:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(0, 113, 255, 0.2);
}

.btn--blue:focus-visible {
  box-shadow:
    0 0 0 3px var(--btn-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 6px 20px rgba(0, 113, 255, 0.32);
}

.btn--gray {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 247, 0.92) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.06);
}

.btn--gray:hover {
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0, 0, 0, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.1);
}

.btn--gray:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn--gray:focus-visible {
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Section scenic background (hero, philosophy, …) */
.section--with-scene {
  --scene-fade: var(--bg-base);
  --scene-fade-rgb: 245, 245, 247;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--with-scene.section--alt {
  --scene-fade: var(--bg-alt);
  --scene-fade-rgb: 251, 251, 253;
  background: transparent;
}

.section--with-scene > .container,
.hero.section--with-scene > .hero__window-wrap {
  position: relative;
  z-index: 1;
}

.section-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section-scene__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  bottom: -18%;
  background-image: var(--scene-image, url("../assets/bg1.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0) scale(1.1);
  will-change: transform;
}

#approach.section--with-scene {
  --scene-image: url("../assets/bg3.jpg");
}

#presence.section--with-scene {
  --scene-image: url("../assets/bg4.jpg");
}

#craft.section--with-scene {
  --scene-image: url("../assets/bg5.jpg");
}

#contact.section--with-scene {
  --scene-image: url("../assets/bg6.jpg");
}

.section-scene__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      var(--scene-fade) 0%,
      rgba(var(--scene-fade-rgb), 0.88) 8%,
      rgba(var(--scene-fade-rgb), 0.35) 22%,
      transparent 42%
    ),
    linear-gradient(
      0deg,
      var(--scene-fade) 0%,
      rgba(var(--scene-fade-rgb), 0.92) 10%,
      rgba(var(--scene-fade-rgb), 0.45) 24%,
      transparent 46%
    ),
    linear-gradient(
      90deg,
      var(--scene-fade) 0%,
      rgba(var(--scene-fade-rgb), 0.85) 6%,
      rgba(var(--scene-fade-rgb), 0.28) 16%,
      transparent 28%,
      transparent 72%,
      rgba(var(--scene-fade-rgb), 0.28) 84%,
      rgba(var(--scene-fade-rgb), 0.85) 94%,
      var(--scene-fade) 100%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

@media (prefers-reduced-motion: reduce) {
  .section-scene__bg {
    top: 0;
    bottom: 0;
    transform: scale(1.05);
  }
}

/* Hero — glass plate + copy */
.hero {
  padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
  text-align: center;
}

/* Glass plate — hero + section intros */
.glass-plate {
  padding: 5px;
  border-radius: 22px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
  transition:
    transform 0.55s var(--ease-dock),
    box-shadow 0.55s var(--ease-dock);
}

.glass-plate.is-visible:hover {
  transform: translateY(-3px);
  box-shadow: var(--window-shadow-hover);
}

.glass-plate--center,
.glass-plate--hero {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.glass-plate--stack {
  width: 100%;
  max-width: 100%;
}

.glass-plate__surface {
  padding: 1.65rem 1.25rem 1.55rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-plate--stack .glass-plate__surface {
  padding: 1.5rem 1.25rem 1.35rem;
}

.glass-plate--stack .widget-grid {
  margin-top: 1.35rem;
}

.presence-layout {
  display: flex;
  justify-content: center;
}

.glass-plate--presence .widget-grid {
  margin-top: 1.35rem;
}

@media (min-width: 768px) {
  .glass-plate--presence .widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .glass-plate__surface {
    padding: 1.85rem 1.75rem 1.75rem;
  }

  .glass-plate--hero .glass-plate__surface {
    padding: 2.15rem 2rem 2rem;
  }

  .glass-plate--stack .glass-plate__surface {
    padding: 1.65rem 1.5rem 1.45rem;
  }
}

.section-head--in-plate {
  margin-bottom: 0;
}

.section-head--left {
  text-align: left;
}

.section-head--left .section-head__title,
.section-head--left .section-head__lead {
  margin-inline: 0;
}

.section-head--left .section-head__title {
  max-width: none;
}

.section .container > .glass-plate {
  margin-bottom: 2.25rem;
}

.section .container > .settings-group {
  width: 100%;
}

.footer-plate {
  width: 100%;
}

.feature-block__copy .glass-plate {
  margin-bottom: 0;
}

body.page-ready .glass-plate--hero.is-visible .hero__kicker {
  animation: heroFadeUp 0.85s 0.12s var(--ease-dock) both;
}

body.page-ready .glass-plate--hero.is-visible .hero__title {
  animation: heroFadeUp 0.85s 0.2s var(--ease-dock) both;
}

body.page-ready .glass-plate--hero.is-visible .hero__subtitle {
  animation: heroFadeUp 0.85s 0.28s var(--ease-dock) both;
}

body.page-ready .glass-plate--hero.is-visible .btn-row {
  animation: heroFadeUp 0.85s 0.36s var(--ease-dock) both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
}

.hero__title {
  margin: 0 auto 0.65rem;
  max-width: 14ch;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.381;
  letter-spacing: 0.007em;
  color: var(--text-secondary);
}

.hero__window-wrap {
  margin-top: 2.5rem;
}

.hero__window-wrap .mac-window {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

/* Control Center strip */
.control-strip {
  padding: 1.25rem 0;
  border-block: 0.5px solid var(--separator-opaque);
  background: rgba(255, 255, 255, 0.5);
}

.control-strip__inner {
  width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 1rem;
}

.control-strip__panel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 22px;
  background: var(--glass-plate);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid var(--glass-plate-border);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 16px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.55s var(--ease-dock), box-shadow 0.55s var(--ease-dock);
}

.control-strip__panel.is-visible {
  animation: plateEnter 0.75s var(--ease-dock) both;
}

.control-strip__panel:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 20px 48px rgba(0, 0, 0, 0.12);
}

.chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  cursor: default;
  transition: transform 0.35s var(--ease-dock), background 0.35s, box-shadow 0.35s;
}

.chip:hover {
  transform: translateY(-3px) scale(1.04);
  background: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgba(0, 0, 0, 0.1);
}

.chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, #3b9dff, #007aff 50%, #5856d6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(0, 122, 255, 0.35);
}

.control-strip__panel.is-visible .chip {
  animation: chipIn 0.55s var(--ease-out) both;
}

.control-strip__panel.is-visible .chip:nth-child(1) {
  animation-delay: 0.05s;
}
.control-strip__panel.is-visible .chip:nth-child(2) {
  animation-delay: 0.1s;
}
.control-strip__panel.is-visible .chip:nth-child(3) {
  animation-delay: 0.15s;
}
.control-strip__panel.is-visible .chip:nth-child(4) {
  animation-delay: 0.2s;
}
.control-strip__panel.is-visible .chip:nth-child(5) {
  animation-delay: 0.25s;
}
.control-strip__panel.is-visible .chip:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head__eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.25rem 0.65rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007aff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid rgba(0, 122, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.45s var(--ease-dock), box-shadow 0.45s var(--ease-dock);
}

.section-head__title {
  margin: 0 auto 0.75rem;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-head__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

/* System Settings — dock chrome */
.settings-group {
  padding: 5px;
  border-radius: calc(var(--radius-sheet) + 4px);
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
  transition: transform 0.55s var(--ease-dock), box-shadow 0.55s var(--ease-dock);
}

.settings-group.is-visible {
  animation: plateEnter 0.8s var(--ease-dock) both;
}

.settings-group:hover {
  transform: translateY(-3px);
  box-shadow: var(--window-shadow-hover);
}

.settings-group__surface {
  border-radius: var(--radius-sheet);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.settings-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-top: 0.5px solid var(--separator-opaque);
  cursor: pointer;
  transition:
    background 0.45s var(--ease-dock),
    transform 0.45s var(--ease-dock),
    padding 0.55s var(--ease-dock);
}

.settings-row:hover {
  background: rgba(0, 122, 255, 0.05);
  padding-left: 1.15rem;
}

.settings-row.is-open {
  background: rgba(0, 122, 255, 0.08);
  padding-bottom: 1.25rem;
  transition:
    background 0.45s var(--ease-dock),
    transform 0.45s var(--ease-dock),
    padding 0.78s var(--ease-dock);
}

.settings-row.is-open .settings-row__chevron {
  transform: rotate(90deg);
  opacity: 0.85;
}

.settings-row.is-open .settings-row__icon {
  transform: scale(1.04) translateY(-1px);
}

.settings-row:first-child {
  border-top: none;
}

.settings-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b9dff, #007aff 50%, #5856d6);
  color: #fff;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease-dock);
}

.settings-row:hover .settings-row__icon {
  transform: scale(1.06) translateY(-2px);
}

.settings-row__icon--purple {
  background: linear-gradient(145deg, #d183ff, #af52de 50%, #7d47c9);
}

.settings-row__icon--teal {
  background: linear-gradient(145deg, #7ee3ff, #32ade6 50%, #007aff);
}

.settings-row__body {
  min-width: 0;
}

.settings-row__body h3 {
  margin: 0 0 0.2rem;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.settings-row__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.42857;
  color: var(--text-secondary);
}

.settings-row__detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.78s var(--ease-dock);
  will-change: grid-template-rows;
}

.settings-row.is-open .settings-row__detail {
  grid-template-rows: 1fr;
}

.settings-row__detail-inner {
  min-height: 0;
  overflow: hidden;
}

.settings-row__detail-inner p {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(3px);
  border-top: 0.5px solid transparent;
  transition:
    opacity 0.55s var(--ease-dock),
    transform 0.65s var(--ease-dock),
    filter 0.55s var(--ease-dock),
    border-color 0.5s var(--ease-dock);
  transition-delay: 0s;
}

.settings-row.is-open .settings-row__detail-inner p {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  border-top-color: rgba(60, 60, 67, 0.14);
  transition-delay: 0.2s;
}

.settings-row:not(.is-open) .settings-row__detail-inner p {
  transition-duration: 0.3s;
  transition-delay: 0s;
}

@supports not (grid-template-rows: 0fr) {
  .settings-row__detail {
    display: block;
    max-height: 0;
    transition: max-height 0.78s var(--ease-dock);
  }

  .settings-row.is-open .settings-row__detail {
    max-height: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-row__detail {
    transition: none;
  }

  .settings-row.is-open .settings-row__detail {
    grid-template-rows: 1fr;
    max-height: none;
  }

  .settings-row__detail-inner p {
    transition: none;
    transform: none;
    filter: none;
  }

  .settings-row.is-open .settings-row__detail-inner p {
    opacity: 1;
    border-top-color: rgba(60, 60, 67, 0.14);
  }
}

.settings-row__chevron {
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 29px;
  opacity: 0.5;
  transition:
    transform 0.5s var(--ease-dock),
    opacity 0.45s var(--ease-dock);
}

.settings-group.is-visible .settings-row {
  animation: rowSlideIn 0.65s var(--ease-dock) both;
}

.settings-group.is-visible .settings-row:nth-child(1) {
  animation-delay: 0.08s;
}
.settings-group.is-visible .settings-row:nth-child(2) {
  animation-delay: 0.16s;
}
.settings-group.is-visible .settings-row:nth-child(3) {
  animation-delay: 0.24s;
}

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

@keyframes plateEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Feature blocks — Apple product page rhythm */
.feature-block {
  padding: 4.5rem 0;
}

.feature-block__stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-block__copy {
  text-align: center;
  margin-bottom: 0;
  width: 100%;
}

.feature-block__copy .section-head__title {
  max-width: 22ch;
}

.feature-block__window {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

.feature-block__window .mac-window {
  width: 100%;
  max-width: 100%;
}

.feature-detail {
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 5px;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-sheet) + 4px);
  overflow: hidden;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
  transition: transform 0.55s var(--ease-dock), box-shadow 0.55s var(--ease-dock);
}

.feature-detail.is-visible .feature-list {
  animation: plateEnter 0.75s var(--ease-dock) 0.1s both;
}

.feature-detail.is-visible .feature-list:hover {
  transform: translateY(-2px);
  box-shadow: var(--window-shadow-hover);
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  font-size: 14px;
  line-height: 1.42857;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.94);
  transition: background 0.3s var(--ease-dock), padding-left 0.3s var(--ease-dock);
}

.feature-list li:hover {
  background: #fff;
  padding-left: 1.1rem;
}

.feature-list li + li {
  border-top: 0.5px solid var(--separator-opaque);
}

.feature-list li:first-child {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.feature-list li:last-child {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3b9dff, #007aff);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 113, 255, 0.25);
  margin-top: 1px;
}

/* Presence — mini macOS window cards */
.widget-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0;
  align-items: stretch;
}

.widget-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: default;
  outline: none;
  border-radius: 0;
}

.widget-card__chrome {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ececf1 0%, #d1d1d6 100%);
  border: 1px solid #c7c7cc;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.45s var(--ease-dock),
    box-shadow 0.45s var(--ease-dock);
}

.widget-card__titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.65rem;
  border-radius: 10px 10px 0 0;
  background: var(--bg-titlebar);
  border-bottom: 0.5px solid #c6c6cc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.widget-card__traffic {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.widget-card__light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.16);
}

.widget-card__light--close {
  background: var(--traffic-close);
}

.widget-card__light--min {
  background: var(--traffic-min);
}

.widget-card__light--max {
  background: var(--traffic-max);
}

.widget-card__window-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.widget-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 7.5rem;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.widget-card__icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.65rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease-dock);
}

.widget-card--blue .widget-card__icon {
  background: linear-gradient(145deg, #3b9dff, #007aff 50%, #5856d6);
}

.widget-card--orange .widget-card__icon {
  background: linear-gradient(145deg, #ffb340, #ff6b00 50%, #e85d04);
}

.widget-card--green .widget-card__icon {
  background: linear-gradient(145deg, #65eb85, #248a3d 50%, #1e7a34);
}

.widget-card h3 {
  margin: 0 0 0.35rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.widget-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--text-secondary);
}

.widget-card:hover .widget-card__chrome,
.widget-card:focus-visible .widget-card__chrome {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 16px 36px rgba(0, 0, 0, 0.14);
}

.widget-card:hover .widget-card__icon,
.widget-card:focus-visible .widget-card__icon {
  transform: scale(1.08) translateY(-2px);
}

.widget-card:focus-visible .widget-card__chrome {
  outline: 2px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.widget-card.is-active .widget-card__chrome {
  box-shadow:
    0 0 0 2px rgba(0, 122, 255, 0.28),
    0 14px 32px rgba(0, 0, 0, 0.12);
}

.widget-grid.is-visible .widget-card {
  animation: widgetRise 0.65s var(--ease-dock) both;
}

.widget-grid.is-visible .widget-card:nth-child(2) {
  animation-delay: 0.1s;
}

.widget-grid.is-visible .widget-card:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes widgetRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.split-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.split-layout__media .mac-window {
  width: 100%;
  max-width: 100%;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
  padding: calc(var(--header-h) + 2.25rem) 0 4rem;
}

.legal-page .glass-plate {
  text-align: left;
}

.legal-page .section-head--in-plate {
  text-align: center;
  margin-bottom: 1.75rem;
}

.legal-doc__body {
  max-width: 46rem;
  margin-inline: auto;
  text-align: left;
}

.legal-doc__body h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.legal-doc__body h2:first-child {
  margin-top: 0;
}

.legal-doc__body p {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.legal-doc__body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.legal-doc__body li {
  margin-bottom: 0.35rem;
}

.legal-doc__body a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Contact sheet */
.contact-section {
  padding: 4rem 0 5rem;
}

.contact-sheet {
  width: 100%;
  text-align: center;
  padding: 2.75rem 1.75rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 16px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.55s var(--ease-dock), box-shadow 0.55s var(--ease-dock);
}

.contact-sheet.is-visible {
  animation: plateEnter 0.85s var(--ease-dock) both;
}

.contact-sheet.is-visible:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 22px 50px rgba(0, 0, 0, 0.12);
}

.contact-sheet h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-sheet p {
  margin: 0 auto 1.5rem;
  max-width: 30rem;
  font-size: 17px;
  color: var(--text-secondary);
}

.contact-sheet .btn {
  margin-top: 0.15rem;
}

.contact-page.contact-section {
  padding: calc(var(--header-h) + 2.25rem) 0 4rem;
}

.contact-sheet--form {
  max-width: 42rem;
  margin-inline: auto;
  text-align: left;
  padding: 2.25rem 1.5rem 2rem;
}

.contact-sheet__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.contact-sheet__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-sheet__lead {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.contact-form__grid {
  display: grid;
  gap: 1rem 1.1rem;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.contact-form__optional {
  font-weight: 500;
  color: var(--text-tertiary);
}

.contact-form__control {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 11px;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-form__control--area {
  min-height: 8.5rem;
  resize: vertical;
  padding-top: 0.65rem;
}

.contact-form__control:focus {
  outline: none;
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.18),
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contact-form__control.is-invalid {
  border-color: rgba(255, 59, 48, 0.65);
  box-shadow:
    0 0 0 3px rgba(255, 59, 48, 0.12),
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.contact-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.contact-map-section {
  padding: 3.5rem 0 5rem;
}

.contact-map-section .section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.contact-map {
  max-width: 52rem;
  margin-inline: auto;
}

.contact-map__plate {
  padding: 5px;
  border-radius: 18px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
}

.contact-map__surface {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.contact-map__embed {
  display: block;
  width: 100%;
  height: min(52vw, 22rem);
  min-height: 16rem;
  border: 0;
}

.contact-map__link-wrap {
  margin: 0.85rem 0 0;
  text-align: center;
}

.contact-map__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-map__link:hover {
  color: var(--accent-hover);
}

/* Contact form dialog */
body.is-dialog-open {
  overflow: hidden;
}

body.is-dialog-open .info-topbar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(251, 251, 253, 0.94);
}

body.is-dialog-open .mac-dock__reflect {
  opacity: 0;
}

@media (max-width: 767px) {
  body.is-dialog-open .dock-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.is-dialog-open .wallpaper {
    animation: none;
    transform: none;
  }

  .site-dialog__backdrop,
  .service-modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 14, 0.64);
  }

  .site-dialog__surface {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
}

.site-dialog {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-dock),
    visibility 0.45s;
}

.site-dialog.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-dialog__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(15, 15, 20, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(24rem, 100%);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.5s var(--ease-dock);
}

.site-dialog.is-visible .site-dialog__panel {
  transform: translateY(0) scale(1);
}

.site-dialog__plate {
  padding: 5px;
  border-radius: 18px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow:
    var(--window-shadow),
    0 18px 48px rgba(0, 0, 0, 0.18);
}

.site-dialog__surface {
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 13px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-dialog__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(0, 122, 255, 0.28);
}

.site-dialog--success .site-dialog__icon {
  background: linear-gradient(145deg, #34c759, #30b350 55%, #248a3d);
}

.site-dialog--error .site-dialog__icon {
  background: linear-gradient(145deg, #ff6b6b, #ff3b30 55%, #d70015);
}

.site-dialog--error .site-dialog__icon svg {
  transform: rotate(45deg);
}

.site-dialog__title {
  margin: 0 0 0.45rem;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.site-dialog__text {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.42857;
  color: var(--text-secondary);
}

.site-dialog__actions {
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .contact-sheet--form {
    padding: 2.5rem 2.25rem 2.15rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-map__embed {
    height: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-dialog,
  .site-dialog__panel {
    transition: none;
  }
}

/* Dock shell + toggle */
.dock-shell {
  position: fixed;
  bottom: 0.65rem;
  left: 50%;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  overflow: visible;
  isolation: isolate;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.75s ease;
}

body.page-ready .dock-shell.is-mounted {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dock-toggle {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.dock-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(0, 0, 0, 0.14);
}

.dock-toggle:active {
  transform: translateY(0) scale(0.98);
}

.dock-toggle__chevron {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.06);
  position: relative;
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s;
}

.dock-toggle__chevron::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.75px solid #3a3a3c;
  border-bottom: 1.75px solid #3a3a3c;
  transform: rotate(45deg) translateY(-1px);
  transition: border-color 0.3s;
}

.dock-shell.is-collapsed .dock-toggle__chevron {
  transform: rotate(180deg);
  background: rgba(0, 122, 255, 0.12);
}

.dock-shell.is-collapsed .dock-toggle__chevron::before {
  border-color: #007aff;
}

.dock-shell.is-collapsed .dock-toggle {
  animation: dockTogglePulse 2.8s ease-in-out infinite;
}

@keyframes dockTogglePulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0.5px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      0 8px 24px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 0.5px rgba(0, 122, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      0 10px 28px rgba(0, 122, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-shell.is-collapsed .dock-toggle {
    animation: none;
  }
}

/* Cookie consent — macOS sheet */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(6.85rem + env(safe-area-inset-bottom, 0));
  z-index: 145;
  width: min(36rem, calc(100% - 2rem));
  transform: translateX(-50%) translateY(1.25rem) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s var(--ease-dock),
    transform 0.55s var(--ease-dock),
    visibility 0.5s,
    bottom 0.65s var(--ease-dock);
}

body.dock-collapsed .cookie-banner {
  bottom: calc(3.85rem + env(safe-area-inset-bottom, 0));
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.cookie-banner__plate {
  padding: 5px;
  border-radius: 18px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow:
    var(--window-shadow),
    0 12px 40px rgba(0, 0, 0, 0.14);
}

.cookie-banner__surface {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cookie-banner__icon {
  grid-row: span 2;
  align-self: start;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #3b9dff, #007aff 55%, #5856d6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 122, 255, 0.28);
}

.cookie-banner__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.42857;
  color: var(--text-secondary);
}

.cookie-banner__text a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.cookie-banner__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.65rem;
}

@media (min-width: 640px) {
  .cookie-banner__surface {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem 1.15rem;
  }

  .cookie-banner__icon {
    grid-row: auto;
  }

  .cookie-banner__actions {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    min-width: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

/* Scroll to top — dock-style icon control */
.scroll-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: calc(6.75rem + env(safe-area-inset-bottom, 0));
  z-index: 160;
  width: 54px;
  height: 54px;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px) scale(0.86);
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
  transition:
    opacity 0.45s var(--ease-dock),
    transform 0.45s var(--ease-dock),
    visibility 0.45s,
    filter 0.35s var(--ease-dock),
    bottom 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}

body.dock-collapsed .scroll-top {
  bottom: calc(3.75rem + env(safe-area-inset-bottom, 0));
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ececf1 0%, #d1d1d6 48%, #c7c7cc 100%);
  border: 1px solid #b0b0b8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 0.5px rgba(0, 0, 0, 0.14);
  transition: transform 0.4s var(--ease-dock), box-shadow 0.4s var(--ease-dock);
}

.scroll-top__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #4da3ff 0%, #007aff 45%, #5856d6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 113, 255, 0.35);
  transition: transform 0.4s var(--ease-dock), filter 0.35s ease;
}

.scroll-top:hover {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.scroll-top:hover .scroll-top__frame {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 0 0 0.5px rgba(0, 0, 0, 0.1);
}

.scroll-top:hover .scroll-top__icon {
  transform: scale(1.08) translateY(-2px);
  filter: brightness(1.06);
}

.scroll-top:active .scroll-top__frame {
  transform: translateY(1px) scale(0.97);
}

.scroll-top:active .scroll-top__icon {
  transform: scale(0.94);
}

.scroll-top:focus {
  outline: none;
}

.scroll-top:focus-visible .scroll-top__frame {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 3px rgba(0, 122, 255, 0.45),
    0 0 0 0.5px rgba(0, 0, 0, 0.14);
}

.scroll-top.is-bounce .scroll-top__icon {
  animation: scrollTopBounce 0.55s var(--ease-dock);
}

.scroll-top.is-bounce {
  animation: none;
}

@keyframes scrollTopBounce {
  0%,
  100% {
    transform: scale(1) translateY(0);
  }
  40% {
    transform: scale(1.14) translateY(-5px);
  }
  70% {
    transform: scale(0.92) translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top.is-bounce .scroll-top__icon {
    animation: none;
  }

  .scroll-top {
    transition: opacity 0.2s ease, visibility 0.2s, bottom 0.65s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  }
}

/* Dock — macOS Sonoma shelf */
.mac-dock {
  display: block;
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  overflow: visible;
  max-height: 120px;
  transition:
    transform 0.65s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.55s ease,
    filter 0.55s ease,
    max-height 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}

.dock-shell.is-collapsed .mac-dock {
  transform: translateY(18px) scale(0.9);
  opacity: 0;
  filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.mac-dock__plate {
  position: relative;
  overflow: visible;
  padding: 11px 16px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 16px 40px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.mac-dock__plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, transparent 42%);
  pointer-events: none;
}

.mac-dock__list {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mac-dock__sep {
  width: 1px;
  height: 44px;
  align-self: center;
  margin-inline: 0.15rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18) 30%, rgba(0, 0, 0, 0.18) 70%, transparent);
  border-radius: 1px;
}

.mac-dock__item {
  transform-origin: bottom center;
  will-change: transform;
}

.mac-dock__item a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  padding: 0 0.1rem;
  outline: none;
}

.mac-dock__item a:hover,
.mac-dock__item a:focus-visible {
  z-index: 20;
}

.mac-dock__icon-wrap {
  position: relative;
  display: block;
}

.mac-dock__icon {
  --dock-icon-size: 52px;
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.25s var(--ease-out);
}

.mac-dock__icon svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.mac-dock__icon--home {
  background: linear-gradient(145deg, #3b9dff 0%, #007aff 45%, #5856d6 100%);
}

.mac-dock__icon--philosophy {
  background: linear-gradient(145deg, #d183ff 0%, #af52de 50%, #7d47c9 100%);
}

.mac-dock__icon--approach {
  background: linear-gradient(145deg, #ffb340 0%, #ff9500 50%, #ff6b00 100%);
}

.mac-dock__icon--presence {
  background: linear-gradient(145deg, #7ee3ff 0%, #32ade6 45%, #007aff 100%);
}

.mac-dock__icon--contact {
  background: linear-gradient(145deg, #65eb85 0%, #34c759 50%, #248a3d 100%);
}

.mac-dock__reflect {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  width: 100%;
  height: 14px;
  border-radius: 12px;
  transform: scaleY(-1);
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}

.mac-dock__icon--home + .mac-dock__reflect {
  background: linear-gradient(145deg, #3b9dff, #5856d6);
}
.mac-dock__icon--philosophy + .mac-dock__reflect {
  background: linear-gradient(145deg, #d183ff, #7d47c9);
}
.mac-dock__icon--approach + .mac-dock__reflect {
  background: linear-gradient(145deg, #ffb340, #ff6b00);
}
.mac-dock__icon--presence + .mac-dock__reflect {
  background: linear-gradient(145deg, #7ee3ff, #007aff);
}
.mac-dock__icon--contact + .mac-dock__reflect {
  background: linear-gradient(145deg, #65eb85, #248a3d);
}

.mac-dock__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 100;
  transform: translateX(-50%) translateY(6px) scale(0.92);
  padding: 0.3rem 0.55rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  white-space: nowrap;
  background: rgba(30, 30, 32, 0.92);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.22s var(--ease-out);
}

.mac-dock__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(30, 30, 32, 0.92);
}

.mac-dock__item a:hover .mac-dock__tooltip,
.mac-dock__item a:focus-visible .mac-dock__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mac-dock__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(30, 30, 32, 0.55);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.mac-dock__item a.is-active .mac-dock__dot {
  opacity: 1;
  transform: scale(1);
  animation: dockDotPulse 2.4s ease-in-out infinite;
}

@keyframes dockDotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.mac-dock__item a.is-bounce .mac-dock__icon {
  animation: dockIconBounce 0.55s var(--ease-out);
}

@keyframes dockIconBounce {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.82) translateY(4px);
  }
  65% {
    transform: scale(1.12) translateY(-10px);
  }
  100% {
    transform: scale(1);
  }
}

.mac-dock.is-magnifying .mac-dock__item a:hover .mac-dock__icon {
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 22px rgba(0, 0, 0, 0.22);
}

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

/* Footer — dock chrome plate */
.site-footer {
  padding: 3.5rem 0 calc(6.5rem + env(safe-area-inset-bottom, 0));
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(0, 122, 255, 0.05), transparent 60%),
    var(--bg-base);
}

.footer-plate {
  padding: 5px;
  border-radius: calc(var(--radius-sheet) + 6px);
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow: var(--window-shadow);
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--ease-dock),
    transform 0.85s var(--ease-dock),
    filter 0.85s var(--ease-dock),
    box-shadow 0.55s var(--ease-dock);
}

.footer-plate.is-entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.footer-plate.is-entered:hover {
  box-shadow: var(--window-shadow-hover);
}

.footer-grid {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 1.5rem 1.35rem 1.25rem;
  border-radius: var(--radius-sheet);
  background: rgba(255, 255, 255, 0.96);
}

.footer-brand {
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 0.5px solid var(--separator-opaque);
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.footer-brand__mark:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer-brand__logo-img {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(280px, 75vw);
  object-fit: contain;
  object-position: left center;
  transition: transform 0.35s var(--ease-dock);
}

.footer-brand__mark:hover .footer-brand__logo-img {
  transform: translateY(-1px);
}

.footer-brand p {
  margin: 0;
  max-width: 26rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.footer-col {
  padding: 1.15rem 0;
  border-bottom: 0.5px solid var(--separator-opaque);
}

.footer-col:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-col__eyebrow {
  margin: 0 0 0.75rem;
  display: inline-block;
  padding: 0.22rem 0.6rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #007aff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(0, 122, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.6rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.footer-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86868b;
  flex-shrink: 0;
}

.footer-status.is-open .footer-status__dot {
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
  animation: footerStatusPulse 2.4s ease-in-out infinite;
}

.footer-status.is-closed .footer-status__dot {
  background: #ff9500;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.18);
}

.footer-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
}

.footer-row--multiline {
  align-items: flex-start;
}

.footer-row--interactive {
  width: 100%;
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 10px;
  cursor: default;
  transition: background 0.35s var(--ease-dock);
}

.footer-row--interactive:hover {
  background: rgba(0, 122, 255, 0.07);
}

.footer-row--interactive:hover address {
  color: var(--text-primary);
}

.footer-row--multiline .footer-icon {
  margin-top: 0.1rem;
}

.footer-row--interactive:hover .footer-icon {
  transform: scale(1.06) translateY(-2px);
}

.footer-plate.is-entered .footer-row {
  animation: footerRowIn 0.55s var(--ease-dock) forwards;
}

.footer-plate.is-entered .footer-rows .footer-row:nth-child(1) {
  animation-delay: 0.08s;
}
.footer-plate.is-entered .footer-rows .footer-row:nth-child(2) {
  animation-delay: 0.14s;
}
.footer-plate.is-entered .footer-rows .footer-row:nth-child(3) {
  animation-delay: 0.2s;
}

.footer-row address {
  font-style: normal;
  margin: 0;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.footer-row__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  margin: 0 -0.5rem;
  transition:
    color 0.25s ease,
    background 0.35s var(--ease-dock);
}

.footer-row__text {
  line-height: 1.35;
}

.footer-row__link:hover {
  color: var(--link);
  background: rgba(0, 122, 255, 0.07);
  text-decoration: none;
}

.footer-row__link:hover .footer-icon {
  transform: scale(1.06) translateY(-2px);
}

.footer-row__link:active .footer-icon {
  transform: scale(0.96);
}

.footer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #3b9dff, #007aff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--ease-dock);
}

.footer-icon--time {
  width: 34px;
  height: 34px;
}

.footer-icon--blue {
  background: linear-gradient(145deg, #3b9dff, #007aff 50%, #5856d6);
}

.footer-icon--orange {
  background: linear-gradient(145deg, #ffb340, #ff6b00 50%, #e85d04);
}

.footer-icon--green {
  background: linear-gradient(145deg, #65eb85, #248a3d 50%, #1e7a34);
}

.footer-icon--purple {
  background: linear-gradient(145deg, #d183ff, #af52de 50%, #7d47c9);
}

.footer-hours ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 0.5px solid var(--separator-opaque);
}

.footer-hours li:last-child {
  border-bottom: none;
}

.footer-madrid {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.025);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
}

.footer-madrid__copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.footer-madrid__time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.footer-madrid__zone {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.footer-bottom {
  padding: 0.9rem 1.35rem 1.05rem;
  display: flex;
  justify-content: center;
  text-align: center;
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(229, 229, 234, 0.55) 100%);
  border-radius: 0 0 calc(var(--radius-sheet) + 2px) calc(var(--radius-sheet) + 2px);
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer-bottom__copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-tertiary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 11px;
  line-height: 1.35;
}

.footer-legal a {
  color: var(--link);
  text-decoration: none;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.25s var(--ease-dock);
}

.footer-legal a:hover {
  color: var(--accent-hover);
  background: rgba(0, 122, 255, 0.08);
  text-decoration: none;
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--btn-ring);
  outline-offset: 2px;
}

.footer-legal__sep {
  color: var(--text-tertiary);
  user-select: none;
}

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

@keyframes footerStatusPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Reveal — dock-matched motion */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition:
    opacity 0.9s var(--ease-dock),
    transform 0.9s var(--ease-dock),
    filter 0.9s var(--ease-dock);
  filter: blur(6px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.feature-block__window.is-visible .mac-window__motion,
.split-layout__media.is-visible .mac-window__motion {
  animation: windowScrollIn 0.95s var(--ease-dock) both;
}

@keyframes windowScrollIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* Active section — sync with dock scroll spy */
[data-section] {
  transition: opacity 0.5s var(--ease-dock);
}

[data-section].is-section-active .section-head__eyebrow {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 12px rgba(0, 122, 255, 0.15);
  transform: scale(1.04);
  transition: transform 0.45s var(--ease-dock), box-shadow 0.45s var(--ease-dock);
}

[data-section].is-section-active .mac-window,
[data-section].is-section-active .settings-group,
[data-section].is-section-active .contact-sheet.is-visible,
[data-section].is-section-active .container > .glass-plate.is-visible {
  box-shadow:
    var(--window-shadow-hover),
    0 0 0 1px rgba(0, 122, 255, 0.08);
}

@media (min-width: 768px) {
  :root {
    --header-h: var(--topbar-h);
  }

  body.has-dock {
    padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0));
  }

  body.has-dock.dock-collapsed {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0));
  }

  .hero {
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 4.5rem;
  }

  .widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .glass-plate--stack .widget-grid {
    grid-template-columns: 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .split-layout--reverse .split-layout__media {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 0 2rem;
    padding: 1.75rem 1.85rem 1.4rem;
    align-items: start;
  }

  .footer-brand {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    padding-right: 0.5rem;
  }

  .footer-col {
    padding: 0;
    border-bottom: none;
  }

  .footer-col + .footer-col {
    padding-left: 1.5rem;
    border-left: 0.5px solid var(--separator-opaque);
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }

  .feature-block {
    padding: 5.5rem 0;
  }
}

/* Approach page — glass plates + aligned grids */
.approach-page {
  padding-bottom: 1rem;
}

.approach-section:first-of-type {
  padding-top: calc(var(--header-h) + 2.25rem);
}

.approach-section {
  padding: 2.75rem 0;
}

.approach-section .container > .glass-plate {
  width: 100%;
}

.approach-masthead__surface {
  text-align: left;
}

.approach-masthead__grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.approach-masthead__title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--text-primary);
}

.approach-masthead__deck {
  margin: 0;
  max-width: 38rem;
  font-size: 18px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.approach-inset {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.approach-fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.approach-fact-list__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

.approach-fact-list__value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
}

.approach-band {
  margin: 0;
}

.approach-band__surface {
  padding: 1.15rem;
}

.approach-band__media {
  overflow: hidden;
  border-radius: 12px;
  background: #e8e8ed;
}

.approach-band__media img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
}

.approach-band__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 0.85rem 0.15rem 0;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.approach-band__caption-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.approach-passage__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.approach-passage__head .section-head__title,
.approach-passage__head .section-head__lead {
  margin-inline: auto;
}

.approach-passage__layout {
  display: grid;
  gap: 1rem;
  margin-top: 0.25rem;
}

.approach-passage__rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.approach-passage__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 42px;
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--ease-dock);
}

.approach-passage__tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.25);
}

.approach-passage__tab.is-active {
  color: #fff;
  border-color: rgba(0, 58, 140, 0.35);
  background: linear-gradient(180deg, var(--btn-primary-top), var(--btn-primary-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(0, 113, 255, 0.22);
}

.approach-passage__tab-num {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

.approach-passage__panels {
  position: relative;
  min-height: 18rem;
}

.approach-passage__panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: approachPanelIn 0.55s var(--ease-dock) both;
}

.approach-passage__panel[hidden] {
  display: none;
}

.approach-passage__panel-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.approach-passage__panel-copy p {
  margin: 0 0 0.75rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.approach-passage__panel-copy ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.approach-passage__panel-copy li {
  margin-bottom: 0.35rem;
}

.approach-passage__panel-media {
  overflow: hidden;
  border-radius: 12px;
  background: #f5f5f7;
}

.approach-passage__panel-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.approach-principles .section-head--in-plate {
  margin-bottom: 1.35rem;
}

.approach-principles .section-head__lead {
  max-width: 32rem;
  margin-inline: auto;
}

.approach-principles__grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.approach-principle {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.15rem 1.15rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.approach-principle__mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #3b9dff, #007aff 55%, #5856d6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 10px rgba(0, 122, 255, 0.22);
}

.approach-principle__title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.approach-principle__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.approach-principles__quote {
  margin: 0;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  text-align: center;
  background: rgba(0, 122, 255, 0.06);
  border: 0.5px solid rgba(0, 122, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.approach-principles__quote p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.38;
  color: var(--text-primary);
}

.approach-principles__quote footer {
  margin-top: 0.55rem;
  font-size: 12px;
  font-style: normal;
  color: var(--text-tertiary);
}

.approach-principle--metric {
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  text-align: center;
}

.approach-principle__metric-label {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.approach-principle__metric-value {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.approach-principle__metric-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.42857;
  color: var(--text-secondary);
}

.approach-contrast .section-head {
  margin-bottom: 1.15rem;
}

.approach-contrast__table-wrap {
  overflow-x: auto;
  margin-top: 0.25rem;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.approach-contrast__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.42857;
}

.approach-contrast__table th,
.approach-contrast__table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.approach-contrast__table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(245, 245, 247, 0.85);
}

.approach-contrast__table tr:last-child td {
  border-bottom: none;
}

.approach-contrast__table td:first-child {
  color: var(--text-tertiary);
  width: 42%;
}

.approach-contrast__table td:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.approach-closer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  text-align: left;
}

.approach-closer__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.024em;
}

.approach-closer__text {
  margin: 0;
  max-width: 36rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

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

@media (min-width: 768px) {
  .approach-section {
    padding: 3.25rem 0;
  }

  .approach-masthead__grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 2rem;
  }

  .approach-band__surface {
    padding: 1.35rem 1.45rem 1.4rem;
  }

  .approach-passage__layout {
    grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .approach-passage__rail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .approach-passage__tab {
    justify-content: flex-start;
    width: 100%;
    border-radius: 11px;
  }

  .approach-passage__panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 1.35rem;
    padding: 1.35rem;
  }

  .approach-passage__panel-media img {
    min-height: 14rem;
  }

  .approach-principles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }

  .approach-principles__quote,
  .approach-principle--metric {
    grid-column: 1 / -1;
  }

  .approach-principle {
    min-height: 100%;
  }

  .approach-principle--metric {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    padding: 1.2rem 1.35rem;
  }

  .approach-principle__metric-main {
    flex-shrink: 0;
  }

  .approach-principle__metric-note {
    max-width: 22rem;
  }

  .approach-closer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .approach-closer__copy {
    max-width: 36rem;
  }
}

@media (min-width: 1024px) {
  .approach-section:first-of-type {
    padding-top: calc(var(--header-h) + 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .approach-passage__panel {
    animation: none;
  }
}

/* About page */
.about-page {
  padding-bottom: 1rem;
}

.about-section {
  padding: 2.75rem 0;
}

.about-section:first-of-type {
  padding-top: calc(var(--header-h) + 2.25rem);
}

.about-section .container > .glass-plate {
  width: 100%;
}

.about-cover__title {
  margin: 0 auto 0.85rem;
  max-width: 22ch;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.about-cover__lead {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 18px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-origin__layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.about-origin__figure {
  margin: 0;
}

.about-origin__media-wrap {
  padding: 0.85rem;
}

.about-origin__media-wrap img {
  display: block;
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-origin__copy {
  text-align: left;
  height: 100%;
}

.about-origin__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.028em;
}

.about-origin__copy p {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-origin__copy p:last-child {
  margin-bottom: 0;
}

.about-chronicle .section-head {
  margin-bottom: 1.35rem;
}

.about-chronicle__track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.about-chronicle__stop {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.about-chronicle__stop:last-child {
  border-bottom: none;
}

.about-chronicle__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--accent);
}

.about-chronicle__event {
  margin: 0;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-practice .section-head {
  margin-bottom: 1.5rem;
}

.about-practice__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.about-practice__media {
  overflow: hidden;
  border-radius: 11px;
  margin-bottom: 0.85rem;
  background: #e8e8ed;
}

.about-practice__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-practice__name {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-practice__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-prose p {
  margin: 0 0 0.9rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.about-prose p:last-child {
  margin-bottom: 0;
}

.about-audience .section-head,
.about-collaboration .section-head {
  margin-bottom: 1.35rem;
}

.about-audience__grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.about-audience__aside {
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.about-audience__aside-title {
  margin: 0 0 0.75rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.about-audience__profiles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.about-audience__profiles li {
  display: grid;
  gap: 0.25rem;
}

.about-audience__profiles strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.about-audience__profiles span {
  font-size: 13px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-collaboration__stack {
  display: grid;
  gap: 0.75rem;
}

.about-collaboration__block {
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.about-collaboration__block h3 {
  margin: 0 0 0.55rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.about-collaboration__block p {
  margin: 0 0 0.75rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.about-collaboration__block p:last-child {
  margin-bottom: 0;
}

.about-dossier .section-head {
  margin-bottom: 1rem;
}

.about-dossier__list {
  margin: 0;
  padding: 0;
}

.about-dossier__row {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.07);
}

.about-dossier__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-dossier__row dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.about-dossier__row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.about-dossier__row dd a {
  font-weight: 600;
}

.about-continue__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}

.about-continue__copy {
  width: 100%;
  max-width: 28rem;
}

.about-continue__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.024em;
}

.about-continue__text {
  margin: 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.about-continue__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 18.5rem);
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .about-section {
    padding: 3.25rem 0;
  }

  .about-section:first-of-type {
    padding-top: calc(var(--header-h) + 2.75rem);
  }

  .about-origin__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.15rem;
  }

  .about-chronicle__track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 14px;
  }

  .about-chronicle__stop {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    height: 100%;
    border-bottom: none;
    border-right: 0.5px solid rgba(0, 0, 0, 0.06);
    padding: 1.1rem 1rem;
  }

  .about-chronicle__stop:last-child {
    border-right: none;
  }

  .about-practice__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }

  .about-practice__item {
    height: 100%;
  }

  .about-practice__item .glass-plate {
    height: 100%;
  }

  .about-practice__item .glass-plate__surface {
    height: 100%;
  }

  .about-audience__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 1.35rem;
  }

  .about-collaboration__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .about-dossier__row {
    grid-template-columns: 11rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }

  .about-continue__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .about-continue__copy {
    max-width: 36rem;
  }

  .about-continue__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
}

/* Services page */
.services-page {
  padding-bottom: 2rem;
}

.services-catalog {
  padding: calc(var(--header-h) + 2.25rem) 0 4rem;
}

.services-catalog .section-head {
  margin-bottom: 1.5rem;
}

.services-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.service-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 0.45s var(--ease-dock), box-shadow 0.45s var(--ease-dock);
}

.service-card__inner:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 32px rgba(0, 0, 0, 0.08);
}

.service-card__media {
  background: #e8e8ed;
}

.service-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1.1rem 1.1rem 1.15rem;
  text-align: left;
}

.service-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-card__teaser {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.47059;
  color: var(--text-secondary);
}

.service-card__body .btn {
  align-self: flex-start;
  margin-top: 0.15rem;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 225;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding:
    max(0.75rem, env(safe-area-inset-top, 0))
    max(0.75rem, env(safe-area-inset-right, 0))
    max(0.75rem, env(safe-area-inset-bottom, 0))
    max(0.75rem, env(safe-area-inset-left, 0));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-dock),
    visibility 0.45s;
}

.service-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.service-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(15, 15, 20, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.service-modal__panel {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: min(32rem, 100%);
  margin: 0 auto;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.5s var(--ease-dock);
  touch-action: pan-y;
}

.service-modal.is-visible .service-modal__panel {
  transform: translateY(0) scale(1);
}

.service-modal__plate {
  padding: 5px;
  border-radius: 18px;
  background: var(--glass-chrome);
  border: 1px solid #c7c7cc;
  box-shadow:
    var(--window-shadow),
    0 18px 48px rgba(0, 0, 0, 0.2);
}

.service-modal__surface {
  border-radius: 13px;
  overflow: clip;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.service-modal__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8e8ed;
}

.service-modal__content {
  padding: 1.15rem 1.2rem 1.2rem;
  text-align: left;
}

.service-modal__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.service-modal__body p {
  margin: 0 0 0.75rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.service-modal__body p:last-child {
  margin-bottom: 0;
}

.service-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .service-modal {
    align-items: center;
    overflow-y: hidden;
  }

  .service-modal__panel {
    max-height: min(
      92dvh,
      calc(
        100dvh - max(0.75rem, env(safe-area-inset-top, 0)) - max(0.75rem, env(safe-area-inset-bottom, 0))
      )
    );
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

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

@media (min-width: 768px) {
  .service-modal {
    align-items: center;
    overflow-y: hidden;
  }

  .service-modal__panel {
    max-height: min(92dvh, 44rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 1024px) {
  .services-catalog {
    padding-top: calc(var(--header-h) + 2.75rem);
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .service-modal__panel {
    width: min(36rem, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-modal,
  .service-modal__panel,
  .service-card__inner {
    transition: none;
  }
}
