@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/PlayfairDisplay-Italic.ttf") format("truetype");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Philosopher;
  src: url("../fonts/Philosopher-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Philosopher;
  src: url("../fonts/Philosopher-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Philosopher;
  src: url("../fonts/Philosopher-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Philosopher;
  src: url("../fonts/Philosopher-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1a2744;
  --ink-soft: #2c3b5c;
  --gold: #a9843f;
  --gold-bright: #c4a05a;
  --gold-deep: #8b6b30;
  --cream: #f3efe6;
  --cream-deep: #e8e1d2;
  --paper: #f7f3eb;
  --line: rgba(26, 39, 68, 0.12);
  --font-brand: "Playfair Display", Georgia, serif;
  --font-display: Philosopher, Georgia, serif;
  --font-body: Manrope, "Segoe UI", sans-serif;
  --top-h: 6.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto !important;
  overflow-x: hidden;
  overflow-y: scroll;
  overflow-anchor: none;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis-stopped {
  overflow: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--cream);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Shared brand lockup ——— */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand__seal {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-brand);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.brand__tag {
  font-family: var(--font-brand);
  font-weight: 500;
  font-style: italic;
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: lowercase;
}

.brand--sm .brand__logo {
  width: auto;
  height: 6.7rem;
  object-fit: contain;
  background: transparent;
}

.brand--sm .brand__seal {
  width: 2.7rem;
  height: 3.35rem;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

.brand--sm .brand__seal--figure {
  width: 2.7rem;
  height: 3.35rem;
}

.brand--sm .brand__name {
  font-size: 1.42rem;
}

.brand--sm .brand__tag {
  font-size: 0.62rem;
  padding-top: 0.12rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  width: fit-content;
}

.brand--hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  width: 100%;
}

.brand--hero .brand__seal {
  width: min(100%, 304px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent),
    0 16px 36px rgba(26, 39, 68, 0.12);
}

.brand--hero .brand__text {
  align-items: center;
  gap: 0.3rem;
}

/* ——— Classic brand lockup (saved) ——— */
.brand--hero.brand--classic .brand__name {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.86rem, 2.76vw, 2.35rem);
  letter-spacing: 0.05em;
}

.brand--hero.brand--classic .brand__tag {
  font-family: var(--font-brand);
  font-weight: 500;
  font-style: italic;
  font-size: 0.97rem;
  letter-spacing: 0.18em;
  padding-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
}

/* ——— Alt brand lockup: Philosopher (heading font) ——— */
.brand--hero.brand--alt {
  gap: 0.55rem;
}

.brand--hero.brand--alt .brand__seal {
  width: min(100%, 280px);
}

.brand--hero.brand--alt .brand__text {
  gap: 0.55rem;
  margin-top: -0.15rem;
}

.brand--hero.brand--alt .brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.95rem, 2.9vw, 2.55rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
}

.brand--hero.brand--alt .brand__tag {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  padding-top: 0;
  border-top: 0;
  position: relative;
}

.brand--hero.brand--alt .brand__tag::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 0 auto 0.55rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 0 0 transparent;
  position: relative;
}

.brand--hero.brand--alt .brand__tag::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: 50%;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.works--alt {
  justify-self: stretch;
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  padding-top: 0;
  border-top: 0;
}

.works--alt .works__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  letter-spacing: 0.02em;
  text-align: left;
  margin: 0 0 1.1rem;
}

.works--alt .works__label::after {
  width: 3.5rem;
  height: 2px;
  margin: 0.7rem 0 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* ——— Top menu ——— */
.top {
  position: relative;
  z-index: 40;
  height: var(--top-h);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}

.top.is-open {
  background: var(--paper);
}

.top__bar {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
}

.top__bar > .brand {
  justify-self: start;
}

.top__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.top__nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.top__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.top__nav a:hover,
.top__nav a:focus-visible {
  color: var(--ink);
}

.top__nav a:hover::after,
.top__nav a:focus-visible::after {
  transform: scaleX(1);
}

.top__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: end;
}

.top__burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.top__burger span {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.top.is-open .top__burger span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.top.is-open .top__burger span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.btn--solid {
  background: var(--ink);
  color: var(--cream);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold);
  color: var(--ink);
}

.btn--lg {
  min-height: 3.1rem;
  padding: 0.8rem 1.45rem;
  font-size: 0.95rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--top-h));
  display: flex;
  align-items: center;
  overflow: visible;
  padding:
    clamp(1.5rem, 4vw, 3rem)
    0
    clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(120% 80% at 50% 12%, #fffaf1 0%, transparent 52%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 55%, var(--cream-deep) 100%);
}

.hero__paper,
.hero__wash {
  display: none;
}

.hero__layout {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(1.75rem, 3.5vw, 3.75rem);
  padding: 0 clamp(1.25rem, 3.5vw, 4rem);
}

.hero__aside {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  align-content: start;
}

.works {
  width: 100%;
  max-width: 24rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.works__label {
  margin: 0 0 1rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-align: center;
  position: relative;
}

.works__label::after {
  content: "";
  display: block;
  width: 3.2rem;
  height: 1px;
  margin: 0.55rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.works__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.works__list li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 42%),
    color-mix(in srgb, #fff 50%, var(--cream));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.works__list li:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.08);
}

.works__list li:hover .works__icon {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  color: var(--gold);
}

.works__list li::before {
  display: none;
}

.works__icon {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--gold) 72%, #cbb98a);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, #fff 55%, var(--cream));
}

