/* Storivue marketing site — shared styles */

/* Self-hosted fonts (no third-party requests) */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2"); }

:root {
  --navy: #042E62;
  --navy-700: #0A3D7A;
  --teal: #12A6B8;
  --teal-600: #0E8797;
  --teal-50: #E7F6F8;
  --paper: #FBF8F3;
  --paper-2: #F3EEE6;
  --sky: #EEF4FA;
  --ink: #1B2433;
  --ink-soft: #4B5568;
  --line: #E2DED6;
  --white: #FFFFFF;
  --coral: #E9875F;
  --sun: #F2C14E;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(4, 46, 98, .06), 0 8px 28px rgba(4, 46, 98, .08);
  --shadow-lg: 0 2px 4px rgba(4, 46, 98, .06), 0 24px 60px rgba(4, 46, 98, .14);

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-story: "Fraunces", Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.story { font-family: var(--font-story); font-style: italic; font-weight: 500; color: var(--teal-600); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--white { background: var(--white); }
.section--sky { background: var(--sky); }
.section--navy { background: var(--navy); color: #DCE6F2; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #7FD6E1; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }
.section--navy .lead { color: #C3D2E4; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  color: var(--navy); text-decoration: none;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { background: var(--teal-50); color: var(--teal-600); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { background: none; }
  .nav-links .btn { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff !important; box-shadow: 0 6px 18px rgba(4, 46, 98, .22); }
.btn--primary:hover { background: var(--navy-700); }
.btn--teal { background: var(--teal); color: #fff !important; }
.btn--teal:hover { background: var(--teal-600); }
.btn--ghost { border-color: var(--navy); color: var(--navy) !important; background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff !important; }
.btn--light { background: #fff; color: var(--navy) !important; }
.nav-links .btn { padding: 10px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 .story { display: block; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Journal mock (pure CSS illustration) */
.journal { position: relative; perspective: 1600px; padding: 20px 0; }
.journal-book {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-radius: 10px 10px 14px 14px;
  box-shadow: var(--shadow-lg);
  transform: rotateX(8deg) rotateZ(-2deg);
  position: relative;
}
.journal-book::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 36px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(4, 46, 98, .09), transparent);
  pointer-events: none;
}
.jpage { padding: clamp(14px, 2.4vw, 26px); display: grid; gap: 10px; align-content: start; }
.jtitle { font-family: var(--font-story); font-style: italic; color: var(--navy); font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.2; }
.jsub { font-family: var(--font-head); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); font-weight: 600; }
.jphoto { border-radius: 6px; aspect-ratio: 4/3; position: relative; overflow: hidden; }
.jphoto--tall { aspect-ratio: 3/4; }
.jphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .12)); }
.ph-beach { background: radial-gradient(circle at 70% 30%, #FFE7A8 0 12%, transparent 13%), linear-gradient(180deg, #8FD3E8 0 48%, #3BA7C2 48% 66%, #F2DDB0 66%); }
.ph-sunset { background: radial-gradient(circle at 50% 62%, #FFD27A 0 14%, transparent 15%), linear-gradient(180deg, #F6A57B, #E9875F 55%, #7A4B6E 56%, #3D3557); }
.ph-park { background: radial-gradient(ellipse at 30% 110%, #6BB36A 0 45%, transparent 46%), radial-gradient(ellipse at 85% 115%, #4E9A57 0 40%, transparent 41%), linear-gradient(180deg, #CFE8F5, #A9D6EE); }
.ph-party { background: radial-gradient(circle at 20% 30%, #F2C14E 0 6%, transparent 7%), radial-gradient(circle at 75% 25%, #12A6B8 0 7%, transparent 8%), radial-gradient(circle at 55% 70%, #E9875F 0 9%, transparent 10%), linear-gradient(135deg, #FCE9DD, #F6D6E4); }
.ph-pitch { background: repeating-linear-gradient(90deg, #5DAA5F 0 18px, #67B468 18px 36px); }
.jlines { display: grid; gap: 6px; }
.jlines span { height: 6px; border-radius: 3px; background: #E8E4DC; }
.jlines span:nth-child(2) { width: 88%; }
.jlines span:nth-child(3) { width: 70%; }
.jquote { font-family: var(--font-story); font-style: italic; font-size: clamp(.78rem, 1.3vw, .92rem); color: var(--ink-soft); line-height: 1.45; border-left: 3px solid var(--teal); padding-left: 10px; }
.jrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.float-card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 14px; display: flex; gap: 10px; align-items: center;
  font-family: var(--font-head); font-size: .88rem; color: var(--navy); font-weight: 500;
}
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); flex: none; }
.float-card .ic svg { width: 18px; height: 18px; }
.float-card small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: .76rem; }
.float-card--a { left: -18px; bottom: 6%; }
.float-card--b { right: -10px; top: 0; }
@media (max-width: 520px) {
  .float-card--a { left: 0; bottom: -10px; }
  .float-card--b { right: 0; top: -6px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.section--white .step { background: var(--paper); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 18px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.section--white .card { background: var(--paper); }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-600); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card--link { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card--link .more { margin-top: auto; padding-top: 18px; font-family: var(--font-head); font-weight: 600; color: var(--teal-600); }
.card-band { height: 120px; border-radius: 12px; margin: -10px -10px 22px; }

/* Audience tiles */
.tile { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.tile .jphoto { aspect-ratio: 4/3; border-radius: 0; }
.tile-body { padding: 22px 24px 26px; }
.tile-body p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E8797' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
.section--navy .checks li::before { background-color: rgba(255, 255, 255, .1); }

/* Ladder (story -> book) */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.rung { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px 22px; }
.rung .tag { font-family: var(--font-head); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #7FD6E1; font-weight: 600; }
.rung h3 { margin: 8px 0 6px; }
.rung p { font-size: .94rem; margin: 0; color: #C3D2E4; }
.rung em { display: block; margin-top: 12px; font-family: var(--font-story); color: #fff; font-size: .95rem; }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* Quote / pull */
.pull { font-family: var(--font-story); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; color: var(--navy); max-width: 30em; margin: 0 auto; text-align: center; }

/* Badges */
.badge { display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); vertical-align: middle; margin-left: 6px; }
.badge--teal { background: var(--teal-50); color: var(--teal-600); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--teal-600); font-family: var(--font-head); font-weight: 500; margin: 0; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, #08417F 60%, var(--teal-600) 140%);
  border-radius: 28px; padding: clamp(36px, 6vw, 64px); color: #DCE6F2;
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { margin: 0; color: #C3D2E4; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-head); font-weight: 500; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--ink-soft); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--teal-600); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; margin: 0; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-hero .lead { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #AFC0D6; padding: 64px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-logo img { height: 28px; width: auto; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: #7FD6E1; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card--link, .tile { transition: none; }
}

/* Sample journal pages (real examples) */
.stack { position: relative; aspect-ratio: 4 / 3.3; margin: 10px 0; }
.stack img {
  position: absolute; width: 64%; height: auto; border-radius: 6px;
  box-shadow: var(--shadow-lg); background: #fff;
}
.stack img:nth-child(1) { top: 0; left: 0; transform: rotate(-6deg); }
.stack img:nth-child(2) { top: 2%; right: 0; transform: rotate(5deg); }
.stack img:nth-child(3) { bottom: 0; left: 18%; width: 68%; transform: rotate(-1deg); }
.stack--two { aspect-ratio: 4 / 3.4; }
.stack--two img:nth-child(1) { top: 0; left: auto; right: 0; transform: rotate(4deg); width: 76%; }
.stack--two img:nth-child(2) { top: auto; bottom: 0; left: 0; right: auto; transform: rotate(-3deg); width: 76%; }
.stack .float-card { z-index: 2; }

.tile-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); transition: transform .2s; }
.gallery figure:hover img { transform: translateY(-3px) rotate(-.5deg); }
.gallery figcaption { margin-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.gallery figcaption strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.sample-note { margin-top: 18px; font-size: .85rem; color: var(--ink-soft); text-align: center; }

/* In memoriam placeholder tile (until a real sample page is available) */
.memorial-tile {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; position: relative;
  background: radial-gradient(circle at 30% 20%, #FFFDF8, #F1E9DC 70%); border-bottom: 1px solid var(--line);
}
.memorial-tile::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid #CDBFA6; border-radius: 4px; }
.memorial-tile::after { content: ""; position: absolute; top: 4px; left: 50%; width: 70px; height: 18px; transform: translateX(-50%) rotate(-3deg); background: rgba(18, 166, 184, .35); }
.memorial-tile span { font-family: var(--font-story); font-style: italic; color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.memorial-tile small { display: block; margin-top: 6px; font-family: var(--font-head); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #8A7A5E; }

/* Photos inside the CSS journal mock */
.jimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 5px solid #fff; border-radius: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .16); transform: rotate(-1.2deg); }
.jimg--tilt { transform: rotate(1.6deg); }

/* Team with photos */
.team { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.avatar-img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.avatar { width: 112px; height: 112px; font-size: 1.9rem; box-shadow: 0 0 0 2px var(--teal), var(--shadow); border: 3px solid #fff; }
.person .bio { color: var(--ink-soft); font-size: .93rem; margin: 12px 0 0; }

/* App store badges (placeholders until the apps are live) */
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 10px; border-radius: 9px; background: #0B0B0C; color: #fff !important;
  text-decoration: none; border: 1px solid #0B0B0C; transition: transform .15s, box-shadow .15s;
  font-family: var(--font-head); font-weight: 600; font-size: .88rem; line-height: 1.05;
}
.app-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); color: #fff; }
.app-badge svg { width: 17px; height: 17px; flex: none; }
.app-badge small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .58rem; letter-spacing: .02em; opacity: .85; margin-bottom: 2px; }
.app-badges--light .app-badge { background: #fff; color: var(--navy) !important; border-color: #fff; }
.app-badges--light .app-badge:hover { color: var(--navy); }
.app-badges--light { margin-top: 0; }
.app-badges--sm { margin-top: 16px; gap: 8px; }
.app-badges--sm .app-badge { padding: 5px 11px 5px 9px; font-size: .8rem; border-color: rgba(255, 255, 255, .35); }
.app-badges--sm .app-badge svg { width: 15px; height: 15px; }
.hero-note a { color: var(--teal-600); font-weight: 600; }
.cta .app-badges { justify-content: flex-end; }
@media (max-width: 760px) { .cta .app-badges { justify-content: flex-start; } }

/* Legal pages */
.legal { max-width: 780px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); }
.legal h2 { font-size: 1.35rem; margin: 2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal strong { color: var(--ink); }
.legal-date { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.ph { background: #FFF3C4; color: #7A5A00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.footer-legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #DCE6F2; text-decoration: none; }
.footer-legal a:hover { color: #7FD6E1; }

/* Mixed-shape sample pages */
.gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--paper-2); padding: 10px; }
.stack img.stack-cover { width: 34%; left: auto; right: 4%; top: auto; bottom: 2%; transform: rotate(3deg); background: transparent; box-shadow: none; filter: drop-shadow(0 18px 30px rgba(4,46,98,.25)); border-radius: 0; }
.stack img:nth-child(1) { width: 66%; }
.stack img:nth-child(2) { width: 62%; top: 30%; left: 4%; right: auto; transform: rotate(-4deg); }
.stack--two img:nth-child(2) { width: 56%; }
.tile-img { object-position: center top; }

/* Hero images laid out side by side (no overlap) */
.stack, .stack--two { position: relative; aspect-ratio: auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: center; margin: 10px 0; }
.stack img, .stack--two img, .stack img.stack-cover { position: static; width: 100% !important; transform: none !important; top: auto; left: auto; right: auto; bottom: auto; }
.stack img:nth-child(1) { grid-column: 1; grid-row: 1; }
.stack img:nth-child(2) { grid-column: 1; grid-row: 2; }
.stack img.stack-cover { grid-column: 2; grid-row: 1 / 3; }
.stack .float-card { position: static; grid-row: 3; }
.stack .float-card--a { grid-column: 1; justify-self: start; }
.stack .float-card--b { grid-column: 2; justify-self: start; }
.stack--two { grid-template-columns: 1.5fr 1fr; }
.stack--two img:nth-child(2) { grid-column: 2; grid-row: 1; }
@media (max-width: 520px) { .stack .float-card--a, .stack .float-card--b { grid-column: 1 / -1; } .stack .float-card--b { grid-row: 4; } }

/* Simplified templates sample */
.simple-sample { margin: 0; max-width: 440px; justify-self: center; }
.simple-sample img { width: 100%; height: auto; border-radius: 6px; background: #fff; padding: 10px; box-shadow: var(--shadow-lg); }
.simple-sample figcaption { margin-top: 14px; text-align: center; font-size: .92rem; color: var(--ink-soft); }
