@font-face {
  font-family: "Chiron GoRound TC";
  src: url("assets/ChironGoRoundTC-Latin.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a1009;
  --vein: #0c230b;
  --deep: #153b14;
  --grove: #1c3519;
  --leaf: #2e5b22;
  --moss: #6f8e5c;
  --reed: #b8cda0;
  --mint: #e0ebd0;
  --paper: #f8f3e6;
  --cream: #fffaf0;
  --pond: #79aaa2;
  --dark-pond: #2f665f;
  --bloom: #f2d36b;
  --clay: #bd8061;
  --text: var(--cream);
  --muted: rgba(255, 250, 240, 0.68);
  --surface: rgba(12, 30, 12, 0.72);
  --surface-strong: rgba(21, 59, 20, 0.88);
  --line: rgba(255, 250, 240, 0.15);
  --line-strong: rgba(242, 211, 107, 0.38);
  --page-bg: var(--night);
  --price: var(--bloom);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mx: 0;
  --my: 0;
  font-family: "Chiron GoRound TC", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --text: var(--deep);
  --muted: rgba(21, 59, 20, 0.68);
  --surface: rgba(255, 250, 240, 0.8);
  --surface-strong: rgba(224, 235, 208, 0.86);
  --line: rgba(21, 59, 20, 0.14);
  --line-strong: rgba(46, 91, 34, 0.28);
  --page-bg: var(--paper);
  --price: var(--leaf);
  --shadow: 0 26px 70px rgba(21, 59, 20, 0.14);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(800px 480px at calc(50% + var(--mx) * 100px) 0%, rgba(111, 142, 92, 0.24), transparent 70%),
    radial-gradient(900px 680px at 100% 46%, rgba(47, 102, 95, 0.13), transparent 74%),
    linear-gradient(180deg, #050905 0%, var(--page-bg) 56%, #030603 100%);
  font-family: "Chiron GoRound TC", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(800px 480px at calc(50% + var(--mx) * 100px) -4%, rgba(242, 211, 107, 0.18), transparent 70%),
    radial-gradient(760px 540px at 4% 48%, rgba(184, 205, 160, 0.28), transparent 72%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 62%, #efe8d7 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), transparent 15%, transparent 84%, rgba(0, 0, 0, 0.58)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.44), transparent 34%, rgba(0, 0, 0, 0.3));
}

:root[data-theme="light"] body::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.62), transparent 17%, transparent 83%, rgba(255, 250, 240, 0.64)),
    linear-gradient(180deg, rgba(255, 250, 240, 0.58), transparent 38%, rgba(255, 250, 240, 0.46));
}

body::after {
  z-index: 1;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 20% 28%, rgba(255, 250, 240, 0.12), transparent 1px),
    radial-gradient(circle at 70% 72%, rgba(242, 211, 107, 0.12), transparent 1px);
  background-size: 7px 7px, 17px 17px;
  mix-blend-mode: soft-light;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  color: var(--night);
  background: var(--bloom);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 9px 12px;
  color: var(--night);
  border-radius: 8px;
  background: var(--cream);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site {
  position: relative;
  z-index: 4;
  width: min(100% - 42px, 1480px);
  margin: 0 auto;
}

.leaf-frame {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.leaf-frame img {
  position: absolute;
  opacity: 0.22;
  filter: saturate(0.86) brightness(0.72) drop-shadow(0 26px 80px rgba(0, 0, 0, 0.52));
}

:root[data-theme="light"] .leaf-frame img {
  opacity: 0.16;
  filter: saturate(0.78) brightness(1.08);
}

.leaf-left {
  left: -15vw;
  top: 10vh;
  width: clamp(270px, 33vw, 610px);
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0) rotate(-18deg);
}

.leaf-right {
  right: -14vw;
  top: 16vh;
  width: clamp(250px, 30vw, 560px);
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--my) * -14px), 0) rotate(18deg) scaleX(-1);
}

.leaf-bottom {
  left: 50%;
  bottom: -28vw;
  width: clamp(560px, 70vw, 1240px);
  opacity: 0.15;
  transform: translate3d(calc(-50% + var(--mx) * 14px), calc(var(--my) * 8px), 0) rotate(5deg);
}

.nav {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  width: min(100% - 42px, 1480px);
  min-height: 68px;
  padding: 10px 14px 10px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.05rem, 1.35vw, 1.48rem);
  font-weight: 750;
}

.brand img {
  width: clamp(32px, 3vw, 46px);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: clamp(18px, 4vw, 58px);
  color: var(--muted);
  font-weight: 600;
}

.nav-links a,
.nav-links button,
.theme-toggle {
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.theme-toggle {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.button,
.nav-cta,
.form-submit,
.theme-toggle {
  outline-offset: 6px;
}

.button,
.nav-cta,
.form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  overflow: hidden;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--leaf);
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms var(--ease), border-color 220ms ease, background 220ms ease;
}

.button.primary,
.form-submit {
  color: var(--night);
  border-color: var(--bloom);
  background: var(--bloom);
}

.button.cream {
  color: var(--deep);
  border-color: rgba(21, 59, 20, 0.16);
  background: var(--cream);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible,
.form-submit:hover,
.form-submit:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
}

.button::after,
.nav-cta::after,
.form-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 250, 240, 0.28), transparent 28%),
    linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.14), transparent);
  transition: opacity 240ms ease;
}

.button:hover::after,
.nav-cta:hover::after,
.form-submit:hover::after {
  opacity: 1;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(650px, 82svh, 850px);
  padding: clamp(108px, 13vh, 140px) 0 clamp(36px, 5vh, 70px);
}

.hero.center {
  justify-items: center;
  text-align: center;
}

.hero.split,
.hero.asym {
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: clamp(34px, 6vw, 96px);
}

.hero.asym {
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.92fr);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(16px, 2.3vw, 28px);
  justify-items: start;
  max-width: min(980px, 94vw);
}

.center .hero-copy {
  justify-items: center;
  max-width: min(1220px, 94vw);
}

.mark-lockup {
  position: relative;
  display: grid;
  justify-items: start;
  min-height: clamp(230px, 29vw, 420px);
  width: min(100%, 1200px);
}

.center .mark-lockup {
  justify-items: center;
}

.mark-lockup > img {
  position: absolute;
  top: clamp(-8px, -1vw, 10px);
  width: clamp(280px, 36vw, 610px);
  opacity: 0.7;
  filter: saturate(0.86) brightness(0.76) drop-shadow(0 30px 80px rgba(0, 0, 0, 0.44));
}

:root[data-theme="light"] .mark-lockup > img {
  opacity: 0.76;
  filter: saturate(0.82) brightness(1.03) drop-shadow(0 24px 60px rgba(21, 59, 20, 0.16));
}

.mark-lockup h1 {
  position: relative;
  align-self: end;
  margin: 0;
  color: var(--text);
  font-size: clamp(4.8rem, 12vw, 12.5rem);
  font-weight: 750;
  line-height: 0.75;
}

.hero h2 {
  margin: 0;
  max-width: min(1040px, 94vw);
  color: var(--text);
  font-size: clamp(2rem, 4.8vw, 5.4rem);
  font-weight: 750;
  line-height: 0.98;
}

.hero p,
.section-copy,
.process-copy p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.23vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grain-media,
.contact-panel,
.depth-panel,
.service-card,
.work-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 300ms var(--ease), border-color 240ms ease;
}

.grain-media::before,
.contact-panel::before,
.depth-panel::before,
.service-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(242, 211, 107, 0.18), transparent 32%);
  transition: opacity 260ms ease;
  pointer-events: none;
}

.grain-media:hover::before,
.contact-panel:hover::before,
.depth-panel:hover::before,
.service-card:hover::before,
.work-card:hover::before {
  opacity: 1;
}

.grain-media {
  min-height: clamp(340px, 36vw, 560px);
  background:
    radial-gradient(circle at 30% 24%, rgba(224, 235, 208, 0.2), transparent 28%),
    url("assets/monstera-green-03-1600.webp") center / cover;
}

.grain-media::after,
.aurora-bg::after,
.leaf-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 250, 240, 0.16), transparent 1px),
    radial-gradient(circle at 70% 70%, rgba(242, 211, 107, 0.18), transparent 1px);
  background-size: 5px 5px, 11px 11px;
  mix-blend-mode: soft-light;
}

.grain-card {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  padding: 18px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(5, 10, 5, 0.68);
}

.grain-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 750;
  line-height: 1;
}

.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-bg::before {
  content: "";
  position: absolute;
  inset: -25%;
  opacity: 0.78;
  background:
    radial-gradient(38% 30% at 20% 30%, rgba(121, 170, 162, 0.28), transparent 70%),
    radial-gradient(34% 36% at 80% 34%, rgba(242, 211, 107, 0.18), transparent 72%),
    radial-gradient(40% 34% at 48% 72%, rgba(111, 142, 92, 0.26), transparent 72%);
  filter: blur(24px);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(2%, 2%, 0) rotate(3deg);
  }
}

.section {
  position: relative;
  scroll-margin-top: 112px;
  padding: clamp(64px, 10vw, 150px) 0;
}

.hero + .section {
  padding-top: clamp(38px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.46fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 72px);
}

.section-head h2,
.process-copy h2,
.contact-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 5.8rem);
  font-weight: 750;
  line-height: 0.96;
}

.work-carousel {
  position: relative;
  min-height: clamp(550px, 56vw, 740px);
}

.work-track {
  position: absolute;
  inset: 0;
}

.work-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-rows: 1fr auto;
  width: min(62vw, 650px);
  min-height: clamp(370px, 39vw, 540px);
  color: var(--cream);
  background: var(--surface-strong);
  opacity: 1;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--slot, 0) * min(14vw, 185px)))
    translateY(calc(var(--distance, 0) * 10px))
    rotate(calc(var(--slot, 0) * 4deg))
    scale(calc(1 - var(--distance, 0) * 0.07));
}

.stack-solid .work-card:not(.is-active) .work-info p {
  display: none;
}

.work-card.is-active {
  border-color: var(--line-strong);
  transform: translate(-50%, -50%) scale(1);
}

.work-shot {
  min-height: 280px;
  background: var(--deep);
}

.work-shot img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.work-card:hover .work-shot img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.work-info {
  display: grid;
  gap: 7px;
  padding: clamp(18px, 2.6vw, 30px);
  background:
    linear-gradient(180deg, rgba(5, 10, 5, 0.78), rgba(5, 10, 5, 0.96)),
    var(--deep);
}

.work-info h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  font-weight: 750;
  line-height: 1;
}

.work-info p {
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
}

.work-kind {
  color: var(--bloom);
  font-weight: 600;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 16, 9, 0.78);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-button.prev {
  left: 0;
}

.carousel-button.next {
  right: 0;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 60;
  display: flex;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 30px;
  background: var(--bloom);
}

.pad-orbit .work-carousel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(74vw, 940px);
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--pond) 26%, transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 70px rgba(121, 170, 162, 0.05), 0 0 0 142px rgba(121, 170, 162, 0.032);
}

.pad-orbit .work-card {
  left: calc(50% + var(--orbit-x, 0px));
  top: calc(50% + var(--orbit-y, 0px));
  width: clamp(170px, 16vw, 250px);
  min-height: clamp(230px, 24vw, 340px);
  border-radius: 56% 44% 53% 47% / 42% 48% 52% 58%;
  clip-path: polygon(52% 0, 76% 6%, 95% 24%, 100% 52%, 88% 82%, 60% 100%, 28% 96%, 6% 74%, 0 43%, 14% 17%);
  transform: translate(-50%, -50%) rotate(calc(var(--slot, 0) * 7deg)) scale(calc(1 - var(--distance, 0) * 0.07));
}

.pad-orbit .work-card.is-active {
  left: 50%;
  top: 50%;
  width: min(47vw, 510px);
  min-height: min(47vw, 510px);
  transform: translate(-50%, -50%) scale(1);
}

.pad-orbit .work-card:not(.is-active) .work-info p {
  display: none;
}

.pad-orbit [data-slide]:nth-child(1) {
  --orbit-x: 0px;
  --orbit-y: 0px;
}

.pad-orbit [data-slide]:nth-child(2) {
  --orbit-x: -320px;
  --orbit-y: -112px;
}

.pad-orbit [data-slide]:nth-child(3) {
  --orbit-x: 320px;
  --orbit-y: -105px;
}

.pad-orbit [data-slide]:nth-child(4) {
  --orbit-x: -288px;
  --orbit-y: 204px;
}

.pad-orbit [data-slide]:nth-child(5) {
  --orbit-x: 298px;
  --orbit-y: 198px;
}

.pad-orbit .carousel-button {
  display: none;
}

.process-rail {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 108px);
  align-items: start;
}

.process-copy {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 20px;
}

.scrub-word {
  opacity: 0.22;
}

.process-list {
  display: grid;
  gap: 18px;
}

.depth-panel,
.service-card {
  padding: clamp(22px, 3vw, 38px);
  color: var(--text);
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(242, 211, 107, 0.09), transparent 30%),
    var(--surface);
}

.depth-panel img,
.service-card img {
  width: 56px;
  margin-bottom: 24px;
}

.depth-panel h3,
.service-card h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  font-weight: 750;
  line-height: 1;
}

.depth-panel p,
.service-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  margin-top: clamp(34px, 5vw, 72px);
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.service-card strong {
  display: block;
  margin-top: 22px;
  color: var(--price);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 750;
  line-height: 1;
}

.lilypad-service .service-card {
  border-radius: 50% 48% 52% 50% / 34% 38% 62% 66%;
}

.contact-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 50px);
  align-items: center;
  margin: clamp(58px, 8vw, 112px) 0 42px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(180deg, rgba(8, 16, 8, 0.74), rgba(8, 16, 8, 0.9)),
    url("assets/monstera-green-07-1600.webp") center / cover;
}

:root[data-theme="light"] .contact-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.74), rgba(255, 250, 240, 0.88)),
    url("assets/monstera-green-03-1600.webp") center / cover;
}

.contact-panel > img {
  width: clamp(62px, 9vw, 120px);
}

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 38px;
  color: var(--muted);
}

.dialog {
  width: min(calc(100vw - 30px), 570px);
  max-height: calc(100dvh - 34px);
  padding: 0;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(8, 15, 8, 0.98);
  box-shadow: 0 42px 150px rgba(0, 0, 0, 0.7);
}

.dialog::backdrop {
  background: rgba(2, 5, 3, 0.72);
  backdrop-filter: blur(5px);
}

.contact-form {
  position: relative;
  display: grid;
  gap: 13px;
  padding: clamp(22px, 4vw, 34px);
}

.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.contact-form img {
  width: 50px;
}

.contact-form h2 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.9rem, 3.7vw, 2.85rem);
  font-weight: 750;
  line-height: 0.96;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--cream);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.17);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
  outline: none;
}

.field textarea {
  min-height: 82px;
  padding-block: 12px;
  resize: vertical;
}

.field small {
  min-height: 17px;
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.82rem;
  font-weight: 400;
}

.field small:not(:empty) {
  color: var(--bloom);
}

.success-text,
.contact-form.is-success .idle-text {
  display: none;
}