.works__icon svg {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
}

.works__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.works__num {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.works__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.works__desc {
  font-size: 0.78rem;
  line-height: 1.3;
  color: color-mix(in srgb, var(--ink-soft) 85%, transparent);
}

.hero__copy {
  display: grid;
  gap: 1.15rem;
  align-content: start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero__title {
  margin: 0;
  display: grid;
  gap: 0.6rem;
  line-height: 1.12;
  text-transform: none;
  max-width: 100%;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.1vw, 2.75rem);
  letter-spacing: 0.03em;
  line-height: 1.18;
  color: var(--ink);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__title-line--accent {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--gold-deep);
  text-transform: none;
}

.hero__arrow {
  color: var(--gold);
  margin-right: 0.35em;
  font-weight: 700;
}

.hero__greet {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
}

.hero__body {
  display: grid;
  gap: 1rem;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.hero__body p {
  margin: 0;
}

.quote {
  position: relative;
  margin: 0.35rem 0 0;
  padding: 1.15rem 1.25rem 1.15rem 1.35rem;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--gold) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--cream) 72%, #fff);
  display: grid;
  gap: 0.85rem;
}

.quote__mark {
  position: absolute;
  top: -0.35rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--gold) 55%, transparent);
  pointer-events: none;
}

.quote__text {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.quote__text p {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}

.quote__by {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.quote__avatar {
  width: auto;
  height: 4.4rem;
  object-fit: contain;
}

.quote__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.1;
}

.quote__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.quote__role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--gold-deep);
}

.hero__term {
  display: block;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: normal;
  color: var(--ink);
}

.hero__why {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.hero__why-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero__why-title::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

.hero__why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.hero__why-list li {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  align-items: start;
  gap: 0.85rem;
  margin: 0;
  padding: 0.9rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 48%),
    color-mix(in srgb, #fff 52%, var(--cream));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero__why-list li:hover {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  box-shadow: 0 10px 24px rgba(26, 39, 68, 0.08);
}

.hero__why-list li:hover .hero__why-icon {
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  color: var(--gold);
}

.hero__why-list-item--wide {
  grid-column: 1 / -1;
}

.hero__why-icon {
  width: 3.1rem;
  height: 3.1rem;
  display: grid;
  place-items: center;
  flex: none;
  color: color-mix(in srgb, var(--gold) 72%, #cbb98a);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  background: color-mix(in srgb, #fff 55%, var(--cream));
}

.hero__why-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

.hero__why-text {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.hero__why-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hero__why-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}

@media (max-width: 720px) {
  .hero__why-list {
    grid-template-columns: 1fr;
  }

  .hero__why-list-item--wide {
    grid-column: auto;
  }
}

.hero__bridge {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.hero__bridge p {
  margin: 0;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.hero__next {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  color: color-mix(in srgb, var(--gold) 78%, #cbb98a);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero__next-arrow {
  width: clamp(7.5rem, 16vw, 10rem);
  height: auto;
  display: block;
  animation: hero-next-breathe 2.4s ease-in-out infinite;
}

.hero__next:hover,
.hero__next:focus-visible {
  color: var(--gold-deep);
}

.hero__next:hover .hero__next-arrow,
.hero__next:focus-visible .hero__next-arrow {
  animation: none;
  transform: translateY(3px);
  transition: transform 0.2s ease;
}

@keyframes hero-next-breathe {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__next-arrow {
    animation: none;
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.process {
  width: 100%;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 3.5vw, 4rem);
  background: color-mix(in srgb, var(--cream-deep) 55%, var(--paper));
  border-top: 1px solid var(--line);
}

.process__inner {
  max-width: 720px;
}

.process__note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .hero__layout {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .hero__aside {
    position: static;
    justify-items: stretch;
    gap: 1.15rem;
  }

  .brand--hero {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    gap: 0.85rem;
  }

  .brand--hero .brand__seal {
    width: clamp(122px, 30vw, 166px);
  }

  .brand--hero .brand__text {
    align-items: flex-start;
  }

  .brand--hero .brand__name {
    font-size: clamp(1.73rem, 5.5vw, 2.14rem);
  }

  .brand--hero .brand__tag {
    font-size: 0.94rem;
  }

  .works {
    max-width: none;
  }
}

@media (max-width: 920px) {
  .top__bar {
    grid-template-columns: 1fr auto;
  }

  .top__nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(26, 39, 68, 0.08);
  }

  .top.is-open .top__nav {
    display: flex;
  }

  .top__nav a {
    padding: 0.9rem 0.35rem;
    border-bottom: 1px solid var(--line);
  }

  .top__nav a:last-child {
    border-bottom: 0;
  }

  .top__actions .btn--ghost {
    display: none;
  }

  .top__burger {
    display: inline-grid;
  }

  .brand--sm .brand__tag {
    display: none;
  }
}

@media (max-width: 560px) {
  .top__actions .btn--solid {
    display: none;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }
}

/* ——— Scroll to top ——— */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 50;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 92%, #fff);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(26, 39, 68, 0.14);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.to-top svg {
  width: 1.15rem;
  height: 1.15rem;
}
