/* ===== Avynera Studios — artboard / studio console ===== */
:root {
  --paper:      #FBF7F4;
  --cream:      #F3E9E4;
  --ink:        #1A0C08;
  --espresso:   #24110B;
  --brown:      #6B2E12;
  --rust:       #8A3D1A;
  --blush:      #E48B8B;
  --blush-2:    #F0B4B0;
  --muted:      #7A5A50;
  --line:       #E8D8D0;
  --line-strong:#D4B8AE;
  --text:       #1A0C08;
  --on-dark:    #FBF6F2;
  --on-dark-soft:#E8D4CC;
  --white:      #fffdfb;
  --radius:     18px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22,.61,.36,1);
  --display:    "Syne", "Figtree", system-ui, sans-serif;
  --body:       "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .disc, .stage-mark, .step-no {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--brown); color: var(--on-dark); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--brown); color: var(--on-dark);
  box-shadow: 0 12px 28px -14px rgba(107,46,18,.7);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251,247,244,.88);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img {
  width: 42px; height: 42px; border-radius: 10px; object-fit: cover;
  background: #fff; border: 1px solid var(--line);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--brown); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s var(--ease); }
.nav .nav-cta {
  color: var(--on-dark); background: var(--brown); padding: 9px 18px; border-radius: 999px;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero artboard ===== */
.hero { padding: 108px 0 28px; }
.artboard {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 52px 48px 0;
  overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(26,12,8,.35);
  min-height: 640px;
  display: flex; flex-direction: column;
}
.artboard::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 1;
  border: 1px dashed rgba(107,46,18,.18);
}

.ruler { position: absolute; background-image: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px 24px); opacity: .55; z-index: 2; pointer-events: none; }
.ruler-x { top: 0; left: 28px; right: 0; height: 14px; background-color: var(--cream); }
.ruler-y {
  top: 14px; left: 0; bottom: 0; width: 14px;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 24px);
}

.crops { position: absolute; inset: 10px; z-index: 4; pointer-events: none; }
.crops .c {
  position: absolute; width: 18px; height: 18px;
  border: 0 solid var(--brown);
  animation: crop-in .7s var(--ease) .15s both;
}
.crops .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.crops .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.crops .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.crops .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
@keyframes crop-in {
  from { opacity: 0; width: 8px; height: 8px; }
  to { opacity: 1; width: 18px; height: 18px; }
}

.brush {
  position: absolute; right: 6%; top: 18%; width: min(340px, 42vw); z-index: 0; pointer-events: none;
  opacity: .9;
}
.brush svg { width: 100%; height: auto; display: block; }
.brush-ring {
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: draw-ring 2.2s var(--ease) .4s forwards, spin-ring 18s linear 2.4s infinite;
  transform-origin: 100px 100px;
}
@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes spin-ring { to { transform: rotate(-18deg) rotate(360deg); } }

.art-meta {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); margin: 8px 0 36px 8px;
}
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--blush); }
.meta-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--brown); letter-spacing: .16em;
}
.meta-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blush);
  box-shadow: 0 0 0 0 rgba(228,139,139,.7);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228,139,139,.55); }
  70% { box-shadow: 0 0 0 10px rgba(228,139,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,139,139,0); }
}