.contact-form.is-success .success-text {
  display: inline;
}

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

  .nav-links {
    display: none;
  }

  .hero.split,
  .hero.asym,
  .section-head,
  .process-rail {
    grid-template-columns: 1fr;
  }

  .process-copy {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .site {
    width: min(100% - 28px, 720px);
  }

  .nav {
    top: 10px;
    width: min(100% - 18px, 720px);
    grid-template-columns: auto auto auto;
    min-height: 62px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .theme-toggle {
    min-height: 40px;
    padding-inline: 10px;
  }

  .nav-cta {
    min-height: 42px;
    padding-inline: 14px;
  }

  .hero {
    min-height: 690px;
    padding-top: 98px;
  }

  .mark-lockup {
    min-height: clamp(210px, 68vw, 310px);
  }

  .mark-lockup > img {
    width: clamp(270px, 86vw, 500px);
  }

  .mark-lockup h1 {
    font-size: clamp(4.1rem, 23vw, 7.8rem);
  }

  .hero h2 {
    font-size: clamp(1.8rem, 10vw, 3.25rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .grain-media {
    min-height: 360px;
  }

  .work-carousel {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    grid-template-areas:
      "track track track track"
      ". prev next ."
      "dots dots dots dots";
    gap: 16px;
    min-height: auto;
  }

  .work-track {
    grid-area: track;
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .work-track::-webkit-scrollbar {
    display: none;
  }

  .work-card,
  .work-card.is-active,
  .pad-orbit .work-card,
  .pad-orbit .work-card.is-active {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 min(86vw, 390px);
    width: auto;
    min-height: 420px;
    clip-path: none;
    border-radius: 8px;
    transform: none;
    scroll-snap-align: center;
  }

  .work-card:not(.is-active) .work-info p,
  .pad-orbit .work-card:not(.is-active) .work-info p {
    display: block;
  }

  .pad-orbit .work-carousel::before {
    display: none;
  }

  .carousel-button,
  .pad-orbit .carousel-button {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: grid;
    transform: none;
  }

  .pad-orbit .carousel-button {
    display: none;
  }

  .carousel-button.prev {
    grid-area: prev;
  }

  .carousel-button.next {
    grid-area: next;
  }

  .carousel-dots {
    position: relative;
    grid-area: dots;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .span-3,
  .span-4,
  .span-5 {
    grid-column: span 1;
  }

  .lilypad-service .service-card {
    border-radius: 8px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .contact-panel .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min(100% - 16px, 480px);
  }

  .nav-cta {
    font-size: 0.9rem;
  }

  .hero {
    min-height: 650px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head h2,
  .process-copy h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 12vw, 3.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


@font-face {
  font-family: "Dubbo";
  src: url("assets/DubboFree-x32GV.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

.refining-1-page {
  --refining-body-font: var(--refining-font-body, "Chiron GoRound TC", sans-serif);
  --refining-heading-font: var(--refining-font-heading, "Dubbo", "Chiron GoRound TC", serif);
  --refining-subheading-font: var(--refining-font-subheading, "Chiron GoRound TC", sans-serif);
  --refining-site-font: var(--refining-body-font);
  --refining-display-font: var(--refining-heading-font);
  --carousel-control-gap: 12px;
  --carousel-control-width: 48px;
  --carousel-control-active-width: 64px;
  --carousel-control-height: 38px;
  --carousel-control-font: 0.82rem;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42)),
    radial-gradient(1500px 1080px at calc(12% + var(--mx) * 58px) calc(6% + var(--my) * 44px), rgba(111, 142, 92, 0.16), transparent 72%),
    radial-gradient(1320px 980px at calc(92% + var(--mx) * -44px) 20%, rgba(242, 211, 107, 0.07), transparent 70%),
    radial-gradient(1440px 1180px at 48% 58%, rgba(21, 59, 20, 0.3), transparent 76%),
    radial-gradient(1280px 920px at 58% 94%, rgba(121, 170, 162, 0.06), transparent 76%),
    linear-gradient(180deg, #020402 0%, #050805 34%, #061006 70%, #030603 100%);
  font-family: var(--refining-site-font);
  background-attachment: scroll;
  background-blend-mode: normal, screen, screen, screen, screen, normal;
}

:root[data-carousel-size="compact"] .refining-1-page {
  --carousel-control-gap: 8px;
  --carousel-control-width: 42px;
  --carousel-control-active-width: 56px;
  --carousel-control-height: 34px;
  --carousel-control-font: 0.76rem;
}
    radial-gradient(circle at 72% 44%, rgba(242, 211, 107, 0.1), transparent 1px),
    radial-gradient(circle at 38% 86%, rgba(121, 170, 162, 0.08), transparent 1px);
  background-size: auto, auto, auto, auto, auto, 4px 4px, 9px 9px, 17px 17px;
  opacity: 0.82;
  mix-blend-mode: normal;
}

.refining-1-page::after {
  opacity: 0.62;
  background:
    linear-gradient(180deg, rgba(2, 5, 3, 0.28), rgba(2, 5, 3, 0.5)),
    radial-gradient(54% 38% at 12% 42%, rgba(16, 47, 15, 0.28), transparent 72%),
    radial-gradient(44% 36% at 88% 62%, rgba(121, 170, 162, 0.08), transparent 70%);
  mask-image: none;
  mix-blend-mode: normal;
}

.refining-1 {
  isolation: isolate;
  width: min(100% - 42px, 1460px);
  transition: width 260ms var(--ease);
}

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

.refining-1::before {
  content: "";
  position: absolute;
  top: -8vh;
  bottom: -10vh;
  left: 50%;
  z-index: 0;
  width: 100vw;
  pointer-events: none;
  background:
    radial-gradient(1380px 900px at 18% 8%, rgba(111, 142, 92, 0.11), transparent 72%),
    radial-gradient(1320px 920px at 78% 24%, rgba(47, 102, 95, 0.1), transparent 72%),
    radial-gradient(1480px 980px at 28% 48%, rgba(21, 59, 20, 0.3), transparent 76%),
    radial-gradient(1420px 960px at 84% 68%, rgba(111, 142, 92, 0.11), transparent 76%),
    radial-gradient(1260px 860px at 44% 92%, rgba(242, 211, 107, 0.06), transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(9, 26, 9, 0.14) 24%, rgba(3, 8, 4, 0.2) 52%, rgba(7, 18, 7, 0.18) 100%);
  opacity: 0.88;
  transform: translateX(-50%);
}

.refining-grain-field {
  position: absolute;
  inset: -12% -8% -24%;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 74%, transparent 100%);
}

.refining-grain-field::before {
  content: "";
  position: absolute;
  inset: -45%;
  opacity: 0.62;
  background:
    radial-gradient(34% 24% at 30% 18%, rgba(184, 205, 160, 0.16), transparent 76%),
    radial-gradient(26% 28% at 76% 16%, rgba(242, 211, 107, 0.08), transparent 80%),
    radial-gradient(34% 26% at 46% 74%, rgba(121, 170, 162, 0.1), transparent 78%),
    radial-gradient(44% 32% at 52% 60%, rgba(12, 36, 12, 0.82), transparent 76%);
  filter: blur(58px);
  animation: refining-drift 26s ease-in-out infinite alternate;
}

.refining-grain-field::after {
  content: "";
  position: absolute;
  inset: -8%;
  opacity: 0.1;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.05), transparent 42%),
    url("assets/monstera-green-03-1600.webp") center / cover;
  mix-blend-mode: soft-light;
}

.refining-animated-nav {
  --refining-nav-height: 68px;
  --refining-nav-blur: 16px;
  --refining-nav-bg-alpha: 0.78;
  --refining-nav-glow: 0.34;
  --refining-nav-backlight-blur: calc(22px + var(--refining-nav-glow) * 54px);
  grid-template-columns: auto 1fr auto;
  overflow: hidden;
  min-height: var(--refining-nav-height);
  background: rgba(4, 12, 6, var(--refining-nav-bg-alpha));
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(var(--refining-nav-blur));
}

.refining-animated-nav::before,
.refining-animated-nav::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.refining-animated-nav::before {
  inset: -76% -12%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(closest-side at 28% 46%, rgba(154, 229, 107, calc(0.12 + var(--refining-nav-glow) * 0.22)), transparent 64%),
    radial-gradient(closest-side at 74% 52%, rgba(242, 211, 107, calc(0.06 + var(--refining-nav-glow) * 0.12)), transparent 68%),
    conic-gradient(from 230deg at 50% 48%, rgba(121, 170, 162, calc(var(--refining-nav-glow) * 0.16)), transparent 20%, rgba(154, 229, 107, calc(var(--refining-nav-glow) * 0.2)), transparent 72%);
  filter: blur(var(--refining-nav-backlight-blur));
  opacity: calc(0.18 + var(--refining-nav-glow) * 0.72);
  mix-blend-mode: screen;
}

.refining-animated-nav::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 250, 240, calc(var(--refining-nav-glow) * 0.1)) 42%, transparent 72%),
    linear-gradient(180deg, rgba(255, 250, 240, calc(var(--refining-nav-glow) * 0.07)), transparent 54%);
  opacity: 0.68;
}

.refining-animated-nav > *:not(.drift-host) {
  position: relative;
  z-index: 2;
}

.refining-brand-widget {
  --builtby-widget-size: clamp(1.68rem, 2.25vw, 2.18rem);
  --builtby-widget-logo-size: calc(var(--builtby-widget-size) * 1.18);
  --builtby-widget-logo-gap: 0.24em;
  --builtby-widget-prefix-gap: 0.18em;
  --builtby-widget-suffix-gap: 0.13em;
  --builtby-widget-color: var(--cream);
  --builtby-widget-muted: color-mix(in srgb, var(--cream) 74%, transparent);
  --builtby-widget-muted-strength: 74%;
  --refining-widget-mark-glow: 0.32;
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: start;
}

.refining-brand-widget::before {
  content: "";
  position: absolute;
  inset: -48% -34%;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(154, 229, 107, calc(0.08 + var(--refining-widget-mark-glow) * 0.22)), transparent 70%),
    conic-gradient(from 210deg, rgba(242, 211, 107, calc(var(--refining-widget-mark-glow) * 0.12)), rgba(121, 170, 162, calc(var(--refining-widget-mark-glow) * 0.14)), rgba(154, 229, 107, calc(var(--refining-widget-mark-glow) * 0.18)), rgba(242, 211, 107, calc(var(--refining-widget-mark-glow) * 0.12)));
  filter: blur(calc(18px + var(--refining-widget-mark-glow) * 28px));
  opacity: calc(0.14 + var(--refining-widget-mark-glow) * 0.74);
  pointer-events: none;
  mix-blend-mode: screen;
}

.refining-brand-widget .builtby-logo-widget {
  position: relative;
  z-index: 1;
  color: var(--cream);
}

.refining-brand-widget .builtby-logo-widget__mark {
  filter:
    saturate(1.04)
    brightness(0.98)
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.32));
}

.refining-animated-nav .nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 44px);
}

.refining-animated-nav .nav-links button {
  padding: 0;
  font-weight: inherit;
}

.refining-animated-nav .nav-links a,
.refining-animated-nav .nav-links button {
  transition: color 180ms ease;
}

.refining-animated-nav .nav-links a:hover,
.refining-animated-nav .nav-links button:hover {
  color: var(--cream);
}

.refining-animated-nav .nav-cta {
  position: relative;
  z-index: 2;
}

.refining-nav-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

:root[data-refining-header-platform="tablet"] .refining-animated-nav {
  width: min(100% - 34px, 900px);
  gap: clamp(12px, 2vw, 22px);
}

:root[data-refining-header-platform="tablet"] .refining-brand-widget {
  --builtby-widget-size: 1.5rem;
  --builtby-widget-logo-size: 1.75rem;
}

:root[data-refining-header-platform="tablet"] .refining-animated-nav .nav-links {
  gap: clamp(12px, 2vw, 26px);
}

:root[data-refining-header-platform="mobile"] .refining-animated-nav {
  grid-template-columns: auto auto;
  width: min(100% - 18px, 430px);
  gap: 10px;
  padding-inline: 12px;
}

:root[data-refining-header-platform="mobile"] .refining-animated-nav .nav-links {
  display: none;
}

:root[data-refining-header-platform="mobile"] .refining-nav-actions {
  justify-self: end;
}

:root[data-refining-header-platform="mobile"] .refining-brand-widget {
  --builtby-widget-size: 1.36rem;
  --builtby-widget-logo-size: 1.6rem;
  --builtby-widget-logo-gap: 0.22em;
}

:root[data-refining-header-platform="mobile"] .refining-brand-widget .builtby-logo-widget:hover .builtby-logo-widget__prefix,
:root[data-refining-header-platform="mobile"] .refining-brand-widget .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix,
:root[data-refining-header-platform="mobile"] .refining-brand-widget .builtby-logo-widget:hover .builtby-logo-widget__suffix,
:root[data-refining-header-platform="mobile"] .refining-brand-widget .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
  max-width: 0;
  margin-inline: 0;
  opacity: 0;
}

:root[data-refining-header-platform="mobile"] .refining-animated-nav .nav-cta {
  display: none;
}

:root[data-refining-header-platform="mobile"] .nav-settings-button {
  min-width: 44px;
  padding-inline: 11px;
  font-size: 0.86rem;
}

.nav-settings-button {
  min-height: 46px;
  padding: 0 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 220ms var(--ease),
    background 220ms ease,
    border-color 220ms ease;
}

.nav-settings-button:hover,
.nav-settings-button[aria-expanded="true"] {
  border-color: rgba(242, 211, 107, 0.44);
  background: rgba(255, 250, 240, 0.14);
  transform: translateY(-1px);
}

.refining-settings-panel {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  top: calc(16px + var(--refining-nav-height, 68px) + 12px);
  z-index: 80;
  width: min(380px, calc(100% - 28px));
  max-height: min(760px, calc(100svh - 112px));
  overflow: auto;
  padding: 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 5, 0.9);
  box-shadow:
    0 0 70px rgba(89, 191, 86, 0.12),
    0 28px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease);
}

.refining-settings-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.settings-panel-head,
.settings-panel-form label > span,
.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-panel-head {
  margin-bottom: 12px;
  color: var(--bloom);
  font-weight: 750;
}

.settings-panel-head button {
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
}

.settings-panel-form {
  display: grid;
  gap: 12px;
}

.settings-group {
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.05);
  overflow: hidden;
}

.settings-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.settings-group summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--bloom);
  border: 1px solid rgba(242, 211, 107, 0.18);
  border-radius: 999px;
  background: rgba(242, 211, 107, 0.08);
}

.settings-group[open] summary::after {
  content: "-";
}

.settings-group summary span {
  color: var(--cream);
}

.settings-group summary small {
  margin-left: auto;
  color: rgba(255, 250, 240, 0.46);
  font: inherit;
}

.settings-group-body {
  display: grid;
  gap: 11px;
  padding: 0 12px 12px;
}

.settings-panel-extra {
  margin-top: 12px;
}

.refining-settings-panel .settings-group .settings-mounted-slot .refining-carousel-settings-form,
.refining-settings-panel .settings-group .settings-mounted-slot .font-panel {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.refining-settings-panel .settings-group .settings-mounted-slot .refining-carousel-settings-form,
.refining-settings-panel .settings-group .settings-mounted-slot .font-panel,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-glow-editor,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-curve-editor,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-curve-sliders,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-icon-frequency {
  grid-template-columns: 1fr;
}

.refining-settings-panel .settings-group .settings-mounted-slot .refining-settings-cluster,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-settings-io,
.refining-settings-panel .settings-group .settings-mounted-slot .refining-carousel-settings-actions {
  grid-column: 1 / -1;
}

.refining-settings-panel .settings-group .settings-mounted-slot .font-reset {
  width: 100%;
}

.settings-subhead {
  padding-top: 6px;
  color: rgba(242, 211, 107, 0.82);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-panel-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.84rem;
  font-weight: 650;
}

.settings-panel-form output {
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.78rem;
}

.settings-panel-form input[type="range"] {
  width: 100%;
  accent-color: var(--bloom);
}

.settings-panel-form input[type="color"] {
  width: 100%;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.1);
  cursor: pointer;
}

.settings-panel-form input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.settings-panel-form input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 6px;
}

.settings-panel-form input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 6px;
}

.settings-panel-form select {
  width: 100%;
  min-height: 38px;
  padding: 0 34px 0 11px;
  color: var(--cream);
  border: 0;
  border-radius: 8px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(255, 250, 240, 0.86) 50%) calc(100% - 17px) 16px / 5px 5px no-repeat,
    linear-gradient(135deg, rgba(255, 250, 240, 0.86) 50%, transparent 50%) calc(100% - 12px) 16px / 5px 5px no-repeat,
    rgba(255, 250, 240, 0.1);
  font-size: 0.86rem;
  font-weight: 750;
}

.settings-panel-form select option {
  color: #10200d;
  background: var(--cream);
}

.settings-panel-form input[type="checkbox"] {
  accent-color: var(--bloom);
}

