/* ============================================================
   PROJECT MYNA — public site styles
   Deep charcoal, dark gray, gold & off-white. Cinzel / Sora / Plex Mono.
   ============================================================ */
:root {
  --ink: #0a0a0c; --panel: #131318; --panel-2: #17171d;
  --line: rgba(210, 166, 75, 0.18);
  --gold: #d2a64b; --gold-hi: #ebce85;
  --paper: #f3eee3; --muted: #97929c;
  --display: "Cinzel", serif; --body: "Sora", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: var(--body); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.section { padding: 100px 0; }
.tc-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--gold); margin-bottom: 18px; }
.section-title { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.5vw, 46px); line-height: 1.15; margin-bottom: 28px; }

.btn { display: inline-block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 15px 30px; border: 1px solid var(--gold); transition: background .25s, transform .25s; cursor: pointer; }
.btn-gold { background: var(--gold); color: #191204; font-weight: 500; }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold-hi); }
.btn-ghost:hover { background: rgba(210,166,75,.12); }
.btn-wide { width: 100%; border: none; }
.btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* film sprocket bars */
.film-bar { height: 34px; background: radial-gradient(6px 8px at 20px 50%, var(--ink) 98%, transparent) repeat-x, #000; background-size: 44px 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: rgba(10,10,12,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand-mark { font-family: var(--display); font-weight: 700; letter-spacing: .3em; color: var(--gold-hi); font-size: 18px; }
.brand-by { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--paper); text-decoration: none; font-size: 14px; letter-spacing: .04em; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-hi); }
.nav-cta { font-family: var(--mono); font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase; border: 1px solid var(--gold); padding: 9px 16px; color: var(--gold-hi) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--gold-hi); font-family: var(--mono); font-size: 12px; padding: 8px 12px; cursor: pointer; }

/* hero (home) */
.hero { position: relative; min-height: 90vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(ellipse 80% 55% at 50% 110%, rgba(210,166,75,.12), transparent 65%), linear-gradient(180deg, #0a0a0c 0%, #101014 60%, #0a0a0c 100%); }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 70px 24px; animation: rise 1.1s ease both; }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7.5vw, 84px); line-height: 1.08; text-shadow: 0 0 60px rgba(210,166,75,.15); margin: 10px 0 26px; }
.hero-sub { max-width: 640px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); margin-bottom: 42px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* page hero (inner pages) */
.page-hero { padding: 90px 0 60px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 80% at 50% -20%, rgba(210,166,75,.1), transparent 60%); }
.page-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 6vw, 62px); line-height: 1.1; }

/* prose blocks */
.prose { max-width: 780px; display: grid; gap: 20px; font-size: 17px; }
.prose strong { font-weight: 600; color: var(--gold-hi); }
.prose .lede { font-size: 19px; color: var(--paper); }
.divider { border: none; border-top: 1px solid var(--line); }

