:root {
  --bg: #06160f;
  --line: rgba(200, 169, 113, 0.22);
  --gold: #c8a971;
  --gold-bright: #dfbf8c;
  --gold-deep: #ad9150;
  --ink: #f2eadc;
  --muted: #9a8660;
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --radius: 1.25rem;
  --radius-sm: 0.7rem;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shine: linear-gradient(
    105deg,
    transparent 44%,
    rgba(255, 240, 210, 0.35) 48.5%,
    rgba(255, 250, 236, 0.7) 50%,
    rgba(255, 240, 210, 0.35) 51.5%,
    transparent 56%
  );
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  background-color: #06160f;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #06160f;
  background-image: url("images/bg.webp");
  background-repeat: repeat;
  background-size: 1254px auto;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -ms-overflow-style: none;
  touch-action: manipulation;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px;
  opacity: 0.035;
  animation: grain 1.1s steps(1) infinite;
}

@keyframes grain {
  0% { background-position: 0 0; }
  17% { background-position: -47px 31px; }
  33% { background-position: 63px -22px; }
  50% { background-position: -18px -71px; }
  67% { background-position: 88px 54px; }
  83% { background-position: -76px 12px; }
}

/* Tappable and decorative bits shouldn't start a text selection on tap. */
.loader,
.ticker,
.hero-logo,
button,
.btn,
.btn-text,
[data-detail],
.tone-stage {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

::selection {
  background: rgba(200, 169, 113, 0.35);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

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

h1,
h2,
h3,
blockquote {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.35rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0.2em 0 0;
  color: var(--gold);
  white-space: nowrap;
}

h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0 0 0.35em;
  color: var(--gold-bright);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

main {
  position: relative;
}

.hero {
  min-height: auto;
  padding: 3.5rem 6vw 3rem;
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
}

.hero-logo {
  position: relative;
  margin: 0 0 1.2rem;
  width: min(90vw, 40rem);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* A band of light across the gold foil, clipped to the logo's own shape. */
.hero-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--shine);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-mask: url("images/logo-hero.webp") center / 100% 100% no-repeat;
  mask: url("images/logo-hero.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}

.hero-logo.is-ready .hero-shine {
  opacity: 1;
  animation: shine 7s cubic-bezier(0.45, 0, 0.25, 1) 1.8s infinite;
}

@keyframes shine {
  0% { background-position: 120% 0; }
  22%,
  100% { background-position: -20% 0; }
}

.hero-copy {
  max-width: 44rem;
  margin-top: 0.8rem;
  text-align: center;
  color: var(--ink);
}

.hero-copy p {
  color: #d8c7a4;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  margin-top: 2.1rem;
}

.hero-actions .btn {
  font-size: 0.9rem;
  padding: 1.2rem 2rem;
  letter-spacing: 0.18em;
}

.hero-actions .btn-text {
  font-size: 0.86rem;
  letter-spacing: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.is-magnetic {
  will-change: transform;
}

.ticker {
  overflow: hidden;
  border-top: 2px solid rgba(200, 169, 113, 0.42);
  border-bottom: 2px solid rgba(200, 169, 113, 0.42);
  padding: 1.15rem 0;
}

.ticker-track {
  display: flex;
  gap: 2.8rem;
  width: max-content;
  animation: ticker 32s linear infinite;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 0.32rem;
  height: 0.32rem;
  margin-right: 2.8rem;
  background: var(--gold-deep);
  vertical-align: 0.18em;
  transform: rotate(45deg);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.studio,
.services,
.tone,
.method,
.contact {
  position: relative;
  padding: 4.25rem 6vw;
}

html:not(.js) main > section {
  border-bottom: 3px solid rgba(200, 169, 113, 0.42);
}

.rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(200, 169, 113, 0.42);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rule.is-in {
  transform: none;
}

/* Section headings rise line by line from under an invisible edge. */
h2 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.04em 0.16em;
  margin: 0 -0.04em -0.16em;
}

h2 .w > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.15s + var(--wi, 0) * 0.07s);
}

.is-in h2 .w > span {
  transform: none;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  max-width: none;
  margin-bottom: 2.1rem;
}

.studio-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem 4vw;
  align-items: start;
}

/* Words start dim and light up in gold as the paragraph scrolls through. */
.studio-lede {
  max-width: 62rem;
  margin: 0 0 3.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--gold-bright);
  text-wrap: pretty;
}

.studio-lede .sw {
  color: rgba(223, 191, 140, 0.16);
  transition: color 0.5s ease;
}

