:root {
  --ink: #1e1b18;
  --paper: #fffaf1;
  --cream: #f6ead6;
  --rust: #9f2f24;
  --gold: #d79a2b;
  --muted: #6b625b;
  --border: #dcc9ad;
  --studio-night: #111019;
  --studio-violet: #6d5dfc;
  --studio-coral: #ff7a67;
  --studio-cyan: #5ce1e6;
  --studio-acid: #d9ff6f;
  --studio-lavender: #f3f1ff;
  --studio-mist: #f7fbfa;
}

html[data-theme="light"] {
  color-scheme: light;
  --bulma-body-background-color: #fffaf1;
  --bulma-body-color: #1e1b18;
  --bulma-text: #1e1b18;
  --bulma-text-strong: #1e1b18;
  --bulma-title-color: #1e1b18;
  --bulma-subtitle-color: #6b625b;
  --bulma-link-text: #9f2f24;
  --bulma-scheme-main: #fffaf1;
  --bulma-scheme-main-bis: #f6ead6;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.title,
.content strong { color: var(--ink); }
.subtitle { color: var(--muted); }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 1000;
  padding: .65rem .9rem;
  border: 2px solid var(--rust);
  border-radius: 6px;
  background: #fff;
  color: var(--rust);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, .button, summary):focus-visible {
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--ink) !important;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 241, .94);
  backdrop-filter: blur(12px);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-nav.is-scrolled {
  background: rgba(255, 250, 241, .985);
  box-shadow: 0 12px 28px rgba(22, 18, 14, .1);
}
.site-nav .navbar-item { color: var(--ink); }
.site-nav a.navbar-item:not(.button):hover {
  background: var(--cream);
  color: var(--rust);
}
.site-nav a.navbar-item[aria-current="page"]:not(.button) {
  color: var(--rust);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--rust);
}
.navbar-burger {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--rust) !important;
}

.hero-copy { max-width: 760px; }
.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
}
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}
.hero-panel {
  background: linear-gradient(135deg, #f7ead6, #fffaf1);
  border: 1px solid var(--border);
}

.button.is-brand {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.button.is-brand:hover {
  background: #81241d;
  border-color: #81241d;
  color: #fff;
}
.button.is-outline-brand {
  border-color: var(--rust);
  color: var(--rust);
  background: transparent;
}
.button.is-outline-brand:hover {
  border-color: var(--rust);
  background: var(--rust);
  color: #fff;
}
.button[aria-current="page"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--rust); }

/* Phase 3 controlled creative-studio experiment: homepage only. */
.home-experiment { background: var(--studio-mist); }
.studio-hero {
  position: relative;
  overflow: clip;
  min-height: 700px;
  background:
    radial-gradient(circle at 82% 18%, rgba(92, 225, 230, .25), transparent 28rem),
    radial-gradient(circle at 16% 88%, rgba(109, 93, 252, .28), transparent 30rem),
    var(--studio-night);
  color: #fff;
}
.studio-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .025), 0 0 0 9rem rgba(255, 255, 255, .018);
  pointer-events: none;
}
.studio-hero-grid {
  position: relative;
  z-index: 1;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.studio-hero-copy { max-width: 46rem; }
.studio-hero .eyebrow { color: var(--studio-acid); }
.studio-hero-title {
  max-width: 12ch;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 7vw, 6.6rem) !important;
  line-height: .92;
  letter-spacing: -.045em;
}
.studio-hero .subtitle {
  max-width: 39rem;
  color: #d9d6e4;
  line-height: 1.55;
}
.button.is-electric {
  background: var(--studio-acid);
  border-color: var(--studio-acid);
  color: #17151d;
  font-weight: 800;
}
.button.is-electric:hover {
  background: #efffba;
  border-color: #efffba;
  color: #17151d;
}
.button.is-ghost-light {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}
.button.is-ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--studio-night);
}

.studio-hero-deck {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: .7rem;
}
.studio-hero-art {
  position: relative;
  min-height: 500px;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}
