/* ============================================
   PolyCraft Visuals — Editorial Cinematic
   Where homes become cinematic visions
   ============================================ */

:root {
  /* Brand */
  --bg:           #060A12;
  --bg-2:         #0A1019;
  --warm-dark:    #0F1822;
  --warm-dark-2:  #142030;
  --paper:        #F0F4F8;
  --paper-dim:    #C8D2DE;
  --mid:          #6B7989;
  --mid-2:        #475262;
  --line:         #1A2638;
  --line-soft:    #121A26;
  --gold: #00A0E0;
  --gold-light: #29B6F0;
  --gold-deep: #003D5C;

  /* Type */
  --serif:        'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:         'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease:         cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:      cubic-bezier(0.7, 0, 0.84, 0);

  /* Shadow */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:    0 20px 50px -20px rgba(0,0,0,0.7), 0 4px 12px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 40px -10px rgba(0, 160, 224, 0.35);

  /* Layout */
  --gutter:       40px;
  --max:          1320px;
}

@media (max-width: 720px) {
  :root { --gutter: 22px; }
}

/* ============================================
   Reset
   ============================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--paper);
}
body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 300;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; background: none; }
::selection { background: var(--gold); color: var(--bg); }

/* ============================================
   Layout
   ============================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.section {
  position: relative;
  padding: 160px 0;
}
.section--tight { padding: 100px 0; }
.section--top    { padding-top: 200px; }

@media (max-width: 960px) {
  .section { padding: 96px 0; }
  .section--top { padding-top: 140px; }
}

/* ============================================
   Typography
   ============================================ */
.serif { font-family: var(--serif); font-weight: 300; }
.it    { font-style: italic; font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--c::before,
.eyebrow--c::after {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
}
.eyebrow--c { justify-content: center; }

.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--paper);
  text-wrap: balance;
}
.h-1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.008em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 56ch;
  font-weight: 300;
  text-wrap: pretty;
}
.body  { font-size: 15px; line-height: 1.65; color: var(--paper-dim); font-weight: 300; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid); }
.num   { font-family: var(--serif); font-weight: 300; font-style: italic; color: var(--gold); }

.gold-text { color: var(--gold); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.4s var(--ease);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--bg);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--gold);
}
.btn--ghost::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: -1;
}
.btn--ghost:hover {
  color: var(--bg);
  transform: translateY(-2px);
}
.btn--ghost:hover::before {
  transform: scaleY(1);
}
.btn--ghost { isolation: isolate; }
.btn__arrow {
  width: 16px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease);
}
.btn__arrow::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 24px; }

/* Link styles */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s var(--ease);
}
.link:hover { gap: 16px; }

/* ============================================
   Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-d="1"] { transition-delay: 100ms; }
.reveal[data-d="2"] { transition-delay: 200ms; }
.reveal[data-d="3"] { transition-delay: 320ms; }
.reveal[data-d="4"] { transition-delay: 440ms; }
.reveal[data-d="5"] { transition-delay: 560ms; }
.reveal[data-d="6"] { transition-delay: 680ms; }

.reveal--left { transform: translateX(-32px); }
.reveal--left.is-in { transform: translateX(0); }
.reveal--right { transform: translateX(32px); }
.reveal--right.is-in { transform: translateX(0); }
.reveal--scale { transform: scale(0.96); }
.reveal--scale.is-in { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   Backdrop / Decorative
   ============================================ */
.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 160, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 160, 224, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 30%, transparent 85%);
}
.backdrop-glow {
  position: absolute; pointer-events: none;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 160, 224, 0.12), transparent 60%);
  filter: blur(40px);
}
.backdrop-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
}

/* ============================================
   Custom cursor (desktop only)
   ============================================ */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.6;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.2s, border-color 0.2s;
}
.cursor.is-hover { width: 0; height: 0; }
.cursor-ring.is-hover { width: 64px; height: 64px; opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, select { cursor: none; }
}

/* ============================================
   Utility
   ============================================ */
