/* ============================================================
   DOOKUN.COM
   Core desktop stylesheet
   ============================================================ */


/* ------------------------------------------------------------
   DESIGN TOKENS
   ------------------------------------------------------------ */

:root {
    --user-text-scale: 100%;

    --bg: #ffffff;
    --surface: #f7f9fc;
    --surface-2: #eef4fb;

    --text: #07132d;
    --muted: #5c6980;
    --line: #dce4ee;

    --blue: #0957f4;
    --pink: #f05272;
    --orange: #ff7b3f;
    --teal: #17b9ae;
    --yellow: #ffc23d;

    --header-bg: rgba(255, 255, 255, .90);

    --shell: 1220px;

    font-size: var(--user-text-scale);
}


/* ------------------------------------------------------------
   RESET / BASE
   ------------------------------------------------------------ */

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.65;
    text-rendering: optimizeLegibility;
    font-size: 17px;
}

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

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

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

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

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

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* ------------------------------------------------------------
   SKIP LINK
   ------------------------------------------------------------ */

.skip-link {
    position: fixed;
    z-index: 9999;

    top: -100px;
    left: 20px;

    padding: 12px 18px;

    background: var(--text);
    color: var(--bg);

    border-radius: 6px;
}

.skip-link:focus {
    top: 20px;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.site-header {
    position: sticky;
    z-index: 100;

    top: 0;

    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.brand {
    font-size: 1.18rem;
    font-weight: 750;
    letter-spacing: -.035em;
    text-decoration: none;
}

.primary-nav {
    display: flex;
    align-items: center;

    gap: 23px;

    font-size: .82rem;
}

.primary-nav a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}

.primary-nav a:hover {
    color: var(--blue);
}

.nav-divider {
    width: 1px;
    height: 21px;

    background: var(--line);
}

.language-link,
.katalume-link {
    font-weight: 700;
}

.katalume-link {
    color: var(--blue);
}

.icon-button,
.mobile-menu-toggle,
.carousel-button {
    appearance: none;

    border: 0;
    background: transparent;
    color: inherit;

    cursor: pointer;
}

.icon-button {
    min-width: 34px;
    min-height: 34px;

    border-radius: 50%;
}

.icon-button:hover {
    background: var(--surface);
}

.mobile-menu-toggle {
    display: none;
}


/* ------------------------------------------------------------
   SHARED TYPOGRAPHY
   ------------------------------------------------------------ */

.eyebrow {
    display: block;

    margin-bottom: 17px;

    color: var(--blue);

    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.text-link {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    color: var(--blue);

    font-weight: 700;
    text-decoration: none;

    border-bottom: 1px solid currentColor;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.hero {
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.03fr .97fr;

    align-items: end;

    gap: 12px;

    padding-top: 48px;
}

.hero-copy {
    align-self: center;

    padding: 24px 0 38px;
}

.hero .eyebrow {
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 650px;

    margin: 0;

    font-size: clamp(3.45rem, 4.6vw, 5rem);
    line-height: .94;
    letter-spacing: -.065em;
}

.hero h1 span {
    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--orange)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero-intro {
    max-width: 610px;

    margin: 22px 0 0;

    color: var(--muted);

    font-size: 1rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;

    gap: 34px;

    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;

    gap: 16px;

    padding: 13px 20px;

    border-radius: 5px;

    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
}

.button.primary {
    background: var(--blue);
    color: #fff;
}

.hero-visual {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    min-width: 0;

    overflow: visible;
}

.hero-visual img {
    position: relative;
    z-index: 2;

    width: 760px;
    max-width: none;
    height: auto;

    object-fit: contain;

    margin-bottom: 0;
}


.handwritten-note {
    position: absolute;
    z-index: 3;

    top: 20%;
    right: 0;

    color: #394a6c;

    font-family: cursive;
    font-size: .95rem;
    line-height: 1.7;

    transform: rotate(-8deg);
}


/* ------------------------------------------------------------
   AIRPORT
   ------------------------------------------------------------ */

.airport-section {
    margin: 0;
}

.airport-grid {
    display: grid;

    grid-template-columns: .82fr 1.18fr;

    min-height: 330px;

    background: var(--surface);
}

.airport-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px;
}

.airport-copy h2 {
    max-width: 430px;

    margin: 0;

    font-size: clamp(2.05rem, 2.85vw, 2.9rem);
    line-height: .99;
    letter-spacing: -.052em;
}

.airport-copy p {
    max-width: 420px;

    margin: 18px 0 21px;

    color: var(--muted);

    font-size: .91rem;
    line-height: 1.55;
}

.airport-image {
    min-width: 0;
    min-height: 330px;

    overflow: hidden;
}

.airport-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ------------------------------------------------------------
   SECTION RHYTHM
   ------------------------------------------------------------ */

.section-space {
    padding-block: 58px;
}

.section-heading-row {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 26px;
}

.section-heading-row .eyebrow,
.timeline-intro .eyebrow,
.ai-copy .eyebrow {
    margin-bottom: 13px;
}

.section-heading-row h2,
.timeline-intro h2,
.ai-copy h2 {
    margin: 0;

    font-size: clamp(1.95rem, 2.8vw, 3rem);
    line-height: 1;
    letter-spacing: -.052em;
}


/* ------------------------------------------------------------
   SELECTED WORK
   ------------------------------------------------------------ */

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-button {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--surface);
    color: var(--blue);
}

.carousel-button[data-carousel-next] {
    background: var(--blue);
    color: #fff;
}

.carousel-play-toggle {
    background: var(--surface);
    color: var(--blue);

    font-size: .72rem;
}

.work-carousel {
    display: grid;

    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 250px);

    gap: 13px;

    overflow-x: auto;

    padding: 3px 2px 8px;

    scroll-snap-type: inline mandatory;
    overscroll-behavior-inline: contain;

    scrollbar-width: none;
}