.icon-mix-controls {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-mode-block {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.84rem;
  font-weight: 650;
}

.settings-mode-block > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.settings-choice-row.theme-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-choice-row label {
  position: relative;
  display: block;
  min-width: 0;
}

.settings-choice-row input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-choice-row label > span {
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.78rem;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.settings-choice-row input:checked + span {
  color: #10200d;
  background: var(--bloom);
  box-shadow: 0 8px 26px rgba(242, 211, 107, 0.18);
}

.settings-choice-row input:focus-visible + span {
  outline: 2px solid rgba(255, 250, 240, 0.72);
  outline-offset: 2px;
}

.settings-io textarea {
  width: 100%;
  min-height: 138px;
  padding: 10px 11px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.22);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.45;
}

.settings-io textarea::placeholder {
  color: rgba(255, 250, 240, 0.42);
}

.settings-io-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.settings-io-actions button,
.settings-file-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 9px;
  color: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.settings-io-actions button:hover,
.settings-file-button:hover {
  border-color: rgba(242, 211, 107, 0.34);
  background: rgba(255, 250, 240, 0.14);
  transform: translateY(-1px);
}

.settings-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-io-status {
  min-height: 18px;
  margin: 0;
  color: rgba(242, 211, 107, 0.82);
  font-size: 0.78rem;
}

.drift-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint style;
  --pad-glow-core: 0.04;
  --pad-glow-rim: 0.33;
  --pad-glow-opacity: 0.95;
  --pad-glow-blur: 7px;
  --pad-glow-scale: 1.2;
}

.nav-drift {
  opacity: 0.34;
}

.drift-pad {
  position: absolute;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  aspect-ratio: 1;
  isolation: isolate;
  opacity: var(--pad-opacity, 0.96);
  contain: layout style;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
  transform:
    translate(-50%, -50%)
    translate3d(var(--move-x, 0px), var(--move-y, 0px), 0)
    rotate(var(--rotate, 0deg))
    scale(var(--scale, 1));
}

.drift-pad::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 50% 48%, rgba(226, 255, 194, var(--pad-glow-core)), transparent 58%),
    radial-gradient(closest-side at 50% 50%, rgba(154, 229, 107, var(--pad-glow-rim)), transparent 72%),
    conic-gradient(from 215deg, rgba(242, 211, 107, calc(var(--pad-glow-rim) * 0.42)), rgba(121, 170, 162, calc(var(--pad-glow-rim) * 0.46)), rgba(154, 229, 107, calc(var(--pad-glow-rim) * 0.64)), rgba(242, 211, 107, calc(var(--pad-glow-rim) * 0.42)));
  filter: blur(calc(var(--pad-glow-blur) + 4px));
  opacity: var(--pad-glow-opacity);
  transform: scale(var(--pad-glow-scale));
  mix-blend-mode: screen;
}

.drift-pad img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes refining-drift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-1deg);
  }

  to {
    transform: translate3d(2%, 2%, 0) rotate(2deg);
  }
}

@keyframes refining-logo-float {
  0%,
  100% {
    transform: translate3d(0, -7px, 0);
  }

  50% {
    transform: translate3d(0, 8px, 0);
  }
}

@keyframes refining-logo-glow {
  0%,
  100% {
    opacity: var(--refining-logo-glow-opacity-low);
    transform: translate3d(-50%, -7px, 0) scale(var(--refining-logo-glow-scale-low));
  }

  50% {
    opacity: var(--refining-logo-glow-opacity-high);
    transform: translate3d(-50%, 8px, 0) scale(var(--refining-logo-glow-scale-high));
  }
}

@keyframes refining-logo-backlight-shape {
  0%,
  100% {
    transform: translate3d(-50%, -7px, 0) scale(var(--refining-logo-glow-scale-low));
  }

  50% {
    transform: translate3d(-50%, 8px, 0) scale(var(--refining-logo-glow-scale-high));
  }
}

.refining-hero {
  isolation: isolate;
  min-height: clamp(540px, 72svh, 720px);
  padding-top: clamp(58px, 8vh, 94px);
}

.refining-hero .hero-copy {
  position: relative;
  isolation: isolate;
}

.refining-logo-pad-field {
  position: absolute;
  left: var(--logo-field-x, 50%);
  top: var(--logo-field-y, 0);
  z-index: 3;
  width: var(--logo-field-width, min(820px, 92vw));
  height: var(--logo-field-height, 360px);
  overflow: visible;
  pointer-events: none;
  opacity: var(--logo-animation-opacity, 0.82);
  contain: layout style;
}

.refining-logo-pad-field[data-page-layer="hero"] {
  z-index: 0;
}

.refining-logo-pad-field[data-page-layer="logo"],
.refining-logo-pad-field[data-page-layer="title"] {
  z-index: 3;
}

.refining-logo-pad-field[data-page-layer="subtitle"] {
  z-index: 5;
}

.refining-logo-pad-field[data-page-layer="copy"] {
  z-index: 7;
}

.refining-logo-pad {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 52px);
  aspect-ratio: 1;
  isolation: isolate;
  contain: layout style;
  filter:
    saturate(1.12)
    brightness(1.12)
    drop-shadow(0 16px 26px rgba(0, 0, 0, 0.3));
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
}

.refining-logo-pad::before {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(186, 255, 129, calc(var(--logo-pad-glow, 0.48) * var(--logo-pad-glow-core, 0.3) * 1.5)), rgba(79, 206, 86, calc(var(--logo-pad-glow, 0.48) * 0.24)) 46%, transparent 72%);
  filter: blur(var(--logo-pad-glow-blur, 12px));
  opacity: var(--logo-pad-glow, 0.48);
  transform: scale(var(--logo-pad-glow-scale, 1.18));
}

.refining-logo-pad img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.14) brightness(1.08);
}

.refining-lockup {
  --refining-logo-glow-rgb: 154 229 107;
  --refining-logo-glow-opacity-low: 0.29;
  --refining-logo-glow-opacity-high: 0.42;
  --refining-logo-glow-scale-low: 0.96;
  --refining-logo-glow-scale-high: 1.04;
  --refining-logo-glow-core-alpha: 0.24;
  --refining-logo-glow-rim-alpha: 0.12;
  --refining-logo-glow-warm-alpha: 0.08;
  --refining-logo-glow-softness: 28px;
  --refining-logo-halo: 0.2;
  --refining-logo-halo-size: 46px;
  position: relative;
  isolation: isolate;
  z-index: 4;
  min-height: clamp(195px, 23vw, 318px);
  margin-bottom: clamp(-16px, -1vw, -6px);
  overflow: visible;
}

.refining-lockup::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(-74px, -5.6vw, -30px);
  z-index: 1;
  width: clamp(260px, 37vw, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(closest-side at 50% 46%, rgb(var(--refining-logo-glow-rgb) / var(--refining-logo-glow-core-alpha)), transparent 58%),
    radial-gradient(closest-side at 52% 52%, rgb(var(--refining-logo-glow-rgb) / var(--refining-logo-glow-rim-alpha)), transparent 74%),
    conic-gradient(from 210deg at 50% 50%, rgb(242 211 107 / var(--refining-logo-glow-warm-alpha)), rgb(121 170 162 / var(--refining-logo-glow-rim-alpha)), rgb(var(--refining-logo-glow-rgb) / var(--refining-logo-glow-core-alpha)), rgb(242 211 107 / var(--refining-logo-glow-warm-alpha)));
  filter: blur(var(--refining-logo-glow-softness));
  mix-blend-mode: screen;
  animation: refining-logo-glow 8.4s ease-in-out infinite;
  will-change: transform, opacity;
}

.refining-lockup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(-52px, -4vw, -22px);
  z-index: 2;
  width: clamp(264px, 33vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url("assets/lilypad-logo-900.webp") center / contain no-repeat;
  filter:
    blur(var(--refining-logo-glow-softness))
    saturate(1.28)
    brightness(1.08);
  opacity: var(--refining-logo-halo);
  mix-blend-mode: screen;
  animation: refining-logo-backlight-shape 8.4s ease-in-out infinite;
  will-change: transform;
}

.refining-lockup > img {
  position: relative;
  top: clamp(-52px, -4vw, -22px);
  z-index: 3;
  width: clamp(264px, 33vw, 560px);
  opacity: 1;
  filter:
    saturate(1.08)
    brightness(0.98)
    drop-shadow(0 28px 76px rgba(0, 0, 0, 0.48));
  animation: refining-logo-float 8.4s ease-in-out infinite;
  will-change: transform;
}

:root[data-refining-backlight="off"] .refining-animated-nav::before,
:root[data-refining-backlight="off"] .refining-animated-nav::after,
:root[data-refining-backlight="off"] .refining-brand-widget::before,
:root[data-refining-backlight="off"] .drift-pad::before,
:root[data-refining-backlight="off"] .refining-lockup::before,
:root[data-refining-backlight="off"] .refining-lockup::after {
  display: none;
}

.refining-lockup h1 {
  position: relative;
  z-index: 4;
  font-family: var(--refining-display-font);
  font-size: clamp(4rem, 9.8vw, 10.1rem);
  font-weight: 400;
  color: color-mix(in srgb, var(--cream) 96%, var(--bloom) 4%);
  text-shadow:
    0 12px 46px rgba(0, 0, 0, 0.36),
    0 0 28px rgba(255, 250, 240, 0.08);
}

.refining-section .section-head h2,
.refining-section .process-copy h2,
.refining-contact h2,
.refining-services .service-card strong {
  font-family: var(--refining-heading-font);
}

.portfolio-title-split {
  line-height: 0.96;
}

.portfolio-title-split .portfolio-title-previous {
  font-family: "Plus Jakarta Sans", var(--refining-subheading-font);
  font-weight: 780;
}

.portfolio-title-split .portfolio-title-landing {
  font-family: "Dubbo", var(--refining-heading-font);
  font-weight: 400;
}

.refining-hero h2 {
  position: relative;
  z-index: 6;
  font-family: var(--refining-subheading-font);
  margin-top: clamp(78px, 7vw, 126px);
  max-width: min(920px, 94vw);
  color: color-mix(in srgb, var(--cream) 94%, var(--bloom) 6%);
  font-size: clamp(1.9rem, 4.2vw, 4.55rem);
  text-shadow:
    0 16px 44px rgba(0, 0, 0, 0.38),
    0 0 18px rgba(255, 250, 240, 0.06);
}

.refining-hero .landing-pad-tagline {
  font-family: "Plus Jakarta Sans", "Chiron GoRound TC", sans-serif;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.14;
  padding-bottom: 0.06em;
}

.refining-hero .landing-pad-tagline span {
  display: inline-block;
  font-family: "Dubbo", "Chiron GoRound TC", serif;
  font-weight: 400;
}

.refining-hero p {
  position: relative;
  z-index: 8;
  font-family: var(--refining-body-font);
  color: color-mix(in srgb, var(--cream) 84%, transparent);
  max-width: 690px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
}

.refining-actions {
  position: relative;
  z-index: 3;
  justify-content: center;
}

.refining-actions .button {
  font-family: var(--refining-subheading-font);
  min-width: 132px;
}

.refining-section {
  scroll-margin-top: 36px;
}

.refining-carousel {
  display: grid;
  grid-template-rows: minmax(500px, clamp(520px, 45vw, 650px)) auto;
  gap: 26px;
  min-height: auto;
  margin-bottom: 64px;
}

.refining-carousel .work-track {
  position: relative;
  inset: auto;
  overflow: visible;
}

.refining-carousel .work-card {
  width: min(68vw, 760px);
  min-height: clamp(430px, 44vw, 610px);
  border-radius: 18px;
  border-color: rgba(255, 250, 240, 0.12);
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(242, 211, 107, 0.13), transparent 32%),
    rgba(13, 37, 12, 0.98);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 340ms ease,
    border-color 260ms ease,
    box-shadow 340ms ease;
  will-change: transform;
}

.refining-monstera-carousel {
  position: relative;
  width: min(1500px, 100%);
  margin-inline: auto;
  overflow: visible;
  isolation: isolate;
}

.refining-monstera-carousel .work-track {
  isolation: isolate;
}

.refining-monstera-carousel .refining-carousel-water-lines,
.refining-monstera-carousel .refining-carousel-water-lines::before,
.refining-monstera-carousel .refining-carousel-water-lines::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.refining-monstera-carousel .refining-carousel-water-lines {
  z-index: 4;
  opacity: calc(0.17 + var(--ripples-on, 1) * 0.34 + var(--carousel-wake, 0) * 0.22);
  background:
    repeating-radial-gradient(ellipse at 50% 52%, transparent 0 42px, rgba(224, 235, 208, 0.13) 43px 44px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 48%, rgba(0, 0, 0, 0.25));
  filter: brightness(calc(1 + var(--carousel-wake, 0) * 0.18));
  animation: refiningCarouselWaterBreath 8s linear infinite;
}

.refining-monstera-carousel .refining-carousel-water-lines::before,
.refining-monstera-carousel .refining-carousel-water-lines::after {
  content: "";
  opacity: var(--ripples-on, 1);
  background-image:
    linear-gradient(102deg, transparent 0 48%, rgba(255, 250, 240, 0.08) 49% 50%, transparent 51% 100%),
    linear-gradient(74deg, transparent 0 50%, rgba(121, 170, 162, 0.1) 51% 52%, transparent 53% 100%);
  background-size: 210px 120px, 180px 140px;
  mix-blend-mode: screen;
  animation: refiningCarouselCurrentDrift 12s linear infinite;
}

.refining-monstera-carousel .refining-carousel-water-lines::after {
  opacity: calc(var(--ripples-on, 1) * (0.52 + var(--carousel-wake, 0) * 0.24));
  animation-duration: 18s;
  animation-direction: reverse;
}

.refining-carousel-pad-field {
  position: absolute;
  inset: 0;
  z-index: 36;
  overflow: hidden;
  pointer-events: none;
  contain: layout style;
}

.refining-monstera-carousel[data-edge-border="off"] .refining-carousel-pad-field {
  overflow: visible;
}

.refining-monstera-carousel[data-animation-layer="back"] .refining-carousel-pad-field {
  z-index: 8;
}

.refining-monstera-carousel[data-animation-layer="middle"] .refining-carousel-pad-field {
  z-index: 36;
}

.refining-monstera-carousel[data-animation-layer="front"] .refining-carousel-pad-field {
  z-index: 70;
}

.refining-carousel-pad {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 96px);
  aspect-ratio: 1;
  opacity: 1;
  isolation: isolate;
  contain: layout style;
  filter:
    saturate(1.1)
    brightness(1.12)
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34))
    drop-shadow(0 4px 8px rgba(3, 9, 5, 0.28));
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
}

.refining-carousel-pad::before {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(186, 255, 129, var(--pad-glow-core, 0.3)),
    rgba(79, 206, 86, var(--pad-glow-rim, 0.16)) 42%,
    transparent 72%
  );
  filter: blur(var(--pad-glow-blur, 13px));
  opacity: var(--pad-glow-opacity, 0.58);
  transform: scale(var(--pad-glow-scale, 1.18));
}

.refining-carousel-pad img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.16) brightness(1.08);
}

.refining-monstera-carousel .carousel-dots {
  z-index: 74;
}

.refining-carousel.refining-monstera-carousel .work-card {
  width: min(42vw, 560px);
  min-height: clamp(405px, 38vw, 560px);
}

@media (min-width: 821px) {
  .refining-carousel.refining-monstera-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(12.5vw, 175px)))
      translateY(calc(var(--distance, 0) * 14px))
      rotate(calc(var(--slot, 0) * 2.8deg))
      scale(calc(1 - var(--distance, 0) * 0.055));
  }

  .refining-carousel.refining-monstera-carousel .work-card.is-active {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes refiningCarouselWaterBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes refiningCarouselCurrentDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 210px 120px, -180px 140px;
  }
}

@media (min-width: 821px) {
  .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(35vw, 430px)))
      translateY(calc(var(--distance, 0) * 18px))
      rotate(calc(var(--slot, 0) * 3.5deg))
      scale(calc(1 - var(--distance, 0) * 0.06));
  }

  .refining-carousel .work-card.is-active {
    transform: translate(-50%, -50%) scale(1);
  }
}

.refining-carousel .work-shot,
.refining-carousel .work-shot img {
  min-height: 0;
}