.muted { color: var(--mid); }
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: 0 auto;
}
.gold-line {
  width: 60px; height: 1px;
  background: var(--gold);
  display: block;
}


/* ============================================
   Section head shared
   ============================================ */
.section-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  margin-bottom: 96px;
  align-items: end;
}
.section-head--c {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  align-items: center;
  max-width: 880px;
  margin: 0 auto 96px;
  gap: 28px;
}
.section-head__l,
.section-head__r {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 960px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 14px; }
.nav__mark { width: 32px; height: 32px; }
.nav__name {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 400;
  white-space: nowrap;
}

.nav__links {
  display: flex; align-items: center; gap: 40px;
}
.nav__link {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 400; letter-spacing: 0.04em;
  color: var(--paper-dim);
  position: relative;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.nav__num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  transform: translateX(-4px);
}
.nav__link:hover {
  color: var(--paper);
}
.nav__link:hover .nav__num {
  opacity: 1;
  transform: translateX(0);
}
.nav__link::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.nav__right { display: inline-flex; align-items: center; gap: 16px; }
.nav__cta { padding: 11px 22px; font-size: 11px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px; height: 24px;
  justify-content: center;
}
.nav__burger span {
  display: block; width: 24px; height: 1px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child  { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line-soft);
    padding: 16px 0;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: all 0.3s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link { padding: 14px var(--gutter); width: 100%; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 2;
}
.hero__left { display: flex; flex-direction: column; gap: 32px; }

.hero__title {
  display: flex; flex-direction: column;
}
.hero__title > span { display: block; }
.hero__title-row { display: inline; }
.hero__title .it { font-style: italic; }

.hero__cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px;
}

.hero__stats {
  display: flex; gap: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex; flex-direction: column; gap: 6px;
}
.hero__stat-v {
  font-size: 44px; font-weight: 300; letter-spacing: -0.02em; line-height: 1;
  color: var(--paper);
}
.hero__stat-l { color: var(--mid); }

/* Hero visual */
.hero__right { position: relative; }

.herovis {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.herovis__frame {
  position: relative;
  aspect-ratio: 6/7;
  padding: 32px;
  background: linear-gradient(180deg, rgba(0, 160, 224, 0.03), rgba(0,0,0,0));
  overflow: hidden;
}
.herovis__corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold);
  border-style: solid;
}
.herovis__corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.herovis__corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.herovis__corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.herovis__corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.herovis__svg {
  width: 100%; height: 100%;
  display: block;
}

.herovis__scanline {
  position: absolute;
  left: 32px; right: 32px;
  top: 32px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  box-shadow: 0 0 12px var(--gold);
  animation: scan 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes scan {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(calc(100% * (700 / 1) - 4px)); opacity: 0; }
}
/* simpler: use percentage of frame */
.herovis__scanline { animation: scanA 5s linear infinite; }
@keyframes scanA {
  0%   { top: 32px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% - 32px); opacity: 0; }
}

.herovis__caption {
  position: absolute;
  bottom: 12px; left: 32px; right: 32px;
  display: flex; justify-content: space-between;
  z-index: 4;
}

.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 3;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 1px; height: 16px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__right { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero { padding-top: 130px; padding-bottom: 100px; min-height: auto; }
  .hero__stats { gap: 36px; }
  .hero__stat-v { font-size: 36px; }
}


/* ============================================
   SERVICES
   ============================================ */
.services { position: relative; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 960px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services__grid { grid-template-columns: 1fr; } }

