/* ============================================
   1. LOCAL TYPE / DESIGN TOKENS
============================================ */
@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --ground: #111518;
    --surface: #1c2328;
    --surface-light: #242f36;
    --ink: #f2f5f7;
    --muted: #b4c0c8;
    --blue: #2555e8;
    --blue-bright: #3568ff;
    --mint: #55e0ca;
    --mint-ink: #122e2a;
    --gutter: clamp(22px, 5vw, 88px);
    --section-space: clamp(80px, 8.5vw, 140px);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   HERO BACKGROUND IMAGE / SINGLE OPTIONAL CONTROL
   The geometry is complete without a photograph.
   Optional path: ../img/hero-background.webp
============================================ */
:root {
    --hero-image: none;
}

/* ============================================
   2. RESET / BASE / ACCESSIBILITY
============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
    scrollbar-color: var(--surface-light) var(--ground);
}

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--mint);
    color: var(--mint-ink);
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    text-wrap: balance;
}

h1 {
    font-size: clamp(48px, 7vw, 100px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

h3 {
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h4 {
    font-size: 19px;
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

button {
    font: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 6px;
}

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

button,
a {
    touch-action: manipulation;
}

.frame {
    width: 100%;
    max-width: 1760px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-space {
    padding-block: var(--section-space);
}

.skip-link {
    position: absolute;
    z-index: 10;
    top: 10px;
    left: var(--gutter);
    padding: 12px 18px;
    background: var(--mint);
    color: var(--mint-ink);
    transform: translateY(-180%);
}

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

.arrow {
    flex: 0 0 24px;
    vertical-align: middle;
}

/* ============================================
   3. HEADER / PERMANENT NAVIGATION
============================================ */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    padding-block: 27px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
}

.site-logo img {
    width: 240px;
    height: auto;
}

.site-header nav {
    display: flex;
    gap: 30px;
}

.site-header nav a,
.header-contact {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    font-size: 15px;
}

.site-header nav a {
    color: var(--muted);
}

.header-contact {
    justify-self: end;
    gap: 16px;
    color: var(--mint);
}

.site-header a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* ============================================
   4. HERO / ONE WIDE PRECISION CUT
============================================ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    opacity: 0.16;
}

.hero-opening {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 60px;
    padding-top: clamp(42px, 4vw, 72px);
    padding-bottom: 56px;
}

.hero-intro {
    max-width: 360px;
    justify-self: end;
    padding-bottom: 3px;
}

.hero-intro p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 54px;
    padding: 13px 21px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: transform 160ms var(--ease-out), background-color 160ms ease;
}

.action-blue {
    background: var(--blue);
    color: var(--ink);
}

.action-blue:hover {
    background: #1943c3;
}

.action:active {
    transform: scale(0.98);
}

.hero-cut {
    width: 100%;
    max-width: 1760px;
    margin-inline: auto;
    animation: cut-settle 650ms var(--ease-out) both;
}

.hero-cut img {
    width: 100%;
    height: auto;
}

.hero-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 18px;
    font-size: 14px;
    color: var(--muted);
}

.hero-closing a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    text-decoration: none;
}

.hero-closing a:hover {
    color: var(--mint);
}

@keyframes cut-settle {
    from {
        opacity: 0.85;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   5. EXPERTISE / FOCUS EXPLORER
============================================ */
.section-opening {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 56px;
}

.section-opening > p {
    max-width: 360px;
    justify-self: end;
    color: var(--muted);
}

.focus-explorer.is-enhanced {
    display: grid;
    grid-template-columns: 0.8fr 1.6fr;
    align-items: start;
    gap: 36px;
}

.focus-controls {
    padding-top: 20px;
}

.focus-controls button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 72px;
    padding: 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    line-height: 1.35;
}

.focus-controls button[aria-pressed="true"] {
    background: var(--surface-light);
    color: var(--mint);
}

.focus-controls button:hover {
    color: var(--ink);
}

.focus-controls > p {
    max-width: 220px;
    margin: 26px 18px 0;
    color: var(--muted);
    font-size: 14px;
}

.focus-panel {
    min-height: 460px;
    padding: clamp(28px, 3.3vw, 56px);
    background: var(--blue);
    color: var(--ink);
}

.focus-panel + .focus-panel {
    margin-top: 24px;
}

.is-enhanced .focus-panel {
    margin-top: 0;
}

.focus-panel > h3 {
    margin-bottom: 28px;
    font-size: clamp(32px, 3.1vw, 46px);
    line-height: 1.13;
    letter-spacing: -0.03em;
}

.focus-panel > p {
    max-width: 58ch;
}

.focus-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 52px;
}