.hero-art-card {
  position: absolute;
  left: 50%;
  top: 18px;
  width: min(56%, 290px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: #f5f1e9;
  color: #19171d;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  text-decoration: none;
  transform-origin: center;
  will-change: transform;
}
.hero-art-card img {
  width: 100%;
  height: 350px;
  display: block;
  object-fit: contain;
  background: #e8e3d9;
  pointer-events: none;
}
.hero-art-card span {
  padding: .75rem .9rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-art-card:hover { filter: brightness(1.025); }
.hero-art-card.is-front {
  z-index: 3;
  transform: translateX(-50%) translateY(110px) rotate(-1.5deg) scale(1);
}
.hero-art-card.is-middle {
  z-index: 2;
  transform: translateX(calc(-50% + 105px)) translateY(6px) rotate(7deg) scale(.93);
}
.hero-art-card.is-back {
  z-index: 1;
  transform: translateX(calc(-50% - 105px)) translateY(72px) rotate(-8deg) scale(.9);
}
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #fff;
}
.deck-button {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.deck-button:hover { background: rgba(255, 255, 255, .16); }
.deck-status {
  min-width: 13rem;
  margin: 0;
  color: #dad7e7;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .035em;
  text-align: center;
}
.deck-hint {
  margin: 0;
  color: #aaa5bb;
  font-size: .72rem;
  text-align: center;
}

.studio-showcase {
  background: var(--studio-lavender);
  border-bottom: 0;
}
.studio-showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: 2rem 5rem;
  align-items: end;
}
.studio-showcase .eyebrow { color: #5748d7; }
.studio-section-title {
  max-width: 17ch;
  margin-top: .45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 5rem) !important;
  line-height: .96;
  letter-spacing: -.035em;
}
.studio-showcase-intro {
  max-width: 36rem;
  color: #4d4862;
  font-size: 1.08rem;
  line-height: 1.65;
}
.studio-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.showcase-project {
  min-width: 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(41, 34, 86, .12);
}
.showcase-project.is-coral {
  background: var(--studio-coral);
  color: #241512;
}
.showcase-project.is-violet {
  background: var(--studio-violet);
  color: #fff;
}
.showcase-media {
  min-height: 360px;
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.showcase-media img {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
  will-change: transform;
}
.showcase-copy { padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem); }
.showcase-copy .title { color: inherit !important; }
.showcase-copy p { max-width: 42rem; line-height: 1.55; }
.showcase-kicker {
  margin-bottom: .55rem;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.home-services {
  position: relative;
  padding-top: 9rem;
  padding-bottom: 6rem;
  background: linear-gradient(180deg, var(--studio-lavender) 0, var(--studio-mist) 8rem, var(--studio-mist) 100%);
}
.studio-section-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: 1.5rem 4rem;
  align-items: end;
}
.home-services .eyebrow { color: #5748d7; }
.home-services .section-title {
  max-width: 15ch;
  margin-top: .4rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem) !important;
  line-height: .98;
  letter-spacing: -.035em;
}
.studio-section-copy {
  max-width: 34rem;
  color: #4f5360;
  font-size: 1.05rem;
  line-height: 1.7;
}
.studio-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.studio-service-card {
  min-height: 250px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid #d8ddea;
  border-radius: 22px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 18px 42px rgba(30, 37, 56, .06);
}
.studio-service-card:nth-child(1) { border-top: 5px solid var(--studio-coral); }
.studio-service-card:nth-child(2) { border-top: 5px solid var(--studio-violet); }
.studio-service-card:nth-child(3) { border-top: 5px solid var(--studio-cyan); }
.service-index {
  margin-bottom: auto;
  color: #777c8c;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .12em;
}
.studio-service-card .title { margin-top: 2rem; }
.studio-service-card p { color: #4f5360; line-height: 1.6; }
.studio-scope-note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--studio-cyan);
  background: #eafafa;
  color: #293335;
}