.service {
  position: relative;
  background: var(--bg);
  padding: 56px 40px 40px;
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 360px;
  transition: background 0.4s var(--ease);
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service:hover {
  background: var(--warm-dark);
}
.service:hover::before { transform: scaleX(1); }
.service:hover .service__glyph,
.service:hover svg { color: var(--gold); }

.service__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
  color: var(--paper-dim);
  transition: color 0.4s var(--ease);
}
.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
}
.service__title {
  color: var(--paper);
  margin-top: 6px;
}
.service__desc {
  flex: 1;
  margin-bottom: 8px;
}
.service__foot {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.service__price {
  display: inline-flex; align-items: baseline; gap: 8px;
}
.service__price .gold-text { font-size: 24px; }
.service__price .muted { font-size: 12px; font-family: var(--mono); letter-spacing: 0.04em; }

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--bg-2);
  position: relative;
}
.process__rail {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 24px;
  padding-top: 32px;
}
.process__step {
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
}
.process__head {
  display: flex; align-items: center; gap: 16px;
}
.process__num {
  font-size: 56px;
  line-height: 1;
  color: var(--gold);
  font-weight: 300;
}
.process__bar {
  flex: 1; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}
.process__title {
  color: var(--paper);
  margin-top: 8px;
}
.process__desc { font-size: 14.5px; }

.process__connector {
  display: flex; align-items: center; gap: 10px;
  padding-top: 36px;
  color: var(--gold);
}
.process__diamond {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.5;
  animation: diamondPulse 2s ease-in-out infinite;
}
.process__diamond:nth-child(2) { animation-delay: 0.3s; opacity: 0.7; }
.process__diamond:nth-child(3) { animation-delay: 0.6s; }
@keyframes diamondPulse {
  0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(0.8); }
  50% { opacity: 1; transform: rotate(45deg) scale(1.1); }
}

@media (max-width: 960px) {
  .process__rail {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .process__connector {
    transform: rotate(90deg);
    padding-top: 0;
    justify-content: center;
  }
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio { position: relative; }
.portfolio__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
@media (max-width: 860px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

.folio {
  display: flex; flex-direction: column;
  gap: 14px;
}
.folio--tall  { grid-row: span 2; }
.folio--small { /* default */ }
.folio--wide  { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .folio--tall, .folio--wide { grid-column: auto; grid-row: auto; }
}

.folio__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--warm-dark);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease);
}
.folio--tall .folio__media { aspect-ratio: 4/6; }
.folio--wide .folio__media { aspect-ratio: 16/7; }
.folio--small .folio__media { aspect-ratio: 4/3; }

.folio__media .portart {
  width: 100%; height: 100%;
  transition: transform 1.2s var(--ease);
}
.folio:hover .folio__media .portart { transform: scale(1.05); }
.folio:hover .folio__media { border-color: var(--gold); }

.folio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.95) 0%, rgba(10,10,8,0.4) 50%, transparent 100%);
  opacity: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 32px;
  transition: opacity 0.5s var(--ease);
}
.folio:hover .folio__overlay { opacity: 1; }
.folio__type { color: var(--gold); }
.folio__title { color: var(--paper); }
.folio__cta { margin-top: 8px; }

.folio__meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
}
.folio__index { color: var(--gold); }

/* ============================================
   STUDIO TOOLS
   ============================================ */
.tools { position: relative; }
.tools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 960px) { .tools__grid { grid-template-columns: 1fr; } }

