:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f7f6ef;
  --ink: #202923;
  --forest: #234638;
  --muted: #48554b;
  --line: #d9dcd0;
  --gold: #f4d28a;
  --stone-texture: url('assets/studio-stone.webp');
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Nunito Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #ad6950; outline-offset: 5px; }

.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 74rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .65rem 1rem; background: white; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); background: linear-gradient(#f7f6efdb, #f7f6efdb), var(--stone-texture) center / 48rem auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5.35rem; gap: 1rem; }
.brand { display: block; width: clamp(8.9rem, 20vw, 13rem); }
.brand img { width: 100%; mix-blend-mode: multiply; }
.header-inner nav { display: flex; align-items: center; gap: clamp(.7rem, 3.5vw, 2.8rem); }
.header-inner nav a, .footer-inner a { padding: .55rem .15rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-inner nav a:hover, .header-inner nav a[aria-current='page'], .footer-inner a:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: clamp(1.2rem, 4vw, 4.5rem); padding-block: clamp(2.8rem, 7vw, 6rem); }
.eyebrow { color: var(--forest); font: 700 .76rem/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin-top: .8rem; font: 400 clamp(2.75rem, 5.45vw, 5.05rem)/1.015 var(--display); letter-spacing: -.038em; }
.hero h1 em { color: var(--forest); font-style: normal; }
.hero-description { max-width: 28rem; margin-top: 1.3rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.22rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 3rem; padding: .67rem 1.05rem; border-radius: .33rem; text-decoration: none; font-weight: 700; }
.button span, .text-link span, .footer-inner a span { font-family: system-ui, sans-serif; }
.button-primary { margin-top: 1.55rem; background: var(--forest); color: #fff; }
.button-primary:hover { background: #153529; }

.hero-art { position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; border: 1px solid #dedfd1; border-radius: .7rem; aspect-ratio: 1.18; background: radial-gradient(ellipse at 54% 44%, #faf9f185 0%, #f1efe175 64%, #e9ebdda6 100%), var(--stone-texture) center / cover; }
.hero-art::before, .hero-art::after { position: absolute; z-index: -1; border: 1px solid #9fae983d; border-radius: 50%; aspect-ratio: 1; content: ''; }
.hero-art::before { width: 72%; }
.hero-art::after { width: 90%; }
.hero-art img { width: 78%; height: auto; mix-blend-mode: multiply; mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent), linear-gradient(to bottom, transparent, black 5%, black 95%, transparent); mask-composite: intersect; }

.work { padding-bottom: clamp(3rem, 7vw, 5.8rem); scroll-margin-top: 1.5rem; }
.work > .eyebrow { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 1rem; }
.work > .eyebrow::after { flex: 1; height: 1px; background: var(--line); content: ''; }
.product { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; min-height: 24rem; border-radius: .72rem; background: radial-gradient(ellipse at 74% 56%, #54346e, #31234c 24%, #211938 52%); color: #fff9ec; }
.product-copy { display: grid; justify-items: start; align-content: center; padding: clamp(1.5rem, 4vw, 3.5rem); }
.product h3 { width: min(100%, clamp(15rem, 29vw, 20rem)); margin-inline-start: -.45rem; }
.product p { max-width: 34ch; margin-top: 1rem; color: #eee5f1; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; margin-top: 1.45rem; }
.button-gold { background: var(--gold); color: #2d2038; }
.button-gold:hover { background: #ffe2a3; }
.text-link { display: inline-flex; gap: .45rem; align-items: baseline; padding-block: .45rem; font-weight: 700; text-underline-offset: .22em; }
.text-link:hover { text-decoration-thickness: 2px; }
.product :focus-visible { outline-color: var(--gold); }

.product-art { position: relative; isolation: isolate; min-height: 23rem; }
.djinn { position: absolute; width: 63%; max-width: 21rem; bottom: calc(1% + .75rem); left: 0; }
.phone { position: absolute; width: auto; height: 82%; right: 8%; top: 9%; border: 4px solid #130e1e; border-radius: clamp(.8rem, 2.2vw, 1.8rem); box-shadow: 0 1rem 3.5rem #12091b9e; transform: rotate(9deg); }
.motion-toggle { position: absolute; z-index: 1; inset: 0; display: none; padding: 0; border: 0; border-radius: inherit; background: transparent; pointer-events: none; }
.motion-toggle:focus-visible { outline-offset: -5px; }

@media (prefers-reduced-motion: no-preference) {
  .product:has(.motion-toggle:not([hidden])) { cursor: pointer; }
  .motion-toggle:not([hidden]) { display: block; }
  .motion-toggle:not([hidden]) + .product-art .djinn { animation: djinn-float 3.5s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
  .motion-toggle[aria-pressed='true'] + .product-art .djinn { animation-play-state: paused; }
}

@keyframes djinn-float {
  to { transform: translateY(-8px); }
}

.studio { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: end; gap: 1rem 2rem; padding-block: clamp(1.85rem, 4vw, 3.4rem); border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.studio h2 { max-width: 22ch; margin-top: .45rem; font: 400 clamp(1.8rem, 3.4vw, 3.2rem)/1.1 var(--display); letter-spacing: -.026em; }
.studio a { color: var(--forest); }
.studio-support { justify-self: end; color: var(--muted); }

.about-hero { grid-template-columns: minmax(0, 1.32fr) minmax(0, .82fr); }
.about-hero h1 { margin-top: 0; font-size: clamp(2.65rem, 5.3vw, 4.75rem); }
.about-hero .hero-art::before, .about-hero .hero-art::after { content: none; }
.about-hero .hero-art img { width: 73%; }
.about-focus { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); align-items: start; gap: 1rem 2rem; padding-block: clamp(1.75rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
.about-focus h2 { font: 400 clamp(2rem, 4.1vw, 3.6rem)/1.1 var(--display); letter-spacing: -.03em; }
.about-focus p { max-width: 48ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

.site-footer { border-top: 1px solid var(--forest); background: linear-gradient(#1e3a2eef, #1e3a2eef), var(--stone-texture) center / 48rem auto; color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: 1.1rem; font-size: .88rem; }

@media (max-width: 50rem) {
  .hero { gap: 1.2rem; }
  .hero h1 { font-size: clamp(2.25rem, 6vw, 3.8rem); }
}

@media (max-width: 40rem) {
  .header-inner { min-height: 4.55rem; }
  .header-inner nav { font-size: .9rem; }
  .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.8rem 2.6rem; }
  .hero h1 { font-size: clamp(2.35rem, 10.7vw, 4rem); }
  .hero-art { aspect-ratio: 1.62; }
  .hero-art img, .about-hero .hero-art img { width: 61%; }
  .hero-art::before { width: 58%; }
  .hero-art::after { width: 72%; }
  .product { grid-template-columns: 1fr; background: radial-gradient(ellipse at 54% 80%, #54346e, #31234c 28%, #211938 58%); }
  .product-art { min-height: 0; aspect-ratio: 1.26; }
  .djinn { left: 5%; }
  .phone { right: 12%; }
  .studio { grid-template-columns: 1fr; }
  .studio-support { justify-self: start; }
  .about-focus { grid-template-columns: 1fr; }
}
