/* Clarimed website — design "B · Editorial navy" */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-normal.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2-variations"),
       url("../fonts/fraunces-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2-variations"),
       url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1324;
  --navy-2: #121D33;
  --navy-line: #24304A;
  --navy-line-2: #2E3B55;
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --ink: #0B1324;
  --text: #33404F;
  --muted: #4A5568;
  --muted-2: #5A6578;
  --line: #D5DBE3;
  --line-soft: #E3E7ED;
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9B5C8;
  --on-dark-nav: #C9D3E3;
  --on-dark-label: #7D8BA3;
  --on-dark-dim: #6B7A93;
  --teal: #5EEAD4;
  --teal-ink: #0F766E;
  --sky-tint: #EAF4FB;
  --card-tint: #E9EEF5;
  --alert: #B4232A;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: 40px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
a:hover { color: var(--ink); }
h1, h2, h3, p, ul, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--teal); color: var(--navy); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-ink);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--teal); }
.serif { font-family: var(--font-serif); }
.accent-italic { font-style: italic; color: var(--teal); }
.accent-italic--ink { font-style: italic; color: var(--teal-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { flex: 0 0 auto; }
.btn--teal { background: var(--teal); color: var(--navy); }
.btn--teal:hover { background: #8BF1E0; color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #1B2944; color: var(--white); }
.btn--outline-light { min-height: 46px; padding: 0 22px; border: 1px solid var(--teal); color: var(--teal); background: transparent; font-size: 15px; font-weight: 600; }
.btn--outline-light:hover { background: rgba(94, 234, 212, .1); color: var(--teal); }
.btn--outline { border: 1px solid #CBD5E1; color: var(--ink); background: transparent; font-weight: 600; padding: 0 26px; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.link-light { color: var(--white); font-size: 16px; font-weight: 600; text-underline-offset: 6px; }
.link-light:hover { color: var(--teal); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: relative; z-index: 10; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand img { width: 30px; height: auto; }
.brand span { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) { color: var(--on-dark-nav); text-decoration: none; font-size: 15px; font-weight: 500; }
.primary-nav a:not(.btn):hover { color: var(--white); }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--navy-line);
  background: transparent; color: var(--white); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.site-header[data-open="true"] .menu-toggle .icon-open { display: none; }
.site-header[data-open="true"] .menu-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 72px; padding-top: 40px; }
.hero__copy { flex: 1 1 520px; min-width: 0; padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(46px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero h1 span { display: block; }
.lead { max-width: 540px; font-size: 19px; line-height: 1.65; color: var(--on-dark-muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.hero__media { flex: 1 1 440px; min-width: 0; }
.hero__media img { width: 100%; height: 640px; object-fit: cover; object-position: 50% 20%; border-radius: 320px 320px 0 0; }

/* ---------- Values strip ---------- */
.values { background: var(--navy); border-top: 1px solid var(--navy-line); }
.values__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; padding-block: 40px; }
.value { display: flex; flex-direction: column; gap: 8px; }
.value__title { font-family: var(--font-serif); font-size: 30px; font-weight: 400; color: var(--white); line-height: 1.2; }
.value__text { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------- Belief ---------- */
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.belief__inner { display: flex; flex-direction: column; gap: 64px; padding-block: 140px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split__label { flex: 0 0 220px; }
.split__label--offset { padding-top: 14px; }
.split__body { flex: 1 1 600px; min-width: 0; }
.statement {
  font-family: var(--font-serif); font-weight: 300; font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 2.9vw, 42px); line-height: 1.28; letter-spacing: -0.01em; text-wrap: pretty;
}
.split--rule { padding-top: 40px; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.pair__item { display: flex; flex-direction: column; gap: 10px; }
.pair__item h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 400; line-height: 1.25; }
.pair__item p { font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Ecosystem chapters ---------- */
.ecosystem__inner { padding-block: 120px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 48px; }
.h2 {
  font-family: var(--font-serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.02em;
}
.section-head p { max-width: 360px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.chapter { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding-block: 56px; border-top: 1px solid var(--line-soft); }
.chapter__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chapter__label { display: flex; align-items: baseline; gap: 14px; }
.chapter__num { font-family: var(--font-serif); font-size: 30px; line-height: 1; color: var(--teal-ink); }
.chapter__name { font-size: 18px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-ink); }
.chapter h3 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.01em; }
.chapter p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.chapter__media { flex: 1.6 1 560px; min-width: 0; height: 440px; border-radius: var(--radius-md); background: var(--paper); overflow: hidden; }
.chapter__media--sky { background: var(--sky-tint); }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.op-40-60 { object-position: 40% 60%; }
.op-50-40 { object-position: 50% 40%; }
.op-50-30 { object-position: 50% 30%; }

/* ---------- First look ---------- */
.glimpse__inner { display: flex; flex-direction: column; gap: 56px; padding-block: 120px; }
.glimpse__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.glimpse__head .h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; }
.glimpse__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.shot { display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.shot__frame { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.shot__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.shot--large { flex: 2 1 600px; min-width: 0; height: 560px; padding: 32px; gap: 20px; background: var(--navy-2); }
.shot--large figcaption { font-size: 15px; color: var(--on-dark-muted); }
.shot--large figcaption strong { color: var(--white); font-weight: 600; }
.shot-stack { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.shot--small { height: 268px; padding: 20px 24px; gap: 12px; background: var(--card-tint); }
.shot--small figcaption { font-size: 14px; color: var(--muted); }
.shot--small figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); border-top: 1px solid var(--navy-line); }
.site-footer__inner { display: flex; flex-direction: column; gap: 80px; padding-block: 120px 40px; }
.site-footer--compact .site-footer__inner { gap: 48px; padding-block: 64px 40px; }
.footer-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.footer-cta__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-cta h2 {
  font-family: var(--font-serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em;
}
.footer-cta p { font-size: 18px; line-height: 1.6; color: var(--on-dark-muted); }
.signup { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; text-align: right; }
.footer-cta .signup__note { font-size: 14px; line-height: 1.5; color: var(--on-dark-label); }
.signup__note a { color: var(--on-dark-muted); }

.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 40px; border-top: 1px solid var(--navy-line); }
.site-footer--compact .footer-main { padding-top: 0; border-top: 0; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand span { font-size: 20px; }
.footer-brand__tagline { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--on-dark-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 64px; }
.footer-nav nav { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-nav__label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-label); }
.footer-nav a { color: #E2E8F0; text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }
.footer-nav a[aria-current="page"] { color: var(--white); font-weight: 600; }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-dim); }
.soon__tag {
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--navy-line-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A97AD;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-label); }
.site-footer--compact .footer-bottom { padding-top: 24px; border-top: 1px solid var(--navy-line); }

/* ---------- Sub-page hero ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero__inner { display: flex; flex-direction: column; gap: 24px; padding-block: 64px 88px; }
.page-hero h1 {
  font-family: var(--font-serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(42px, 5vw, 72px); line-height: 1.04; letter-spacing: -0.02em;
}
.page-hero .lead { max-width: 620px; }
.page-hero--legal .page-hero__inner { gap: 20px; padding-block: 64px 80px; }
.page-hero--legal h1 { font-size: clamp(40px, 4.6vw, 64px); }
.page-hero__meta { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- Contact ---------- */
.contact__inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-block: 96px 120px; }
.partner-card { flex: 1.6 1 520px; min-width: 0; border-radius: var(--radius-lg); background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.partner-card > img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 28%; }
.partner-card__body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.partner-card h2 { font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.2; }
.partner-card p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.partner-card__actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.partner-card__emails { font-size: 14px; color: var(--muted-2); }
.partner-card__emails a { color: var(--muted-2); }
.contact-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.office { display: flex; flex-direction: column; gap: 6px; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-style: normal; }
.office__label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); }
.office__address { font-size: 17px; line-height: 1.6; }
.office__uen { font-size: 14px; color: var(--muted-2); }
.notice { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-sm); background: var(--white); }
.notice svg { flex: 0 0 auto; color: var(--alert); }
.notice p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.notice strong { color: var(--ink); }

/* ---------- Privacy ---------- */
.policy__inner { display: flex; justify-content: center; padding-block: 88px 120px; }
.policy { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 40px; font-size: 17px; line-height: 1.7; color: var(--text); }
.policy__intro { font-size: 19px; line-height: 1.65; color: var(--ink); }
.policy section { display: flex; flex-direction: column; gap: 12px; }
.policy h2 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--ink); }
.policy ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy__contact { padding: 24px 28px; border-radius: var(--radius-sm); background: var(--paper); display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-style: normal; }
.policy a { font-weight: 600; }