.studio-lede .sw.is-lit {
  color: var(--gold-bright);
}

.studio-grid {
  align-items: end;
}

.studio-text {
  max-width: 34rem;
  color: #d8c7a4;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-deep);
}

.fact-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.fact-num small {
  margin-left: 0.15em;
  font-size: 0.42em;
  color: var(--gold-deep);
}

.fact-label {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

/* The slogan on a "blank sheet": printer's crop marks close in on the corners. */
.studio-quote {
  position: relative;
  margin: 4.2rem 0 0;
  padding: clamp(2.6rem, 7vw, 5rem) clamp(1.4rem, 6vw, 5rem);
  text-align: center;
}

.studio-quote blockquote {
  max-width: 40rem;
  margin: 0 auto;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.25;
  color: var(--gold);
  text-wrap: balance;
}

.crop {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border-color: var(--gold-deep);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition:
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
    opacity 0.8s ease 0.2s;
}

.crop-tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
  transform: translate(-1.4rem, -1.4rem);
}

.crop-tr {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
  transform: translate(1.4rem, -1.4rem);
}

.crop-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
  transform: translate(-1.4rem, 1.4rem);
}

.crop-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
  transform: translate(1.4rem, 1.4rem);
}

.studio-quote.is-in .crop,
html:not(.js) .crop {
  opacity: 1;
  transform: none;
}

.service-list,
.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* ——— services: a deck of cards that stack up as you scroll ——— */
.service-list {
  display: grid;
  gap: 1.6rem;
}

.svc {
  --cover: 0;
  position: sticky;
  top: calc(4.5rem + var(--n) * 1.1rem);
  cursor: pointer;
  outline: none;
}

.svc-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 2rem 4vw;
  min-height: min(23rem, 68vh);
  padding: clamp(1.4rem, 3.4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(200, 169, 113, 0.08), transparent 55%),
    linear-gradient(160deg, #0d241a, #07170f 70%);
  box-shadow: 0 -1.2rem 2.6rem rgba(0, 0, 0, 0.35);
  transform: scale(calc(1 - var(--cover) * 0.06));
  transform-origin: center top;
  transition: border-color 0.35s ease;
}

/* Cards underneath dim as the next one slides over them. */
.svc-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #020806;
  opacity: calc(var(--cover) * 0.55);
  pointer-events: none;
}

.svc:hover .svc-card {
  border-color: var(--gold-deep);
}

.svc:focus-visible .svc-card {
  border-radius: var(--radius);
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.svc-text,
.svc-scene {
  position: relative;
  z-index: 1;
}

/* A huge outline numeral tucked into the card's top-left corner, behind the copy. */
.svc-ghost {
  position: absolute;
  z-index: 0;
  left: clamp(1.4rem, 3.4vw, 2.8rem);
  top: clamp(0.6rem, 1.4vw, 1.1rem);
  font-family: var(--serif);
  font-size: clamp(4.6rem, 7vw, 6.8rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(200, 169, 113, 0.5);
  pointer-events: none;
  user-select: none;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 32rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.svc-tags li {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(200, 169, 113, 0.3);
  border-radius: 999px;
  background: rgba(200, 169, 113, 0.05);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: #e2d2b0;
}

.svc-text h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
  hyphens: auto;
  overflow-wrap: break-word;
}

.svc-text p {
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.55;
}

.svc-more {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.svc-more span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc:hover .svc-more span {
  transform: translateX(0.4rem);
}

.svc-scene {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(200, 169, 113, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(2, 10, 7, 0.45);
}

/* Scenes only animate while their card is on screen. */
.svc:not(.is-live) .svc-scene * {
  animation-play-state: paused !important;
}

/* site: a page wireframe that builds itself block by block */
.wf {
  position: relative;
  width: 78%;
  height: 78%;
  border: 1px solid rgba(200, 169, 113, 0.5);
  border-radius: 6px;
}

.wf-top {
  position: absolute;
  inset: 0 0 auto;
  height: 12%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 4%;
  border-bottom: 1px solid rgba(200, 169, 113, 0.3);
}

.wf-top i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
}

.wf-hero,
.wf-line,
.wf-btn,
.wf-cols i {
  transform-origin: left center;
  animation: build 6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d) * 0.22s) infinite backwards;
}

.wf-hero {
  position: absolute;
  left: 7%;
  top: 19%;
  width: 86%;
  height: 24%;
  background: linear-gradient(120deg, rgba(200, 169, 113, 0.38), rgba(200, 169, 113, 0.08));
}

.wf-line {
  position: absolute;
  left: 7%;
  top: 49%;
  width: var(--w);
  height: 4%;
  background: rgba(223, 191, 140, 0.55);
}

.wf-line + .wf-line {
  top: 56%;
}

.wf-btn {
  position: absolute;
  left: 7%;
  top: 64%;
  width: 22%;
  height: 8%;
  border: 1px solid var(--gold);
}

.wf-cols {
  position: absolute;
  inset: 77% 7% 7%;
  display: flex;
  gap: 4%;
}

.wf-cols i {
  flex: 1;
  border: 1px solid rgba(200, 169, 113, 0.25);
  background: rgba(200, 169, 113, 0.12);
}

@keyframes build {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  12%,
  82% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0;
    transform: none;
  }
}

