/* ==========================================================================
   JESSICA PINKSTON PIANO STUDIO LLC — Computer Systems Design
   Palette: midnight indigo / eggplant gradient, lavender-mist background,
   gold accent. Fonts: Fraunces (display) + Karla (body).
   Layout language: full-width color bands, diagonal clip dividers,
   magazine-style staggered media rows, large pill cards, vertical
   decorative side labels.
   ========================================================================== */

:root {
  --ink: #17122b;            /* near-black plum for text on light */
  --ink-soft: #3a3350;
  --paper: #f2eff7;          /* lavender-mist background */
  --paper-alt: #e9e4f3;
  --deep: #1b1440;           /* midnight indigo */
  --deep-2: #3a1454;         /* eggplant */
  --deep-3: #54216b;
  --gold: #f0b429;           /* gold accent */
  --gold-deep: #c98f0e;
  --white: #ffffff;
  --line: #cfc6e2;
  --radius-pill: 40px;
  --radius-card: 28px;
  --shadow: 0 24px 48px -24px #2a1f4d66;
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: 1.1em; }
a { color: var(--gold-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--deep);
  border-bottom: 3px solid var(--gold);
}
.nav-bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.05rem;
  color: var(--deep);
  flex: 0 0 auto;
}
.brand-text { line-height: 1.25; }
.brand-text strong { display: block; font-family: "Fraunces", serif; font-size: 1.02rem; letter-spacing: .02em; }
.brand-text span { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--gold); border-radius: 999px;
  width: 46px; height: 46px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); transition: transform .25s ease, opacity .2s 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); }

.nav-menu { list-style: none; display: flex; gap: 6px; align-items: center; }
.nav-menu a {
  display: block; padding: 9px 16px; border-radius: 999px;
  color: var(--white); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none;
}
.nav-menu a:hover { background: var(--deep-2); text-decoration: none; }
.nav-menu a[aria-current="page"] { background: var(--gold); color: var(--deep); }
.nav-menu .nav-cta a { border: 2px solid var(--gold); margin-left: 8px; }
.nav-menu .nav-cta a:hover { background: var(--gold); color: var(--deep); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--deep); padding: 14px 20px 22px;
    display: none;
    border-bottom: 3px solid var(--gold);
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-cta a { margin-left: 0; text-align: center; }
}

/* ---------- shared section scaffolding ---------- */
.band { padding: 96px 0; position: relative; }
.band--tight { padding: 64px 0; }
.band--deep {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 60%, var(--deep-3) 100%);
  color: var(--white);
}
.band--deep h1, .band--deep h2, .band--deep h3, .band--deep h4 { color: var(--white); }
.band--alt { background: var(--paper-alt); }

/* diagonal clip dividers */
.clip-top { clip-path: polygon(0 48px, 100% 0, 100% 100%, 0 100%); margin-top: -48px; padding-top: 144px; }
.clip-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%); padding-bottom: 144px; margin-bottom: -48px; }

/* vertical decorative side label */
.side-label {
  position: absolute; top: 110px; left: 14px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .72rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 800; user-select: none;
}
.band--deep .side-label { color: var(--gold); }
@media (max-width: 1280px) { .side-label { display: none; } }

.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
  border: 2px solid var(--gold-deep); border-radius: 999px;
  padding: 6px 18px; margin-bottom: 22px;
}
.band--deep .kicker { color: var(--gold); border-color: var(--gold); }