.work-carousel::-webkit-scrollbar {
    display: none;
}

.work-card {
    overflow: hidden;

    scroll-snap-align: start;

    background: var(--surface);

    border-radius: 7px;
}

.work-card-image {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: var(--surface-2);
}

.work-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;
}

.work-card-body {
    position: relative;

    min-height: 66px;

    padding: 15px 42px 15px 15px;
}

.work-card h3 {
    margin: 0;

    font-size: .9rem;
    line-height: 1.25;
}

.work-card p {
    margin: 3px 34px 0 0;

    color: var(--muted);

    font-size: .73rem;
    line-height: 1.4;
}

.work-card-body > a {
    position: absolute;

    right: 13px;
    bottom: 13px;

    color: var(--blue);

    text-decoration: none;
}


/* ------------------------------------------------------------
   TIMELINE
   ------------------------------------------------------------ */

.timeline-section {
    width: min(calc(100% - 48px), var(--shell));

    margin-inline: auto;

    padding-block: 42px;

    border-radius: 12px;

    background:
        linear-gradient(
            120deg,
            rgba(9, 87, 244, .045),
            rgba(23, 185, 174, .025)
        );
}

.timeline-layout {
    width: calc(100% - 60px);

    display: grid;

    grid-template-columns: 230px 1fr;

    gap: 42px;

    align-items: center;
}

.timeline-intro h2 {
    max-width: 225px;

    font-size: 2rem;
}

.timeline {
    position: relative;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 16px;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 10px;
    left: 2%;
    right: 2%;

    height: 1px;

    background: var(--line);
}

.timeline-item {
    position: relative;

    padding-top: 32px;
}

.timeline-dot {
    position: absolute;
    z-index: 2;

    top: 4px;
    left: 0;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: var(--blue);
}

.timeline-item:nth-child(2) .timeline-dot {
    background: var(--pink);
}

.timeline-item:nth-child(3) .timeline-dot {
    background: var(--yellow);
}

.timeline-item:nth-child(4) .timeline-dot {
    background: var(--teal);
}

.timeline-item strong {
    color: var(--muted);

    font-size: .69rem;
}

.timeline-item h3 {
    margin: 3px 0;

    font-size: .9rem;
}