/* smm: a profile grid whose posts fill in, and a like that pops */
.feed {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8%;
  width: 46%;
  height: 86%;
  padding: 8% 7%;
  border: 1px solid rgba(200, 169, 113, 0.5);
  border-radius: 14px;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 8%;
}

.feed-head i {
  width: 22%;
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.feed-head b {
  width: 50%;
  height: 5px;
  background: rgba(223, 191, 140, 0.5);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: start;
  gap: 5%;
}

.feed-grid i {
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(223, 191, 140, 0.6), rgba(173, 145, 80, 0.18));
  animation: tile 5.4s ease calc(var(--d) * 0.25s) infinite backwards;
}

@keyframes tile {
  0% {
    opacity: 0.08;
    transform: scale(0.6);
  }
  10%,
  80% {
    opacity: 1;
    transform: none;
  }
  92%,
  100% {
    opacity: 0.08;
    transform: scale(0.6);
  }
}

.feed-heart {
  position: absolute;
  right: -14%;
  top: 30%;
  width: 26%;
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(223, 191, 140, 0.5));
  animation: heart 5.4s ease 2.4s infinite backwards;
}

@keyframes heart {
  0% {
    opacity: 0;
    transform: translateY(20%) scale(0.3);
  }
  8% {
    opacity: 1;
    transform: scale(1.15);
  }
  14%,
  30% {
    opacity: 1;
    transform: none;
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-40%) scale(0.9);
  }
}

/* content: lines of copy typing themselves out */
.doc {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.1rem;
  width: 74%;
  height: 76%;
  padding: 9%;
  border: 1px solid rgba(200, 169, 113, 0.45);
}

.doc-title,
.doc-line {
  width: var(--w);
  animation: type 6s steps(14) calc(var(--d) * 0.7s) infinite backwards;
}

.doc-title {
  height: 10px;
  margin-bottom: 0.4rem;
  background: var(--gold);
}

.doc-line {
  height: 5px;
  background: rgba(223, 191, 140, 0.5);
}

@keyframes type {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  14%,
  85% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  95%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0;
  }
}

/* photo / video: a viewfinder pulling focus while recording */
.vf {
  position: absolute;
  inset: 10%;
}

.vf-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(200, 169, 113, 0.16) 33.33%, transparent calc(33.33% + 0.5px)),
    linear-gradient(90deg, transparent calc(66.66% - 0.5px), rgba(200, 169, 113, 0.16) 66.66%, transparent calc(66.66% + 0.5px)),
    linear-gradient(transparent calc(33.33% - 0.5px), rgba(200, 169, 113, 0.16) 33.33%, transparent calc(33.33% + 0.5px)),
    linear-gradient(transparent calc(66.66% - 0.5px), rgba(200, 169, 113, 0.16) 66.66%, transparent calc(66.66% + 0.5px));
}

.vf-corner {
  position: absolute;
  width: 12%;
  aspect-ratio: 1;
  border: 0 solid var(--gold);
}

.vf-corner.is-tl {
  top: 0;
  left: 0;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.vf-corner.is-tr {
  top: 0;
  right: 0;
  border-top-width: 1.5px;
  border-right-width: 1.5px;
}

.vf-corner.is-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1.5px;
  border-left-width: 1.5px;
}

.vf-corner.is-br {
  right: 0;
  bottom: 0;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
}