.lede { font-size: 1.2rem; max-width: 62ch; }
.band--deep .lede { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-weight: 800; font-size: .98rem; letter-spacing: .03em;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--gold:hover { box-shadow: 0 12px 26px -10px var(--gold-deep); }
.btn--ghost { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--ghost:hover { background: var(--gold); color: var(--deep); }
.btn--deep { background: var(--deep); color: var(--white); }
.btn--deep:hover { background: var(--deep-2); }

/* ---------- hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 55%, var(--deep-3) 100%);
  color: var(--white);
  padding: 110px 0 150px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 60px solid var(--gold); opacity: 1; pointer-events: none;
}
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { color: var(--white); margin: 26px 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; position: relative; z-index: 1; }
.hero-badge {
  border: 2px solid var(--gold); color: var(--white);
  border-radius: 999px; padding: 8px 20px; font-size: .85rem; font-weight: 700;
  letter-spacing: .06em;
}

/* ---------- pill cards grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.pill-card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 38px 34px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.pill-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.pill-card .card-num {
  font-family: "Fraunces", serif; font-size: 2.2rem; font-weight: 700;
  color: var(--gold-deep); line-height: 1; margin-bottom: 16px;
}
.pill-card h3 { margin-bottom: 12px; }
.pill-card p { font-size: .98rem; }

.band--deep .pill-card {
  background: var(--deep-2); border-color: var(--deep-3); color: var(--white);
}
.band--deep .pill-card h3 { color: var(--white); }
.band--deep .pill-card .card-num { color: var(--gold); }

/* ---------- counters ---------- */
.counter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
.counter-tile {
  background: var(--deep-2);
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  text-align: center; padding: 40px 20px;
}
.counter-tile .count {
  font-family: "Fraunces", serif; font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700; color: var(--gold); line-height: 1;
}
.counter-tile .label { margin-top: 10px; font-weight: 700; color: var(--white); font-size: .95rem; letter-spacing: .04em; }

/* ---------- magazine staggered rows ---------- */
.stagger-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  margin-bottom: 88px;
}
.stagger-row:last-child { margin-bottom: 0; }
.stagger-row.flip > .stagger-media { order: 2; }
.stagger-media {
  border-radius: var(--radius-card);
  min-height: 320px;
  background: linear-gradient(150deg, var(--deep) 0%, var(--deep-2) 70%, var(--deep-3) 100%);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.stagger-media::before {
  content: ""; position: absolute; inset: 26px;
  border: 2px solid var(--gold); border-radius: calc(var(--radius-card) - 12px);
}
.stagger-media .media-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: "Fraunces", serif; font-size: clamp(3rem, 6vw, 5rem); font-weight: 700;
  color: var(--gold);
}
.stagger-row h3 { font-size: 1.7rem; margin-bottom: 16px; }
@media (max-width: 840px) {
  .stagger-row { grid-template-columns: 1fr; gap: 32px; }
  .stagger-row.flip > .stagger-media { order: 0; }
}

/* ---------- quote / testimonial ---------- */
.quote-card {
  background: var(--white); border-left: 8px solid var(--gold);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 36px 40px; box-shadow: var(--shadow);
}
.quote-card blockquote {
  font-family: "Fraunces", serif; font-size: 1.25rem; font-style: italic;
  color: var(--ink); margin-bottom: 18px; line-height: 1.5;
}
.quote-card cite { font-style: normal; font-weight: 800; color: var(--gold-deep); }
.quote-card .role { display: block; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }

/* ---------- method steps ---------- */
.step-list { list-style: none; counter-reset: step; display: grid; gap: 20px; }
.step-list li {
  counter-increment: step;
  background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 26px 34px 26px 96px; position: relative;
}
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--deep); color: var(--gold);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.15rem;
}
.step-list h3 { margin-bottom: 6px; }
.step-list p { margin: 0; font-size: .96rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--deep-2), var(--deep-3));
  border-radius: var(--radius-card);
  border: 3px solid var(--gold);
  padding: 64px 48px; text-align: center; color: var(--white);
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: var(--white); max-width: 56ch; margin: 0 auto 30px; }

/* ---------- forms ---------- */
.form-card {
  background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius-card); padding: 44px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: 6px; letter-spacing: .03em; }
input, select, textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--gold); border-color: var(--deep);
}
textarea { min-height: 140px; resize: vertical; }
.field-error { color: #b3261e; font-size: .85rem; font-weight: 700; margin-top: 5px; display: none; }
.invalid input, .invalid select, .invalid textarea { border-color: #b3261e; }
.invalid .field-error { display: block; }
.form-status { margin-top: 16px; font-weight: 800; color: var(--gold-deep); display: none; }
.form-status.show { display: block; }

/* ---------- contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact-card {
  background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius-card); padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--deep); color: var(--gold);
  display: grid; place-items: center;
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { font-size: .96rem; margin-bottom: 4px; word-break: break-word; }

/* ---------- industry tiles ---------- */
.industry-tile { display: flex; gap: 20px; align-items: flex-start; }
.industry-tile .tile-dot {
  flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: var(--deep);
  display: grid; place-items: center;
  font-family: "Fraunces", serif; font-weight: 700; font-size: 1.25rem;
}

/* ---------- legal pages ---------- */
.legal-body { font-size: 16px; }
.legal-body h2 { margin: 56px 0 16px; font-size: 1.6rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1.2em 1.4em; }
.legal-body li { margin-bottom: .5em; }
.legal-toc {
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-card);
  padding: 32px 38px; margin-bottom: 48px; box-shadow: var(--shadow);
}
.legal-toc ol { margin-left: 1.3em; }
.legal-toc a { color: var(--ink); font-weight: 700; }
.legal-toc a:hover { color: var(--gold-deep); }
.updated-pill {
  display: inline-block; background: var(--deep); color: var(--gold);
  border-radius: 999px; padding: 6px 18px; font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px;
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 70%);
  color: var(--white); padding: 92px 0 120px;
  position: relative;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: var(--white); margin-top: 20px; }
.page-hero::after {
  content: ""; position: absolute; left: -110px; bottom: -160px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 46px solid var(--gold); pointer-events: none;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep); color: var(--white);
  padding: 72px 0 0; border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2, .site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; letter-spacing: .04em; }
.site-footer p { font-size: .94rem; color: var(--white); margin-bottom: .6em; }
.site-footer a { color: var(--gold); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--white); font-weight: 700; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 2px solid var(--deep-3);
  padding: 22px 0; font-size: .85rem; color: var(--white);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- utility ---------- */
.mt-48 { margin-top: 48px; }
.center { text-align: center; }
