:root {
  --bg: #eaeaea;
  --bg-soft: #e1e1e1;
  --ink: #111;
  --muted: #5a5a5a;
  --line: rgba(17, 17, 17, 0.12);
  --white: #f7f7f7;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: Inter, system-ui, sans-serif;
  --max: 100rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: break-word;
}

.container {
  width: min(calc(100% - 48px), 92rem);
  margin-inline: auto;
}

/* Header — overlays content like kommakomma.is */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.brand-word {
  font-family: "Playfair Display", var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .brand-word {
    font-size: 0.95rem;
    max-width: 11ch;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  background: #fff;
  color: #111;
}

.btn svg { width: 16px; height: 16px; }
.btn-dark { background: #111; color: #fff; }
.btn-line { background: transparent; border-color: currentColor; }

body.is-home .site-header,
body.is-home .brand,
body.is-home .menu-toggle {
  color: #fff;
}

body.is-home .site-header .brand-mark,
.overlay-nav .brand-mark {
  filter: brightness(0) invert(1);
}

body.is-home .btn-cta {
  background: #fff;
  color: #111;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0;
}

body.is-home .menu-toggle {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.75px;
  background: currentColor;
}

/* Overlay nav */
.overlay-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #111;
  color: #f3f3f3;
  display: none;
  padding: 28px 32px 40px;
  overflow: auto;
}

.overlay-nav.open { display: grid; align-content: space-between; }

.overlay-nav__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overlay-nav__close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.overlay-nav__list {
  list-style: none;
  margin: 4vh 0 0;
  padding: 0;
}

.overlay-nav__list a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 5.5vw, 4.6rem);
  line-height: 1.08;
  padding: 1px 0;
}

.overlay-nav__list a[aria-current="page"] { opacity: 0.4; }

.ig-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
}

.ig-link svg {
  width: 18px;
  height: 18px;
}

body.is-home .header-actions .ig-link {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

body:not(.is-home) .header-actions .ig-link {
  background: rgba(17, 17, 17, 0.08);
}

.ig-link--footer {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f3f3;
}

.ig-link--inline {
  width: 1.15em;
  height: 1.15em;
  display: inline-flex;
  vertical-align: -0.15em;
  margin-left: 6px;
  background: transparent;
}

.ig-link--inline svg {
  width: 100%;
  height: 100%;
}

.overlay-nav__bottom {
  display: grid;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #bdbdbd;
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .overlay-nav__bottom { grid-template-columns: 1fr 1fr 1fr; }
}

body.nav-open { overflow: hidden; }

/* Home hero */
.home-hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #26CED9;
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.home-hero__copy {
  position: absolute;
  left: 22px;
  bottom: max(32px, env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 2;
  margin: 0;
  color: #fff;
  max-width: 14em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.home-hero__kicker {
  display: block;
  font-size: clamp(0.751rem, 1.5vw, 1.00rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 10px;
  white-space: nowrap;
}

.home-hero__line {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .home-hero__copy {
    left: 32px;
    bottom: 48px;
    max-width: 16em;
  }
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Intro */
.intro {
  padding: 72px 0 40px;
}

.intro-grid,
.section-grid {
  display: grid;
  gap: 20px 24px;
}

.span-main,
.quote-stage {
  min-width: 0;
}

@media (min-width: 900px) {
  .intro-grid,
  .section-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .intro-label { grid-column: 1 / 3; }
  .intro-copy { grid-column: 7 / 13; }
  .span-label { grid-column: 1 / 3; }
  .span-main { grid-column: 7 / 13; }
  .span-full { grid-column: 1 / -1; }
}

.intro-quote {
  font-family: "Playfair Display", var(--serif);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin: 0 0 48px;
}

@media (min-width: 900px) {
  .intro-quote {
    margin-left: auto;
    margin-right: 0;
    grid-column: 7 / 13;
  }
}

.intro-copy {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 42ch;
}

.name-link { border-bottom: 1px solid currentColor; }

/* Featured work list */
.work-feature {
  padding: 24px 0 80px;
}

.work-row {
  display: grid;
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .work-row {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 56px;
    padding: 48px 0;
  }

  .work-row:nth-child(even) .work-row__media {
    order: 2;
  }

  .work-row:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
  }
}

.work-row__media {
  margin: 0;
  overflow: hidden;
  background: #16120f;
}

.work-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform 0.7s ease;
}

.work-row__media--cutout {
  background: transparent;
}

.work-row__media--cutout img {
  object-fit: contain;
  object-position: center;
}

.work-row:hover .work-row__media img {
  transform: scale(1.035);
}

.work-row h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 10px;
}

.work-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Numbered services */
.value-list { padding: 20px 0 80px; }

.value-item {
  display: grid;
  gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .value-item {
    grid-template-columns: 120px 1fr 1.4fr;
    gap: 24px;
    align-items: start;
  }
}

.value-item h3 { font-size: 1.8rem; }
.value-item p { color: var(--muted); max-width: 52ch; }
.value-num { font-size: 0.85rem; color: var(--muted); }

/* Quotes */
.quotes-block { padding: 20px 0 90px; }

.stars {
  display: block;
  width: 5.4em;
  height: 0.92em;
  color: #9a7b3c;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.9 8.4 21.5 9.3 16.7 13.8 17.9 20.4 12 17.3 6.1 20.4 7.3 13.8 2.5 9.3 9.1 8.4z'/%3E%3C/svg%3E") 0 / 1.08em 0.92em repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 14.9 8.4 21.5 9.3 16.7 13.8 17.9 20.4 12 17.3 6.1 20.4 7.3 13.8 2.5 9.3 9.1 8.4z'/%3E%3C/svg%3E") 0 / 1.08em 0.92em repeat-x;
}

.review-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  margin-bottom: 28px;
}

.review-rating {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.review-rating .stars { width: 5.4em; }

.quote-stage {
  min-height: 220px;
  min-width: 0;
}

.quote-stage blockquote { display: none; }
.quote-stage blockquote.is-current { display: block; }

.quote-stage .stars { margin-bottom: 14px; }

.quote-stage p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4.4vw, 2.3rem);
  line-height: 1.25;
  max-width: 28ch;
  overflow-wrap: break-word;
}