.vf-focus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20%;
  aspect-ratio: 1;
  border: 1px solid var(--gold-bright);
  transform: translate(-50%, -50%);
  animation: focus 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes focus {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
  18% {
    opacity: 1;
  }
  30%,
  75% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

.vf-rec {
  position: absolute;
  top: 6%;
  right: 7%;
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.vf-rec i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #c4573f;
  animation: rec 1.2s steps(1) infinite;
}

@keyframes rec {
  50% {
    opacity: 0;
  }
}

.vf-meta {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: var(--muted);
}

/* media support: one orbit that keeps every channel moving */
.orbit {
  position: relative;
  height: 92%;
  max-width: 92%;
  aspect-ratio: 1;
}

.orbit-ring,
.orbit-spin {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
}

.orbit-ring {
  border: 1px dashed rgba(200, 169, 113, 0.45);
  animation: spin 40s linear infinite;
}

.orbit-spin {
  animation: spin 6s linear infinite;
}

.orbit-spin i {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(223, 191, 140, 0.8);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit-core {
  position: absolute;
  inset: 35%;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  background: url("images/logo-hero.webp") center / 74% auto no-repeat;
}

.orbit-node {
  position: absolute;
  padding: 0.3em 0.65em;
  border: 1px solid rgba(200, 169, 113, 0.35);
  background: #081a12;
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold);
  transform: translate(-50%, -50%);
  animation: node 6s linear infinite;
}

.orbit-node.is-n {
  left: 50%;
  top: 14%;
}

.orbit-node.is-e {
  left: 86%;
  top: 50%;
  animation-delay: 1.5s;
}

.orbit-node.is-s {
  left: 50%;
  top: 86%;
  animation-delay: 3s;
}

.orbit-node.is-w {
  left: 14%;
  top: 50%;
  animation-delay: 4.5s;
}

/* Each channel lights up as the orbiting dot passes it. */
@keyframes node {
  0%,
  6% {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(223, 191, 140, 0.35);
  }
  20%,
  100% {
    border-color: rgba(200, 169, 113, 0.35);
    color: var(--gold);
    box-shadow: none;
  }
}

.service-list p,
.contact-aside p {
  color: #d8c7a4;
}

/* ——— method: a scroll story where one figure grows from a dot into the logo ——— */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 5vw;
  align-items: start;
}

.story-steps {
  position: relative;
  padding-left: 3.6rem;
}

.story-rail {
  position: absolute;
  left: 1.05rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: var(--line);
}

.story-rail span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s linear;
}

.story-step {
  position: relative;
  min-height: 62vh;
  padding-bottom: 3rem;
  cursor: pointer;
  outline: none;
  transition: opacity 0.5s ease;
}

.story-step:last-child {
  min-height: 46vh;
  padding-bottom: 0;
}

.js .story-step:not(.is-active) {
  opacity: 0.32;
}

.story-step:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.story-num {
  position: absolute;
  left: -3.6rem;
  top: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  transition:
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.story-step.is-past .story-num,
.story-step.is-active .story-num {
  border-color: var(--gold);
  color: var(--gold);
}

.story-step.is-active .story-num {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 0 6px rgba(200, 169, 113, 0.12);
}

.story-step h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
}

.story-step p {
  max-width: 28rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.55;
  color: #d8c7a4;
}

.story-step .svc-more {
  margin-top: 0.6rem;
}

.story-step:hover .svc-more span {
  transform: translateX(0.4rem);
}

.story-stage {
  position: sticky;
  top: 14vh;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}

.story-figure {
  width: min(100%, 30rem);
  aspect-ratio: 1;
}

.story-figure svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.story-figure circle,
.story-figure rect {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.story-figure .fig-frame {
  stroke: rgba(200, 169, 113, 0.3);
  transition: stroke 0.8s ease;
}

.story-figure[data-stage="3"] .fig-frame {
  stroke: var(--gold-deep);
}

.story-figure .fig-fill,
.story-figure .fig-grid .is-solid {
  fill: rgba(200, 169, 113, 0.3);
}

.story-figure .fig-fill {
  fill: var(--gold);
  stroke: none;
}

.fig-layer {
  opacity: 0;
  transform: scale(0.85);
  transform-box: view-box;
  transform-origin: 200px 200px;
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-figure[data-stage="0"] .fig-dot,
.story-figure[data-stage="1"] .fig-dot,
.story-figure[data-stage="1"] .fig-waves,
.story-figure[data-stage="2"] .fig-grid,
.story-figure[data-stage="3"] .fig-logo {
  opacity: 1;
  transform: none;
}

/* idea: a single point, quietly pulsing */
.fig-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: figPulse 2.4s ease-out infinite;
}

@keyframes figPulse {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(4);
  }
}

/* voice: ripples spreading out from the point */
.fig-waves circle {
  animation: figWave 2.4s ease-in-out calc(var(--i) * 0.4s) infinite;
}