/* restoration scrubber */
.scrubber { position: relative; height: clamp(280px, 45vw, 460px); border: 1px solid var(--line); overflow: hidden; user-select: none; touch-action: none; cursor: ew-resize; }
.frame { position: absolute; inset: 0; }
.frame-clean { background: radial-gradient(circle 90px at 72% 30%, #f6d98a 0%, rgba(246,217,138,.25) 45%, transparent 70%), linear-gradient(180deg, #2b2036 0%, #5a3550 38%, #b06a45 62%, #d99a55 74%, #1a1410 74.5%, #0d0b09 100%); }
.frame-clean::after, .frame-degraded::after { content: ""; position: absolute; left: 0; right: 0; top: 66%; height: 8.5%; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.8)); clip-path: polygon(0 60%, 12% 55%, 25% 62%, 40% 48%, 55% 58%, 70% 44%, 85% 56%, 100% 50%, 100% 100%, 0 100%); }
.frame-degraded { clip-path: inset(0 50% 0 0); filter: saturate(.35) contrast(.82) brightness(.85) blur(.6px);
  background: radial-gradient(circle 90px at 72% 30%, #cbb98f 0%, rgba(203,185,143,.2) 45%, transparent 70%), linear-gradient(180deg, #262230 0%, #4a3a48 38%, #86604a 62%, #a17f55 74%, #191512 74.5%, #0d0c0a 100%); }
.grain { position: absolute; inset: -50%; opacity: .5; animation: grain .9s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E"); }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-4%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(0,0)} }
.scrub-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; display: flex; align-items: center; justify-content: center; cursor: ew-resize; }
.scrub-handle:focus-visible { outline: 2px solid var(--gold-hi); }
.scrub-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); box-shadow: 0 0 14px rgba(210,166,75,.8); }
.scrub-knob { position: relative; z-index: 1; background: var(--gold); color: #191204; font-family: var(--mono); font-size: 11px; padding: 7px 8px; border-radius: 999px; white-space: nowrap; }
.frame-label { position: absolute; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; background: rgba(0,0,0,.55); padding: 5px 9px; }
.label-before { left: 12px; } .label-after { right: 12px; color: var(--gold-hi); }
.counter-row { margin-top: 34px; text-align: center; }
.counter-num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6vw, 64px); color: var(--gold-hi); letter-spacing: .04em; }
.counter-label { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }

/* pillar cards */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 16px; }
.pillar-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 30px 26px 34px; transition: transform .25s, background .25s; }
.pillar-card:hover { transform: translateY(-6px); background: var(--panel-2); }
.reel-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--gold); margin-bottom: 16px; }
.pillar-card h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.3; margin-bottom: 6px; }
.pillar-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pillar-text { font-size: 14.5px; color: #c9c4bb; }

/* spec grid */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 16px; }
.spec { background: var(--ink); padding: 34px 30px; }
.spec:hover { background: var(--panel); }
.spec-key { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--gold); margin-bottom: 12px; text-transform: uppercase; }
.spec p:last-child { font-size: 14.5px; color: #c9c4bb; }

/* case studies */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 10px; }
.cs-card { background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--paper); display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.cs-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.cs-img { height: 190px; background: linear-gradient(135deg, #17171d, #0d0d10); position: relative; overflow: hidden; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-img .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); color: rgba(235,206,133,.25); font-size: 34px; letter-spacing: .2em; }
.cs-body { padding: 22px 22px 26px; }
.cs-year { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.cs-title { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 8px 0 10px; }
.cs-summary { font-size: 14px; color: var(--muted); }
.cs-stat { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cs-stat b { font-family: var(--display); color: var(--gold-hi); font-size: 22px; font-weight: 700; }
.cs-stat span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; }
.cs-detail-hero { height: clamp(220px, 40vw, 420px); background: #0d0d10; border: 1px solid var(--line); margin-bottom: 40px; overflow: hidden; }
.cs-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.cs-empty { color: var(--muted); font-size: 15px; padding: 30px 0; }
.loading { font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 20px 0; }

/* contact form */
.contact-form { display: grid; gap: 20px; text-align: left; margin-top: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { background: var(--panel); border: 1px solid var(--line); color: var(--paper); font-family: var(--body); font-size: 15px; padding: 14px 15px; width: 100%; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }
.form-status { font-family: var(--mono); font-size: 13px; min-height: 20px; }
.form-status.ok { color: #9fd28a; } .form-status.err { color: #e08a8a; }

/* footer */
.footer { text-align: center; }
.footer-inner { padding: 34px 24px; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.footer .brand-mark { font-size: 13px; }
.footer a { color: var(--gold-hi); text-decoration: none; }

/* cta band */
.cta-band { text-align: center; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .pillar-grid, .spec-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--panel); border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner { animation: none; }
  .grain { animation: none; }
  .pillar-card, .btn, .cs-card { transition: none; }
}