.tool {
  position: relative;
  background: var(--bg);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 360px;
  transition: background 0.4s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.tool:hover { background: var(--warm-dark); }
.tool__top {
  display: flex; justify-content: space-between; align-items: center;
}
.tool__platform { color: var(--gold); }
.tool__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tool__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mid);
}
.tool__status--live { color: #c7e3b0; border-color: rgba(120, 180, 90, 0.35); }
.tool__status--live .tool__dot { background: #c7e3b0; box-shadow: 0 0 8px #c7e3b0; animation: pulseDot 1.8s ease-in-out infinite; }
.tool__status--soon { color: var(--gold); border-color: rgba(0, 160, 224, 0.4); }
.tool__status--soon .tool__dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50% { opacity: 0.6; box-shadow: 0 0 8px currentColor; }
}

.tool__name {
  font-size: 32px;
  line-height: 1.05;
}
.tool__desc {
  flex: 1;
  margin-bottom: 8px;
}
.tool__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tool__price { font-size: 18px; }
.tool__decor {
  position: absolute;
  right: -8px; bottom: -32px;
  font-size: 140px;
  color: var(--warm-dark-2);
  pointer-events: none;
  font-style: italic;
  z-index: -1;
  font-family: var(--serif);
  font-weight: 300;
}
.tool:hover .tool__decor { color: var(--line); }


/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  position: relative;
  background: linear-gradient(to bottom, var(--bg), var(--warm-dark) 50%, var(--bg));
}
.testimonial::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 160, 224, 0.06), transparent 70%);
  pointer-events: none;
}
.testimonial__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  position: relative;
}
.testimonial__mark {
  color: var(--gold);
  opacity: 0.3;
}
.testimonial__quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}
.testimonial__foot {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.testimonial__attr {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.testimonial__attr strong {
  font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--paper);
}

/* ============================================
   PRICING
   ============================================ */
.pricing { position: relative; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 960px) { .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.tier {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 44px 36px;
  display: flex; flex-direction: column;
  gap: 24px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.tier:hover { border-color: var(--gold-deep); }
.tier.is-featured {
  background: linear-gradient(180deg, rgba(0, 160, 224, 0.06), var(--bg-2) 60%);
  border-color: var(--gold);
  transform: translateY(-12px);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}
.tier__badge {
  position: absolute; top: -1px; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  padding: 6px 16px;
}
.tier__head { display: flex; flex-direction: column; gap: 10px; }
.tier__name { color: var(--paper); font-size: 28px; }
.tier__desc { color: var(--mid); font-size: 14.5px; }

.tier__price {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tier__price-v {
  font-size: 56px; font-weight: 300; letter-spacing: -0.02em; line-height: 1;
  color: var(--paper);
}
.tier.is-featured .tier__price-v { color: var(--gold); }
.tier__price-u { color: var(--mid); }

.tier__list {
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.tier__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; color: var(--paper-dim);
}
.tier__check {
  flex-shrink: 0; margin-top: 2px;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
}
.tier.is-featured .tier__check { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.tier__cta { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================
   WHY POLYCRAFT
   ============================================ */
.why {
  position: relative;
  background: var(--bg-2);
}
.why::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0, 160, 224, 0.06), transparent 60%);
  pointer-events: none;
}
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  .why__inner { grid-template-columns: 1fr; gap: 64px; }
}

.why__visual {
  display: flex; align-items: center; justify-content: center;
}
.rings {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
}
.rings__ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
}
.rings__ring--1 {
  width: 100%; height: 100%;
  border-style: solid; opacity: 0.4;
  animation: ringSpin 50s linear infinite;
}
.rings__ring--2 {
  width: 76%; height: 76%;
  border-style: dashed; opacity: 0.5;
  animation: ringSpin 35s linear infinite reverse;
}
.rings__ring--3 {
  width: 56%; height: 56%;
  border-style: solid; opacity: 0.7;
}
@keyframes ringSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.rings__core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  z-index: 2;
}
.rings__title {
  font-size: 96px; font-weight: 300;
  line-height: 1; letter-spacing: -0.03em;
  color: var(--gold);
}
.rings__sub { color: var(--paper-dim); }

.rings__pip {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--gold);
  top: 50%; left: 50%;
  margin-top: -5px; margin-left: -5px;
}
.rings__pip--1 {
  /* on outer ring (50% radius) */
  animation: orbit1 50s linear infinite;
}
.rings__pip--2 {
  width: 6px; height: 6px;
  margin-top: -3px; margin-left: -3px;
  animation: orbit2 35s linear infinite reverse;
}
.rings__pip--3 {
  width: 4px; height: 4px;
  margin-top: -2px; margin-left: -2px;
  background: var(--gold-light);
  animation: orbit3 25s linear infinite;
}
@keyframes orbit1 {
  to { transform: rotate(360deg) translateX(50%) rotate(-360deg); }
}
@keyframes orbit2 {
  to { transform: rotate(360deg) translateX(38%) rotate(-360deg); }
}
@keyframes orbit3 {
  to { transform: rotate(360deg) translateX(28%) rotate(-360deg); }
}