.art-body { position: relative; z-index: 3; max-width: 820px; padding: 0 8px 28px 8px; flex: 1; }
.eyebrow {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--brown); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  font-weight: 800; letter-spacing: -0.045em; color: var(--ink);
}
.hero h1 em {
  font-style: italic; font-weight: 700; color: var(--brown);
}
.hero-sub {
  margin: 22px 0 0; max-width: 54ch; color: var(--muted); font-size: 1.06rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.art-specbar {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin: 12px -48px 0;
}
.art-specbar span {
  padding: 16px 22px; font-size: 12px; letter-spacing: .04em; color: var(--muted);
  border-right: 1px solid var(--line);
}
.art-specbar span:last-child { border-right: 0; }
.art-specbar b { display: block; font-family: var(--display); font-size: 13px; color: var(--ink); letter-spacing: .08em; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  .crops .c, .brush-ring, .meta-live i { animation: none; }
  .brush-ring { stroke-dashoffset: 0; }
}

/* ===== Studio console ===== */
.console-wrap { padding: 12px 0 40px; }
.console {
  display: grid; grid-template-columns: 240px 1fr 220px;
  border: 1px solid var(--line-strong); background: var(--white);
  border-radius: 4px; overflow: hidden; min-height: 420px;
}
.pane-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.pane-id { color: var(--blush); }
.console-layers { background: var(--cream); border-right: 1px solid var(--line); }
.console-spec { background: var(--cream); border-left: 1px solid var(--line); }
.layers { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.layer {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 10px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.layer-id { font-family: var(--display); font-size: 12px; color: var(--muted); }
.swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(26,12,8,.12); }
.sw-blush { background: var(--blush); }
.sw-brown { background: var(--brown); }
.sw-ink { background: var(--ink); }
.sw-paper { background: var(--paper); }
.pane-note { padding: 8px 16px 20px; font-size: 13px; color: var(--muted); }

.console-stage { padding: 22px; display: flex; }
.stage-frame {
  position: relative; flex: 1; border: 1px solid var(--line-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 36px 20px; background:
    linear-gradient(180deg, rgba(228,139,139,.08), transparent 42%), var(--paper);
}
.stage-frame::before, .stage-frame::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--brown); opacity: .45;
}
.stage-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.stage-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.frame-label {
  position: absolute; top: 12px; left: 28px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.stage-mark {
  font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; color: var(--brown); line-height: .85;
  letter-spacing: -0.06em;
}
.stage-line { font-size: 15px; color: var(--muted); letter-spacing: .04em; }
.stage-chips { display: flex; gap: 8px; margin-top: 8px; }
.chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(26,12,8,.12); }
.chip-brown { background: var(--brown); }
.chip-blush { background: var(--blush); }
.chip-ink { background: var(--ink); }
.chip-paper { background: #fff; }

.props { margin: 0; padding: 8px 0; }
.props div {
  display: grid; grid-template-columns: 72px 1fr; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.props dt { color: var(--muted); font-weight: 600; }
.props dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ===== Spec sheet ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--cream); border-block: 1px solid var(--line); }
.kicker {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  color: var(--brown); margin: 0 0 12px;
}
.kicker-light { color: var(--blush-2); }
.sheet-head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end;
  margin-bottom: 40px;
}
.sheet-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.lead { color: var(--muted); font-size: 1.05rem; }

.sheet { border: 1px solid var(--line-strong); background: var(--white); border-radius: 4px; overflow: hidden; }
.sheet-cols {
  display: grid; grid-template-columns: 90px 1.1fr 1.8fr .9fr;
  gap: 16px; padding: 12px 22px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--muted); background: var(--cream); border-bottom: 1px solid var(--line);
}
.sheet-row {
  display: grid; grid-template-columns: 90px 1.1fr 1.8fr .9fr;
  gap: 16px; padding: 26px 22px; align-items: start;
  border-bottom: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.sheet-row:last-child { border-bottom: 0; }
.ref { font-family: var(--display); font-weight: 700; color: var(--blush); letter-spacing: .04em; }
.disc { font-size: 1.25rem; }
.got { color: var(--muted); font-size: .98rem; }
.fmt { font-size: 13px; font-weight: 600; color: var(--brown); }

/* ===== Manifesto ===== */
.manifesto {
  background: var(--espresso);
  color: var(--on-dark);
  padding: 108px 0;
}
.manifesto-inner { max-width: 920px; }
.manifesto blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--on-dark);
}
.quote-attr {
  margin-top: 28px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--blush-2);
}