.timeline-item p {
    margin: 0;

    color: var(--muted);

    font-size: .68rem;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   AI / CURRENT THINKING
   ------------------------------------------------------------ */

.ai-grid {
    display: grid;

    grid-template-columns: 1fr .82fr;

    gap: 46px;

    align-items: center;
}

.ai-copy {
    max-width: 610px;
}

.ai-copy h2 {
    max-width: 590px;
}

.ai-copy p {
    max-width: 600px;

    margin: 18px 0 22px;

    color: var(--muted);

    font-size: .9rem;
    line-height: 1.55;
}


.technology-layers {
    position: relative;

    min-height: 340px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 165px;

    align-items: center;

    gap: 0;
}


/* ------------------------------------------------------------
   STACK
   ------------------------------------------------------------ */

.technology-stack {
    position: relative;

    height: 330px;

    perspective: 1100px;
}

.tech-layer {
    position: absolute;

    left: 4%;
    top: 50%;

    width: 82%;
    max-width: 460px;

    aspect-ratio: 2 / 1;

    border-radius: 3px;

    transform:
        translateY(-50%)
        rotateX(62deg)
        rotateZ(-9deg);

    transform-origin: center;

    box-shadow:
        0 20px 38px rgba(38, 72, 140, .12);
}


/* AI */

.layer-ai {
    z-index: 5;

    margin-top: -112px;

    background:
        linear-gradient(
            135deg,
            #6199ff 0%,
            #756bf5 43%,
            #c579ea 72%,
            #f09abf 100%
        );

    border: 1px solid rgba(225, 85, 145, .7);

    box-shadow:
        0 25px 55px rgba(108, 90, 235, .22);
}


/* PLATFORMS */

.layer-platforms {
    z-index: 4;

    margin-top: -56px;

    background:
        linear-gradient(
            135deg,
            rgba(95, 145, 255, .72),
            rgba(110, 187, 255, .55)
        );

    border: 1px solid rgba(86, 137, 255, .6);
}


/* DIGITAL SYSTEMS */

.layer-digital {
    z-index: 3;

    margin-top: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 153, 71, .84),
            rgba(255, 192, 72, .66)
        );

    border: 1px solid rgba(255, 142, 58, .72);
}


/* AIRPORTS */

.layer-airports {
    z-index: 2;

    margin-top: 56px;

    background:
        linear-gradient(
            135deg,
            rgba(49, 198, 205, .74),
            rgba(105, 220, 226, .54)
        );

    border: 1px solid rgba(38, 184, 194, .62);
}


/* WEB */

.layer-web {
    z-index: 1;

    margin-top: 112px;

    background:
        linear-gradient(
            135deg,
            rgba(87, 159, 255, .52),
            rgba(112, 195, 255, .34)
        );

    border: 1px solid rgba(69, 139, 239, .52);
}


/* ------------------------------------------------------------
   LABELS
   Upright — not transformed with the planes
   ------------------------------------------------------------ */

.technology-labels {
    height: 330px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    padding-top: 7px;
}

.technology-label {
    height: 56px;

    display: flex;
    align-items: center;

    position: relative;

    color: var(--muted);
}

.technology-label strong {
    font-size: .66rem;
    font-weight: 800;

    letter-spacing: .12em;

    white-space: nowrap;
}

.label-line {
    width: 40px;
    height: 1px;

    margin-right: 0;

    background: var(--line);
}

.label-dot {
    width: 7px;
    height: 7px;

    margin-right: 14px;

    border-radius: 50%;
}


/* label colours */

.label-ai .label-dot {
    background: #5b78ff;
}

.label-platforms .label-dot {
    background: #9b6df2;
}

.label-digital .label-dot {
    background: #ff824c;
}

.label-airports .label-dot {
    background: #20bfc3;
}

.label-web .label-dot {
    background: #398cff;
}



/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.site-footer {
    padding: 19px 0;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: .7rem;
}

.footer-inner {
    display: flex;

    justify-content: space-between;

    gap: 40px;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;

    gap: 22px;
}

.footer-inner a {
    text-decoration: none;
}