@keyframes figWave {
  0%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

/* production: the ripples settle into a grid of blocks */
.fig-grid rect {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.5s ease calc(var(--i) * 0.06s),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 0.06s);
}

.story-figure[data-stage="2"] .fig-grid rect {
  opacity: 1;
  transform: none;
}

.story-caption {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.1rem;
  padding-top: 0.35rem;
}

.foot a:hover {
  color: var(--gold-bright);
}

/* ——— contact ——— */
.contact-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin: -0.4rem 0 2.6rem;
  padding: 0;
  list-style: none;
  color: #d8c7a4;
  font-size: 0.95rem;
}

.contact-how li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.contact-how .num {
  padding: 0;
}

.contact-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.15rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(200, 169, 113, 0.03);
  transition:
    border-color 0.35s ease,
    background 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card > :not(.contact-card-icon) {
  grid-column: 2;
}

.contact-card-icon {
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold);
}

.contact-card svg,
.btn-send svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.contact-card-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.contact-card-note {
  font-size: 0.9rem;
  color: #d8c7a4;
}

.contact-card-cta {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-card-cta span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 113, 0.07);
}

.contact-card:hover .contact-card-cta span {
  transform: translateX(0.4rem);
}

.tone-lead {
  max-width: 36rem;
  margin: -0.6rem 0 2rem;
  color: #d8c7a4;
}

.tone-board {
  display: grid;
  gap: 1.4rem;
}

.tone-stage {
  position: relative;
  min-height: clamp(18rem, 40vh, 26rem);
  padding: 2.4rem 6vw;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: #f2eadc;
  transition: border-color 1.1s ease;
}

.tone-bgs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tone-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tone-bg.is-on {
  opacity: 1;
  transform: scale(1);
}

.tone-bg[data-tone-bg="cafe"] {
  background:
    radial-gradient(ellipse at 18% 30%, rgba(196, 146, 90, 0.3), transparent 52%),
    linear-gradient(155deg, #2a1a12, #12150f 60%, #0a1410);
}

.tone-bg[data-tone-bg="clinic"] {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(180, 210, 200, 0.2), transparent 48%),
    linear-gradient(160deg, #0e1c1a, #10201c 55%, #081411);
}

.tone-bg[data-tone-bg="fashion"] {
  background:
    radial-gradient(ellipse at 70% 80%, rgba(220, 190, 150, 0.18), transparent 52%),
    linear-gradient(150deg, #120f0c, #1a1410 50%, #0a0a09);
}

.tone-bg[data-tone-bg="studio"] {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(200, 169, 113, 0.24), transparent 55%),
    linear-gradient(165deg, #06160f, #0a1c14 50%, #04110c);
}

.tone-bg::before,
.tone-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tone-bg:not(.is-on)::before,
.tone-bg:not(.is-on)::after {
  animation-play-state: paused;
}

/* cafe: warm light that breathes, film grain */
.tone-bg[data-tone-bg="cafe"]::before {
  background: radial-gradient(circle at 22% 30%, rgba(236, 172, 98, 0.3), transparent 46%);
  animation: breathe 6.5s ease-in-out infinite alternate;
}

.tone-bg[data-tone-bg="cafe"]::after {
  background-image: var(--grain);
  background-size: 150px;
  opacity: 0.2;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(1) infinite;
}

@keyframes breathe {
  from {
    opacity: 0.45;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.12) translate(2%, 3%);
  }
}

/* clinic: cool clean light, crisp thin lines */
.tone-bg[data-tone-bg="clinic"]::before {
  background:
    linear-gradient(rgba(196, 230, 220, 0.16), rgba(196, 230, 220, 0.16)) 0 72% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(196, 230, 220, 0.07) 0 1px, transparent 1px 72px);
}

.tone-bg[data-tone-bg="clinic"]::after {
  background: linear-gradient(100deg, transparent 38%, rgba(214, 242, 236, 0.09) 50%, transparent 62%);
  background-size: 300% 100%;
  animation: sweep 8s linear infinite;
}

