@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Oswald:wght@400;500;600;700&family=Archivo:wght@400;600&display=swap');

:root {
  --bg: #f1ebdd;
  --bg-alt: #e9e2d0;
  --ink: #17140f;
  --muted: #5a564c;
  --accent: #0a6c4f;
  --accent-ink: #f1ebdd;
  --swatch: #e2ddd0;
  /* always-dark chrome (nav, footer, hero video overlay) - constant across themes */
  --chrome-bg: #17140f;
  --chrome-text: #f1ebdd;
}

:root[data-theme="dark"] {
  --bg: #17140f;
  --bg-alt: #211d15;
  --ink: #f1ebdd;
  --muted: #a49d8b;
  --accent: #17b585;
  --accent-ink: #0c1210;
  --swatch: #2a2519;
}

body {
  transition: background-color 0.2s ease, color 0.2s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#top, #work, #about, #contact {
  scroll-margin-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  padding-inline: 24px;
  padding-top: 76px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: none; margin: 0 auto; }

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

h1, h2 {
  font-family: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.mono {
  font-family: "Oswald", sans-serif;
}

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stamp {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 5px 12px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.hit {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 10px;
}

/* ---------- nav ---------- */
nav.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--chrome-bg);
  padding-inline: 24px;
  border-bottom: 9px solid var(--accent);
}

.nav-inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.wordmark {
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--chrome-text);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.wordmark .mark {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.navlinks {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome-text);
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.navlinks a:hover { opacity: 1; color: var(--accent); }

@media (max-width: 480px) {
  .wordmark { font-size: 17px; gap: 8px; }
  .wordmark .mark { height: 19px; }
  .navlinks { gap: 16px; }
  .navlinks a { font-size: 11px; }
}

/* ---------- hero (video background) ---------- */
.hero-video {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-bottom: 6px solid var(--chrome-bg);
  margin-inline: -24px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--chrome-bg);
}

.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 20, 15, 0.5) 0%, rgba(23, 20, 15, 0.3) 40%, rgba(23, 20, 15, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 24px 100px;
}

.hero-content .stamp {
  color: var(--chrome-text);
  border-color: var(--chrome-text);
  background: rgba(23, 20, 15, 0.35);
  backdrop-filter: blur(3px);
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--chrome-text);
  font-size: clamp(38px, 7vw, 88px);
  max-width: 15ch;
  margin: 0 0 24px;
}

.hero-content p {
  max-width: 48ch;
  color: rgba(241, 235, 221, 0.85);
  font-size: 18px;
  margin: 0;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--chrome-text);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.scroll-cue:hover { opacity: 1; color: var(--accent); }

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 34px;
  background: rgba(241, 235, 221, 0.4);
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-cue-drop 1.8s ease-in-out infinite;
}

@keyframes scroll-cue-drop {
  0% { top: -100%; }
  55% { top: 100%; }
  100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-line::after { animation: none; top: 0; }
}

@media (max-width: 640px) {
  .hero-content { padding: 48px 20px 84px; }
  .hero-content h1 { font-size: clamp(32px, 10vw, 56px); }
  .scroll-cue { display: none; }
}

/* ---------- work list (homepage) ---------- */
section.work {
  border-bottom: 6px solid var(--ink);
  margin-inline: -24px;
  padding-inline: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-block: 28px 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 32px;
  border-bottom: 6px solid var(--accent);
  padding-bottom: 6px;
  display: inline-block;
}

.count {
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr 200px;
  align-items: center;
  border-top: 3px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  margin-inline: -24px;
  padding-inline: 24px;
}
.work-row:last-child { border-bottom: 3px solid var(--ink); }

.work-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.work-row:hover { background: var(--bg-alt); }
.work-row:hover::before { width: 7px; }