.quote-stage cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.quote-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.about-intro {
  padding: 128px 0 40px;
}

.about-intro__grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.about-intro__photo-wrap {
  margin: 0;
  display: flex;
  justify-content: center;
}

.about-intro__photo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.about-intro h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  margin: 12px 0 16px;
  max-width: 12ch;
}

.about-intro__lead {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-bottom: 16px;
}

.about-intro__copy .muted {
  max-width: 48ch;
  margin-bottom: 14px;
}

.about-intro__copy .muted:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .about-intro {
    padding: 148px 0 64px;
  }

  .about-intro__grid {
    grid-template-columns: 400px minmax(0, 48ch);
    justify-content: center;
    gap: 8px 40px;
    align-items: start;
  }

  .about-intro__photo-wrap {
    justify-content: flex-end;
  }

  .about-intro__photo {
    width: 100%;
    max-width: none;
    height: auto;
  }
}

/* Inner pages */
.page-hero {
  padding: 140px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin: 12px 0 16px;
  max-width: 14ch;
}

.page-hero p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.15rem;
}

section { padding: 64px 0; }

.muted { color: var(--muted); }

.split {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover { background: #111; color: #fff; border-color: #111; }

.gallery-grid,
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(4, 1fr); }
}

.work-card {
  position: relative;
  overflow: hidden;
  background: #ddd;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  appearance: none;
  color: #fff;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card.wide { grid-column: span 2; }
.work-card:hover img { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  font-size: 0.82rem;
}

.instagram-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.instagram-cta .ig-link {
  background: #111;
  color: #fff;
}

.service-grid,
.values {
  display: grid;
  gap: 16px;
}

@media (min-width: 800px) {
  .service-grid,
  .values { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 8px 0 20px;
  border-top: 1px solid var(--line);
}

.service-card h3 { font-size: 1.7rem; margin: 8px 0 10px; }
.service-card p { color: var(--muted); }
.service-card .num { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.12em; }

.process { display: grid; gap: 18px; }
@media (min-width: 800px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { border-top: 1px solid var(--ink); padding-top: 14px; }
.process-step h3 { font-size: 1.3rem; margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.4rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin-top: 8px; max-width: 70ch; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
}
.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
}
.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer;
}
.video-frame .work-overlay {
  color: #fff;
  pointer-events: none;
}

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.detail-list span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.map-frame {
  width: 100%;
  min-height: 280px;
  border: 0;
  filter: grayscale(1);
}

.form {
  display: grid;
  gap: 16px;
  padding: 8px 0;
  position: relative;
  scroll-margin-top: 88px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form input,
.form select,
.form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
}

.form textarea { min-height: 120px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: #111; }

.form input.is-invalid,
.form select.is-invalid,
.form textarea.is-invalid { border-color: #8a2a2a; }

.field-error {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #8a2a2a;
}

.form-status {
  display: none;
  color: var(--muted);
}
.form-status.show { display: block; }

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.cta-band {
  padding: 80px 22px;
  text-align: left;
}

.cta-band h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 14ch;
  margin: 10px 0 16px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.site-footer {
  background: #111;
  color: #f3f3f3;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer p, .site-footer a { color: #cfcfcf; }
.site-footer a:hover { color: #fff; }

.legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  color: #9a9a9a;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  place-items: center;
  z-index: 90;
  padding: 24px;
  color: #fff;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 92vw); object-fit: contain; }
.lightbox p { text-align: center; margin-top: 12px; color: #ccc; }

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; top: 50%; }
.lightbox-nav.next { right: 18px; top: 50%; }

.portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* 4 Cs guide */
.cs-jump {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.cs-jump__row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}

.cs-jump a {
  flex: 1;
  text-align: center;
  min-width: 4.8rem;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cs-jump a:hover,
.cs-jump a.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cs-studio-wrap { padding-top: 28px; }

.cs-studio {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .cs-studio {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: start;
  }
}

.cs-stage {
  background: #f6f3ef;
  color: #111;
  overflow: hidden;
}

@media (min-width: 960px) {
  .cs-stage {
    position: sticky;
    top: 64px;
  }
}

.cs-hand {
  margin: 0;
  position: relative;
  overflow: hidden;
}

.cs-hand__scene {
  position: relative;
}

.cs-hand img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cs-band {
  position: absolute;
  left: 34.2%;
  top: 37.8%;
  width: 19.8%;
  height: 3.6%;
  transform: translate(-50%, -50%) rotate(-3deg);
  border-radius: 20%;
  background:
    radial-gradient(120% 70% at 50% 8%, rgba(255, 244, 210, 0.55), transparent 46%),
    linear-gradient(
      180deg,
      #e8d090 25%,
      #dcc06a 25%,
      #e8d090 20%,
      #c4a04a 50%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.45),
    inset 0 -2px 3px rgba(80, 55, 15, 0.35),
    0 2px 3px rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

.cs-stone {
  --stone-scale: 1;
  --warm: 0;
  --spark: 1;
  position: absolute;
  left: 32.6%;
  top: 37.4%;
  width: 10.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--stone-scale));
  transform-origin: 50% 50%;
  transition: transform 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.cs-stone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(calc(0.78 + var(--spark) * 0.22));
}

.cs-stone__tint {
  position: absolute;
  inset: 0;
  background: hsl(42 62% 58%);
  opacity: calc(var(--warm) * 0.82);
  mix-blend-mode: overlay;
  -webkit-mask-image: url("../images/round-diamond.png");
  mask-image: url("../images/round-diamond.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
  pointer-events: none;
}

.cs-readout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 16px 16px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 12px;
  flex-wrap: wrap;
  background: #f6f3ef;
}

.cs-board h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 8px 0 22px;
  max-width: 14ch;
}

.cs-control {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.cs-control__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.cs-control label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cs-control strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.cs-hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
  max-width: 42ch;
}

.cs-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.cs-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 99px;
  cursor: pointer;
}

.cs-slider--color {
  background: linear-gradient(90deg, #f4f8ff, #f7f1e2 55%, #e8c96a);
}

.cs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
}

.cs-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
}

@media (max-width: 959px) {
  .cs-studio-wrap { padding-top: 12px; }

  .cs-studio {
    width: 100%;
    max-width: none;
    gap: 14px;
  }

  .cs-stage {
    position: sticky;
    top: 72px;
    z-index: 5;
    width: 100%;
    box-shadow: 0 10px 18px rgba(234, 234, 234, 0.92);
  }

  .cs-board {
    width: min(calc(100% - 48px), 92rem);
    margin-inline: auto;
  }

  .cs-hand {
    height: min(38svh, 280px);
  }

  .cs-hand__scene {
    position: absolute;
    width: 168%;
    left: 40%;
    top: 46%;
    transform: translate(-32.6%, -37.4%);
    transform-origin: 0 0;
  }

  .cs-readout {
    padding: 8px 16px 10px;
    font-size: 0.62rem;
  }

  .cs-readout span:first-child { display: none; }

  .cs-board h2 {
    font-size: 1.45rem;
    margin: 4px 0 10px;
  }

  .cs-control {
    padding: 12px 0;
    scroll-margin-top: calc(80px + min(38svh, 280px));
  }

  .cs-hint { font-size: 0.86rem; margin-top: 8px; }

  .cs-slider {
    height: 32px;
    background: transparent;
  }

  .cs-slider--color {
    background: transparent;
  }

  .cs-slider::-webkit-slider-runnable-track {
    height: 3px;
    background: #111;
    border-radius: 99px;
  }

  .cs-slider--color::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, #f4f8ff, #f7f1e2 55%, #e8c96a);
  }

  .cs-slider::-moz-range-track {
    height: 3px;
    background: #111;
    border: 0;
    border-radius: 99px;
  }

  .cs-slider--color::-moz-range-track {
    background: linear-gradient(90deg, #f4f8ff, #f7f1e2 55%, #e8c96a);
  }

  .cs-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -12.5px;
  }

  .cs-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
}

.cs-note {
  margin-top: 8px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--ink);
}

.cs-note p:last-child {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  max-width: 22ch;
  margin-top: 8px;
}

.cs-cards {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.cs-cards article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.cs-cards span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-cards h3 { font-size: 2rem; margin: 8px 0 10px; }
.cs-cards p { color: var(--muted); max-width: 36ch; }

@media (min-width: 800px) {
  .cs-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .cs-cards article { border-top: 1px solid var(--ink); padding-top: 16px; }
}

.cs-cards--two {
  margin-top: 12px;
}

@media (min-width: 800px) {
  .cs-cards--two {
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
  }
  .cs-cards--two article + article {
    padding-left: 48px;
    border-left: 1px solid var(--ink);
  }
}

.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  table-layout: fixed;
}

.compare th,
.compare td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  padding-bottom: 20px;
}