.refining-carousel .work-shot {
  height: clamp(342px, 34vw, 462px);
  padding: clamp(10px, 1.2vw, 16px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(224, 235, 208, 0.88)),
    var(--paper);
}

.refining-carousel .work-shot img {
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(5, 10, 5, 0.18);
}

.refining-carousel .work-card:not(.is-active) {
  filter: saturate(0.78) brightness(0.72);
}

.refining-carousel .work-card.is-active {
  border-color: rgba(255, 250, 240, 0.2);
  filter: none;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.refining-carousel .work-card:not(.is-active):hover {
  filter: saturate(0.9) brightness(0.86);
}

.refining-carousel .work-card:focus-visible {
  outline: 3px solid rgba(242, 211, 107, 0.8);
  outline-offset: 6px;
}

.refining-carousel .work-info {
  gap: 4px;
  padding: clamp(14px, 1.55vw, 20px) clamp(16px, 1.9vw, 24px);
  background:
    linear-gradient(180deg, rgba(5, 10, 5, 0.7), rgba(5, 10, 5, 0.98)),
    radial-gradient(circle at 22% 0%, rgba(242, 211, 107, 0.14), transparent 44%),
    var(--deep);
}

.refining-carousel .work-info h3 {
  font-family: var(--refining-subheading-font);
  font-size: clamp(1.35rem, 2.1vw, 2.35rem);
}

.refining-carousel .work-kind,
.refining-panel h3,
.refining-services .service-card h3,
.refining-contact .button,
.contact-form h2,
.contact-form .form-submit {
  font-family: var(--refining-subheading-font);
}

.refining-panel p,
.refining-services .service-card p,
.refining-contact p,
.contact-form label,
.refining-footer,
.refining-footer a {
  font-family: var(--refining-body-font);
}

.refining-carousel .work-info p {
  display: block;
  max-width: 48rem;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.refining-carousel .work-link-label {
  color: var(--bloom);
  font-size: 0.9rem;
  font-weight: 800;
}

.refining-carousel .work-link-label::after {
  content: " ->";
}

.refining-carousel .carousel-dots {
  position: relative;
  left: auto;
  bottom: auto;
  justify-self: center;
  gap: var(--carousel-control-gap);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  transform: none;
}

.refining-carousel .carousel-dots button {
  width: var(--carousel-control-width);
  height: var(--carousel-control-height);
  color: rgba(255, 250, 240, 0.76);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14), 0 10px 24px rgba(0, 0, 0, 0.14);
  font-size: var(--carousel-control-font);
  font-weight: 750;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease, box-shadow 220ms ease, border-radius 220ms ease;
}

.refining-carousel .carousel-dots button.is-active {
  width: var(--carousel-control-active-width);
  color: #13260d;
  background: var(--bloom);
  box-shadow: 0 14px 34px rgba(242, 211, 107, 0.2);
}

.refining-carousel .carousel-dots button:hover {
  transform: translateY(-2px);
  background: rgba(242, 211, 107, 0.28);
}

.refining-carousel .carousel-dots button:active {
  transform: translateY(0) scale(0.98);
}

.refining-carousel .carousel-dots button:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.7);
  outline-offset: 4px;
}

.refining-wip-section {
  display: grid;
  align-items: center;
  min-height: clamp(330px, 38vw, 540px);
  padding-block: clamp(72px, 10vw, 150px);
}

.work-in-progress-element {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 26vw, 360px);
  width: 100%;
  border-block: 1px solid rgba(255, 250, 240, 0.12);
  background:
    radial-gradient(760px 320px at 18% 18%, rgba(242, 211, 107, 0.12), transparent 68%),
    radial-gradient(680px 280px at 86% 72%, rgba(121, 170, 162, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.015));
}

.work-in-progress-element h2 {
  margin: 0;
  color: color-mix(in srgb, var(--cream) 94%, var(--bloom) 6%);
  font-family: var(--refining-heading-font);
  font-size: clamp(3rem, 8.5vw, 9.2rem);
  font-weight: 400;
  line-height: 0.95;
  text-align: center;
  text-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(255, 250, 240, 0.08);
}

.refining-contact-section {
  padding-top: clamp(42px, 7vw, 94px);
}

.refining-panel,
.refining-services .service-card {
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(242, 211, 107, 0.11), transparent 30%),
    radial-gradient(420px 220px at 10% 0%, rgba(111, 142, 92, 0.16), transparent 74%),
    rgba(10, 28, 10, 0.78);
}

.refining-panel img,
.refining-services .service-card img,
.refining-contact > img,
.contact-form img {
  width: 54px;
  aspect-ratio: 1;
  object-fit: contain;
}

.refining-services .service-card {
  border-radius: 18px;
}

.refining-contact {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(5, 10, 5, 0.64), rgba(5, 10, 5, 0.88)),
    radial-gradient(700px 280px at 22% 20%, rgba(184, 205, 160, 0.16), transparent 68%),
    radial-gradient(560px 320px at 94% 74%, rgba(242, 211, 107, 0.12), transparent 70%),
    repeating-radial-gradient(circle at 22% 28%, rgba(255, 250, 240, 0.1) 0 1px, transparent 1px 7px),
    var(--deep);
}

.refining-contact::before {
  content: "";
  position: absolute;
  left: clamp(10px, 3vw, 34px);
  top: 50%;
  width: clamp(110px, 15vw, 190px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(186, 255, 129, 0.26), rgba(79, 206, 86, 0.1) 44%, transparent 72%);
  filter: blur(22px);
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(-50%);
}

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

.refining-contact > img.contact-logo-float {
  width: clamp(66px, 7vw, 98px);
  opacity: 1;
  filter:
    saturate(1.08)
    brightness(1)
    drop-shadow(0 20px 44px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 24px rgba(154, 229, 107, 0.2));
  animation: refining-logo-float 8.4s ease-in-out infinite;
  will-change: transform;
}

.refining-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 250, 240, 0.12);
  padding-top: 22px;
}

.refining-footer .footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.font-panel,
.carousel-control-panel {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 8px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.12);
}

.font-panel {
  grid-template-columns: repeat(3, minmax(136px, 1fr)) auto;
}

.refining-footer .font-panel {
  display: none;
}

.carousel-control-panel {
  grid-template-columns: minmax(150px, 1fr) minmax(96px, 0.68fr);
}

.font-choice {
  display: grid;
  gap: 4px;
}

.font-choice span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.78rem;
}

.font-choice select,
.font-reset {
  min-height: 38px;
  color: var(--cream);
  border: 0;
  border-radius: 9px;
  background: rgba(255, 250, 240, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.08);
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: transform 220ms var(--ease), background 220ms ease;
}

.font-choice select {
  width: 100%;
  padding: 0 34px 0 11px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 250, 240, 0.86) 50%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.86) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.font-choice select option {
  color: #10200d;
  background: var(--cream);
}

.font-reset {
  align-self: end;
  padding: 0 12px;
}

.font-choice select:hover,
.font-reset:hover {
  transform: translateY(-1px);
  background: rgba(255, 250, 240, 0.18);
}

.font-choice select:active,
.font-reset:active {
  transform: translateY(0) scale(0.98);
}

.font-choice select:focus-visible,
.font-reset:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.7);
  outline-offset: 4px;
}

:root[data-refining-platform="tablet"] .refining-1 {
  width: min(100% - 34px, 900px);
}

:root[data-refining-platform="tablet"] .section-head,
:root[data-refining-platform="tablet"] .process-rail {
  grid-template-columns: 1fr;
}

:root[data-refining-platform="tablet"] .process-copy {
  position: relative;
  top: auto;
}

:root[data-refining-platform="tablet"] .refining-hero {
  min-height: 650px;
  padding-top: 96px;
}

:root[data-refining-platform="tablet"] .refining-lockup {
  min-height: clamp(220px, 38vw, 310px);
}

:root[data-refining-platform="tablet"] .refining-lockup > img {
  width: clamp(260px, 46vw, 430px);
}

:root[data-refining-platform="tablet"] .refining-lockup h1 {
  font-size: clamp(4rem, 13vw, 7.35rem);
}

:root[data-refining-platform="tablet"] .refining-hero h2 {
  margin-top: clamp(58px, 9vw, 94px);
}

:root[data-refining-platform="tablet"] .refining-carousel {
  grid-template-rows: minmax(470px, 560px) auto;
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card {
  width: min(78%, 620px);
  min-height: 520px;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--slot, 0) * min(30vw, 320px)))
    translateY(calc(var(--distance, 0) * 16px))
    rotate(calc(var(--slot, 0) * 3deg))
    scale(calc(1 - var(--distance, 0) * 0.055));
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card.is-active {
  transform: translate(-50%, -50%) scale(1);
}

:root[data-refining-platform="tablet"] .refining-carousel .work-shot {
  height: 360px;
}

:root[data-refining-platform="tablet"] .service-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

:root[data-refining-platform="tablet"] .service-grid .span-4 {
  grid-column: span 6;
}

:root[data-refining-platform="tablet"] .contact-panel {
  grid-template-columns: auto minmax(0, 1fr);
}

:root[data-refining-platform="tablet"] .contact-panel .button {
  grid-column: 1 / -1;
  justify-self: start;
}

