/* Alimayu Studio shared design system.
   House rules: no all-caps text and no em dashes. Emphasis comes from size, weight, color, and space. */

:root {
  --night: #11142A;
  --navy: #1E2346;
  --navy-2: #2A3060;
  --gold: #B08D57;
  --gold-soft: #CDB083;
  --gold-faint: rgba(176, 141, 87, .18);
  --paper: #F7F3EA;
  --cream: #EFE8DA;
  --ink: #171A2E;
  --muted: #4A4F63;
  --on-dark: #EDE4D2;
  --on-dark-muted: #A9A6B4;
  --rule: rgba(30, 35, 70, .14);
  --rule-dark: rgba(237, 228, 210, .16);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 20, 42, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 72px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--on-dark-muted); font-weight: 400; }
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { color: var(--on-dark); text-decoration: none; font-size: 15.5px; font-weight: 600; padding: 8px 12px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-soft); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule-dark); color: var(--on-dark); font: 600 15px var(--sans); padding: 8px 14px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--night); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule-dark); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 18px; }
  .nav a::after { left: 0; right: auto; width: 40px; }
}

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--muted); max-width: 40em; }
.on-dark .lead, .on-navy .lead { color: var(--on-dark-muted); }
.h2 { font-size: clamp(34px, 4.6vw, 58px); }
.h3 { font-size: clamp(26px, 2.6vw, 34px); }
.small { font-size: 15px; color: var(--muted); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.on-dark { background: var(--night); color: var(--on-dark); }
.on-navy { background: var(--navy); color: var(--on-dark); }
.on-cream { background: var(--cream); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { margin: 0; color: var(--muted); }
.on-dark .section-head p, .on-navy .section-head p { color: var(--on-dark-muted); }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--sans); text-decoration: none; padding: 15px 26px; border: 1px solid var(--gold); background: var(--gold); color: var(--night); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold-soft); }
.btn.ghost { background: transparent; color: inherit; }
.btn.ghost:hover { background: var(--gold-faint); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.btn.dark:hover { background: var(--navy-2); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
@media (max-width: 600px) { .actions .btn { width: 100%; justify-content: center; } }
.text-link { color: var(--gold); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold-faint); }
.text-link:hover { border-color: var(--gold); }

/* Inner page hero */
.page-hero { background: var(--night); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 84px); max-width: 15ch; }
.page-hero h1 em { display: block; font-style: italic; font-weight: 500; color: var(--gold-soft); font-size: .6em; margin-top: 12px; }
.page-hero .lead { margin-top: 24px; }
.page-hero .seal-mark { position: absolute; right: -90px; top: 50%; width: 460px; transform: translateY(-50%); opacity: .07; pointer-events: none; }
@media (max-width: 900px) { .page-hero .seal-mark { display: none; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-dark); margin-top: clamp(48px, 7vw, 80px); }
.proof div { padding: 26px 22px 6px 0; }
.proof div + div { padding-left: 22px; border-left: 1px solid var(--rule-dark); }
.proof b { display: block; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 46px); font-weight: 600; color: var(--gold-soft); line-height: 1; }
.proof span { display: block; margin-top: 8px; font-size: 15px; color: var(--on-dark-muted); }
@media (max-width: 800px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--rule); padding: 32px; position: relative; text-decoration: none; color: inherit; display: block; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(17, 20, 42, .45); border-color: var(--gold); }
.card .num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.card h3 { font-size: 30px; margin: 10px 0 12px; }
.card p { color: var(--muted); font-size: 16.5px; margin: 0; }
.card .more { display: inline-block; margin-top: 20px; color: var(--navy); font-weight: 600; font-size: 15.5px; }
.on-dark .card, .on-navy .card { background: rgba(255, 255, 255, .03); border-color: var(--rule-dark); }
.on-dark .card p, .on-navy .card p { color: var(--on-dark-muted); }
.on-dark .card .more, .on-navy .card .more { color: var(--gold-soft); }

/* Media ticker */
.ticker { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; overflow: hidden; position: relative; }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 36px 0 var(--gutter); background: linear-gradient(90deg, #fff 75%, rgba(255,255,255,0)); font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.ticker-track { display: flex; width: max-content; animation: scroll 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; align-items: center; gap: 60px; list-style: none; margin: 0; padding: 24px 30px; }
.ticker li { flex: none; }
.ticker img { height: 38px; width: auto; max-width: 190px; object-fit: contain; }
.ticker .wordmark { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--navy); white-space: nowrap; opacity: .8; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Quotes */
.quote-big { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.12; max-width: 22ch; margin: 0; }
.cite { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--on-dark); background: var(--navy-2); padding: 6px 12px; }
.cite.light { background: var(--navy); }

/* Footer */
.site-footer { background: var(--night); color: var(--on-dark-muted); padding: 72px 0 36px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--serif); font-size: 21px; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-brand img { width: 54px; margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