.compare th:first-child,
.compare td:first-child {
  color: var(--muted);
  width: 22%;
  padding-left: 0;
  padding-right: 24px;
}

.compare th:nth-child(2),
.compare td:nth-child(2) {
  width: 39%;
  padding-right: 40px;
  border-right: 1px solid var(--ink);
}

.compare th:nth-child(3),
.compare td:nth-child(3) {
  width: 39%;
  padding-left: 40px;
}

@media (max-width: 720px) {
  .compare th,
  .compare td {
    padding: 14px 10px;
    font-size: 0.92rem;
  }
  .compare th:first-child,
  .compare td:first-child {
    width: 28%;
    padding-right: 12px;
  }
  .compare th:nth-child(2),
  .compare td:nth-child(2) {
    padding-right: 16px;
  }
  .compare th:nth-child(3),
  .compare td:nth-child(3) {
    padding-left: 16px;
  }
}

.guide-next {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 800px) {
  .guide-next { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.guide-next a {
  display: block;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.guide-next h3 {
  font-size: 1.8rem;
  margin: 8px 0 10px;
}

.guide-next p { color: var(--muted); }

.cs-tips { background: var(--bg-soft); }
.cs-steps { list-style: none; padding: 0; margin: 0; }
.cs-steps li { padding: 22px 0; border-top: 1px solid var(--line); }
.cs-steps h3 { font-size: 1.7rem; margin-bottom: 8px; }
.cs-steps p { color: var(--muted); max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-hero__slide { transition: none; }
  .home-hero__progress span { animation: none; width: 100%; }
  .work-row__media img { transition: none; transform: none; }
  .work-row:hover .work-row__media img { transform: none; }
  .cs-stone { transition: none; }
}