.focus-notes h4 {
    margin-bottom: 12px;
}

.focus-notes p {
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   6. APPROACH / UNEQUAL READING RHYTHM
============================================ */
.approach {
    background: var(--surface);
}

.approach-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.3fr;
    align-items: start;
    gap: 80px;
}

.approach h2 {
    color: var(--mint);
}

.statement {
    max-width: 29ch;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.approach-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 58px;
}

.approach-notes > div:last-child {
    grid-column: 1 / -1;
    max-width: 46ch;
}

.approach-notes h3 {
    margin-bottom: 16px;
    font-size: 21px;
}

.approach-notes p {
    color: var(--muted);
    font-size: 16px;
}

/* ============================================
   7. ABOUT / CUT SIGNATURE
============================================ */
.about {
    display: grid;
    grid-template-columns: 0.95fr 1.3fr;
    align-items: center;
    gap: 80px;
}

.about-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    height: 260px;
}

.about-symbol span {
    width: 110px;
    height: 210px;
    background: var(--blue-bright);
    transform: skewY(-20deg);
}

.about-symbol span:last-child {
    height: 130px;
    background: var(--mint);
}

.about h2 {
    margin-bottom: 32px;
}

.about p {
    max-width: 59ch;
    color: var(--muted);
}

.about p + p {
    margin-top: 18px;
}

/* ============================================
   8. CONTACT / QUIET EMAIL SURFACE
============================================ */
.contact {
    padding-block: clamp(64px, 7vw, 112px);
    background: var(--mint);
    color: var(--mint-ink);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.3fr;
    align-items: start;
    gap: 80px;
}

.contact h2 {
    font-size: clamp(36px, 4vw, 56px);
}

.contact-content {
    max-width: 550px;
}

.email-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    min-height: 56px;
    margin-top: 25px;
    overflow-wrap: anywhere;
    font-size: clamp(22px, 2.25vw, 32px);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.contact-note {
    margin-top: 24px;
    font-size: 15px;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 8px;
    font-size: 14px;
}

.contact a:focus-visible {
    outline-color: var(--mint-ink);
}

/* ============================================
   9. FOOTER / LEGAL DOCUMENTS / 404
============================================ */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-block: 32px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}

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

.document {
    max-width: 1120px;
    padding-top: 45px;
    padding-bottom: 100px;
}

.document h1 {
    max-width: 16ch;
    margin-top: 46px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
}

.document-intro {
    max-width: 52ch;
    margin-top: 28px;
    color: var(--muted);
    font-size: 22px;
}

.document-date {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: var(--mint);
    text-decoration: none;
    font-size: 15px;
}

.back-link .arrow {
    transform: rotate(180deg);
}

.document-index {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin-top: 40px;
    padding: 22px 28px;
    background: var(--surface);
    font-size: 15px;
}

.document-index a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.document section {
    max-width: 72ch;
    margin-top: 64px;
}

.document section h2 {
    margin-bottom: 24px;
    font-size: clamp(27px, 3vw, 36px);
}

.document section p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.document section p + p {
    margin-top: 18px;
}

.document section a {
    color: var(--mint);
}

.not-found {
    min-height: 70vh;
    padding-block: 64px 96px;
}

.error-code {
    margin-bottom: 20px;
    color: var(--mint);
    font-size: 25px;
}

.not-found > p:not(.error-code) {
    max-width: 36ch;
    margin-top: 28px;
    color: var(--muted);
}

.not-found .action {
    margin-top: 32px;
}

/* ============================================
   10. RESPONSIVE / MOBILE COMPOSITION
============================================ */
@media (max-width: 1050px) {
    .site-header {
        gap: 20px;
    }

    .site-header nav {
        gap: 20px;
    }

    .site-logo img {
        width: 215px;
    }

    .hero-opening,
    .section-opening {
        gap: 30px;
    }

    .hero-opening {
        grid-template-columns: 1.3fr 1fr;
    }

    .hero h1 {
        font-size: clamp(48px, 7vw, 76px);
    }

    .focus-explorer.is-enhanced {
        grid-template-columns: 0.85fr 1.4fr;
        gap: 24px;
    }

    .focus-controls button {
        font-size: 16px;
    }

    .focus-notes {
        gap: 24px;
    }

    .approach-layout,
    .about,
    .contact-layout {
        gap: 48px;
    }
}

