:root {
    --ink: #08252b;
    --ink-soft: #284047;
    --paper: #f4f3ed;
    --paper-deep: #e8e8df;
    --cyan: #18aac8;
    --cyan-bright: #5de2f2;
    --line: rgba(8, 37, 43, 0.2);
    --white: #fff;
    --shell: 1180px;
    --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--white);
    color: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: var(--ink);
    color: var(--white);
}

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

.brand {
    display: inline-flex;
    width: 226px;
    background: transparent;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .84rem;
    font-weight: 650;
    letter-spacing: .02em;
}

.header-nav > a:not(.button) {
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.header-nav > a:not(.button):hover,
.header-nav > a:not(.button):focus-visible { border-bottom-color: var(--cyan-bright); }

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 24px;
    border: 1px solid var(--cyan-bright);
    background: var(--cyan-bright);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .01em;
    transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.button:hover { transform: translate(-3px, -3px); }

.button:focus-visible,
a:focus-visible { outline: 3px solid #ffca3a; outline-offset: 4px; }

.button-small {
    min-height: 42px;
    padding-inline: 20px;
    background: transparent;
    color: var(--white);
}

.button-small:hover { background: var(--cyan-bright); color: var(--ink); }

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 72px 72px,
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 72px 72px,
        var(--ink);
    color: var(--white);
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -240px;
    border: 1px solid rgba(93, 226, 242, .3);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(93, 226, 242, .035), 0 0 0 144px rgba(93, 226, 242, .025);
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
    align-items: stretch;
}

.hero-copy {
    align-self: center;
    padding: 90px 9vw 90px 0;
    animation: rise .7s var(--ease) both;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--cyan);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow span { margin-right: 14px; color: var(--cyan-bright); }

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
    line-height: 1.04;
    letter-spacing: -.045em;
}

.hero h1 {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(3.2rem, 6.2vw, 6.4rem);
    font-weight: 850;
}

.hero-lead {
    max-width: 690px;
    margin-bottom: 38px;
    color: #c9d5d6;
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.hero-actions { display: flex; align-items: center; gap: 28px; }

.text-link {
    color: var(--white);
    font-weight: 750;
    text-underline-offset: 6px;
}

.hero-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 44px;
    border-inline: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .035);
    animation: rise .7s .12s var(--ease) both;
}

.panel-label {
    margin-bottom: 28px;
    color: #99abad;
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.cycle-list { margin: 0; padding: 0; list-style: none; }

.cycle-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.cycle-list span {
    grid-row: 1 / 3;
    color: var(--cyan-bright);
    font: 700 .68rem/1.8 Inter, sans-serif;
}

.cycle-list strong { font-size: .98rem; letter-spacing: .02em; }
.cycle-list small { color: #99abad; }

.panel-motto {
    margin: 40px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.04em;
    text-transform: uppercase;
}

.panel-motto em { color: var(--cyan-bright); font-style: normal; }

.story-section, .kaysa-section, .capability-section, .principle-section, .contact-section { padding: 112px 0; }

.story-grid {
    display: grid;
    grid-template-columns: .4fr 1.6fr;
    gap: 64px;
}

.section-index {
    color: #6d7d7e;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.story-copy { max-width: 850px; }

.story-copy h2,
.section-heading h2,
.contact-card h2 {
    margin-bottom: 30px;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 820;
}

.story-copy p:not(.eyebrow) { max-width: 720px; color: var(--ink-soft); font-size: 1.08rem; }
.story-copy .story-intro { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.6rem); }

.kaysa-section {
    scroll-margin-top: 24px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 72px 72px,
        var(--ink);
    color: var(--white);
}

.kaysa-grid {
    display: grid;
    grid-template-columns: .4fr 1.6fr;
    gap: 64px;
}

.kaysa-section .section-index { color: #8da1a3; }
.kaysa-copy { max-width: 900px; }

.kaysa-copy h2 {
    max-width: 880px;
    margin-bottom: 30px;
    color: var(--cyan-bright);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 820;
}

.kaysa-copy > p:last-child {
    max-width: 790px;
    margin-bottom: 0;
    color: #c9d5d6;
    font-size: 1.08rem;
}

.kaysa-copy strong { color: var(--white); }

.capability-section { background: var(--paper-deep); }

.section-heading {
    display: grid;
    grid-template-columns: .4fr 1.6fr;
    gap: 64px;
    margin-bottom: 60px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.capability-grid article {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color .25s ease, transform .25s var(--ease);
}

.capability-grid article:hover { background: var(--white); transform: translateY(-6px); }
.card-number { color: #6d7d7e; font-size: .7rem; font-weight: 800; }
.capability-grid h3 { margin: auto 0 18px; font-size: 1.7rem; }
.capability-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: .92rem; }

.principle-section { background: var(--cyan); color: var(--ink); }

.principle-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    gap: 90px;
}

.principle-section .eyebrow { color: var(--ink); }
.principle-section h2 { margin: 0; font-size: clamp(3.1rem, 7vw, 7rem); font-weight: 900; }
.principle-section h2 span { color: var(--white); }
.principle-grid > p { margin-bottom: 12px; font-size: 1.12rem; font-weight: 600; }

.contact-section { padding-block: 96px; }

.contact-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line);
}

.contact-card h2 { max-width: 780px; margin-bottom: 0; }
.contact-action { text-align: right; }
.contact-action a { color: var(--ink); font-size: 1.1rem; font-weight: 850; text-underline-offset: 7px; }
.contact-action p { margin: 12px 0 0; color: #6d7d7e; font-size: .85rem; }

.site-footer { padding: 32px 0; background: var(--ink); color: #aebcbd; }

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 48px;
    font-size: .78rem;
}

.footer-inner div { display: flex; flex-direction: column; }
.footer-inner strong { color: var(--white); font-size: 1rem; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a { color: var(--white); text-underline-offset: 5px; }
.footer-inner p { margin: 0; }

.site-header-compact .header-inner { min-height: 78px; }
.legal-main { min-height: calc(100vh - 168px); }

.legal-article {
    max-width: 860px;
    padding-top: 96px;
    padding-bottom: 112px;
}

.legal-article h1 { margin-bottom: 12px; font-size: clamp(3rem, 7vw, 6rem); }
.legal-updated { color: #6d7d7e; font-size: .82rem; }
.legal-lead { margin: 48px 0; font-size: 1.35rem; font-weight: 600; }
.legal-article section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-article h2 { margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -.02em; }
.legal-article section p { margin-bottom: 0; color: var(--ink-soft); }
.legal-article section a { font-weight: 800; text-underline-offset: 5px; }

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .header-nav > a:not(.button) { display: none; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { padding: 76px 0 64px; }
    .hero-panel { padding: 44px 32px; border-bottom: 0; }
    .story-grid, .kaysa-grid, .section-heading { grid-template-columns: 1fr; gap: 24px; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .principle-grid, .contact-card { grid-template-columns: 1fr; gap: 42px; }
    .contact-action { text-align: left; }
}

@media (max-width: 580px) {
    .shell { width: min(calc(100% - 36px), var(--shell)); }
    .header-inner { min-height: 78px; gap: 16px; }
    .brand { width: 172px; }
    .button-small { min-height: 40px; padding-inline: 14px; }
    .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .text-link { text-align: center; }
    .hero-panel { margin-inline: -18px; }
    .story-section, .kaysa-section, .capability-section, .principle-section, .contact-section { padding: 78px 0; }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-grid article { min-height: 220px; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