.home-process {
  position: relative;
  padding-top: 12rem;
  padding-bottom: 7rem;
  background: linear-gradient(180deg, var(--studio-mist) 0, #24303a 8rem, var(--studio-night) 12rem, var(--studio-night) 100%);
  color: #fff;
}
.home-process .eyebrow { color: var(--studio-cyan); }
.home-process .section-title {
  max-width: 15ch;
  margin-top: .4rem;
  color: #fff !important;
  font-size: clamp(2.8rem, 5vw, 4.9rem) !important;
  line-height: .98;
  letter-spacing: -.035em;
}
.studio-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.studio-process-step {
  min-height: 260px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
}
.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--studio-acid);
  color: #19171d;
  font-weight: 900;
}
.studio-process-step .title { margin-top: 2rem; color: #fff !important; }
.studio-process-step p { color: #c9c6d5; line-height: 1.65; }

.home-cta {
  padding-top: 2rem;
  padding-bottom: 6rem;
  background: linear-gradient(180deg, var(--studio-night) 0, #201a38 52%, #2c2351 100%);
  color: #fff;
}
.studio-cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 10%, rgba(92, 225, 230, .35), transparent 20rem),
    var(--studio-acid);
  color: #17151d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
}
.studio-cta-panel .eyebrow { color: #4d4624; }
.studio-cta-panel .title {
  max-width: 13ch;
  margin-top: .5rem;
  color: #17151d !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem) !important;
  line-height: .96;
  letter-spacing: -.04em;
}
.studio-cta-panel > p:not(.eyebrow) {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.65;
}
.button.is-ink {
  background: var(--studio-night);
  border-color: var(--studio-night);
  color: #fff;
}
.button.is-ink:hover { background: #29243a; border-color: #29243a; color: #fff; }
.button.is-outline-ink {
  background: transparent;
  border-color: #282432;
  color: #1a1720;
}
.button.is-outline-ink:hover { background: rgba(17, 16, 25, .1); color: #17151d; }

.section-title { font-family: Georgia, "Times New Roman", serif; }
.portfolio-card {
  height: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(54, 38, 24, .08);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.portfolio-frame {
  background: #efe4d1;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.portfolio-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 540px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}
.portfolio-meta { padding: 1.25rem; flex: 1; }
.tag.is-soft { background: #f3dfbd; color: #6a4310; }
.tag.is-real { background: #dcefe3; color: #245b38; }
.tag.is-concept { background: #e7e4f4; color: #443d78; }
.notice {
  border-left: 4px solid var(--gold);
  background: #fff5df;
  padding: 1rem 1.1rem;
}
.feature-card {
  height: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #f3e6d1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}
.footer-copy { max-width: 34rem; }
.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem 1rem;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: .35rem 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}
.footer-links a:hover {
  color: var(--rust);
  text-decoration-color: currentColor;
}
.small-print { font-size: .88rem; color: var(--muted); }

.home-experiment .site-footer {
  border-top-color: rgba(255, 255, 255, .1);
  background: #0c0b12;
  color: #fff;
}
.home-experiment .site-footer .small-print { color: #aaa6b7; }
.home-experiment .site-footer .footer-links a { color: #fff; }
.home-experiment .site-footer .footer-links a:hover { color: var(--studio-acid); }
.home-experiment .site-footer .button.is-brand {
  background: var(--studio-acid);
  border-color: var(--studio-acid);
  color: #17151d;
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    box-shadow: none;
    border-top: 1px solid var(--border);
    background: var(--paper);
  }
  .navbar-end { padding: .5rem 0 .75rem; }
  .site-nav a.navbar-item[aria-current="page"]:not(.button) {
    box-shadow: none;
    border-left: 3px solid var(--rust);
  }
  .navbar-item .button { width: 100%; justify-content: center; }
  .studio-hero { min-height: 0; }
  .studio-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .studio-hero-copy { max-width: 50rem; }
  .studio-hero-deck { width: min(100%, 680px); margin-inline: auto; }
  .studio-hero-art { min-height: 480px; }
  .studio-showcase-heading,
  .studio-section-split { grid-template-columns: 1fr; gap: 1rem; }
  .studio-service-grid,
  .studio-process-grid { grid-template-columns: 1fr; }
  .studio-service-card,
  .studio-process-step { min-height: 0; }
}

@media screen and (max-width: 768px) {
  .hero-title { font-size: 2.35rem !important; }
  .portfolio-frame { min-height: 0; padding: .75rem; }
  .portfolio-frame img { max-height: none; }
  .footer-shell,
  .footer-actions { align-items: flex-start; justify-content: flex-start; }
  .studio-hero { padding-top: 3.6rem; padding-bottom: 2.25rem; }
  .studio-hero-title {
    max-width: 11ch;
    font-size: clamp(3rem, 14vw, 4.2rem) !important;
    line-height: .94;
  }
  .studio-hero .subtitle { font-size: 1.12rem !important; }
  .studio-hero-actions .button { width: 100%; }
  .studio-hero-art { min-height: 430px; }
  .hero-art-card { width: 56%; border-radius: 16px; }
  .hero-art-card img { height: 250px; }
  .hero-art-card span { padding: .58rem .65rem; font-size: .58rem; }
  .hero-art-card.is-front { transform: translateX(-50%) translateY(100px) rotate(-1.5deg) scale(1); }
  .hero-art-card.is-middle { transform: translateX(calc(-50% + 72px)) translateY(4px) rotate(7deg) scale(.93); }
  .hero-art-card.is-back { transform: translateX(calc(-50% - 72px)) translateY(66px) rotate(-8deg) scale(.9); }
  .deck-status { min-width: 10rem; font-size: .7rem; }
  .studio-section-title {
    max-width: 12ch;
    font-size: clamp(2.8rem, 13vw, 4rem) !important;
  }
  .studio-showcase-grid { grid-template-columns: 1fr; }
  .showcase-project { border-radius: 22px; }
  .showcase-media { min-height: 0; padding: 1rem; }
  .showcase-media img { max-height: 430px; }
  .home-services { padding-top: 7rem; padding-bottom: 4.5rem; background: linear-gradient(180deg, var(--studio-lavender) 0, var(--studio-mist) 6rem, var(--studio-mist) 100%); }
  .home-services .section-title,
  .home-process .section-title { max-width: 12ch; font-size: clamp(2.6rem, 12vw, 3.8rem) !important; }
  .studio-service-grid,
  .studio-process-grid { margin-top: 2rem; }
  .studio-service-card,
  .studio-process-step { padding: 1.3rem; border-radius: 18px; }
  .home-process { padding-top: 9rem; padding-bottom: 5rem; background: linear-gradient(180deg, var(--studio-mist) 0, #24303a 5.5rem, var(--studio-night) 9rem, var(--studio-night) 100%); }
  .home-cta { padding-bottom: 4rem; }
  .studio-cta-panel { border-radius: 24px; }
  .studio-cta-panel .button { width: 100%; }
}

@media screen and (max-width: 420px) {
  .studio-hero-art { min-height: 390px; }
  .hero-art-card img { height: 220px; }
  .hero-art-card.is-front { transform: translateX(-50%) translateY(92px) rotate(-1.5deg) scale(1); }
  .hero-art-card.is-middle { transform: translateX(calc(-50% + 62px)) translateY(4px) rotate(7deg) scale(.93); }
  .hero-art-card.is-back { transform: translateX(calc(-50% - 62px)) translateY(58px) rotate(-8deg) scale(.9); }
}

@media (forced-colors: active) {
  :where(a, button, .button, summary):focus-visible {
    outline: 2px solid CanvasText;
    outline-offset: 3px;
    box-shadow: none !important;
  }
  .studio-hero,
  .showcase-project,
  .studio-service-card,
  .studio-process-step,
  .studio-cta-panel { forced-color-adjust: auto; }
}

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