@media (max-width: 850px) {
    .site-header {
        grid-template-columns: 1fr auto;
        row-gap: 10px;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .site-header nav {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 30px;
    }

    .header-contact {
        grid-column: 2;
        grid-row: 1;
    }

    .hero-opening {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-intro {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 40px;
        width: 100%;
        max-width: none;
        justify-self: start;
    }

    .hero-intro p {
        max-width: 38ch;
        margin: 0;
    }

    .hero-intro .action {
        flex-shrink: 0;
    }

    .section-opening {
        align-items: start;
    }

    .focus-explorer.is-enhanced {
        display: block;
    }

    .focus-controls {
        display: flex;
        gap: 8px;
        padding-top: 0;
        margin-bottom: 20px;
    }

    .focus-controls button {
        justify-content: center;
        min-height: 66px;
        padding: 12px;
        text-align: center;
        font-size: 15px;
    }

    .focus-controls .arrow,
    .focus-controls > p {
        display: none;
    }

    .focus-panel {
        min-height: 430px;
    }

    .approach-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .approach-content,
    .contact-content {
        max-width: none;
    }

    .statement {
        max-width: 36ch;
    }

    .approach-notes {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px;
    }

    .approach-notes > div:last-child {
        grid-column: auto;
    }

    .about {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 32px;
    }

    .about-symbol {
        gap: 10px;
    }

    .about-symbol span {
        width: 65px;
        height: 155px;
    }

    .about-symbol span:last-child {
        height: 95px;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 10px 28px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .site-logo img {
        width: 185px;
    }

    .site-header {
        column-gap: 12px;
    }

    .header-contact {
        gap: 6px;
        font-size: 13px;
    }

    .header-contact .arrow {
        width: 18px;
        flex-basis: 18px;
    }

    .site-header nav {
        gap: 27px;
    }

    .site-header nav a {
        font-size: 14px;
    }

    .hero-opening {
        padding-top: 35px;
        padding-bottom: 38px;
    }

    .hero h1 {
        font-size: clamp(46px, 9.4vw, 56px);
        line-height: 1.04;
    }

    .hero-intro {
        display: block;
    }

    .hero-intro p {
        font-size: 16px;
    }

    .hero-intro .action {
        margin-top: 24px;
    }

    .hero-cut img {
        width: 130%;
        max-width: none;
        margin-left: -15%;
    }

    .hero-closing {
        align-items: start;
        flex-direction: column;
        gap: 5px;
        padding-top: 22px;
        padding-bottom: 0;
        font-size: 12px;
    }

    .hero-closing a {
        min-height: 44px;
    }

    .section-opening {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    .section-opening > p {
        justify-self: start;
    }

    .focus-controls {
        gap: 4px;
    }

    .focus-controls button {
        padding: 11px 8px;
        font-size: 13px;
    }

    .focus-panel {
        min-height: 0;
        padding: 28px 23px;
    }

    .focus-panel > h3 {
        font-size: 30px;
    }

    .focus-panel > h3 br {
        display: none;
    }

    .focus-panel > p {
        font-size: 16px;
    }

    .focus-notes {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-top: 32px;
    }

    .focus-notes h4 {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .approach-notes {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 36px;
    }

    .approach-notes h3 {
        margin-bottom: 12px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .about-symbol {
        justify-content: start;
        height: 95px;
        gap: 9px;
    }

    .about-symbol span {
        width: 58px;
        height: 82px;
    }

    .about-symbol span:last-child {
        height: 49px;
    }

    .about h2 {
        margin-bottom: 24px;
    }

    .contact-layout {
        gap: 28px;
    }

    .email-link {
        font-size: 22px;
        letter-spacing: -0.035em;
    }

    .email-link .arrow {
        width: 20px;
        flex-basis: 20px;
    }

    .site-footer {
        align-items: start;
        flex-direction: column;
        padding-block: 28px;
        gap: 5px;
    }

    .site-footer nav {
        gap: 20px;
    }

    .document {
        padding-top: 28px;
        padding-bottom: 72px;
    }

    .document h1 {
        margin-top: 30px;
        font-size: 42px;
    }

    .document-intro {
        font-size: 19px;
    }

    .document-index {
        display: grid;
        gap: 2px;
        padding: 18px 22px;
    }

    .document section {
        margin-top: 45px;
    }

    .not-found h1 {
        font-size: 46px;
    }
}

/* ============================================
   11. POINTER FEEDBACK / REDUCED MOTION
============================================ */
@media (hover: hover) and (pointer: fine) {
    .action:hover {
        transform: translateY(-2px);
    }
}

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

    .hero-cut {
        animation: none;
    }

    .action {
        transition: background-color 120ms ease;
    }

    .action:hover,
    .action:active {
        transform: none;
    }
}
