:root {
    --bg: #090a0c;
    --bg-soft: #0d0f13;
    --surface: #12151b;
    --surface-hover: #171b22;
    --text: #f1f1ed;
    --muted: #a7a9ae;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.17);
    --accent: #416db5;
    --accent-hover: #527dc4;
    --max-width: 1180px;
    --radius: 24px;
    --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at 86% 0%, rgba(65, 109, 181, 0.08), transparent 28rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
.site-shell { min-height: 100vh; }
.wrap { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }

.site-header {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; width: 92px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    position: relative;
    color: var(--muted);
    font-size: .94rem;
    text-decoration: none;
    transition: color 160ms ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 2px;
    background: var(--accent);
}

.hero {
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 96px;
}
.eyebrow, .section-label, .item-type {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero h1, .page-hero h1 {
    margin: 28px 0 0;
    max-width: 1080px;
    font-size: clamp(4rem, 8.7vw, 7.7rem);
    line-height: .91;
    letter-spacing: -.068em;
}
.hero h1 span { color: var(--text); }
.hero-bottom {
    margin-top: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}
.hero-bottom > p {
    max-width: 610px;
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 180ms ease, transform 180ms ease;
}
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.text-link {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}
.text-link span { color: var(--accent-hover); margin-left: 5px; }

.statement-band, .section-tonal { background: var(--bg-soft); border-block: 1px solid var(--line); }
.statement-band { padding-block: 62px; }
.statement-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.statement-copy {
    max-width: 850px;
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
    line-height: 1.13;
    letter-spacing: -.035em;
}
.section { padding-block: 104px; border-bottom: 1px solid var(--line); }
.section-intro { max-width: 900px; margin-bottom: 58px; }
.section-intro h2, .philosophy-home h2, .decision-section h2, .capability-copy h2, .about-company h2 {
    margin: 18px 0 0;
    font-size: clamp(2.7rem, 5.2vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.05em;
}
.split-intro { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.split-intro > div { max-width: 850px; }

.service-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-preview {
    position: relative;
    min-height: 260px;
    padding: 34px 64px 34px 0;
    border-top: 1px solid var(--line);
    text-decoration: none;
    transition: background-color 180ms ease, padding-left 180ms ease;
}
.service-preview:nth-child(odd) { padding-right: 80px; }
.service-preview:nth-child(even) { padding-left: 40px; border-left: 1px solid var(--line); }
.service-preview:hover { background: rgba(255,255,255,.018); }
.item-number { color: var(--accent-hover); font-size: .8rem; font-weight: 750; letter-spacing: .08em; }
.service-preview h3 { margin: 48px 0 12px; font-size: 1.45rem; }
.service-preview p, .experience-preview > p:last-child { margin: 0; max-width: 460px; color: var(--muted); }
.card-arrow { position: absolute; right: 24px; top: 32px; color: var(--accent-hover); font-size: 1.15rem; }

.experience-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.experience-preview { padding: 34px 38px 0 0; }
.experience-preview + .experience-preview { padding-left: 38px; border-left: 1px solid var(--line); }
.experience-preview h3 { margin: 24px 0 16px; font-size: 1.5rem; line-height: 1.2; }
.philosophy-home, .decision-section, .capability-grid, .about-company {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
}
.philosophy-home > div { max-width: 820px; }
.philosophy-home p:not(.section-label), .decision-section p, .capability-copy p, .about-company p {
    max-width: 690px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}
.philosophy-home .text-link { display: inline-block; margin-top: 30px; }
.contact-section { border-bottom: 0; }
.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 72px;
    align-items: center;
    padding: 50px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}
.contact-panel h2 { margin: 14px 0 0; font-size: clamp(2.5rem, 4.4vw, 4.1rem); line-height: 1; letter-spacing: -.048em; }
.contact-panel p:not(.section-label) { max-width: 720px; margin: 20px 0 0; color: var(--muted); }

.page-hero { padding-block: 110px 96px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 1050px; font-size: clamp(3.8rem, 7.7vw, 7rem); }
.page-lead { max-width: 780px; margin: 40px 0 0; color: var(--muted); font-size: 1.18rem; }
.about-hero h1 { max-width: 1100px; }

.service-list { padding-top: 0; }
.service-detail {
    scroll-margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: 90px;
    padding-block: 82px;
    border-bottom: 1px solid var(--line);
}
.service-detail:last-child { border-bottom: 0; }
.service-heading h2 { margin: 20px 0 0; font-size: clamp(2.5rem, 4.2vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.service-body { max-width: 680px; }
.service-summary { margin: 0; color: var(--text); font-size: 1.35rem; line-height: 1.35; }
.service-body > p:not(.service-summary) { margin: 24px 0 0; color: var(--muted); }
.service-body ul, .message-guide ul { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.service-body li, .message-guide li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.service-body li::before, .message-guide li::before { content: "—"; color: var(--accent-hover); margin-right: 12px; }

.case-list { padding-top: 0; }
.case-study {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 64px;
    padding-block: 76px;
    border-bottom: 1px solid var(--line);
}
.case-study:last-child { border-bottom: 0; }
.case-index { color: var(--accent-hover); font-size: 1rem; font-weight: 750; letter-spacing: .08em; }
.case-copy { max-width: 870px; }
.case-copy h2 { margin: 20px 0 0; font-size: clamp(2.6rem, 4.9vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.case-copy > p:not(.item-type) { max-width: 730px; margin: 26px 0 0; color: var(--muted); font-size: 1.08rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tag-row span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .82rem; }

.manifesto { padding-block: 90px; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 64px; }
.manifesto blockquote { max-width: 920px; margin: 0; font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.052em; }
.principles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 70px; }
.principles-grid article { min-height: 300px; padding: 38px 0; border-top: 1px solid var(--line); }
.principles-grid h2 { max-width: 470px; margin: 45px 0 14px; font-size: 1.75rem; line-height: 1.15; }
.principles-grid p { max-width: 520px; margin: 0; color: var(--muted); }
.about-company > div { max-width: 820px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 90px; align-items: start; }
.contact-primary { padding-top: 6px; }
.email-link { display: inline-block; margin-top: 28px; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.contact-primary > p:last-child { max-width: 620px; margin-top: 34px; color: var(--muted); font-size: 1.08rem; }
.message-guide { padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.message-guide h2 { margin: 16px 0 0; font-size: 2rem; line-height: 1.1; letter-spacing: -.035em; }
.message-guide .button { margin-top: 30px; }
.contact-note { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.contact-note > p:last-child { max-width: 800px; margin: 0; font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.15; letter-spacing: -.035em; }

.site-footer {
    min-height: 120px;
    display: grid;
    grid-template-columns: repeat(5, auto);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .88rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
    .hero { min-height: auto; padding-block: 84px; }
    .hero-bottom, .split-intro { align-items: flex-start; flex-direction: column; }
    .statement-grid, .philosophy-home, .decision-section, .capability-grid, .about-company, .manifesto, .contact-note { grid-template-columns: 1fr; gap: 26px; }
    .experience-preview-grid { grid-template-columns: 1fr; }
    .experience-preview { padding: 32px 0; border-top: 1px solid var(--line); }
    .experience-preview + .experience-preview { padding-left: 0; border-left: 0; }
    .service-detail { grid-template-columns: 1fr; gap: 34px; }
    .contact-layout { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 34px; }
}

@media (max-width: 620px) {
    .wrap { width: min(calc(100% - 32px), var(--max-width)); }
    .site-header { min-height: 78px; }
    .brand { width: 78px; }
    .site-nav { gap: 15px; overflow-x: auto; padding-bottom: 3px; }
    .site-nav a { font-size: .78rem; }
    .site-nav a.is-active::after { bottom: -8px; }
    .hero { padding-block: 70px; }
    .hero h1, .page-hero h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
    .hero-bottom { margin-top: 38px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .statement-band { padding-block: 48px; }
    .section, .page-hero { padding-block: 72px; }
    .service-preview-grid, .principles-grid { grid-template-columns: 1fr; }
    .service-preview, .service-preview:nth-child(odd), .service-preview:nth-child(even) { min-height: auto; padding: 30px 42px 30px 0; border-left: 0; }
    .service-preview h3 { margin-top: 34px; }
    .case-study { grid-template-columns: 1fr; gap: 24px; }
    .contact-panel { grid-template-columns: 1fr; gap: 34px; padding: 32px 26px; }
    .message-guide { padding: 30px 24px; }
    .email-link { font-size: clamp(2rem, 10vw, 3.2rem); overflow-wrap: anywhere; }
    .site-footer { grid-template-columns: 1fr; min-height: auto; }
}