@keyframes sweep {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

/* fashion: hard contrast, a slab of light and one stark line */
.tone-bg[data-tone-bg="fashion"] {
  background:
    radial-gradient(ellipse at 74% 38%, rgba(246, 232, 210, 0.2), transparent 40%),
    linear-gradient(150deg, #0b0a09, #15110e 50%, #050505);
}

.tone-bg[data-tone-bg="fashion"]::before {
  background: linear-gradient(115deg, transparent 0 57%, rgba(246, 236, 220, 0.07) 57% 73%, transparent 73%);
}

.tone-bg[data-tone-bg="fashion"]::after {
  background: linear-gradient(rgba(240, 226, 204, 0.3), rgba(240, 226, 204, 0.3)) 12% 0 / 1px 100% no-repeat;
}

/* studio: the brand itself, gold on a fading grid */
.tone-bg[data-tone-bg="studio"]::before {
  background:
    linear-gradient(rgba(200, 169, 113, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(200, 169, 113, 0.08) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

.tone-stage[data-mode="cafe"] {
  border-color: rgba(196, 146, 90, 0.35);
}

.tone-stage[data-mode="clinic"] {
  border-color: rgba(170, 200, 190, 0.3);
}

.tone-stage[data-mode="fashion"] {
  border-color: rgba(220, 190, 150, 0.28);
}

.tone-stage[data-mode="studio"] {
  border-color: rgba(200, 169, 113, 0.4);
}

.tone-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  min-height: inherit;
  text-align: center;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tone-content.is-out {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(10px);
}

.tone-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: color 0.8s ease;
}

.tone-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--gold-bright);
  letter-spacing: -0.02em;
}

.tone-title .tw {
  display: inline-block;
  white-space: nowrap;
}

.tone-title .ch {
  display: inline-block;
  animation: chIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--ci) * 0.03s) both;
}

@keyframes chIn {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.45em) rotate(5deg);
  }
}

.tone-content[data-mode="cafe"] .tone-title {
  color: #ecc897;
}

.tone-content[data-mode="clinic"] .tone-eyebrow {
  color: #8fb6aa;
}

.tone-content[data-mode="clinic"] .tone-title {
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: -0.045em;
  color: #e4f0eb;
}

.tone-content[data-mode="fashion"] .tone-eyebrow {
  color: #cdb89a;
}

.tone-content[data-mode="fashion"] .tone-title {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  letter-spacing: -0.035em;
  color: #f7f0e5;
}

.tone-content[data-mode="studio"] .tone-title {
  letter-spacing: 0.01em;
  color: var(--gold);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tone-copy {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: #d8c7a4;
}

.tone-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tone-btn {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tone-btn:hover,
.tone-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.brief {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 12, 8, 0.4);
}

.brief-shortcut {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.brief-shortcut a {
  margin-left: 0.3rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-deep);
  transition: color 0.25s ease;
}

.brief-shortcut a:hover {
  color: var(--gold-bright);
}

.brief-dots {
  display: flex;
  gap: 0.45rem;
}

.brief-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  transition:
    background 0.3s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brief-dots .is-done {
  background: var(--gold-deep);
}

.brief-dots .is-current {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.35);
}

.brief-panel.is-active {
  animation: panelIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelIn {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateX(1.2rem);
  }
}