.why__copy { display: flex; flex-direction: column; gap: 28px; }
.whypoints {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 16px;
}
.whypoint {
  display: flex; gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.whypoint:last-child { border-bottom: 1px solid var(--line); }
.whypoint__mark {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.whypoint__copy { display: flex; flex-direction: column; gap: 6px; }
.whypoint__title { color: var(--paper); }

@media (max-width: 600px) {
  .rings__title { font-size: 72px; }
  .whypoint { gap: 16px; }
  .whypoint__mark { font-size: 28px; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact { position: relative; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 96px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; gap: 56px; }
}
.contact__left { display: flex; flex-direction: column; gap: 32px; }

.contact__details {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.contact__details li {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact__details li:last-child { border-bottom: 1px solid var(--line); }
.contact__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  color: var(--gold);
  flex-shrink: 0;
  transition: border-color 0.3s, color 0.3s;
}
.contact__details li:hover .contact__icon { border-color: var(--gold); }
.contact__details li > div { display: flex; flex-direction: column; gap: 4px; }
.contact__detail-v {
  font-family: var(--serif); font-size: 18px; color: var(--paper);
  transition: color 0.2s;
}
a.contact__detail-v:hover { color: var(--gold); }

.contact__social { display: flex; flex-direction: column; gap: 14px; }
.contact__social-row {
  display: flex; gap: 14px;
}
.contact__social-row a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  transition: all 0.25s var(--ease);
}
.contact__social-row a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.contact__form {
  background: var(--warm-dark);
  border: 1px solid var(--line);
  padding: 44px 40px;
  display: flex; flex-direction: column; gap: 24px;
}
@media (max-width: 600px) { .contact__form { padding: 32px 24px; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

.field {
  display: flex; flex-direction: column;
  gap: 10px;
}
.field__label { color: var(--mid); }
.field__req { color: var(--gold); }
.field__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--paper);
  outline: none;
  transition: border-color 0.3s, color 0.3s;
  width: 100%;
}
.field__input::placeholder { color: var(--mid-2); }
.field__input:focus, .field__input:not(:placeholder-shown) {
  border-color: var(--gold);
}
.field__input--multi { resize: vertical; min-height: 120px; line-height: 1.5; }

.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none;
  background: transparent;
  padding-right: 36px;
  cursor: pointer;
}
.select select option { background: var(--warm-dark); color: var(--paper); }
.select__chev {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
}

.contact__submit {
  width: 100%; justify-content: center; margin-top: 12px;
}
.contact__fineprint { text-align: center; color: var(--mid-2); margin-top: -4px; }

.contact__ok {
  text-align: center;
  padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 120px 0 32px;
  position: relative;
}
.footer__hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 48px; flex-wrap: wrap;
}
.footer__big {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
}
.footer__cta { flex-shrink: 0; }

.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
}
@media (max-width: 960px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 540px) {
  .footer__cols { grid-template-columns: 1fr; }
}

.footer__brand { display: flex; flex-direction: column; }
.footer__name {
  font-size: 28px; font-weight: 400; letter-spacing: -0.01em;
}

.footer__h { color: var(--mid); margin-bottom: 24px; display: block; }
.footer__nav ul { display: flex; flex-direction: column; gap: 14px; }
.footer__nav a {
  color: var(--paper-dim);
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
  position: relative;
}
.footer__nav a:hover { color: var(--gold); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap; gap: 16px;
}

/* ============================================
   Tweak overrides — backdrop variants
   ============================================ */
html[data-backdrop="subtle"] .backdrop-grid { opacity: 0.4; }
html[data-backdrop="subtle"] .backdrop-glow { opacity: 0.4; }
html[data-noise="off"] .backdrop-noise { display: none; }
html[data-cursor="off"] { cursor: auto; }
html[data-cursor="off"] body { cursor: auto; }
html[data-headfont="playfair"] { --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif; }

html[data-hero="minimal"] .herovis__scanline { display: none; }
html[data-hero="minimal"] .herovis__corner { display: none; }
html[data-hero="minimal"] .hero__bg .backdrop-glow { display: none; }