/* ---------- 404 ---------- */
.not-found__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: 120px 160px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .signup { align-items: flex-start; text-align: left; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px var(--gutter) 28px; background: var(--navy); border-bottom: 1px solid var(--navy-line);
  }
  .site-header[data-open="true"] .primary-nav { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 17px; }
  .primary-nav .btn { margin-top: 16px; align-self: flex-start; }
  .hero__inner { gap: 48px; }
  .hero__copy { padding-bottom: 0; }
  .hero__media img { height: 520px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header__inner { padding-block: 20px; }
  .hero__inner { padding-top: 24px; gap: 40px; }
  .hero__copy { gap: 24px; }
  .lead { font-size: 17px; }
  .hero__media img { height: 420px; border-radius: 210px 210px 0 0; }
  .belief__inner { padding-block: 88px; gap: 48px; }
  .split__label { flex-basis: 100%; }
  .split__label--offset { padding-top: 0; }
  .ecosystem__inner, .glimpse__inner { padding-block: 80px; }
  .chapter { padding-block: 40px; gap: 28px; }
  .chapter__name { font-size: 15px; }
  .chapter p { font-size: 17px; }
  .chapter__media { height: 280px; flex-basis: 100%; }
  .shot--large { height: auto; padding: 20px; }
  .shot--small { height: auto; }
  .site-footer__inner { padding-block: 88px 32px; gap: 56px; }
  .signup { flex-basis: 100%; align-items: stretch; }
  .signup .btn { width: 100%; }
  .footer-nav { gap: 40px; }
  .page-hero__inner { padding-block: 40px 56px; }
  .contact__inner { padding-block: 56px 80px; gap: 32px; }
  .partner-card > img { height: 220px; }
  .partner-card__body { padding: 28px 24px; }
  .partner-card h2 { font-size: 26px; }
  .partner-card__actions .btn { width: 100%; }
  .policy__inner { padding-block: 56px 80px; }
  .policy { gap: 32px; font-size: 16px; }
  .policy__intro { font-size: 17px; }
}