.brief-preview {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 1px solid var(--gold-deep);
  background: rgba(200, 169, 113, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.brief-preview-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief-preview pre {
  margin: 0.5rem 0 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #e2d2b0;
}

.brief-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brief-meta .brief-back {
  margin-left: auto;
}

.brief-back {
  padding: 0.3rem 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
}

.brief-back:hover {
  color: var(--gold-bright);
}

.brief-step {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief-panel h3 {
  margin-bottom: 1rem;
}

.brief-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.brief-options button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.brief-options button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  gap: 0.2rem;
  align-content: start;
  justify-items: start;
  text-align: left;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  appearance: none;
  transition:
    background 0.2s ease,
    color 0.3s ease 0.08s,
    border-color 0.2s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* The pick floods gold outward from the exact point of the tap. */
.brief-options button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
  transition: clip-path 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.brief-options button:hover {
  border-color: var(--gold);
  background: rgba(200, 169, 113, 0.08);
}

.brief-options button.is-picked {
  border-color: var(--gold);
  color: var(--bg);
}

.brief-options button.is-picked::before {
  clip-path: circle(150% at var(--x, 50%) var(--y, 50%));
}

.brief-options b {
  max-width: 100%;
  hyphens: auto;
  overflow-wrap: break-word;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.brief-options small {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.3s ease 0.08s;
}

.brief-options button.is-picked small {
  color: rgba(6, 22, 15, 0.7);
}

.btn-send {
  gap: 0.7rem;
}

.brief-done {
  text-align: center;
}

.brief-done-mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0.4rem auto 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.3rem;
}

.brief-done.is-active .brief-done-mark {
  animation: doneMark 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
}

@keyframes doneMark {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}

.brief-done p {
  max-width: 26rem;
  margin-inline: auto;
  color: #d8c7a4;
}

.brief-done .brief-done-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.brief-done-actions {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.brief-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.brief-field span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief-field input,
.brief-field textarea {
  width: 100%;
  padding: 0.9rem 0.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  border-radius: 0;
  appearance: none;
  resize: vertical;
}

.brief-field input:focus,
.brief-field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 1.2rem 5vw;
  overflow: hidden;
  cursor: pointer;
}

.loader.is-landing {
  pointer-events: none;
}

.loader-veil {
  position: absolute;
  inset: 0;
  background: #06160f;
}

.loader.is-landing .loader-veil {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.loader-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 2.6rem;
}

/* The real logo cut into letters: they fly together, then the whole mark glides into the hero. */
.loader-mark {
  position: relative;
  width: min(90vw, 40rem);
  aspect-ratio: 960 / 490;
  transform-origin: 0 0;
  transition:
    transform 1.05s cubic-bezier(0.65, 0, 0.25, 1),
    opacity 0.35s ease;
}

.loader.is-landed .loader-mark {
  opacity: 0;
}

.loader-piece {
  position: absolute;
  background-image: url("images/logo-hero.webp");
  background-repeat: no-repeat;
  opacity: 0;
  filter: blur(10px);
  transform: translate(var(--lx), var(--ly)) rotate(var(--lr));
}

.loader.is-go .loader-piece {
  animation: letterIn 1.05s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 0.07s) both;
}

.loader-piece.is-tag {
  filter: none;
  transform: none;
}

.loader.is-go .loader-piece.is-tag {
  animation: tagIn 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.8s both;
}

.loader.is-assembled .loader-piece {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: none;
  animation: none;
}

@keyframes letterIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes tagIn {
  from {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.loader-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--shine);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-mask: url("images/logo-hero.webp") center / 100% 100% no-repeat;
  mask: url("images/logo-hero.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}

.loader.is-assembled .loader-shine {
  opacity: 1;
  animation: shineOnce 1.1s cubic-bezier(0.45, 0, 0.25, 1) forwards;
}

@keyframes shineOnce {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.loader-tag {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #d8c7a4;
}

/* Typed caption: a hidden sizer holds the width so the line never shifts while typing. */
.loader-tag {
  display: grid;
  justify-items: start;
}

.loader-sizer,
.loader-type {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.loader-sizer {
  visibility: hidden;
}

.loader-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 0.1em;
  vertical-align: -0.15em;
  background: var(--gold);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.loader.is-landing .loader-tag {
  animation: tagOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes tagOut {
  to {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.6rem);
  }
}

/* The flying mark lands exactly on the hero logo, so the swap must be instant. */
.hero-logo.is-landed img {
  transition: none;
}

.hero-logo img {
  opacity: 0;
  filter: blur(22px);
  transform: scale(0.9);
  transition:
    opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    filter 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.12s,
    transform 1.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
}

.hero-logo.is-ready img {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.foot {
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem 6vw 2.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The logo itself as a ghost that fills with real gold as you reach the end of the page. */
.foot-giant {
  --fill: 1;
  --w: min(84vw, 44rem);
  position: relative;
  flex: 1 0 100%;
  height: calc(var(--w) * 490 / 960);
  margin: 0.4rem 0 1.6rem;
}

.foot-giant::before,
.foot-giant::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--w);
  transform: translateX(-50%);
  background: url("images/logo-hero.webp") center / 100% 100% no-repeat;
}

.foot-giant::before {
  opacity: 0.12;
}

.foot-giant::after {
  clip-path: inset(calc((1 - var(--fill)) * 100%) 0 0 0);
}

.js .foot-giant {
  --fill: 0;
}

.foot a {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

@property --detail-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.detail-veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 12, 9, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-veil.is-on {
  opacity: 1;
}

.detail {
  --detail-angle: 0deg;
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  width: min(92vw, 34rem);
  max-height: min(78vh, 36rem);
  overflow: auto;
  padding: 2rem 1.8rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, rgba(14, 32, 24, 0.98), rgba(6, 22, 15, 0.98)) padding-box,
    conic-gradient(
      from var(--detail-angle),
      #8a7348,
      #dfbf8c,
      #f2eadc,
      #c8a971,
      #6f5c38,
      #ad9150,
      #e8d4a8,
      #8a7348
    ) border-box;
  color: var(--ink);
  --detail-dx: 0px;
  --detail-dy: 0px;
  transform: translate(calc(-50% + var(--detail-dx)), calc(-50% + var(--detail-dy))) scale(0.28);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 169, 113, 0.35) transparent;
  animation: detailBorder 5s linear infinite;
  animation-play-state: paused;
}

.detail.is-on {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
  animation-play-state: running;
}

@keyframes detailBorder {
  to {
    --detail-angle: 360deg;
  }
}

.detail-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.detail-close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.detail-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-bright);
}

.detail-body {
  display: grid;
  gap: 0.9rem;
  color: #d8c7a4;
  font-size: 1.02rem;
  line-height: 1.55;
}

.detail-body p {
  margin: 0;
}

.detail-body ul {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.detail-body li {
  position: relative;
  padding-left: 1.1rem;
  color: #e2d2b0;
}

.detail-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 1px;
  background: var(--gold-deep);
}

@media (max-width: 860px) {
  .detail {
    width: min(92vw, 34rem);
    max-height: min(80vh, 36rem);
    padding: 1.6rem 1.4rem 1.8rem;
    border-radius: 1.15rem;
  }
}

@media (max-width: 860px) {
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .tone-switches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .tone-btn {
    width: 100%;
    padding: 0.85rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-align: center;
  }

  .loader-content {
    gap: 1.6rem;
  }

  .loader-tag {
    font-size: 0.78rem;
    letter-spacing: 0.34em;
  }

  .svc {
    top: calc(1rem + var(--n) * 0.7rem);
  }

  .svc-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    min-height: 0;
  }

  .svc-scene {
    aspect-ratio: 16 / 9;
  }

  /* The orbit needs height more than width; it's the last card, so nothing stacks on it. */
  .svc-scene.scene-support {
    aspect-ratio: 1 / 0.85;
  }

  .svc-ghost {
    font-size: 4.2rem;
  }

  /* Leave room above the title so the numeral reads on its own. */
  .svc-text {
    padding-top: 3rem;
  }

  .svc-tags li {
    font-size: 0.78rem;
  }

  .svc-more {
    margin-top: 0.9rem;
  }

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

  /* On phones the figure rides at the top while the steps scroll beneath it. */
  .story-stage {
    order: -1;
    top: 0.6rem;
    z-index: 3;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0b1f16;
  }

  /* Cover the sliver above the stuck card so text scrolling under it doesn't peek out. */
  .story-stage::before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: 100%;
    height: 0.7rem;
    background: var(--bg);
  }

  .story-figure {
    width: 6.5rem;
  }

  .story-caption {
    letter-spacing: 0.3em;
  }

  .story-steps {
    padding-left: 3rem;
  }

  .story-rail {
    left: 0.9rem;
  }

  .story-num {
    left: -3rem;
    width: 1.9rem;
    height: 1.9rem;
  }

  .story-step {
    min-height: 52vh;
  }

  .story-step:last-child {
    min-height: 34vh;
  }

  .contact-how {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 2rem;
  }

  .contact-how li {
    padding: 0.7rem 0;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .facts li {
    grid-template-columns: 5.2rem 1fr;
    align-items: baseline;
    padding: 0.9rem 0;
  }

  /* On phones the brief is step one, so it comes before the contact cards. */
  .contact-aside {
    order: 2;
  }

  .brief-options button {
    padding: 0.85rem 0.9rem;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 520px) {
  h2 {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Repeat visits within a session skip the intro. */
.intro-seen .loader {
  display: none;
}

.intro-seen .hero-logo img {
  transition-delay: 0s;
}

/* Without JS nothing would ever reveal, so show everything as-is. */
html:not(.js) .loader {
  display: none;
}

html:not(.js) [data-reveal],
html:not(.js) .hero-logo img {
  opacity: 1;
  filter: none;
  transform: none;
}

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

  .ticker-track,
  .btn,
  [data-reveal] {
    animation: none;
    transition: none;
  }

  .hero-logo img {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  body::after,
  .svc-scene *,
  .story-figure *,
  .tone-bg::before,
  .tone-bg::after,
  .tone-title .ch,
  .brief-panel.is-active,
  .brief-done.is-active .brief-done-mark,
  .hero-shine {
    animation: none;
  }

  .hero-shine {
    display: none;
  }

  .rule,
  .crop,
  .story-step,
  .story-num,
  .story-rail span,
  .fig-layer,
  .fig-grid rect,
  .studio-lede .sw,
  .brief-dots span,
  .brief-options button::before {
    transition: none;
  }

  .detail,
  .detail-veil {
    transition: none;
    animation: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .loader {
    display: none;
  }
}