:root[data-refining-platform="tablet"] .font-panel {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

:root[data-refining-platform="tablet"] .carousel-control-panel {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

:root[data-refining-platform="mobile"] .refining-1 {
  width: min(100% - 18px, 430px);
}

:root[data-refining-platform="mobile"] .section {
  padding-block: clamp(52px, 15vw, 86px);
}

:root[data-refining-platform="mobile"] .section-head,
:root[data-refining-platform="mobile"] .process-rail {
  grid-template-columns: 1fr;
}

:root[data-refining-platform="mobile"] .process-copy {
  position: relative;
  top: auto;
}

:root[data-refining-platform="mobile"] .refining-section .section-head h2,
:root[data-refining-platform="mobile"] .process-copy h2,
:root[data-refining-platform="mobile"] .contact-panel h2 {
  font-size: clamp(2rem, 12vw, 3.35rem);
}

:root[data-refining-platform="mobile"] .refining-hero {
  min-height: 610px;
  padding-top: 96px;
}

:root[data-refining-platform="mobile"] .refining-lockup {
  min-height: clamp(178px, 52vw, 250px);
  margin-bottom: clamp(-10px, -2vw, -4px);
}

:root[data-refining-platform="mobile"] .refining-lockup > img {
  top: clamp(-48px, -10vw, -20px);
  width: clamp(220px, 68vw, 362px);
}

:root[data-refining-platform="mobile"] .refining-lockup h1 {
  font-size: clamp(3.65rem, 18vw, 6.25rem);
}

:root[data-refining-platform="mobile"] .refining-hero h2 {
  margin-top: 64px;
  font-size: clamp(1.7rem, 9vw, 2.85rem);
}

:root[data-refining-platform="mobile"] .refining-carousel {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: none;
  margin-bottom: 54px;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-track {
  grid-area: auto;
  grid-column: 1;
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-track::-webkit-scrollbar {
  display: none;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card,
:root[data-refining-platform="mobile"] .refining-carousel .work-card.is-active {
  position: relative;
  left: auto;
  top: auto;
  flex: 0 0 min(100%, 390px);
  width: auto;
  min-height: 470px;
  border-radius: 18px;
  transform: none;
  scroll-snap-align: center;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-shot {
  height: 330px;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card:not(.is-active) .work-info p {
  display: block;
}

:root[data-refining-platform="mobile"] .refining-carousel .carousel-dots {
  grid-area: auto;
  grid-column: 1;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}


:root[data-refining-platform="mobile"] .service-grid {
  grid-template-columns: 1fr;
}

:root[data-refining-platform="mobile"] .service-grid .span-4 {
  grid-column: auto;
}

:root[data-refining-platform="mobile"] .contact-panel {
  grid-template-columns: 1fr;
}

:root[data-refining-platform="mobile"] .contact-panel .button {
  width: 100%;
}

:root[data-refining-platform="mobile"] .refining-footer,
:root[data-refining-platform="mobile"] .refining-footer .footer-actions {
  justify-content: center;
}

:root[data-refining-platform="mobile"] .font-panel,
:root[data-refining-platform="mobile"] .carousel-control-panel {
  grid-template-columns: 1fr;
  width: min(100%, 360px);
}

@media (max-width: 820px) {
  .refining-1 {
    width: min(100% - 28px, 720px);
  }

  .refining-hero {
    min-height: 590px;
    padding-top: 82px;
  }

  .refining-lockup {
    min-height: clamp(178px, 52vw, 250px);
    margin-bottom: clamp(-10px, -2vw, -4px);
  }

  .refining-lockup > img {
    top: clamp(-48px, -10vw, -20px);
    width: clamp(220px, 68vw, 362px);
  }

  .refining-lockup h1 {
    font-size: clamp(3.65rem, 18vw, 6.25rem);
  }

  .refining-hero h2 {
    margin-top: clamp(62px, 12vw, 88px);
  }

  .refining-carousel {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    margin-bottom: 54px;
  }

  .refining-carousel .work-track {
    grid-area: auto;
    grid-column: 1;
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .refining-carousel .work-track::-webkit-scrollbar {
    display: none;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    flex: 0 0 min(88vw, 440px);
    width: auto;
    min-height: 470px;
  }

  .refining-carousel .work-shot,
  .refining-carousel .work-shot img {
    min-height: 0;
  }

  .refining-carousel .work-shot {
    height: 330px;
  }

  .refining-carousel .carousel-dots {
    grid-area: auto;
    grid-column: 1;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
  }


  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    border-radius: 18px;
  }

  .refining-services .service-card,
  .refining-contact {
    border-radius: 18px;
  }
}

@media (max-width: 520px) {
  .refining-animated-nav {
    grid-template-columns: auto auto;
  }

  .refining-brand-widget {
    --builtby-widget-size: 1.36rem;
    --builtby-widget-logo-size: 1.6rem;
    --builtby-widget-logo-gap: 0.22em;
  }

  .refining-brand-widget .builtby-logo-widget:hover .builtby-logo-widget__prefix,
  .refining-brand-widget .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix,
  .refining-brand-widget .builtby-logo-widget:hover .builtby-logo-widget__suffix,
  .refining-brand-widget .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
    max-width: 0;
    margin-inline: 0;
    opacity: 0;
  }

  .refining-animated-nav .nav-links {
    display: none;
  }

  .refining-nav-actions {
    justify-self: end;
  }

  .refining-animated-nav .nav-cta {
    min-width: 0;
    padding-inline: 14px;
  }


  .refining-hero {
    min-height: 610px;
    padding-top: 96px;
  }

  .refining-hero h2 {
    font-size: clamp(1.7rem, 9vw, 2.85rem);
    margin-top: 64px;
  }

  .refining-footer,
  .refining-footer .footer-actions {
    justify-content: center;
  }

  .font-panel {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .carousel-control-panel {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .font-reset {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refining-lockup::before,
  .refining-lockup::after,
  .refining-lockup > img,
  .refining-contact > img.contact-logo-float {
    animation: none;
  }
}


.nav-settings-button {
  min-height: 46px;
  padding: 0 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 220ms var(--ease),
    background 220ms ease,
    border-color 220ms ease;
}

.nav-settings-button:hover,
.nav-settings-button[aria-expanded="true"] {
  border-color: rgba(242, 211, 107, 0.44);
  background: rgba(255, 250, 240, 0.14);
  transform: translateY(-1px);
}

.device-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.1);
}

.device-switcher button {
  min-width: 60px;
  min-height: 30px;
  padding: 0 9px;
  color: rgba(255, 250, 240, 0.68);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms var(--ease),
    box-shadow 180ms ease;
}

.device-switcher button:hover {
  color: var(--cream);
  background: rgba(255, 250, 240, 0.1);
}

.device-switcher button.is-active,
.device-switcher button[aria-pressed="true"] {
  color: #13260d;
  background: var(--bloom);
  box-shadow: 0 12px 30px rgba(242, 211, 107, 0.2);
}

.device-switcher button:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.76);
  outline-offset: 3px;
}

.refining-settings-panel {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  top: calc(16px + var(--refining-nav-height, 68px) + 12px);
  z-index: 80;
  width: min(380px, calc(100% - 28px));
  max-height: min(760px, calc(100svh - 112px));
  overflow: auto;
  padding: 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(3, 10, 5, 0.9);
  box-shadow:
    0 0 70px rgba(89, 191, 86, 0.12),
    0 28px 120px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease);
}

.refining-settings-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.settings-panel-head,
.settings-panel-form label > span,
.toggle-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-panel-head {
  margin-bottom: 12px;
  color: var(--bloom);
  font-weight: 750;
}

.settings-panel-head button,
.settings-panel-actions button,
.device-preview-toolbar button {
  min-height: 34px;
  padding: 0 10px;
  color: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(255, 250, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  cursor: pointer;
  font-weight: 750;
}

.settings-panel-form {
  display: grid;
  gap: 12px;
}

.settings-group {
  min-width: 0;
  border: 1px solid rgba(255, 250, 240, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.05);
  overflow: hidden;
}

.settings-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.settings-group summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--bloom);
  border: 1px solid rgba(242, 211, 107, 0.18);
  border-radius: 999px;
  background: rgba(242, 211, 107, 0.08);
}

.settings-group[open] summary::after {
  content: "-";
}

.settings-group summary span {
  color: var(--cream);
}

.settings-group summary small {
  margin-left: auto;
  color: rgba(255, 250, 240, 0.46);
  font: inherit;
}

.settings-group-body {
  display: grid;
  gap: 11px;
  padding: 0 12px 12px;
}

.settings-panel-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.84rem;
  font-weight: 650;
}

.settings-panel-form output {
  color: rgba(255, 250, 240, 0.58);
  font-size: 0.78rem;
}

.settings-panel-form input[type="range"] {
  width: 100%;
  accent-color: var(--bloom);
}

.settings-panel-form input[type="checkbox"] {
  accent-color: var(--bloom);
}

.settings-panel-actions {
  display: grid;
}

.settings-panel-actions button:hover,
.settings-panel-head button:hover,
.device-preview-toolbar button:hover {
  border-color: rgba(242, 211, 107, 0.34);
  background: rgba(255, 250, 240, 0.14);
}

.device-preview-shell {
  display: none;
  min-height: calc(100svh - var(--refining-nav-height, 68px));
  padding: calc(var(--refining-nav-height, 68px) + 34px) 18px 48px;
  place-items: start center;
}

body.device-preview-active {
  min-height: 100svh;
  overflow: hidden;
}

body.device-preview-active main.site {
  display: none;
}

body.device-preview-active .device-preview-shell {
  display: grid;
}

.device-preview-card {
  width: calc(var(--preview-width, 390px) * var(--preview-scale, 1));
  height: calc((var(--preview-height, 844px) + 52px) * var(--preview-scale, 1));
}

.device-preview-chrome {
  width: var(--preview-width, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 26px;
  background: rgba(2, 8, 3, 0.94);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.46),
    0 0 0 10px rgba(255, 250, 240, 0.035);
  transform: scale(var(--preview-scale, 1));
  transform-origin: top center;
}

.device-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  color: rgba(255, 250, 240, 0.72);
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
  font-family: "Plus Jakarta Sans", var(--refining-body-font);
  font-size: 0.74rem;
  font-weight: 800;
}

.device-preview-toolbar button {
  min-height: 30px;
  font-size: 0.68rem;
}

.device-preview-chrome iframe {
  display: block;
  width: var(--preview-width, 390px);
  height: var(--preview-height, 844px);
  border: 0;
  background: #020702;
}

html[data-preview-embed="true"] .device-switcher {
  display: none !important;
}

html,
body.refining-1-page {
  max-width: 100%;
  overflow-x: hidden;
}

.refining-hero,
.work-carousel,
.refining-carousel {
  overflow: visible;
}

.refining-grain-field {
  inset: 0;
}

.site.refining-1 {
  width: min(calc(100% - 42px), 1180px);
  margin-inline: auto;
  transform: none;
}

:root[data-refining-platform="tablet"] .site.refining-1 {
  width: min(calc(100% - 34px), 900px);
}

:root[data-refining-platform="mobile"] .site.refining-1 {
  width: min(calc(100% - 18px), 430px);
}

.button,
.nav-cta,
.form-submit,
.close-dialog,
.carousel-dots button,
.device-switcher button {
  font-family: "Plus Jakarta Sans", var(--refining-body-font);
  font-weight: 800;
}

.refining-footer,
.refining-footer a {
  font-family: "Dubbo", var(--refining-heading-font);
  font-weight: 400;
}

.portfolio-title-split span {
  display: inline-block;
}

.refining-animated-nav {
  --refining-nav-height: 56px;
  --refining-nav-blur: 34px;
  --refining-nav-bg-alpha: 0.92;
  --refining-nav-glow: 0.08;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(132, 183, 74, 0.14), transparent 38%),
    linear-gradient(180deg, rgb(4 14 6 / var(--refining-nav-bg-alpha)), rgb(1 8 3 / 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.06),
    0 18px 80px rgba(0, 0, 0, 0.26);
}

.refining-lockup {
  --title-logo-scale: 0.87;
  --title-logo-y: 0px;
  --title-tuck: -66px;
  --refining-logo-glow-rgb: 221 230 158;
  --refining-logo-glow-opacity-low: 0.52;
  --refining-logo-glow-opacity-high: 0.74;
  --refining-logo-glow-scale-low: 1.04;
  --refining-logo-glow-scale-high: 1.12;
  --refining-logo-glow-core-alpha: 0.41;
  --refining-logo-glow-rim-alpha: 0.21;
  --refining-logo-glow-warm-alpha: 0.13;
  --refining-logo-glow-softness: 68px;
  --refining-logo-halo: 0.17;
  --refining-logo-halo-size: 48px;
  transform: translateY(clamp(-28px, -2.2vw, -14px));
}

.refining-lockup > img {
  z-index: 5;
  top: calc(clamp(-64px, -5vw, -34px) + var(--title-logo-y));
  opacity: 1 !important;
  mix-blend-mode: normal;
  filter:
    saturate(1.08)
    brightness(0.98)
    drop-shadow(0 30px 70px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 36px rgba(221, 230, 158, 0.22));
  transform: scale(var(--title-logo-scale));
  transform-origin: center;
}

.refining-lockup::before {
  top: calc(clamp(-74px, -5.6vw, -30px) + var(--title-logo-y));
}

.refining-lockup::after {
  top: calc(clamp(-52px, -4vw, -22px) + var(--title-logo-y));
}

@keyframes refining-logo-float {
  0%,
  100% {
    transform: translate3d(0, -7px, 0) scale(var(--title-logo-scale, 1));
  }

  50% {
    transform: translate3d(0, 8px, 0) scale(var(--title-logo-scale, 1));
  }
}

.refining-lockup h1 {
  z-index: 4;
  transform: translateY(var(--title-tuck));
}

.refining-hero h2 {
  margin-top: clamp(34px, 5.8vw, 70px);
}

.refining-brand-widget {
  --builtby-widget-size: 31px;
  --builtby-widget-brand-size: 31px;
  --builtby-widget-logo-size: 43.71px;
  --builtby-widget-prefix-size: 21.7px;
  --builtby-widget-suffix-size: 21.7px;
  --builtby-widget-duration: 170ms;
  --builtby-widget-fade-duration: 110ms;
  --builtby-widget-muted-strength: 74%;
  --builtby-widget-muted: color-mix(in srgb, var(--cream) 74%, transparent);
  --refining-widget-mark-glow: 0.64;
}

.refining-monstera-carousel .refining-carousel-water-lines {
  opacity: 0 !important;
  background: none;
  animation: none;
}

.refining-monstera-carousel .refining-carousel-water-lines::before,
.refining-monstera-carousel .refining-carousel-water-lines::after {
  display: none;
  animation: none;
}

.work-carousel,
.refining-carousel {
  max-width: 100%;
  overflow: visible;
}

.refining-carousel .work-track {
  max-width: 100%;
  overflow: visible;
}

.refining-carousel-pad-field {
  overflow: visible;
}

.refining-carousel .work-card {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--slot, 0) * min(16vw, 210px)))
    translateY(calc(var(--distance, 0) * 12px))
    perspective(1100px)
    rotateX(1.2deg)
    rotateY(calc(var(--slot, 0) * -3.6deg))
    rotateZ(calc(var(--slot, 0) * 4.8deg - 0.5deg))
    scale(calc(1 - min(var(--distance, 0), 2) * 0.075));
}

.refining-carousel .work-card.is-active {
  transform:
    translate(-50%, -50%)
    perspective(1100px)
    rotateX(0.8deg)
    rotateZ(-0.8deg)
    scale(1);
}

@media (min-width: 821px) {
  .refining-carousel.refining-monstera-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(16vw, 210px)))
      translateY(calc(var(--distance, 0) * 12px))
      perspective(1100px)
      rotateX(1.2deg)
      rotateY(calc(var(--slot, 0) * -3.6deg))
      rotateZ(calc(var(--slot, 0) * 4.8deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.075));
  }

  .refining-carousel.refining-monstera-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(1100px)
      rotateX(0.8deg)
      rotateZ(-0.8deg)
      scale(1);
  }
}

#portfolio .section-head,
.portfolio-title-split {
  text-align: center;
  justify-items: center;
}

#portfolio .section-head {
  grid-template-columns: 1fr;
  width: 100%;
}

#portfolio-title {
  justify-self: center;
}

.refining-carousel .carousel-dots {
  margin-top: clamp(22px, 2.7vw, 42px);
}

@media (min-width: 821px) and (max-width: 1180px) {
  .refining-carousel {
    overflow: clip;
  }

  .refining-carousel-pad-field {
    inset: 0;
    overflow: hidden;
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(14vw, 148px)))
      translateY(calc(var(--distance, 0) * 12px))
      perspective(1000px)
      rotateX(1.1deg)
      rotateY(calc(var(--slot, 0) * -3.2deg))
      rotateZ(calc(var(--slot, 0) * 4.1deg - 0.4deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.07));
  }

  .refining-carousel.refining-monstera-carousel .work-card.is-active,
  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(1000px)
      rotateX(0.7deg)
      rotateZ(-0.7deg)
      scale(1);
  }
}

:root[data-refining-platform="tablet"] .refining-carousel {
  display: block;
  min-height: clamp(520px, 72vw, 650px);
  margin-bottom: clamp(28px, 4vw, 44px);
  overflow: hidden;
}

:root[data-refining-platform="tablet"] .refining-carousel .work-track {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  padding: 0;
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card,
:root[data-refining-platform="tablet"] .refining-carousel .work-card.is-active {
  position: absolute;
  left: 50%;
  top: 50%;
  flex: none;
  width: min(calc(100vw - 140px), 500px);
  min-height: min(62vw, 500px);
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card {
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--slot, 0) * min(18vw, 148px)))
    translateY(calc(var(--distance, 0) * 16px))
    perspective(1000px)
    rotateX(1.4deg)
    rotateY(calc(var(--slot, 0) * -4deg))
    rotateZ(calc(var(--slot, 0) * 4.6deg - 0.6deg))
    scale(calc(1 - min(var(--distance, 0), 2) * 0.09));
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card.is-active {
  transform:
    translate(-50%, -50%)
    perspective(1000px)
    rotateX(1deg)
    rotateZ(-0.8deg)
    scale(1);
}

:root[data-refining-platform="tablet"] .refining-carousel .work-card[style*="--distance: 2"] {
  opacity: 0;
  pointer-events: none;
}

:root[data-refining-platform="tablet"] .refining-carousel .work-shot {
  height: clamp(280px, 39vw, 320px);
}

:root[data-refining-platform="tablet"] .refining-carousel .carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

:root[data-refining-platform="mobile"] .refining-carousel {
  display: block;
  width: 100%;
  min-height: clamp(520px, 134vw, 585px);
  margin-inline: auto;
  margin-bottom: 48px;
  overflow: visible;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-track {
  position: absolute;
  inset: 28px 0 58px;
  display: block;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  overflow: visible;
  padding: 0;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-track::-webkit-scrollbar {
  display: none;
}

:root[data-refining-platform="mobile"] .refining-carousel-pad-field {
  position: absolute;
  inset: 4% -10% -8%;
  z-index: 18;
  opacity: 1;
  overflow: hidden;
}

:root[data-refining-platform="mobile"] .refining-carousel-pad {
  filter: saturate(1.18) brightness(1.1);
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card,
:root[data-refining-platform="mobile"] .refining-carousel .work-card.is-active {
  position: absolute;
  left: 50%;
  top: 52%;
  flex: none;
  width: min(calc(100vw - 64px), 318px);
  min-height: 420px;
  border-radius: 18px;
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--slot, 0) * 52px))
    translateY(calc(var(--distance, 0) * 16px))
    perspective(900px)
    rotateX(3deg)
    rotateY(calc(var(--slot, 0) * -5deg))
    rotateZ(calc(var(--slot, 0) * 5.8deg - 1deg))
    scale(calc(1 - min(var(--distance, 0), 2) * 0.08));
  scroll-snap-align: center;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card.is-active {
  transform:
    translate(-50%, -50%)
    perspective(900px)
    rotateX(2.4deg)
    rotateZ(-1.2deg)
    scale(1);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(221, 230, 158, 0.1);
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card:not(.is-active) {
  opacity: 0.68;
  pointer-events: none;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-card[style*="--distance: 2"] {
  opacity: 0;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-shot {
  height: clamp(220px, 58vw, 278px);
}

:root[data-refining-platform="mobile"] .refining-carousel .work-info {
  padding: 18px;
}

:root[data-refining-platform="mobile"] .refining-carousel .work-info p {
  display: block;
  max-width: 100%;
}

:root[data-refining-platform="tablet"] .refining-contact-section {
  padding-top: clamp(28px, 5vw, 58px);
}

:root[data-refining-platform="tablet"] .refining-footer {
  margin-top: clamp(34px, 5vw, 64px);
}

:root[data-refining-platform="mobile"] .refining-carousel .carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .refining-carousel {
    display: block;
    width: 100%;
    min-height: clamp(520px, 134vw, 585px);
    margin-inline: auto;
    margin-bottom: 48px;
    overflow: visible;
  }

  .refining-carousel .work-track {
    position: absolute;
    inset: 28px 0 58px;
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    overflow: visible;
    padding: 0;
  }

  .refining-carousel .work-track::-webkit-scrollbar {
    display: none;
  }

  .refining-carousel-pad-field {
    position: absolute;
    inset: 4% -10% -8%;
    z-index: 18;
    opacity: 1;
    overflow: hidden;
  }

  .refining-carousel-pad {
    filter: saturate(1.18) brightness(1.1);
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    position: absolute;
    left: 50%;
    top: 52%;
    flex: none;
    width: min(calc(100vw - 64px), 318px);
    min-height: 420px;
    border-radius: 18px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * 52px))
      translateY(calc(var(--distance, 0) * 16px))
      perspective(900px)
      rotateX(3deg)
      rotateY(calc(var(--slot, 0) * -5deg))
      rotateZ(calc(var(--slot, 0) * 5.8deg - 1deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.08));
    scroll-snap-align: center;
  }

  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(900px)
      rotateX(2.4deg)
      rotateZ(-1.2deg)
      scale(1);
    box-shadow:
      0 26px 70px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(221, 230, 158, 0.1);
  }

  .refining-carousel .work-card:not(.is-active) {
    opacity: 0.68;
    pointer-events: none;
  }

  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0;
  }

  .refining-carousel .work-shot {
    height: clamp(220px, 58vw, 278px);
  }

  .refining-carousel .work-info {
    padding: 18px;
  }

  .refining-carousel .work-info p {
    display: block;
    max-width: 100%;
  }

  .refining-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
  }
}

.refining-animated-nav {
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
}

.refining-animated-nav .nav-drift {
  grid-column: 1 / -1;
  grid-row: 1;
  inset: 0;
  overflow: hidden;
  contain: layout paint style;
  transform: translateY(8px);
}

.refining-brand-widget {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.refining-animated-nav .nav-links {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  justify-self: center;
}

.refining-animated-nav .nav-links a,
.refining-animated-nav .nav-links button {
  font-size: clamp(1.02rem, 0.95vw, 1.2rem);
  line-height: 1;
}

.refining-nav-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  flex-wrap: nowrap;
  min-width: max-content;
}

