/* Personal gateway + editorial Hub. Keep copy in the routed Ghost source pages. */
:root {
    --universe-rule: 5px;
    --universe-gutter: clamp(24px, 2.8vw, 64px);
    --universe-mint: #86e7bf;
    --universe-magenta: #ff2eae;
}

.universe-skip {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    background: #86e7bf;
    color: #0b0b0b;
    font-family: var(--font-ui);
}
.universe-skip:focus { top: 12px; }
.universe-header {
    position: relative;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 88px;
    padding: 20px var(--universe-gutter);
    background: #0b0b0b;
    color: #fbfaf7;
    font: 600 16px/1.25 var(--font-ui);
}
/* Compact changes navigation only; its scale is shared with the content Hub. */


.universe-header__brand { flex-shrink: 0; font: 400 clamp(20px, 2vw, 32px)/1.2 var(--font-display); }
.universe-header__person { border-left: 1px solid #fbfaf7; padding-left: 22px; font-weight: 500; }
.universe-header__invader { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; }
.universe-header__invader img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.universe-header .universe-invader--dark { display: none; }
.universe-header__nav-group { margin-left: auto; }
.universe-nav { display: flex; align-items: center; gap: 20px; }
.universe-header .site-nav__link { font: inherit; color: inherit; padding: 0; text-transform: none; letter-spacing: 0; }
.universe-language { display: flex; gap: 8px; flex-shrink: 0; }
.universe-header--compact .universe-language { margin-left: auto; }
.universe-language button {
    min-width: 48px;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    color: #fbfaf7;
    background: #393329;
    cursor: pointer;
    font: 700 15px/1 var(--font-ui);
    letter-spacing: .06em;
}
.universe-language button[aria-pressed="true"] { color: #0b0b0b; background: var(--universe-mint); }
.universe-header__contact { border-left: 1px solid #fbfaf7; padding-left: 22px; }
.universe-menu { display: none; }
.universe-text-link {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--universe-mint);
    text-decoration-thickness: 4px;
    text-underline-offset: .22em;
    text-decoration-skip-ink: auto;
}
.universe-text-link:hover { text-decoration-color: currentColor; }
.universe-header .universe-text-link { text-decoration-thickness: 3px; }
.universe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 18px 26px;
    background: #0b0b0b;
    color: #fbfaf7;
    border: 2px solid #0b0b0b;
    border-radius: 0;
    font: 700 clamp(18px, 2vw, 30px)/1.25 var(--font-ui);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.universe-button:hover { background: #fbfaf7; color: #0b0b0b; }
/* Match the Hub’s readable text scale; only the name is a viewport-sized graphic. */
.gateway-page .universe-button { min-height: 56px; padding: 16px 24px; font-size: 1rem; }
.gateway-page { background: #fbfaf7; color: #27251e; }
.gateway-main { width: 100%; margin-inline: auto; }
.gateway-main h1, .gateway-main h2, .gateway-main h3, .gateway-main p { margin: 0; }
.gateway-masthead { padding: 112px var(--universe-gutter) 0; }
.gateway-masthead h1 {
    font: 400 13.55vw/1.12 var(--font-display);
    letter-spacing: -.045em;
    white-space: nowrap;
    text-align: center;
    margin-bottom: 72px;
}
.gateway-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border-top: var(--universe-rule) solid #0b0b0b;
    padding-block: 72px 80px;
}
.gateway-intro > p { font: 400 clamp(26px, 3vw, 44px)/1.25 var(--font-text); letter-spacing: -.025em; }
.gateway-intro__action { border-left: 3px solid #0b0b0b; padding: 12px 0 12px 36px; }
.gateway-intro__action .universe-button { display: flex; }
.gateway-intro__action p { font-size: 1.125rem; line-height: 1.5; margin-top: 18px; }
.gateway-offers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-block: var(--universe-rule) solid #0b0b0b;
    background: #0b0b0b;
    gap: var(--universe-rule);
}
.gateway-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    grid-template-rows: minmax(2.75rem, auto) minmax(7rem, 1fr) auto auto;
    gap: 2rem;
    padding: 64px 32px;
    color: #15140f;
}
.gateway-offer--apps { background: #ffe875; }
.gateway-offer--design { background: #ff8a7b; }
.gateway-offer--ai h2 { max-width: 4.8em; }
.gateway-offer--ai { background: #86e7bf; }
.gateway-offer__label { font: 700 1rem/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: .035em; }
.gateway-offer__label::after { content: ""; display: block; margin-top: 16px; width: 64px; height: 5px; background: currentColor; }
.gateway-offer h2 { font: 400 2.25rem/1.15 var(--font-display); letter-spacing: -.03em; overflow-wrap: normal; }
.gateway-offer__description { font: 400 1.375rem/1.5 var(--font-text); letter-spacing: -.015em; max-width: 34ch; }
.gateway-offer .universe-button { width: 100%; align-self: end; padding-inline: 12px; }
.gateway-row {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.7fr);
    align-items: center;
    gap: 64px;
    padding: 80px var(--universe-gutter);
    border-bottom: var(--universe-rule) solid #0b0b0b;
}
.gateway-row > h2 { font: 400 clamp(36px, 4vw, 64px)/1.2 var(--font-display); letter-spacing: -.025em; }
.gateway-row__content { border-left: 3px solid currentColor; padding: 16px 0 16px 36px; min-width: 0; }
.gateway-row h3 { font: 700 1.75rem/1.25 var(--font-ui); letter-spacing: -.025em; }
.gateway-row p { font: 400 1.375rem/1.5 var(--font-text); margin-top: 18px; letter-spacing: -.015em; }
.gateway-row h3 a { text-decoration-thickness: 5px; }
.gateway-about { margin-top: 40px; }
.gateway-row--worlds { background: #151412; color: #fbfaf7; }
.gateway-worlds { padding: 0; margin: 36px 0 0; list-style: none; display: grid; gap: 24px; }
.gateway-worlds a { font: 700 1.75rem/1.35 var(--font-ui); text-decoration-color: var(--universe-magenta); text-decoration-thickness: 4px; }
.gateway-row--connect { border-bottom: 0; }
.gateway-email { font: 700 1.5rem/1.4 var(--font-ui); overflow-wrap: anywhere; }
.gateway-connect-links { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-top: 28px; font: 600 1.125rem/1.5 var(--font-ui); }
.gateway-main :focus-visible, .universe-header :focus-visible, .universe-footer :focus-visible { outline: 3px solid #c90086; outline-offset: 7px; }
.gateway-row--worlds :focus-visible { outline-color: #ff80cd; }
.universe-eyebrow { font: 700 16px/1.4 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }
.universe-footer { display: flex; flex-wrap: wrap; gap: 48px; align-items: start; padding: 80px var(--universe-gutter); border-top: var(--universe-rule) solid var(--text); }
.universe-footer__brand { font: 400 32px/1.2 var(--font-display); }
.universe-footer p { font: 500 16px/1.5 var(--font-ui); }
.universe-footer nav { display: flex; flex-wrap: wrap; gap: 22px 32px; flex: 1 1 400px; font: 600 18px/1.5 var(--font-ui); }
.universe-theme-toggle, .universe-menu { border: 2px solid currentColor; background: transparent; color: inherit; padding: 10px 14px; min-height: 44px; font: 600 16px/1.3 var(--font-ui); cursor: pointer; border-radius: 0; }
.hub-intro { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: end; padding: 112px var(--universe-gutter); border-bottom: var(--universe-rule) solid var(--text); }
.hub-intro h1 { font: 400 clamp(72px, 10vw, 150px)/1.1 var(--font-display); letter-spacing: -.04em; margin: 28px 0 36px; }
.hub-intro__copy > p { max-width: 760px; }
.hub-intro .hub-intro__deck { font-size: clamp(26px, 3vw, 44px); line-height: 1.25; }
.hub-intro__copy > p:not([class]) { font-size: 22px; line-height: 1.65; }
.hub-intro__about { border-left: 3px solid var(--text); padding: 16px 0 16px 36px; font-size: 23px; line-height: 1.5; }
.hub-intro__about .universe-text-link { font: 700 22px/1.5 var(--font-ui); }
.hub-intro__links { display: flex; flex-wrap: wrap; gap: 24px 32px; margin-top: 48px; font: 600 19px/1.5 var(--font-ui); }
/* The persistent action replaces this CMS link in the overview navigation. */
.hub-overview .hub-intro__links [data-route-key="contact"] { display: none; }
.hub-section { padding: 96px var(--universe-gutter); }
.hub-section--projects { background: var(--bg-soft); border-block: var(--universe-rule) solid var(--text); }
.hub-section__heading { display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; justify-content: space-between; margin-bottom: 56px; }
.hub-section__heading h2 { font: 400 clamp(36px, 4vw, 64px)/1.2 var(--font-display); margin: 0; letter-spacing: -.025em; }
.hub-section__heading > a { font: 600 19px/1.5 var(--font-ui); }
.hub-entries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 40px; }
.hub-entries .entry-card { display: flex; flex-direction: column; gap: 28px; padding: 0; border: 0; min-width: 0; }
.hub-entries .entry-card__thumb { width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 10; border: 2px solid var(--line-strong); }
.hub-entries .entry-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-entries .entry-card__thumb--fallback img { object-fit: contain; padding: 32px; background: #86e7bf; }
.hub-entries .entry-card h3 { font: 400 29px/1.2 var(--font-display); margin-block: 16px; }
.hub-entries .entry-card__body > p { font-size: 19px; line-height: 1.6; }
.hub-entries .entry-card__meta { font-size: 13px; flex-wrap: wrap; }
.hub-newsletter { padding: 112px var(--universe-gutter); max-width: 1000px; scroll-margin-top: 32px; }
.hub-newsletter h2 { font: 400 clamp(44px, 6vw, 84px)/1.2 var(--font-display); margin-block: 24px 32px; letter-spacing: -.025em; }
.hub-newsletter > p:not([class]) { font-size: 24px; line-height: 1.6; margin-bottom: 40px; }
.hub-newsletter .universe-button { background: var(--text); color: var(--bg); border-color: var(--text); }

.hub-contact-cta {
    position: fixed;
    right: var(--universe-gutter);
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 56px;
    padding: 14px 22px;
    border: 2px solid #0b0b0b;
    background: var(--universe-mint);
    color: #0b0b0b;
    box-shadow: 5px 5px 0 #0b0b0b;
    font: 700 18px/1.25 var(--font-ui);
}
.hub-contact-cta:hover { background: #fbfaf7; }
.hub-contact-cta:focus-visible { outline: 3px solid var(--universe-magenta); outline-offset: 6px; }
body:has(.hub-contact-cta) .universe-footer { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 2000px) { .gateway-masthead h1 { font-size: 271px; } }
@media (max-width: 1350px) {
    .universe-header:not(.universe-header--compact) .universe-header__person { display: none; }
    .universe-header { gap: 18px; }
    .universe-nav { gap: 16px; }
    /* Reserve the centre for the mark before the full navigation can overlap it. */
    .universe-header__nav-group { position: static; }
    .universe-menu { display: block; }
    .universe-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0b0b0b; padding: 28px var(--universe-gutter); border-top: 1px solid #666; }
    .universe-header__nav-group.is-open .universe-nav { display: grid; gap: 28px; }
}
@media (max-width: 960px) {
    .universe-header__person { display: none; }
    .universe-header { min-height: 76px; flex-wrap: wrap; gap: 14px; }
    .universe-header__brand { font-size: 24px; }
    .universe-header__nav-group { position: static; }
    .universe-menu { display: block; }
    .universe-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0b0b0b; padding: 28px var(--universe-gutter); border-top: 1px solid #666; }
    .universe-header__nav-group.is-open .universe-nav { display: grid; gap: 28px; }
    .gateway-masthead { padding-top: 80px; }
    .gateway-masthead h1 { margin-bottom: 64px; }
    .gateway-intro { padding-block: 64px; gap: 32px; }
    .gateway-intro__action { padding-left: 28px; }
    .gateway-offer { padding: 56px 24px; }
    .gateway-offer h2 { font-size: 1.875rem; }

    .gateway-offer .universe-button { padding-inline: 8px; }
    .gateway-row { padding-block: 64px; gap: 32px; }
    .gateway-row__content { padding-left: 32px; }
    .hub-intro { gap: 40px; padding-block: 80px; }
    .hub-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    :root { --universe-rule: 3px; --universe-gutter: 22px; }
    .universe-header { gap: 12px; padding-block: 14px; }
    .universe-header--compact { min-height: 76px; gap: 12px; font-size: 16px; }
    .universe-header--compact .universe-header__brand { font-size: 20px; }
    .universe-header--compact .universe-language button { min-width: 42px; min-height: 44px; font-size: 15px; }
    .universe-button { min-height: 64px; font-size: 16px; }
    .universe-header__brand { font-size: 20px; }
    .universe-header__invader img { width: 48px; height: 48px; }
    .universe-header__contact { border: 0; padding-left: 0; margin-left: auto; font-size: 15px; }
    .universe-header--compact .universe-header__contact { display: block; grid-column: 3; grid-row: 2; justify-self: end; margin: 0; }
    .universe-language { gap: 6px; }
    .universe-language button { min-width: 42px; padding-inline: 10px; }
    .universe-header { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
    .universe-header__invader { position: static; transform: none; width: 48px; height: 48px; grid-column: 2; grid-row: 2; justify-self: center; margin: 0; }
    .universe-header__brand { grid-column: 1 / 3; grid-row: 1; font-size: clamp(16px, 4.5vw, 18px); }
    .universe-header--compact .universe-header__brand { grid-column: 1 / -1; justify-self: center; }
    .universe-header__nav-group { margin-left: 0; width: auto; grid-column: 3; grid-row: 2; justify-self: end; }
    .universe-header--compact .universe-language { grid-column: 1; grid-row: 2; margin: 0; }
    .universe-header:not(.universe-header--compact) .universe-language { grid-column: 1; grid-row: 2; }
    .universe-header:not(.universe-header--compact) .universe-header__contact { grid-column: 3; grid-row: 1; margin: 0; justify-self: end; }
    .universe-header:not(.universe-header--compact) .universe-language { order: 5; }
    .universe-header:not(.universe-header--compact) .universe-header__contact { order: 6; }
    .gateway-masthead { padding-top: 64px; }
    .gateway-masthead h1 { font-size: calc(14.5vw - 9px); letter-spacing: -.055em; margin-bottom: 64px; }
    .gateway-intro { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; }
    .gateway-intro > p { font-size: 1.625rem; line-height: 1.3; }
    .gateway-intro__action { border-left: 0; padding: 0; }
    .gateway-intro__action .universe-button { justify-content: center; }
    .gateway-intro__action p { font-size: 16px; text-align: center; }
    .gateway-offers { grid-template-columns: 1fr; }
    .gateway-offer { grid-template-rows: auto; gap: 28px; padding: 56px 28px; }
    .gateway-offer h2 { font-size: 2rem; max-width: 540px; }
    .gateway-offer__label { font-size: 1rem; }
    .gateway-offer__label::after { width: 48px; height: 3px; margin-top: 12px; }
    .gateway-offer__description { font-size: 1.25rem; max-width: 36ch; }
    .gateway-offer .universe-button { font-size: 16px; margin-top: 12px; }
    .gateway-row { grid-template-columns: 1fr; gap: 40px; padding-block: 64px; }
    .gateway-row > h2 { font-size: 38px; max-width: 12ch; }
    .gateway-row__content { border-left: 0; padding: 0; }
    .gateway-row h3 { font-size: 1.5rem; }
    .gateway-row p { font-size: 1.25rem; margin-top: 18px; }
    .gateway-about { margin-top: 40px; }
    .gateway-worlds { margin-top: 36px; gap: 28px; }
    .gateway-worlds a { font-size: 1.5rem; text-decoration-thickness: 4px; }
    .gateway-email { font-size: 1.25rem; }
    .gateway-connect-links { gap: 24px; font-size: 18px; }
    .hub-intro { grid-template-columns: 1fr; padding-block: 64px; gap: 48px; }
    .hub-contact-cta { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); min-height: 50px; padding: 12px 18px; font-size: 16px; gap: 24px; }
    .hub-intro h1 { font-size: 76px; }
    .hub-intro__about { padding-left: 24px; }
    .hub-intro__links { gap: 24px; }
    .hub-section { padding-block: 64px; }
    .hub-section__heading { margin-bottom: 40px; }
    .hub-section__heading h2 { font-size: 38px; }
    .hub-entries { grid-template-columns: 1fr; gap: 48px; }
    .hub-entries .entry-card h3 { font-size: 28px; }
    .hub-newsletter { padding-block: 72px; }
    .hub-newsletter h2 { font-size: 46px; }
    .hub-newsletter > p:not([class]) { font-size: 21px; }
    .universe-footer { padding-block: 64px; gap: 36px; }
    .universe-footer nav { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