/* ===== Process ===== */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 22px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.step-no { display: block; color: var(--blush); font-size: 1.4rem; margin-bottom: 18px; }
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.faq-intro p:last-child { color: var(--muted); }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; font-family: var(--display); font-size: 1.15rem; font-weight: 700;
  color: var(--ink); transition: color .2s var(--ease);
}
.faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--brown); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0 0 22px; padding-right: 28px; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.contact-copy p { color: var(--muted); margin-bottom: 22px; }
.contact-email {
  display: inline-block; font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  color: var(--brown); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color .2s, color .2s, transform .25s var(--ease);
}
.contact-addr { margin-top: 16px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.contact-form {
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 28px; display: grid; gap: 16px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; color: var(--text);
  padding: 13px 14px; font: inherit; font-size: 15px; width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(107,46,18,.12);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--espresso); color: var(--on-dark); padding: 56px 0 36px;
  border-top: 1px solid rgba(228,139,139,.18);
}
.site-footer .brand img { border-color: rgba(255,255,255,.12); }
.site-footer .brand-name { color: var(--on-dark); }
.site-footer .brand-name em { color: var(--blush-2); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-tag { color: var(--on-dark-soft); font-family: var(--display); font-size: 1.05rem; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--on-dark-soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 6px; color: var(--on-dark-soft);
  font-size: 13px; margin-top: 8px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1); width: 100%; max-width: 520px;
}

/* ===== Reveal (hover AFTER this) ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(107,46,18,.65); background: var(--rust); }
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--brown); color: var(--brown); }
  .nav a:hover { color: var(--ink); }
  .nav .nav-cta:hover { color: var(--on-dark); background: var(--rust); }
  .sheet-row:hover {
    transform: translateY(-4px);
    background: var(--cream);
    box-shadow: 0 18px 40px -28px rgba(26,12,8,.35);
  }
  .step:hover {
    transform: translateY(-6px);
    border-color: var(--brown);
    box-shadow: 0 22px 40px -28px rgba(107,46,18,.4);
  }
  .layer:hover { transform: translateX(6px); background: rgba(255,253,251,.7); }
  .contact-email:hover { border-bottom-color: var(--brown); color: var(--rust); }
  .footer-nav a:hover { color: var(--on-dark); }
  .faq-q:hover { color: var(--brown); }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .console { grid-template-columns: 1fr; }
  .console-layers, .console-spec { border: 0; border-top: 1px solid var(--line); }
  .console-layers { border-top: 0; }
  .sheet-head { grid-template-columns: 1fr; gap: 14px; }
  .sheet-cols { display: none; }
  .sheet-row { grid-template-columns: 72px 1fr; gap: 8px 16px; }
  .got { grid-column: 2; }
  .fmt { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .art-specbar { grid-template-columns: 1fr 1fr; }
  .art-specbar span:nth-child(1), .art-specbar span:nth-child(2) { border-bottom: 1px solid var(--line); }
  .art-specbar span:nth-child(2), .art-specbar span:nth-child(4) { border-right: 0; }
}

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; inset: 74px 0 auto; background: rgba(251,247,244,.98);
    flex-direction: column; align-items: stretch; padding: 12px 24px 22px; gap: 4px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px -24px rgba(26,12,8,.4);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 0; }
  .nav-toggle { display: flex; }
  .header-inner { height: 68px; }
  .hero { padding: 86px 0 20px; }
  .artboard { padding: 40px 26px 0; min-height: 0; }
  .artboard::before { inset: 10px; }
  .art-specbar { margin-left: -26px; margin-right: -26px; }
  .ruler-x, .ruler-y { display: none; }
  .brush { width: min(200px, 54vw); top: 18%; right: 2%; opacity: .5; }
  .eyebrow { letter-spacing: .12em; }
}

@media (max-width: 430px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 2.45rem; }
  .art-body { padding-left: 4px; padding-right: 4px; }
  .art-meta { margin-left: 4px; gap: 8px; }
  .meta-live { margin-left: 0; width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .manifesto { padding: 72px 0; }
  .art-specbar { grid-template-columns: 1fr; }
  .art-specbar span { border-right: 0; border-bottom: 1px solid var(--line); }
  .art-specbar span:last-child { border-bottom: 0; }
  .sheet-row { grid-template-columns: 1fr; padding: 22px 16px; }
  .fmt { grid-column: 1; }
  .got { grid-column: 1; }
  .contact-form { padding: 20px 16px; }
  .console-stage { padding: 16px; }
  .stage-mark { font-size: 4.4rem; }
  .footer-nav { gap: 14px 18px; }
}