.refining-contact-section {
  padding-top: clamp(46px, 7vw, 92px);
}

.refining-contact {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(14px, 2vw, 22px);
  min-height: clamp(250px, 24vw, 340px);
  padding: clamp(38px, 6vw, 72px) clamp(22px, 6vw, 86px);
  cursor: pointer;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5, 14, 5, 0.58), rgba(3, 8, 4, 0.86)),
    url("assets/grain-test.webp") center / cover no-repeat,
    rgba(5, 14, 5, 0.88);
  transition:
    transform 220ms var(--ease),
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.refining-contact::before {
  display: none;
}

.refining-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 211, 107, 0.34);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  filter: saturate(1.04);
}

.refining-contact:focus-visible {
  outline: 3px solid rgba(242, 211, 107, 0.72);
  outline-offset: 6px;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form button:focus-visible {
  outline: 3px solid rgba(242, 211, 107, 0.76);
  outline-offset: 3px;
}

.contact-form input[aria-invalid="true"] {
  border-color: rgba(242, 211, 107, 0.9);
  box-shadow: 0 0 0 3px rgba(242, 211, 107, 0.18);
}

.contact-form-status {
  min-height: 1.2em;
  margin: -0.35rem 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.82rem;
}

.refining-contact > img {
  justify-self: center;
  width: clamp(62px, 7vw, 104px);
  aspect-ratio: 1;
  object-fit: contain;
}

.refining-contact h2,
.refining-contact p {
  max-width: 720px;
  margin-inline: auto;
}

.contact-click-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.74rem;
  min-height: 44px;
  padding: 0.42rem 0.76rem;
  color: var(--bloom);
  border: 1px solid rgba(242, 211, 107, 0.24);
  border-radius: 999px;
  background: rgba(5, 14, 5, 0.48);
  font-family: "Plus Jakarta Sans", var(--refining-body-font);
  font-size: clamp(0.78rem, 0.95vw, 0.92rem);
  font-weight: 820;
  letter-spacing: 0;
  pointer-events: none;
}

.contact-cursor-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.contact-cursor-shape {
  position: absolute;
  left: 3px;
  top: 1px;
  width: 18px;
  height: 24px;
  background: color-mix(in srgb, var(--cream) 92%, var(--bloom));
  clip-path: polygon(0 0, 0 100%, 6px 78%, 10px 98%, 15px 96%, 11px 74%, 24px 74%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34));
  transform: rotate(-8deg);
}

.contact-cursor-mark img {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.refining-footer {
  --footer-bg-alpha: 0.92;
  --footer-grain-opacity: 0.34;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 1180px);
  min-height: 72px;
  margin: clamp(52px, 8vw, 96px) auto 0;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid rgba(221, 230, 158, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 10%, rgba(132, 183, 74, 0.14), transparent 38%),
    linear-gradient(180deg, rgb(4 14 6 / var(--footer-bg-alpha)), rgb(1 8 3 / 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.06),
    0 -24px 90px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(34px) saturate(1.15);
}

.refining-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/grain-test.webp") center / cover no-repeat;
  opacity: var(--footer-grain-opacity);
  mix-blend-mode: normal;
  pointer-events: none;
}

.refining-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 22%, transparent 76%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, rgba(221, 230, 158, 0.05), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.refining-footer > *:not(.footer-drift) {
  position: relative;
  z-index: 2;
}

.footer-drift {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.58;
}

.refining-footer > .footer-logo {
  position: relative;
  right: auto;
  bottom: auto;
  display: block;
  color: var(--cream);
  text-decoration: none;
  --builtby-widget-size: 31px;
  --builtby-widget-logo-size: 43.71px;
  --builtby-widget-prefix-size: 21.7px;
  --builtby-widget-suffix-size: 21.7px;
  --builtby-widget-duration: 260ms;
}

.refining-footer > .footer-logo img {
  width: clamp(30px, 3.6vw, 54px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.refining-footer .footer-actions {
  position: relative;
  left: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.refining-footer .font-panel,
.refining-footer .carousel-control-panel {
  display: none;
}

.refining-footer .footer-actions > a {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  font-family: "Plus Jakarta Sans", var(--refining-body-font);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.refining-footer .footer-actions > a:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 211, 107, 0.36);
  background: rgba(255, 250, 240, 0.14);
}

.refining-settings-panel .settings-group .settings-mounted-slot .carousel-control-panel {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.refining-settings-panel .settings-group .settings-mounted-slot .carousel-control-panel {
  grid-template-columns: 1fr;
}

@media (max-width: 820px) {
  .refining-hero,
  .work-carousel,
  .refining-carousel {
    overflow: hidden;
  }

  :root[data-refining-platform="tablet"] .refining-carousel {
    overflow: visible;
  }

  .refining-lockup {
    --title-logo-scale: 0.87;
    --title-tuck: -66px;
    transform: translateY(clamp(-14px, -2.4vw, -6px));
  }

  .refining-lockup > img {
    top: calc(clamp(-52px, -10vw, -24px) + var(--title-logo-y));
  }

  .refining-lockup h1 {
    transform: translateY(var(--title-tuck));
  }

  .refining-contact {
    min-height: clamp(300px, 52vw, 420px);
  }

  .refining-animated-nav {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .refining-brand-widget {
    grid-column: 1;
  }

  .refining-animated-nav .nav-links {
    display: none;
  }

  .refining-nav-actions {
    grid-column: 2;
    min-width: 0;
  }

  .refining-animated-nav .nav-cta {
    display: none;
  }

  .device-switcher {
    width: min(100%, 232px);
  }

  .device-switcher button {
    min-width: 0;
    padding-inline: 9px;
  }
}

@media (max-width: 520px) {
  .refining-animated-nav,
  :root[data-refining-header-platform="mobile"] .refining-animated-nav {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    row-gap: 0;
    padding-block: 7px;
    padding-inline: 10px;
    min-height: 52px;
  }

  .refining-brand-widget,
  :root[data-refining-header-platform="mobile"] .refining-brand-widget {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    --builtby-widget-size: 1.16rem;
    --builtby-widget-logo-size: 1.34rem;
  }

  .refining-nav-actions,
  :root[data-refining-header-platform="mobile"] .refining-nav-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    justify-content: flex-end;
    justify-self: end;
  }

  .nav-settings-button,
  :root[data-refining-header-platform="mobile"] .nav-settings-button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.74rem;
  }

  .device-switcher {
    width: auto;
    max-width: none;
    justify-self: center;
  }

  .device-switcher button {
    min-height: 34px;
    min-width: 34px;
    padding-inline: 0;
    font-size: 0;
  }

  .device-switcher button::before {
    content: attr(data-short-label);
    display: inline;
    font-size: 0.72rem;
  }

  .refining-lockup {
    --title-logo-scale: 0.87;
    --title-tuck: -66px;
    min-height: clamp(150px, 44vw, 214px);
  }

  .refining-lockup > img {
    top: calc(clamp(-56px, -12vw, -36px) + var(--title-logo-y));
    width: clamp(170px, 50vw, 238px);
  }

  .refining-lockup h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .refining-footer > .footer-logo .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
    max-width: 0;
    margin-inline: 0;
    opacity: 0;
    transform: translate(0, var(--_builtby-widget-side-text-y));
  }
}

@media (max-width: 360px) {
  .refining-brand-widget,
  :root[data-refining-header-platform="mobile"] .refining-brand-widget {
    --builtby-widget-size: 1rem;
    --builtby-widget-logo-size: 1.14rem;
  }

  .refining-nav-actions,
  :root[data-refining-header-platform="mobile"] .refining-nav-actions {
    gap: 4px;
  }

  .nav-settings-button,
  :root[data-refining-header-platform="mobile"] .nav-settings-button {
    min-width: 42px;
    padding-inline: 0;
    font-size: 0;
  }

  .nav-settings-button::before,
  :root[data-refining-header-platform="mobile"] .nav-settings-button::before {
    content: "set";
    font-size: 0.68rem;
  }

  .device-switcher button {
    min-width: 30px;
    width: 30px;
  }
}

/* Targeted browser-comment polish pass */
.refining-animated-nav {
  --refining-nav-bg-alpha: 0.88 !important;
  background:
    radial-gradient(circle at 16% 8%, rgba(132, 183, 74, 0.2), transparent 36%),
    linear-gradient(180deg, rgb(9 34 11 / var(--refining-nav-bg-alpha)), rgb(4 18 6 / 0.9));
}

.refining-animated-nav .nav-drift {
  position: absolute;
  inset: -2px 8px -2px;
  width: auto;
  height: auto;
  opacity: 0.72;
  border-radius: inherit;
  transform: none;
}

.refining-animated-nav .drift-pad {
  filter: saturate(1.08) brightness(1.06);
}

.refining-hero {
  position: relative;
}

.refining-hero::after {
  content: "";
  position: absolute;
  left: max(-9vw, -150px);
  right: max(-9vw, -150px);
  bottom: -1px;
  z-index: 1;
  height: clamp(120px, 14vw, 230px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(19, 52, 18, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(1, 8, 3, 0), var(--page-bg) 78%);
  pointer-events: none;
}

.refining-hero > * {
  position: relative;
  z-index: 2;
}

.refining-carousel {
  margin-bottom: clamp(34px, 4vw, 62px);
}

.refining-carousel .carousel-dots {
  margin-top: clamp(34px, 3.4vw, 58px);
}

.refining-carousel.refining-monstera-carousel .work-card[style*="--distance: 2"],
.refining-carousel .work-card[style*="--distance: 2"] {
  opacity: 0.32;
  pointer-events: none;
}

@media (min-width: 1181px) {
  .refining-carousel {
    width: min(100vw, 1720px);
  }

  .refining-carousel-pad-field {
    inset: -12% max(-18vw, -280px) -10%;
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card {
    transform:
      translateX(calc(var(--slot, 0) * min(18vw, 250px)))
      translateY(calc(var(--distance, 0) * 13px))
      perspective(1150px)
      rotateX(1.2deg)
      rotateY(calc(var(--slot, 0) * -3.8deg))
      rotateZ(calc(var(--slot, 0) * 5deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.07));
  }
}

@media (min-width: 2200px) {
  .refining-animated-nav .nav-drift {
    inset: -2px 10px -2px;
    transform: none;
  }

  .refining-carousel {
    margin-bottom: clamp(32px, 2.8vw, 56px);
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .refining-animated-nav .nav-drift {
    inset: -2px 6px -2px;
    opacity: 0.68;
  }

  .refining-carousel {
    min-height: clamp(640px, 76vw, 760px);
    margin-bottom: clamp(42px, 5vw, 66px);
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    width: min(calc(100vw - 82px), 500px);
    top: 45%;
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(19vw, 168px)))
      translateY(calc(var(--distance, 0) * 14px))
      perspective(1000px)
      rotateX(1.35deg)
      rotateY(calc(var(--slot, 0) * -3.8deg))
      rotateZ(calc(var(--slot, 0) * 4.8deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.07));
  }

  .refining-carousel.refining-monstera-carousel .work-card[style*="--distance: 2"],
  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.34;
    pointer-events: none;
  }

  .refining-carousel .carousel-dots {
    bottom: -24px;
  }

  :root[data-refining-platform="tablet"] .refining-carousel {
    overflow: visible;
  }

  :root[data-refining-platform="tablet"] .refining-carousel .carousel-dots {
    bottom: -24px;
  }

  :root[data-refining-platform="tablet"] .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.34;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .refining-footer > .footer-logo {
    width: auto;
    max-width: none;
    overflow: visible;
  }

  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix {
    max-width: 4.6em !important;
    margin-right: var(--_builtby-widget-prefix-gap) !important;
    opacity: 1 !important;
    transform: translate(-0.08em, var(--_builtby-widget-side-text-y)) !important;
  }

  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
    max-width: 3.2em !important;
    margin-left: var(--_builtby-widget-suffix-gap) !important;
    opacity: 1 !important;
    transform: translate(0.02em, var(--_builtby-widget-side-text-y)) !important;
  }
}

@media (max-width: 760px) {
  .refining-footer > .footer-logo {
    width: auto;
    max-width: none;
    overflow: visible;
  }

  .refining-footer > .footer-logo .builtby-logo-widget {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }

  .refining-footer > .footer-logo .builtby-logo-widget__text {
    display: none;
  }
}

@media (max-width: 700px) {
  .refining-carousel {
    min-height: clamp(610px, 154vw, 690px);
    margin-bottom: 52px;
  }

  .refining-carousel .work-track {
    inset: 30px 0 74px;
  }

  .refining-carousel-pad-field {
    inset: 1% -24% -9%;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    top: 44%;
    width: min(calc(100vw - 54px), 332px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * 70px))
      translateY(calc(var(--distance, 0) * 16px))
      perspective(920px)
      rotateX(3deg)
      rotateY(calc(var(--slot, 0) * -5.4deg))
      rotateZ(calc(var(--slot, 0) * 6deg - 1deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.075));
  }

  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(920px)
      rotateX(2.4deg)
      rotateZ(-1.2deg)
      scale(1);
  }

  .refining-carousel .work-card:not(.is-active) {
    opacity: 0.72;
  }

  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.28;
  }

  .refining-carousel .carousel-dots {
    bottom: -24px;
  }

  :root[data-refining-platform="mobile"] .refining-carousel .carousel-dots {
    bottom: -24px;
  }

  :root[data-refining-platform="mobile"] .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.28;
  }
}


/* Final selected visual refinements. */

:root[data-visual-qa-ready="true"][data-vqa-01="on"] .refining-hero {
  background: radial-gradient(circle at 50% 16%, rgba(221, 230, 158, 0.16), transparent 28%), radial-gradient(ellipse at 50% 42%, rgba(79, 143, 55, 0.14), transparent 54%), linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18) 78%, rgba(0, 0, 0, 0.28));
}
:root[data-visual-qa-ready="true"][data-vqa-01="on"] .refining-grain-field::after { opacity: 0.16; }

:root[data-visual-qa-ready="true"][data-vqa-02="on"] .refining-lockup {
  --title-logo-scale: 0.92;
  --title-logo-y: -10px;
  --title-tuck: -76px;
}
:root[data-visual-qa-ready="true"][data-vqa-02="on"] .refining-lockup h1 {
  text-shadow: 0 16px 54px rgba(0, 0, 0, 0.48), 0 0 24px rgba(221, 230, 158, 0.08);
}

:root[data-visual-qa-ready="true"][data-vqa-03="on"] .landing-pad-tagline {
  max-width: min(840px, 92vw);
  line-height: 0.92;
  text-wrap: balance;
}
:root[data-visual-qa-ready="true"][data-vqa-03="on"] .hero-copy p {
  max-width: 620px;
  margin-inline: auto;
  color: rgba(255, 250, 240, 0.72);
  font-weight: 760;
}

:root[data-visual-qa-ready="true"][data-vqa-04="on"] .refining-animated-nav {
  --refining-nav-bg-alpha: 0.96;
  border-color: rgba(221, 230, 158, 0.2);
  background: radial-gradient(circle at 16% 0%, rgba(132, 183, 74, 0.18), transparent 34%), linear-gradient(180deg, rgba(5, 20, 7, 0.98), rgba(1, 8, 3, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.1), inset 0 -1px 0 rgba(132, 183, 74, 0.08), 0 16px 72px rgba(0, 0, 0, 0.34);
}

:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links a,
:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links button {
  position: relative;
  padding-bottom: 3px;
}
:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links a::after,
:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 107, 0.72), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}
:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links a:hover::after,
:root[data-visual-qa-ready="true"][data-vqa-05="on"] .refining-animated-nav .nav-links button:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

