/* ============================================================
   Ipser.com — design system
   ============================================================ */
:root {
    --purple: #4D1979;
    --purple-dark: #2E0E49;
    --purple-light: #E9D5FF;
    --tint: #FAF7FD;
    --ink: #221A2B;
    --muted: #665E70;
    --line: #E6DEEE;
    --paper: #FFFFFF;
    --radius: 16px;
    --shell: 1120px;
    --shadow: 0 10px 30px rgba(46, 14, 73, 0.07);
    --shadow-hover: 0 18px 40px rgba(46, 14, 73, 0.14);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

p { margin: 0 0 1rem; }

a {
    color: var(--purple);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

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

:focus-visible {
    outline: 3px solid #B07DE0;
    outline-offset: 3px;
    border-radius: 3px;
}

.shell {
    width: min(calc(100% - 2.5rem), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    background: var(--purple-dark);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--purple);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--purple), #7A39AC);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-name { font-size: 0.98rem; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--purple);
    text-decoration: underline;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.5rem;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(186, 123, 236, 0.35), transparent 45%),
        linear-gradient(135deg, #350F56 0%, var(--purple) 55%, #6A2C9C 100%);
    color: #fff;
}

.hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -180px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.hero .eyebrow { color: var(--purple-light); }

.hero h1 {
    max-width: 15ch;
    font-size: clamp(2.0rem, 6vw, 4.4rem);
    font-weight: 800;
}

.hero h1 span {
    color: var(--purple-light);
    font-weight: 300;
}

.hero-roles {
    margin: 1.4rem 0 0.75rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.hero-roles a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.45);
}

.hero-roles a:hover { text-decoration-color: #fff; }

.hero-lead {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-primary {
    background: #fff;
    color: var(--purple-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover { background: var(--purple-light); }

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.portrait {
    position: relative;
    max-width: 390px;
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(24, 4, 41, 0.35);
}

.portrait::before {
    content: "";
    position: absolute;
    inset: 22px -18px -18px 22px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
}

.portrait img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    object-fit: cover;
}

.portrait figcaption {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 5.5rem 0; }

.section-tint { background: var(--tint); }

.section-head {
    margin-bottom: 2.75rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 1rem;
    border-radius: 2px;
    background: var(--purple);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5rem);
}

.prose {
    max-width: 44rem;
    font-size: 1.05rem;
    color: #3E3547;
}

.prose p:last-child { margin-bottom: 0; }

.facts {
    padding: 1.75rem 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.facts h3 {
    margin-bottom: 0.5rem;
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.facts dl { margin: 0; }

.fact {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.fact dt {
    color: var(--purple);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fact dd {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* News */
.news-list { max-width: 900px; }

.news-item {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.news-item:last-child { border-bottom: 1px solid var(--line); }

.news-date {
    margin: 0;
    color: var(--purple);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.news-item p:last-child {
    margin: 0;
    font-size: 1.05rem;
}

cite { font-style: italic; }

/* Ventures */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 215px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover {
    transform: translateY(-5px);
    border-color: #C9A9E3;
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.card-logo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: 64px;
    margin-bottom: 1.25rem;
}

.card-logo img {
    width: auto;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
}

.card-title {
    margin-top: auto;
    padding-right: 1.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.card-desc {
    color: var(--muted);
    font-size: 0.88rem;
}

.card-arrow {
    position: absolute;
    right: 1.4rem;
    bottom: 1.3rem;
    color: var(--purple);
    font-size: 1.4rem;
    line-height: 1;
}

.card-tcu {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.card-tcu .card-logo img { max-height: 30px; }

.card-tcu .card-desc { color: var(--purple-light); }

.card-tcu .card-desc a { color: #fff; }

/* Contact */
.contact {
    background:
        radial-gradient(circle at 80% 20%, rgba(186, 123, 236, 0.25), transparent 45%),
        linear-gradient(135deg, var(--purple-dark), #44176C);
    color: #fff;
    text-align: center;
}

.contact .eyebrow { color: var(--purple-light); }

.contact h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
}

.contact-lead {
    max-width: 34rem;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.78);
}

.email-link {
    display: inline-block;
    margin: 1.1rem 0 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: clamp(1.45rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.email-link:hover {
    border-bottom-color: #fff;
    color: var(--purple-light);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.social {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 1.6rem 0;
    background: #1B0B2C;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.84rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-inner p { margin: 0; }

.footer-inner a { color: var(--purple-light); }

.back-to-top { text-decoration: none; }

.back-to-top:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .hero { padding: 3.5rem 0 4rem; }

    .hero-grid,
    .about-grid { grid-template-columns: 1fr; }

    .hero h1 { max-width: none; }

    .portrait { max-width: 320px; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .section { padding: 4rem 0; }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 8rem; }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding-block: 0.7rem;
    }

    .site-nav {
        justify-content: space-between;
        gap: 0.5rem;
    }

    .site-nav a { font-size: 0.85rem; }

    .hero { padding: 2.75rem 0 3.25rem; }

    .hero-roles { font-size: 0.95rem; }

    .section { padding: 3.25rem 0; }

    .section-head { margin-bottom: 2rem; }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .card-grid { grid-template-columns: 1fr; }

    .card { min-height: 0; }

    .facts { padding: 1.5rem; }

    .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