.work-idx {
  font-family: "Archivo Black", sans-serif;
  font-size: 42px;
  padding: 28px 16px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.work-row:hover .work-idx { transform: translateX(4px); }

.work-title {
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-title h3 {
  font-size: 27px;
  transition: color 0.15s ease;
}
.work-row:hover .work-title h3 { color: var(--accent); }

.work-title h3::after {
  content: "\2192";
  display: inline-block;
  margin-left: 12px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.work-row:hover .work-title h3::after {
  opacity: 1;
  transform: translateX(0);
}

.work-title .cat {
  display: inline-block;
  align-self: flex-start;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-thumb { padding: 18px; overflow: hidden; }
.work-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 3px solid var(--ink);
  transition: transform 0.3s ease;
}
.work-row:hover .work-thumb img { transform: scale(1.08); }

@media (max-width: 640px) {
  .work-row { grid-template-columns: 68px 1fr; }
  .work-thumb { display: none; }
  .work-idx { font-size: 34px; padding: 26px 4px 26px 18px; }
  .work-title { padding: 26px 16px 26px 10px; gap: 8px; }
  .work-title h3 { font-size: 24px; }

  /* hover-only cues don't fire on touch, so make the accent treatment
     always-visible instead of hover-revealed */
  .work-row::before { width: 6px; }
  .work-title h3::after { opacity: 1; transform: none; color: var(--accent); }
  .work-row:active { background: var(--bg-alt); }
  .work-row:active .work-idx { transform: translateX(2px); }
}

@media (max-width: 420px) {
  .work-row { grid-template-columns: 58px 1fr; }
  .work-idx { font-size: 28px; padding: 22px 2px 22px 14px; }
  .work-title { font-size: 21px; padding-left: 8px; }
  .work-title h3 { font-size: 21px; }
}

/* ---------- card / frame grids (galleries, hub sections) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}

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

.card { display: block; text-decoration: none; color: inherit; }

.frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--swatch);
  border: 3px solid var(--ink);
  transition: background 0.15s ease;
}

.card:hover .frame, a:hover .frame { background: color-mix(in srgb, var(--swatch) 75%, var(--accent) 25%); }

.frame.video-embed {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.frame.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.card:hover .frame.video-embed { background: #000; }

.frame .idx {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.frame .ratio {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  gap: 12px;
}

.card .cat {
  display: inline-block;
  border: 1.5px solid var(--ink);
  padding: 2px 8px;
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card .meta .year {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.meta.title-row {
  gap: 16px;
}

.meta.title-row h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.card h3 {
  font-size: 17px;
  margin-top: 6px;
}

.services {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
}

.services-list {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0;
}

/* ---------- about ---------- */
section.about {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-bottom: 6px solid var(--ink);
  margin-inline: -24px;
}

.about-rail {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-rail span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.1em;
  padding-block: 20px;
}

.about-body {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 44px 60px 44px 60px;
}

.about-photo {
  flex: 0 0 200px;
  width: 200px;
}
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.about-text { flex: 1; min-width: 0; }
.about-text p { max-width: 60ch; color: var(--ink); margin: 0 0 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text .role {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

@media (max-width: 640px) {
  section.about { grid-template-columns: 1fr; }
  .about-rail { padding-block: 14px; }
  .about-rail span { writing-mode: horizontal-tb; transform: none; }
  .about-body { flex-direction: column; padding: 28px 44px; gap: 24px; }
  .about-photo { width: 160px; flex-basis: auto; }
}

/* ---------- contact ---------- */
section.contact {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 48px 24px;
  border-bottom: 6px solid var(--ink);
  margin-inline: -24px;
}

section.contact h2 {
  font-size: clamp(30px, 5vw, 54px);
  max-width: 13ch;
  margin: 0 0 26px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

@media (min-width: 641px) {
  section.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  section.contact h2 { margin: 0; max-width: 11ch; }

  .contact-row { flex: 0 0 auto; }
}

.email-btn {
  font-family: "Oswald", sans-serif;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
}

/* ---------- footer ---------- */
footer.site {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 48px;
  margin-inline: -24px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chrome-text);
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.footer-link:hover { opacity: 1; color: var(--accent); }

/* ---------- 404 ---------- */
.not-found {
  padding-block: 90px 110px;
  border-bottom: 6px solid var(--ink);
  margin-inline: -24px;
  padding-inline: 24px;
}

.not-found-code {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(90px, 18vw, 200px);
  line-height: 0.85;
  color: var(--accent);
  margin: 6px 0 4px;
}

.not-found h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  max-width: 16ch;
  margin: 0 0 16px;
}

.not-found p {
  color: var(--muted);
  max-width: 50ch;
  font-size: 17px;
  margin: 0 0 32px;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 22px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.home-btn:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .not-found { padding-block: 56px 72px; }
}

/* ---------- project subpage ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.back-link:hover { opacity: 1; color: var(--accent); }

header.project-hero {
  padding-block: 40px 40px;
  border-bottom: 6px solid var(--ink);
}

header.project-hero .back-link { margin-bottom: 24px; }

header.project-hero h1 {
  font-size: clamp(30px, 4.5vw, 60px);
  margin: 8px 0 28px;
  max-width: 18ch;
}

header.project-hero p {
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 3px solid var(--ink);
  margin-top: 8px;
}

.project-meta div {
  padding: 16px 24px 0 0;
  margin-right: 24px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.project-meta div:last-child { border-right: none; margin-right: 0; }

.project-meta .label {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta .value {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
}

section.project-media { padding-block: 40px 0; }

.frame.main {
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-width: 4px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .project-gallery { grid-template-columns: 1fr; }
}

.project-gallery .frame { aspect-ratio: 3 / 2; }

section.project-body { padding-block: 32px 48px; }
.project-body p { max-width: 62ch; color: var(--ink); margin: 0 0 16px; }
.project-body p:last-child { margin-bottom: 0; }

.project-pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px 48px;
  border-top: 3px solid var(--ink);
  flex-wrap: wrap;
}

.project-pager a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  max-width: 240px;
  color: inherit;
}

.project-pager .next { text-align: right; margin-left: auto; align-items: flex-end; }

.project-pager .pager-label {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-pager .pager-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
}

.project-pager a:hover .pager-title { color: var(--accent); }

/* ---------- hub sections (Music page) ---------- */
.section-block { padding-block: 48px; }
.section-block + .section-block { border-top: 3px solid var(--ink); }

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

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

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

.masonry {
  column-count: 3;
  column-gap: 28px;
}

@media (min-width: 1400px) {
  .masonry { column-count: 4; }
}

@media (max-width: 860px) {
  .masonry { column-count: 2; }
}

@media (max-width: 640px) {
  .masonry { column-count: 1; }
}

.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 32px;
  border: 3px solid var(--ink);
  background: var(--swatch);
  overflow: hidden;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

.frame.vertical { aspect-ratio: 9 / 16; }

.frame.wide { aspect-ratio: 16 / 9; }

.frame.video-embed.embed-4x3 { aspect-ratio: 4 / 3; }

/* ---------- custom cursor dot ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  will-change: transform;
}

.cursor-dot.is-active { opacity: 1; }

.cursor-dot.is-hover {
  width: 30px;
  height: 30px;
  background: color-mix(in srgb, var(--accent) 70%, transparent);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px solid var(--chrome-bg);
  background: var(--chrome-bg);
  color: var(--chrome-text);
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.theme-toggle:active { transform: translateY(0); }

.theme-toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.theme-toggle-label { white-space: nowrap; }

@media (max-width: 480px) {
  .theme-toggle {
    bottom: 16px;
    right: 16px;
    padding: 10px 15px;
    font-size: 10px;
    gap: 7px;
  }
}

/* ---------- scroll to top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--chrome-bg);
  background: var(--chrome-bg);
  color: var(--chrome-text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.15s ease;
}

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

.scroll-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.scroll-top.is-visible:active { transform: translateY(0); }

.scroll-top svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 480px) {
  .scroll-top {
    bottom: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
  }
}