:root[data-visual-qa-ready="true"][data-vqa-06="on"] .nav-cta,
:root[data-visual-qa-ready="true"][data-vqa-06="on"] .form-submit,
:root[data-visual-qa-ready="true"][data-vqa-06="on"] .contact-click-cue {
  border-color: rgba(242, 211, 107, 0.44);
  background: linear-gradient(180deg, rgba(84, 140, 44, 0.98), rgba(28, 75, 26, 0.98)), var(--pond);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.14), 0 16px 42px rgba(83, 150, 52, 0.26);
}
:root[data-visual-qa-ready="true"][data-vqa-06="on"] .nav-cta:hover,
:root[data-visual-qa-ready="true"][data-vqa-06="on"] .form-submit:hover,
:root[data-visual-qa-ready="true"][data-vqa-06="on"] .contact-click-cue:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.2), 0 22px 58px rgba(83, 150, 52, 0.34);
}

:root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher { padding: 3px; opacity: 0.82; }
:root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher button { min-width: 54px; min-height: 28px; font-size: 0.64rem; }
:root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher button.is-active { box-shadow: none; }

:root[data-visual-qa-ready="true"][data-vqa-08="on"] #portfolio { padding-top: clamp(72px, 9vw, 138px); }
:root[data-visual-qa-ready="true"][data-vqa-08="on"] .refining-contact-section { padding-top: clamp(76px, 10vw, 150px); }

:root[data-visual-qa-ready="true"][data-vqa-09="on"] .portfolio-title-split { letter-spacing: 0; line-height: 0.9; }
:root[data-visual-qa-ready="true"][data-vqa-09="on"] .portfolio-title-previous { color: rgba(255, 250, 240, 0.9); font-size: 0.74em; }
:root[data-visual-qa-ready="true"][data-vqa-09="on"] .portfolio-title-landing {
  color: color-mix(in srgb, var(--cream) 96%, var(--bloom) 4%);
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.46), 0 0 20px rgba(221, 230, 158, 0.06);
}

:root[data-visual-qa-ready="true"][data-vqa-10="on"] .refining-carousel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(70px, 8vw, 118px);
  z-index: 0;
  width: min(960px, 92vw);
  height: clamp(120px, 18vw, 210px);
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(221, 230, 158, 0.16), rgba(64, 118, 48, 0.13) 38%, transparent 72%);
  filter: blur(22px);
  transform: translateX(-50%);
}
:root[data-visual-qa-ready="true"][data-vqa-10="on"] .refining-carousel .work-track { z-index: 1; }

:root[data-visual-qa-ready="true"][data-vqa-11="on"] .refining-carousel .work-card.is-active {
  border-color: rgba(221, 230, 158, 0.24);
  border-radius: 20px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(221, 230, 158, 0.11), 0 0 56px rgba(132, 183, 74, 0.1);
}
:root[data-visual-qa-ready="true"][data-vqa-11="on"] .refining-carousel .work-card.is-active .work-shot { border-radius: 16px 16px 0 0; }

:root[data-visual-qa-ready="true"][data-vqa-12="on"] .refining-carousel .work-card:not(.is-active) {
  opacity: 0.46;
  filter: saturate(0.68) brightness(0.82) blur(0.25px);
}

:root[data-visual-qa-ready="true"][data-vqa-13="on"] .refining-carousel .work-shot {
  background: color-mix(in srgb, var(--cream) 96%, var(--bloom) 4%);
}
:root[data-visual-qa-ready="true"][data-vqa-13="on"] .refining-carousel .work-shot img {
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.08) contrast(1.05) brightness(1.02);
}

:root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots { gap: 11px; }
:root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button {
  width: 42px;
  height: 38px;
  color: rgba(255, 250, 240, 0.78);
  border-color: rgba(255, 250, 240, 0.13);
  background: rgba(255, 250, 240, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.08);
}
:root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button.is-active {
  width: 58px;
  color: #13260d;
  border-color: rgba(242, 211, 107, 0.62);
  background: var(--bloom);
  box-shadow: 0 14px 40px rgba(242, 211, 107, 0.18);
}

:root[data-visual-qa-ready="true"][data-vqa-15="on"] .refining-contact {
  border-color: rgba(221, 230, 158, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.08), inset 0 0 80px rgba(221, 230, 158, 0.035), 0 34px 110px rgba(0, 0, 0, 0.34);
}
:root[data-visual-qa-ready="true"][data-vqa-15="on"] .refining-contact:hover {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(242, 211, 107, 0.42);
}

:root[data-visual-qa-ready="true"][data-vqa-16="on"] .contact-click-cue {
  padding-inline: 0.96rem;
  border-color: rgba(242, 211, 107, 0.42);
  color: var(--cream);
  background: rgba(242, 211, 107, 0.12);
  box-shadow: 0 0 42px rgba(242, 211, 107, 0.1);
}
:root[data-visual-qa-ready="true"][data-vqa-16="on"] .contact-cursor-mark { transform: translateY(-1px) scale(1.08); }

:root[data-visual-qa-ready="true"][data-vqa-17="on"] .refining-footer {
  min-height: 78px;
  border-color: rgba(221, 230, 158, 0.2);
  background: radial-gradient(circle at 18% 0%, rgba(132, 183, 74, 0.17), transparent 34%), linear-gradient(180deg, rgba(5, 20, 7, 0.98), rgba(1, 8, 3, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.1), 0 -20px 88px rgba(0, 0, 0, 0.22);
}

:root[data-visual-qa-ready="true"][data-vqa-18="on"] .refining-footer .footer-actions > a {
  min-width: 112px;
  border-color: rgba(242, 211, 107, 0.22);
  background: rgba(255, 250, 240, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.08);
}
:root[data-visual-qa-ready="true"][data-vqa-18="on"] .refining-footer .footer-actions > a:hover {
  color: #13260d;
  background: var(--bloom);
  transform: translateY(-2px);
}

:root[data-visual-qa-ready="true"][data-vqa-20="on"] .work-card,
:root[data-visual-qa-ready="true"][data-vqa-20="on"] .carousel-dots button,
:root[data-visual-qa-ready="true"][data-vqa-20="on"] .nav-cta,
:root[data-visual-qa-ready="true"][data-vqa-20="on"] .contact-panel,
:root[data-visual-qa-ready="true"][data-vqa-20="on"] .refining-footer .footer-actions > a {
  transition-duration: 360ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 520px) {
  :root[data-visual-qa-ready="true"][data-vqa-02="on"] .refining-lockup {
    --title-logo-scale: 0.84;
    --title-logo-y: -4px;
    --title-tuck: -60px;
  }
  :root[data-visual-qa-ready="true"][data-vqa-09="on"] .portfolio-title-split { display: grid; gap: 2px; }
  :root[data-visual-qa-ready="true"][data-vqa-10="on"] .refining-carousel::after { bottom: 82px; width: 118vw; height: 160px; }
  :root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button { width: 46px; height: 40px; }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .refining-nav-actions { gap: 5px; }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .nav-settings-button {
    width: 42px;
    min-width: 42px;
    min-height: 34px;
    padding-inline: 0;
    overflow: hidden;
    font-size: 0;
  }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .nav-settings-button::before {
    content: "set";
    font-size: 0.66rem;
  }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .nav-settings-button::after { content: none; }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher {
    grid-template-columns: repeat(3, 28px);
    min-height: 34px;
    padding: 3px;
  }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher button {
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  :root[data-visual-qa-ready="true"][data-vqa-07="on"] .device-switcher button::before {
    content: attr(data-short-label);
    font-size: 0.66rem;
  }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-hero { min-height: 620px; padding-top: 72px; }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-lockup { min-height: 190px; --title-tuck: -54px; }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-lockup > img { width: clamp(160px, 47vw, 212px); }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-lockup h1 { font-size: clamp(3rem, 14vw, 4.55rem); }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .landing-pad-tagline { margin-top: 18px; font-size: clamp(1.58rem, 8vw, 2rem); }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-carousel { min-height: 500px; margin-bottom: 34px; }
  :root[data-visual-qa-ready="true"][data-vqa-19="on"] .refining-carousel .work-card { top: 50%; width: min(calc(100vw - 56px), 308px); }
}

.refining-settings-panel,
.dialog {
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.refining-carousel,
.refining-carousel .work-track,
.refining-carousel .work-card,
.refining-contact,
.refining-footer {
  touch-action: pan-y;
}

html,
body {
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 69;
  height: 16px;
  background: var(--page-bg);
  pointer-events: none;
}

.refining-logo-pad-field {
  overflow: visible;
}

.refining-hero,
.refining-hero .hero-copy,
.refining-lockup {
  overflow: visible;
}

.refining-logo-pad {
  will-change: transform;
}

.section {
  padding-block: clamp(28px, 4.2vw, 66px);
}

.hero + .section,
#portfolio {
  padding-top: clamp(24px, 3.4vw, 54px);
}

.refining-contact-section {
  padding-top: clamp(24px, 3.4vw, 52px);
}

.refining-carousel {
  width: min(100vw, 1500px);
  margin-left: 50%;
  margin-right: 0;
  margin-bottom: clamp(14px, 2vw, 30px);
  overflow: visible;
  contain: none;
  transform: translateX(-50%);
}

.refining-carousel .work-track {
  overflow: visible;
}

.refining-carousel-pad-field {
  inset: -9% max(-10vw, -120px) -7%;
  overflow: visible;
}

.refining-footer {
  margin-top: clamp(22px, 4vw, 58px);
}

.refining-animated-nav {
  --refining-nav-bg-alpha: 0.84 !important;
  border-color: rgba(221, 230, 158, 0.2);
  background:
    radial-gradient(circle at 18% 10%, rgba(132, 183, 74, 0.2), transparent 38%),
    linear-gradient(180deg, rgb(7 26 9 / var(--refining-nav-bg-alpha)), rgb(3 13 5 / 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.08),
    0 18px 70px rgba(0, 0, 0, 0.22);
}

:root[data-visual-qa-ready="true"][data-vqa-04="on"] .refining-animated-nav {
  background:
    radial-gradient(circle at 18% 10%, rgba(132, 183, 74, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(8, 31, 10, 0.86), rgba(3, 14, 5, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 240, 0.1),
    0 18px 70px rgba(0, 0, 0, 0.22);
}

.refining-animated-nav::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent 26%, transparent 76%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, rgba(221, 230, 158, 0.08), rgba(0, 0, 0, 0.08));
  opacity: 0.82;
}

.refining-animated-nav .nav-drift {
  inset: 16px 18px 7px;
  z-index: 1;
  opacity: 0.78;
  overflow: hidden;
  transform: none;
  border-radius: 6px;
  pointer-events: none;
}

.refining-animated-nav .nav-cta,
.nav-settings-button,
.refining-animated-nav .nav-links {
  position: relative;
  z-index: 4;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.32);
}

.refining-animated-nav .nav-links a,
.refining-animated-nav .nav-links button {
  position: relative;
  z-index: 4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.54);
}

.refining-animated-nav .nav-links {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(3, 13, 5, 0.32);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(4px);
}

.refining-animated-nav .nav-cta {
  display: inline-grid;
}

@media (max-width: 1180px) {
  .refining-animated-nav {
    background:
      radial-gradient(circle at 18% 10%, rgba(132, 183, 74, 0.18), transparent 40%),
      linear-gradient(180deg, rgba(7, 26, 9, 0.88), rgba(3, 13, 5, 0.9));
  }

  .refining-animated-nav .nav-drift {
    inset: 13px 16px 8px;
    opacity: 0.68;
  }
}

@media (min-width: 2200px) {
  .site.refining-1 {
    width: min(calc(100% - 112px), 1480px);
  }

  .section {
    padding-block: clamp(34px, 2.8vw, 66px);
  }

  .hero + .section,
  #portfolio {
    padding-top: clamp(28px, 2.4vw, 52px);
  }

  .refining-contact-section {
    padding-top: clamp(28px, 2.4vw, 54px);
  }

  .refining-footer {
    margin-top: clamp(24px, 2.4vw, 52px);
  }

  .refining-brand-widget {
    --builtby-widget-size: 36px;
    --builtby-widget-brand-size: 36px;
    --builtby-widget-logo-size: 52px;
  }

  .refining-animated-nav .nav-drift {
    inset: 18px 24px 7px;
    transform: scale(1.22);
    transform-origin: center;
  }

  .refining-carousel .carousel-dots {
    gap: 14px;
  }

  .refining-carousel .carousel-dots button,
  :root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button {
    width: 58px;
    height: 50px;
    font-size: 0.9rem;
  }

  .refining-carousel .carousel-dots button.is-active,
  :root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button.is-active {
    width: 78px;
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .site.refining-1 {
    width: min(calc(100% - 28px), 920px);
  }

  .refining-carousel {
    display: block;
    min-height: clamp(470px, 62vw, 580px);
    margin-bottom: clamp(18px, 2.8vw, 30px);
    overflow: visible;
  }

  .refining-carousel .work-track {
    position: absolute;
    inset: 0;
    display: block;
    overflow: visible;
    padding: 0;
  }

  .refining-carousel-pad-field {
    inset: -8% max(-10vw, -100px) -7%;
    overflow: visible;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    position: absolute;
    left: 50%;
    top: 50%;
    flex: none;
    width: min(calc(100vw - 120px), 500px);
    min-height: min(62vw, 500px);
  }

  .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(15vw, 126px)))
      translateY(calc(var(--distance, 0) * 12px))
      perspective(1000px)
      rotateX(1deg)
      rotateY(calc(var(--slot, 0) * -3.2deg))
      rotateZ(calc(var(--slot, 0) * 4deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.08));
  }

  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(1000px)
      rotateX(0.8deg)
      rotateZ(-0.7deg)
      scale(1);
  }

  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0;
    pointer-events: none;
  }

  .refining-carousel .work-shot {
    height: clamp(270px, 38vw, 320px);
  }

  .refining-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    margin: 0 auto;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .site.refining-1 {
    width: min(calc(100% - 36px), 1180px);
  }

  .refining-carousel {
    overflow: visible;
    contain: none;
  }

  .refining-carousel-pad-field {
    inset: -8% max(-10vw, -120px) -7%;
    overflow: visible;
  }

  .refining-carousel .work-track {
    overflow: visible;
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card {
    width: min(40vw, 500px);
    transform:
      translateX(calc(var(--slot, 0) * min(13vw, 160px)))
      translateY(calc(var(--distance, 0) * 12px))
      perspective(1100px)
      rotateX(1.15deg)
      rotateY(calc(var(--slot, 0) * -3.4deg))
      rotateZ(calc(var(--slot, 0) * 4.4deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.075));
  }

  .refining-carousel.refining-monstera-carousel .work-card.is-active,
  .refining-carousel .work-card.is-active {
    transform:
      translateX(0)
      perspective(1100px)
      rotateX(0.85deg)
      rotateZ(-0.65deg)
      scale(1);
  }

  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 820px) {
  .refining-animated-nav .nav-cta {
    display: inline-grid;
    min-height: 36px;
    min-width: 0;
    padding-inline: 12px;
    font-size: 0.76rem;
  }

  .nav-settings-button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.76rem;
  }
}

@media (max-width: 1180px) {
  .refining-footer {
    flex-wrap: nowrap;
    min-height: 72px;
  }

  .refining-footer > .footer-logo {
    flex: 0 0 auto;
    width: clamp(116px, 23vw, 146px);
    max-width: clamp(116px, 23vw, 146px);
    overflow: hidden;
  }

  .refining-footer .footer-actions {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .refining-footer > .footer-logo .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
    max-width: 0;
    margin-inline: 0;
    opacity: 0;
    transform: translate(0, var(--_builtby-widget-side-text-y));
  }
}

