/* Cymantic Medical: site styles (shares the deck's brand palette and type) */

:root {
    --cream: #f5f1eb;
    --paper: #fbf9f6;
    --dark: #17130f;
    --dark-2: #221e1a;
    --ink: #1c1915;
    --ink-soft: #4a443d;
    --muted: #7a7269;
    --orange: #e0702d;
    --orange-text: #c0531a;
    --line: #e2dbd1;
    --wrap: 1140px;
    --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 18px; font-weight: 500; }

.eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange-text);
}

sup a { text-decoration: none; color: var(--orange-text); font-weight: 500; }

/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-text); }
.btn-small { padding: 7px 16px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 19, 15, .95);
    backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; color: #fff; }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: none; font-size: 22px; font-weight: 500; line-height: 1; }
.brand-text span { color: var(--orange); font-weight: 300; }
.brand.no-logo .brand-text { display: inline; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { color: rgba(255,255,255,.7); text-decoration: none; font-size: 15px; }
.site-nav a:not(.btn):hover { color: #fff; }

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 140px 0 150px;
}
.hero .wrap { position: relative; z-index: 1; }
.hex {
    position: absolute;
    right: -6%;
    top: 50%;
    width: min(56vw, 640px);
    transform: translateY(-50%);
}
.hex polygon { fill: none; stroke: var(--orange); stroke-width: 1.2; opacity: .55; }

.kicker {
    margin: 0 0 22px;
    font-size: 14px;
    letter-spacing: .08em;
    color: rgba(255,255,255,.55);
}
.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: -0.02em;
    max-width: 14ch;
    line-height: 1.08;
}
.hero h1 span { color: var(--orange); font-weight: 500; }
.hero-body {
    margin: 28px 0 40px;
    max-width: 50ch;
    font-size: 19px;
    color: rgba(255,255,255,.75);
}

/* Sections */

.section { padding: 112px 0; }
.dark { background: var(--dark); color: #fff; }
.dark .eyebrow { color: var(--orange); }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.prose p { margin: 0 0 18px; color: var(--ink-soft); font-size: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Facts */

.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 80px;
    border-top: 1px solid var(--line);
}
.fact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 28px 0 0;
}
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact-num { font-size: clamp(34px, 4vw, 46px); font-weight: 500; color: var(--orange-text); line-height: 1; }
.fact-text { font-size: 15px; color: var(--ink-soft); max-width: 26ch; }

/* What we do */

.lead { margin: 22px 0 0; font-size: 18px; color: rgba(255,255,255,.75); max-width: 44ch; }
.note { margin: 28px 0 0; font-size: 13px; color: rgba(255,255,255,.45); }

.benefits { list-style: none; margin: 0; padding: 0; }
.benefits li {
    padding: 26px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.benefits li:first-child { padding-top: 6px; }
.benefits h3 { color: var(--orange); margin-bottom: 6px; }
.benefits p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }

/* Team */

.team-title { max-width: 26ch; }
.team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.member {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 22px;
    background: var(--cream);
    border-radius: 16px;
}
.avatar {
    position: relative;
    flex: none;
    width: 92px;
    height: 112px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-2);
}
.avatar::before {
    content: attr(data-initials);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
}
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(100%); }
.role { margin: 2px 0 6px; font-size: 14px; font-weight: 500; color: var(--orange-text); }
.member p:last-child { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }

/* Backers */

.backers { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.backers-inner .eyebrow { color: var(--muted); text-align: center; margin-bottom: 28px; }
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px 40px;
    max-width: 700px; /* four per row on desktop: 4 + 3, both rows centred */
    margin: 0 auto;
}
/* Every logo sits in the same-sized slot, so rows line up and the last row centres */
.logos > * {
    flex: 0 0 140px;
    width: 140px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.logos img {
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .6;
    transition: filter .2s, opacity .2s;
    /* Per-logo size nudge: set style="--s: 1.2" on an <img> whose file has extra padding */
    transform: scale(var(--s, 1));
}
.logos img:hover { filter: none; opacity: 1; }
.logo-text { font-weight: 500; color: var(--muted); font-size: 14px; line-height: 1.3; }

/* Contact */

.contact { background: var(--orange); color: var(--ink); padding: 72px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact h2 { font-weight: 500; max-width: 22ch; }
.contact-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-link { text-decoration: none; font-weight: 500; }
.contact-link:hover { text-decoration: underline; }

/* Footer */

.site-footer { background: var(--dark); color: rgba(255,255,255,.5); font-size: 13px; padding: 40px 0 32px; }
.refs { margin: 0 0 28px; padding-left: 18px; line-height: 1.7; }
.refs a { color: rgba(255,255,255,.75); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
.footer-bottom p { margin: 0 0 6px; }

/* Responsive */

@media (max-width: 860px) {
    .site-nav a:not(.btn) { display: none; }
    .hero { padding: 96px 0 104px; }
    .hex { width: 90vw; right: -45%; opacity: .3; }
    .section { padding: 80px 0; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .facts { grid-template-columns: 1fr; margin-top: 48px; }
    .fact, .fact + .fact { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .team { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .brand-logo { height: 36px; }
    .member { align-items: flex-start; }
    .logos { gap: 24px 16px; }
    .logos > * { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); height: 44px; }
    .avatar { width: 72px; height: 88px; border-radius: 10px; }
}
