/* =========================================================
   pmxstudio.ai — design system
   ========================================================= */

:root {
  /* Color */
  --ink:      #0E1C1A;
  --ink-2:    #2A3A37;
  --ink-3:    #5B6B68;
  --ink-4:    #8A9794;
  --paper:    #F5F2EB;
  --paper-2:  #FBF9F4;
  --surface:  #FFFFFF;
  --line:     #E2DED4;
  --line-2:   #EFEBE2;
  --sage:     #C8D3C5;
  --sage-2:   #E4EBE1;
  --sage-wash:#DBE4D7;
  --teal:     #2F5D5A;
  --teal-2:   #1F4845;
  --teal-3:   #5A8582;
  --clay:     #B89F73;

  /* Type */
  --font-serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(.2, .6, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--teal);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
a:hover { color: var(--teal-2); text-decoration: underline; }

/* =========================================================
   Type
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}
h4 {
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

p { margin: 0 0 1em; }

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--teal);
  display: inline-block;
}

.serif-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.mono { font-family: var(--font-mono); font-size: .85em; }

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  padding: 0 1.5rem;
  margin: 0 auto;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  padding: 0 1.5rem;
  margin: 0 auto;
}

section { padding: 5.5rem 0; }
@media (max-width: 720px) { section { padding: 3.5rem 0; } }

.section-paper-2 { background: var(--sage-wash); }
.section-ink    { background: var(--ink); color: #D5DEDC; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #F2F0E8; }
.section-ink .eyebrow { color: var(--sage); }
.section-ink .eyebrow::before { background: var(--sage); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack-lg > * + * { margin-top: 4rem; }
.stack-md > * + * { margin-top: 2rem; }

/* =========================================================
   Nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 235, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; color: var(--ink); }
.nav-brand .mark { width: 26px; height: 26px; }
.nav-brand .mark path { stroke: var(--teal); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav-brand .mark circle { fill: var(--teal); }
.nav-brand b { font-weight: 500; color: var(--teal); }
.nav-brand .dot-ai { color: var(--ink-3); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); }

.nav-cta {
  font-size: .875rem;
  font-weight: 500;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
  transition: background .2s var(--ease);
}
.nav-cta:hover { background: var(--teal-2); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: all .2s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--teal-2);
  color: var(--paper);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-3);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: .85rem 0;
}
.btn-ghost:hover { color: var(--teal); text-decoration: none; }
.btn .arrow {
  transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--teal); font-weight: 400; }
.hero .lead { font-size: 1.1875rem; }
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-visual {
  aspect-ratio: 5 / 4;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-mark {
  width: 82%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  border-color: var(--sage);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: .65rem; }
.card .card-meta {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card-list { color: var(--ink-3); font-size: .9375rem; }
.card-list li { padding: .35rem 0; border-bottom: 1px solid var(--line-2); }
.card-list li:last-child { border-bottom: 0; }

.pillar {
  padding: 0;
  background: transparent;
  border: 0;
  position: relative;
}
.pillar:hover { transform: none; border: 0; }
.pillar .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.pillar h3 { font-size: 1.5rem; margin-bottom: .85rem; }
.pillar p { color: var(--ink-2); margin: 0; }

/* =========================================================
   Process / steps
   ========================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step .step-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: .65rem;
}
.step p { color: var(--ink-2); font-size: .9375rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* =========================================================
   Service list (table-style)
   ========================================================= */

.services-table {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-row .svc-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service-row .svc-body { color: var(--ink-2); font-size: 1rem; }
.service-row .svc-deliverables {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
}
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: .75rem; }
}

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 2.5rem;
  align-items: center;
}
.cta-band h2 { color: #F2F0E8; margin: 0; }
.cta-band p { color: #C7D1CF; margin: .75rem 0 0; max-width: 50ch; }
.cta-band .btn-primary {
  background: var(--sage);
  color: var(--ink);
}
.cta-band .btn-primary:hover { background: #fff; }
@media (max-width: 820px) {
  .cta-band { grid-template-columns: 1fr; padding: 2.5rem; }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: .75rem;
}
.footer h5 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: .5rem 0; }
.footer a { color: var(--ink-3); font-size: .9375rem; }
.footer a:hover { color: var(--teal); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8125rem;
  color: var(--ink-4);
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   Page header (non-home pages)
   ========================================================= */

.page-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-header h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1rem;
  max-width: 22ch;
}
.page-header .lead { max-width: 58ch; }

/* =========================================================
   Logos / proof bar
   ========================================================= */

.proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.8;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
}
.proof-item {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

/* =========================================================
   Form
   ========================================================= */

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
input, select, textarea {
  font-family: var(--font-sans);
  font-size: .9375rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }

/* =========================================================
   Hero illustration (concentration-time)
   ========================================================= */

.curve-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
}
.hero-card {
  position: relative;
}
.hero-card-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
}
.hero-card svg.plot { width: 100%; height: auto; }