@media (max-width: 700px) {
  body::before {
    height: 10px;
  }

  .site.refining-1 {
    width: min(calc(100% - 16px), 430px);
  }

  .refining-hero {
    min-height: clamp(570px, 154vw, 660px);
    padding-top: 72px;
  }

  .refining-carousel {
    display: block;
    width: 100vw;
    min-height: clamp(430px, 112vw, 500px);
    margin-left: 50%;
    margin-right: 0;
    margin-bottom: 18px;
    overflow: visible;
    transform: translateX(-50%);
  }

  .refining-carousel .work-track {
    position: absolute;
    inset: 24px 0 60px;
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    padding: 0;
  }

  .refining-carousel-pad-field {
    position: absolute;
    inset: 2% -16% -6%;
    z-index: 18;
    overflow: visible;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    position: absolute;
    left: 50%;
    top: 52%;
    flex: none;
    width: min(calc(100vw - 44px), 342px);
    min-height: 390px;
    border-radius: 18px;
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * 52px))
      translateY(calc(var(--distance, 0) * 14px))
      perspective(900px)
      rotateX(2.6deg)
      rotateY(calc(var(--slot, 0) * -4.5deg))
      rotateZ(calc(var(--slot, 0) * 5deg - 0.8deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.08));
  }

  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(900px)
      rotateX(2deg)
      rotateZ(-1deg)
      scale(1);
  }

  .refining-carousel .work-card:not(.is-active) {
    opacity: 0.68;
    pointer-events: none;
  }

  .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0;
  }

  .refining-carousel .work-shot {
    height: clamp(196px, 53vw, 258px);
  }

  .refining-carousel .work-info {
    padding: 18px;
  }

  .refining-carousel .work-info p {
    display: block;
    max-width: 100%;
  }

  .refining-carousel .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
  }

  .refining-footer {
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  .refining-footer .footer-actions > a {
    min-width: 0;
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.72rem;
  }
}

@media (max-width: 430px) {
  .refining-animated-nav {
    padding-inline: 8px;
  }

  .refining-brand-widget {
    --builtby-widget-size: 1.06rem;
    --builtby-widget-logo-size: 1.22rem;
  }

  .refining-nav-actions {
    gap: 5px;
  }

  .refining-animated-nav .nav-cta {
    width: 54px;
    min-width: 54px;
    min-height: 34px;
    padding-inline: 9px;
    font-size: 0;
  }

  .refining-animated-nav .nav-cta::before {
    content: "chat";
    display: inline-block;
    position: static;
    opacity: 1;
    transform: none;
    font-size: 0.68rem;
  }

  .refining-animated-nav .nav-cta::after {
    content: none;
  }

  .nav-settings-button {
    min-width: 42px;
    min-height: 34px;
    padding-inline: 0;
    font-size: 0;
  }

  .nav-settings-button::before {
    content: "set";
    font-size: 0.68rem;
  }
}

@media (max-width: 370px) {
  .site.refining-1 {
    width: min(calc(100% - 12px), 430px);
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active {
    width: min(calc(100vw - 32px), 328px);
    min-height: 382px;
  }

  .refining-carousel .work-shot {
    height: clamp(188px, 53vw, 218px);
  }

  .refining-carousel .work-info {
    padding: 15px;
  }

  .refining-carousel .carousel-dots {
    gap: 8px;
  }

  .refining-carousel .carousel-dots button,
  :root[data-visual-qa-ready="true"][data-vqa-14="on"] .carousel-dots button {
    width: 40px;
    height: 38px;
  }
}



/* Final browser-comment override layer */
.refining-animated-nav {
  --refining-nav-bg-alpha: 0.88 !important;
  position: fixed;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 8%, rgba(132, 183, 74, 0.2), transparent 36%),
    linear-gradient(180deg, rgb(9 34 11 / var(--refining-nav-bg-alpha)), rgb(4 18 6 / 0.9)) !important;
}

.refining-animated-nav .nav-drift {
  position: absolute !important;
  inset: -2px 8px -2px !important;
  width: auto !important;
  height: auto !important;
  z-index: 1;
  opacity: 0.72 !important;
  overflow: hidden;
  contain: layout paint style;
  transform: none !important;
  border-radius: inherit !important;
  pointer-events: none;
}

.refining-animated-nav .drift-pad {
  filter: saturate(1.08) brightness(1.06);
}

.refining-animated-nav .nav-cta,
.nav-settings-button,
.refining-animated-nav .nav-links,
.refining-brand-widget,
.refining-nav-actions {
  position: relative;
  z-index: 4;
}

.refining-animated-nav {
  grid-template-columns: clamp(168px, 15vw, 230px) minmax(220px, 1fr) auto !important;
}

.refining-brand-widget {
  inline-size: clamp(168px, 15vw, 230px);
  min-inline-size: clamp(168px, 15vw, 230px);
  overflow: visible;
}

.refining-brand-widget .builtby-logo-widget {
  max-inline-size: 100%;
}

.refining-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 16%, rgba(61, 111, 45, 0.46), transparent 52%),
    linear-gradient(180deg, rgba(7, 27, 8, 0.72), rgba(4, 15, 5, 0.96) 78%, rgba(4, 15, 5, 1));
  box-shadow:
    inset 10vw 0 140px rgba(4, 15, 5, 0.96),
    inset -10vw 0 140px rgba(4, 15, 5, 0.96),
    inset 0 -130px 160px rgba(4, 15, 5, 0.98);
}

.refining-hero::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 50%;
  bottom: clamp(-118px, -9vw, -72px);
  z-index: 1;
  width: 100vw;
  height: clamp(180px, 18vw, 300px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(28, 72, 25, 0.34), transparent 66%),
    linear-gradient(180deg, rgba(4, 15, 5, 0), rgba(4, 15, 5, 0.94) 52%, rgba(4, 15, 5, 0));
  filter: blur(20px);
  pointer-events: none;
}

.refining-hero > * {
  position: relative;
  z-index: 2;
}

.refining-hero .hero-copy {
  width: min(calc(100vw - 42px), 1180px);
  max-width: min(calc(100vw - 42px), 1180px);
  margin-inline: auto;
}

.refining-grain-field {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: -18% !important;
  bottom: -24% !important;
  width: 118vw !important;
  overflow: hidden !important;
  transform: translateX(-50%);
  z-index: 0 !important;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 76% at 50% 36%, #000 0%, #000 58%, transparent 100%) !important;
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 50% 36%, #000 0%, #000 58%, transparent 100%) !important;
}

.refining-grain-field::before,
.refining-grain-field::after {
  inset-inline: -18% !important;
}

.refining-carousel {
  width: min(100vw, 1500px);
  margin-bottom: clamp(34px, 4vw, 62px);
  overflow: visible !important;
}

.refining-carousel .work-track {
  overflow: visible !important;
}

.refining-carousel-pad-field,
:root[data-refining-platform="tablet"] .refining-carousel-pad-field,
:root[data-refining-platform="mobile"] .refining-carousel-pad-field {
  opacity: 1 !important;
}

.refining-carousel-pad,
.refining-carousel-pad img {
  opacity: 1 !important;
}

.refining-carousel-pad {
  --pad-opacity: 1 !important;
}

.refining-carousel .carousel-dots {
  margin-top: clamp(18px, 2.2vw, 34px);
}

.refining-contact-section {
  padding-top: clamp(24px, 3.5vw, 52px) !important;
}

.refining-footer {
  margin-top: clamp(28px, 4vw, 60px) !important;
}

.refining-carousel.refining-monstera-carousel .work-card[style*="--distance: 2"],
.refining-carousel .work-card[style*="--distance: 2"] {
  opacity: 0.32;
  pointer-events: none;
}

@media (min-width: 1181px) {
  .refining-carousel {
    width: min(100vw, 1580px);
    grid-template-rows: minmax(490px, clamp(510px, 42vw, 640px)) auto;
    gap: clamp(18px, 2vw, 30px);
  }

  .refining-carousel-pad-field {
    inset: -12% clamp(72px, 5vw, 160px) -4%;
    z-index: 18 !important;
    overflow: visible !important;
    clip-path: none !important;
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(18vw, 250px)))
      translateY(calc(var(--distance, 0) * 13px))
      perspective(1150px)
      rotateX(1.2deg)
      rotateY(calc(var(--slot, 0) * -3.8deg))
      rotateZ(calc(var(--slot, 0) * 5deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.07));
  }

  .refining-carousel.refining-monstera-carousel .work-card.is-active,
  .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(1150px)
      rotateX(0.8deg)
      rotateZ(-0.7deg)
      scale(1);
  }
}

#portfolio {
  position: relative;
  overflow: visible !important;
}

#portfolio::before {
  content: "";
  position: absolute;
  left: 50%;
  top: clamp(-130px, -9vw, -78px);
  z-index: 0;
  width: 100vw;
  height: clamp(170px, 16vw, 260px);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(30, 76, 25, 0.42), transparent 68%),
    linear-gradient(180deg, rgba(4, 15, 5, 0), rgba(4, 15, 5, 0.88) 48%, rgba(4, 15, 5, 0));
  filter: blur(18px);
  pointer-events: none;
}

#portfolio > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 2200px) {
  .refining-animated-nav .nav-drift {
    inset: -2px 10px -2px !important;
    transform: none !important;
  }

  .refining-carousel {
    margin-bottom: clamp(32px, 2.8vw, 56px);
  }
}

@media (min-width: 701px) and (max-width: 1180px) {
  .refining-animated-nav .nav-drift {
    inset: -2px 6px -2px !important;
    opacity: 0.68 !important;
  }

  .refining-carousel,
  :root[data-refining-platform="tablet"] .refining-carousel {
    min-height: clamp(510px, 61vw, 610px) !important;
    margin-bottom: clamp(30px, 4vw, 48px);
    overflow: visible;
  }

  .refining-carousel-pad-field,
  :root[data-refining-platform="tablet"] .refining-carousel-pad-field {
    inset: -6% -10% 18% !important;
    z-index: 18 !important;
    overflow: visible !important;
    clip-path: none !important;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active,
  :root[data-refining-platform="tablet"] .refining-carousel .work-card,
  :root[data-refining-platform="tablet"] .refining-carousel .work-card.is-active {
    top: 44%;
    width: min(calc(100vw - 82px), 500px);
  }

  .refining-carousel.refining-monstera-carousel .work-card,
  .refining-carousel .work-card,
  :root[data-refining-platform="tablet"] .refining-carousel .work-card {
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * min(19vw, 168px)))
      translateY(calc(var(--distance, 0) * 14px))
      perspective(1000px)
      rotateX(1.35deg)
      rotateY(calc(var(--slot, 0) * -3.8deg))
      rotateZ(calc(var(--slot, 0) * 4.8deg - 0.5deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.07));
  }

  .refining-carousel .work-card.is-active,
  :root[data-refining-platform="tablet"] .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(1000px)
      rotateX(0.9deg)
      rotateZ(-0.8deg)
      scale(1);
  }

  .refining-carousel.refining-monstera-carousel .work-card[style*="--distance: 2"],
  .refining-carousel .work-card[style*="--distance: 2"],
  :root[data-refining-platform="tablet"] .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.34 !important;
    pointer-events: none;
  }

  .refining-carousel .carousel-dots,
  :root[data-refining-platform="tablet"] .refining-carousel .carousel-dots {
    bottom: 10px !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .refining-footer > .footer-logo {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__prefix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__prefix {
    max-width: 4.6em !important;
    margin-right: var(--_builtby-widget-prefix-gap) !important;
    opacity: 1 !important;
    transform: translate(-0.08em, var(--_builtby-widget-side-text-y)) !important;
  }

  .refining-footer > .footer-logo .builtby-logo-widget:hover .builtby-logo-widget__suffix,
  .refining-footer > .footer-logo .builtby-logo-widget:focus-visible .builtby-logo-widget__suffix {
    max-width: 3.2em !important;
    margin-left: var(--_builtby-widget-suffix-gap) !important;
    opacity: 1 !important;
    transform: translate(0.02em, var(--_builtby-widget-side-text-y)) !important;
  }
}

@media (max-width: 760px) {
  .refining-animated-nav {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  .refining-brand-widget {
    inline-size: auto;
    min-inline-size: 0;
  }

  .refining-footer > .footer-logo {
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  .refining-footer > .footer-logo .builtby-logo-widget {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }

  .refining-footer > .footer-logo .builtby-logo-widget__text {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .refining-carousel,
  :root[data-refining-platform="mobile"] .refining-carousel {
    min-height: clamp(520px, 132vw, 600px) !important;
    margin-bottom: 52px;
  }

  .refining-carousel .work-track,
  :root[data-refining-platform="mobile"] .refining-carousel .work-track {
    inset: 24px 0 64px;
  }

  .refining-carousel-pad-field,
  :root[data-refining-platform="mobile"] .refining-carousel-pad-field {
    inset: 9% 2% 30% !important;
    z-index: 18 !important;
    overflow: visible !important;
    clip-path: none !important;
  }

  .refining-carousel .work-card,
  .refining-carousel .work-card.is-active,
  :root[data-refining-platform="mobile"] .refining-carousel .work-card,
  :root[data-refining-platform="mobile"] .refining-carousel .work-card.is-active {
    top: 48%;
    width: min(calc(100vw - 54px), 332px);
    transform:
      translate(-50%, -50%)
      translateX(calc(var(--slot, 0) * 70px))
      translateY(calc(var(--distance, 0) * 16px))
      perspective(920px)
      rotateX(3deg)
      rotateY(calc(var(--slot, 0) * -5.4deg))
      rotateZ(calc(var(--slot, 0) * 6deg - 1deg))
      scale(calc(1 - min(var(--distance, 0), 2) * 0.075));
  }

  .refining-carousel .work-card.is-active,
  :root[data-refining-platform="mobile"] .refining-carousel .work-card.is-active {
    transform:
      translate(-50%, -50%)
      perspective(920px)
      rotateX(2.4deg)
      rotateZ(-1.2deg)
      scale(1);
  }

  .refining-carousel .work-card:not(.is-active),
  :root[data-refining-platform="mobile"] .refining-carousel .work-card:not(.is-active) {
    opacity: 0.72;
  }

  .refining-carousel .work-card[style*="--distance: 2"],
  :root[data-refining-platform="mobile"] .refining-carousel .work-card[style*="--distance: 2"] {
    opacity: 0.28 !important;
  }

  .refining-carousel .carousel-dots,
  :root[data-refining-platform="mobile"] .refining-carousel .carousel-dots {
    bottom: 4px !important;
  }

  .refining-contact-section {
    padding-top: 18px !important;
  }

  .refining-footer {
    margin-top: 28px !important;
  }
}

@media (max-width: 700px) {
  .refining-hero {
    box-shadow:
      inset 16vw 0 110px rgba(4, 15, 5, 0.98),
      inset -16vw 0 110px rgba(4, 15, 5, 0.98),
      inset 0 -120px 140px rgba(4, 15, 5, 0.98);
  }

  .refining-grain-field {
    top: -14% !important;
    bottom: -18% !important;
    width: 130vw !important;
    mask-image: radial-gradient(ellipse 76% 78% at 50% 34%, #000 0%, #000 56%, transparent 100%) !important;
    -webkit-mask-image: radial-gradient(ellipse 76% 78% at 50% 34%, #000 0%, #000 56%, transparent 100%) !important;
  }

  .refining-lockup {
    --title-logo-scale: 0.74 !important;
    --title-tuck: -48px !important;
    min-height: clamp(142px, 42vw, 194px) !important;
  }

  .refining-lockup > img {
    z-index: 3 !important;
    top: calc(clamp(-48px, -10vw, -26px) + var(--title-logo-y)) !important;
    width: clamp(150px, 43vw, 210px) !important;
  }

  .refining-lockup h1 {
    z-index: 5 !important;
    transform: translateY(var(--title-tuck)) !important;
  }
}

@media (max-width: 380px) {
  html,
  body,
  body.refining-1-page {
    width: 100%;
    min-width: 0 !important;
    max-width: 100vw;
    overflow-x: hidden !important;
  }

  .site.refining-1,
  .refining-1 {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
  }

  .refining-hero,
  .refining-hero .hero-copy {
    overflow: hidden;
  }

  .refining-hero .hero-copy {
    width: calc(100vw - 14px);
    max-width: calc(100vw - 14px);
  }

  .refining-logo-pad-field {
    left: 50% !important;
    width: min(112vw, 112%) !important;
    overflow: visible !important;
    transform: translateX(-50%);
  }

  .refining-lockup {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .refining-hero h2 {
    width: min(100%, calc(100vw - 22px));
    max-width: min(100%, calc(100vw - 22px));
    margin-inline: auto;
    font-size: clamp(1.48rem, 8.4vw, 2.1rem) !important;
    line-height: 1.12;
    text-wrap: balance;
    overflow-wrap: break-word;
  }

  .refining-hero p {
    width: min(100%, calc(100vw - 28px));
    max-width: min(100%, calc(100vw - 28px));
    margin-inline: auto;
    overflow-wrap: break-word;
  }
}