/* =========================================================
   Team
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 820px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  padding: 0;
}
.team-photo {
  aspect-ratio: 4 / 5;
  background: var(--sage-2);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--teal);
  font-style: italic;
}
.team-card h3 { margin-bottom: .15rem; font-size: 1.25rem; }
.team-role { font-size: .875rem; color: var(--ink-3); margin: 0 0 .75rem; }
.team-bio { font-size: .9375rem; color: var(--ink-2); }

.team-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.team-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   News
   ========================================================= */

.news-list {
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 2.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}
.news-date {
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--ink-3);
}
.news-body h3 {
  margin-bottom: .65rem;
}
.news-body p {
  color: var(--ink-2);
  margin-bottom: .8rem;
}
.news-body p:last-child {
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
  }
  .news-meta {
    flex-direction: row;
    align-items: center;
    gap: .85rem;
  }
}

/* =========================================================
   Misc
   ========================================================= */

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin: 0;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--sage-2);
  padding: .3rem .65rem;
  border-radius: 999px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

.principle {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.principle:last-child { border-bottom: 0; }
.principle h3 {
  font-size: 1.25rem;
  margin-bottom: .4rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.principle h3 .principle-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--teal);
  font-weight: 500;
}
.principle p { color: var(--ink-2); margin: 0; max-width: 65ch; }

/* =========================================================
   Stats grid
   ========================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 2.25rem 1.5rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: .65rem;
}
.stat-num em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal);
}
.stat-label {
  font-size: .875rem;
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 22ch;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* =========================================================
   Comparison
   ========================================================= */

.compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr 1fr;
  min-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-corner {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.compare-header {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.compare-header.us {
  background: var(--ink);
  color: var(--paper);
}
.compare-header h4 {
  margin: 0 0 .25rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  color: inherit;
  letter-spacing: -0.005em;
}
.compare-header.us h4 { color: var(--paper); }
.compare-header .compare-sub {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-header.us .compare-sub { color: var(--sage); }
.compare-row-label {
  padding: 1.1rem 1.5rem;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
  display: flex;
  align-items: center;
}
.compare-cell {
  padding: 1.1rem 1.5rem;
  font-size: .9375rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  display: flex;
  align-items: center;
}
.compare-cell.us {
  color: var(--ink);
  font-weight: 500;
  background: rgba(200, 211, 197, .18);
}
.compare > div:nth-last-child(-n+5) { border-bottom: 0; }

/* =========================================================
   Case-study cards
   ========================================================= */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.case:hover { border-color: var(--sage); transform: translateY(-2px); }
.case-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.case-meta .tag {
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.case-meta .tag.primary {
  background: var(--sage-2);
  color: var(--teal);
  border-color: transparent;
}
.case h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.25;
}
.case p {
  margin: 0;
  font-size: .9375rem;
  color: var(--ink-2);
}
.case-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
}
.case-foot dt {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 .35rem;
}
.case-foot dd {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}

/* Selection */
::selection { background: var(--teal); color: var(--paper); }

/* =========================================================
   Scroll reveal
   ========================================================= */

html.js .reveal,
html.js .reveal-group > * {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
}
html.js .reveal.in,
html.js .reveal-group.in > * {
  opacity: 1;
  translate: 0;
}
/* preserve the faster hover transitions on interactive cards */
html.js .reveal-group > .card,
html.js .reveal-group > .case {
  transition: opacity .7s var(--ease), translate .7s var(--ease),
              transform .25s var(--ease), border-color .2s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .reveal-group > * {
    opacity: 1;
    translate: 0;
    transition: none;
  }
}

/* =========================================================
   Hero ambience — soft glow + curve texture
   ========================================================= */

.hero {
  background:
    radial-gradient(640px 440px at 80% 26%, rgba(200, 211, 197, 0.42), transparent 72%),
    radial-gradient(540px 420px at 10% 0%,  rgba(47, 93, 90, 0.055), transparent 68%);
}
/* faint family of concentration-time curves along the foot of the hero */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: var(--teal);
  -webkit-mask: url(assets/curves.svg) no-repeat bottom / 100% auto;
  mask: url(assets/curves.svg) no-repeat bottom / 100% auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

/* soft halo behind the brand mark */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(200, 211, 197, 0.55),
              rgba(228, 235, 225, 0) 70%);
  z-index: 0;
}
.hero-mark { position: relative; z-index: 1; }

/* =========================================================
   Curve texture — page headers & CTA band
   ========================================================= */

.page-header {
  position: relative;
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 1; }
.page-header::before {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -1px;
  width: 60%;
  height: 86%;
  background: var(--teal);
  -webkit-mask: url(assets/curves.svg) no-repeat bottom right / contain;
  mask: url(assets/curves.svg) no-repeat bottom right / contain;
  opacity: 0.10;
  pointer-events: none;
}

.cta-band { position: relative; overflow: hidden; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band::before {
  content: "";
  position: absolute;
  right: -2%;
  bottom: -1px;
  width: 56%;
  height: 94%;
  background: var(--sage);
  -webkit-mask: url(assets/curves.svg) no-repeat bottom right / contain;
  mask: url(assets/curves.svg) no-repeat bottom right / contain;
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 820px) {
  .page-header::before { width: 96%; opacity: 0.07; }
  .cta-band::before { width: 100%; opacity: 0.12; }
}
