/* ============================================
   KOMOHANA WORKS — Design System v5.5
   Art Direction: Ive × 中村勇吾 × Sagmeister
   "God is in the details."
   ============================================ */

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

:root {
    --bg: #E8E4DE;
    --bg-warm: #EDE8E0;
    --surface: #F2EFEA;
    --surface-glass: rgba(242, 239, 234, 0.6);

    --ink: #1A1A1A;
    --ink-soft: #4A4A4A;
    --ink-muted: #8A8A85;
    --ink-ghost: rgba(26, 26, 26, 0.06);

    --indigo: #2C3E6B;
    --indigo-deep: #141E35;
    --indigo-light: #5A72A8;

    --amber: #C17817;
    --amber-bright: #D4922E;
    --amber-glow: rgba(193, 120, 23, 0.2);

    --mesh-warm: rgba(210, 140, 60, 0.25);
    --mesh-cool: rgba(44, 62, 107, 0.18);

    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    /* Kerning — Enable OpenType features */
    font-feature-settings: 'palt' 1, 'kern' 1;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--amber);
    color: #fff;
}

/* --- Kerning fine-tuning --- */
h1,
h2,
h3,
h4 {
    font-feature-settings: 'palt' 1, 'kern' 1;
    hanging-punctuation: allow-end;
}

/* Tighten 「」around text — subtle, not overlapping */
.kern-bracket-open {
    margin-left: -0.1em;
}

.kern-bracket-close {
    margin-right: -0.1em;
}

/* Numbers — tabular for alignment */
.kern-num {
    font-feature-settings: 'tnum' 1, 'kern' 1;
    letter-spacing: 0.02em;
}

/* --- Grain --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 64px);
}

.container--narrow {
    max-width: 720px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: all 0.5s var(--ease);
}

.btn--dark {
    background: var(--indigo-deep);
    color: #fff;
}

.btn--dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(20, 30, 53, 0.25);
}

.btn--amber {
    background: var(--amber);
    color: #fff;
}

.btn--amber:hover {
    background: var(--amber-bright);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(193, 120, 23, 0.3);
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(26, 26, 26, 0.15);
    color: var(--ink-soft);
}

.btn--outline:hover {
    border-color: var(--amber);
    color: var(--amber);
}

.btn--ghost-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn__arrow {
    transition: transform 0.4s var(--ease);
    font-size: 1.1em;
}

.btn:hover .btn__arrow {
    transform: translateX(5px);
}

/* --- Label --- */
.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.label::before {
    content: '';
    width: 20px;
    height: 1px;
}

.label--warm {
    color: var(--amber);
}

.label--warm::before {
    background: var(--amber);
}

.label--light {
    color: rgba(255, 255, 255, 0.4);
}

.label--light::before {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 28px 0;
    mix-blend-mode: difference;
    transition: all 0.5s var(--ease);
}

/* When mobile menu is open, override ALL states */
.header.menu-open {
    mix-blend-mode: normal !important;
    z-index: 9990 !important;
}

.header.menu-open .header__inner {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    transition: none !important;
}

.header.is-scrolled {
    padding: 14px 0;
    mix-blend-mode: normal;
}

.header.is-scrolled .header__inner {
    background: rgba(232, 228, 222, 0.85);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border-radius: 100px;
    max-width: 1160px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 48px);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s var(--ease);
}

.header__logo {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #fff;
}

.header.is-scrolled .header__logo {
    color: var(--ink);
}

.header__logo a {
    color: inherit;
}

.header__nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.header__nav a {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.header.is-scrolled .header__nav a {
    color: var(--ink-muted);
}

.header__nav a:hover {
    color: #fff;
}

.header.is-scrolled .header__nav a:hover {
    color: var(--ink);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 9998;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s var(--ease);
}

.header.is-scrolled .menu-toggle span {
    background: var(--ink);
}

.menu-toggle.is-active span {
    background: var(--ink) !important;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 4px);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* ============================================
   HERO — Particles + Readable text
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__mesh {
    position: absolute;
    inset: 0;
    background: var(--bg);
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    mix-blend-mode: multiply;
}

.hero__blob--1 {
    width: 500px;
    height: 500px;
    background: var(--mesh-warm);
    top: -10%;
    right: -5%;
}

.hero__blob--2 {
    width: 350px;
    height: 350px;
    background: var(--mesh-cool);
    top: 20%;
    left: -5%;
}

.hero__blob--3 {
    width: 200px;
    height: 200px;
    background: rgba(210, 140, 60, 0.3);
    bottom: 20%;
    right: 15%;
    filter: blur(50px);
}

.hero__blob--4 {
    width: 150px;
    height: 150px;
    background: rgba(153, 181, 162, 0.15);
    bottom: 35%;
    left: 20%;
    filter: blur(40px);
}

/* Particle canvas */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 800px;
}

.hero__tagline {
    font-size: clamp(2.8rem, 7.5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 28px;
}

.hero__tagline .line {
    display: block;
    overflow: hidden;
}

.hero__tagline .line-inner {
    display: block;
}

.js-loaded .hero__tagline .line-inner {
    transform: translateY(120%);
}

/* Holographic accent — diagonal gradient, vibrant */
.hero__tagline .accent {
    background: linear-gradient(135deg,
            #B87514 0%,
            #D4683E 20%,
            #C2547A 40%,
            #7B6BAF 60%,
            #4A8FA8 80%,
            #B87514 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holoShift 4s ease-in-out infinite;
}

@keyframes holoShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.hero__divider {
    width: 1px;
    height: 40px;
    background: var(--amber);
    margin: 0 auto 24px;
    opacity: 0.5;
    transform-origin: top;
}

.js-loaded .hero__divider {
    transform: scaleY(0);
}

.hero__catchcopy {
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    color: var(--ink-soft);
    letter-spacing: 0.08em;
    font-weight: 400;
    margin-bottom: 48px;
    line-height: 1.8;
}

.js-loaded .hero__catchcopy {
    opacity: 0;
}

/* .hero__cta — no default overrides needed */

.js-loaded .hero__cta {
    opacity: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.js-loaded .hero__scroll {
    opacity: 0;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    margin: 0 auto 8px;
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, transparent, var(--ink-muted), transparent);
    animation: scrollDrop 2.5s ease-in-out infinite;
}

@keyframes scrollDrop {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

.hero__scroll-text {
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--ink-muted);
    text-align: center;
    display: block;
}

/* ============================================
   STATEMENT — Compact 2-col
   ============================================ */
.statement {
    background: var(--surface);
    padding: clamp(80px, 12vh, 140px) 0;
    position: relative;
    overflow: hidden;
}

.statement__bg-text {
    position: absolute;
    top: 50%;
    left: -5%;
    transform: translateY(-50%);
    font-size: clamp(6rem, 18vw, 14rem);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.02);
    letter-spacing: -0.04em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.statement__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.statement__left {
    position: relative;
    z-index: 1;
}

.statement__kicker {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.statement__kicker .accent {
    background: linear-gradient(135deg, #B87514, #D4683E, #7B6BAF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.statement__right {
    position: relative;
    z-index: 1;
}

.statement__text {
    font-size: clamp(0.82rem, 1.2vw, 0.92rem);
    line-height: 2.4;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    font-weight: 300;
}

.statement__highlight {
    color: var(--amber);
    font-weight: 600;
}

/* ============================================
   SERVICES — Full-width list
   ============================================ */
.services {
    background: var(--bg);
    padding: clamp(100px, 15vh, 180px) 0;
}

.services__heading {
    margin-bottom: clamp(56px, 8vh, 80px);
}

.services__heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 24px;
    align-items: start;
    padding: clamp(32px, 5vh, 56px) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.6s var(--ease);
    position: relative;
}

.service-item:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.service-item:hover {
    padding-left: 16px;
}

.service-item:hover .service-item__num {
    color: var(--amber);
}

.service-item__num {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--ink-muted);
    padding-top: 4px;
    transition: color 0.4s ease;
    font-feature-settings: 'tnum' 1;
}

.service-item__title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.4;
}

.service-item__desc {
    font-size: 0.82rem;
    color: var(--ink-muted);
    line-height: 1.9;
    font-weight: 300;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -24px;
    width: 3px;
    height: 0;
    background: var(--amber);
    border-radius: 3px;
    transition: height 0.5s var(--ease);
}

.service-item:hover::after {
    height: 100%;
}

.services__cta {
    margin-top: clamp(48px, 8vh, 80px);
}

/* ============================================
   TOOLS — Dark
   ============================================ */
.tools {
    background: var(--indigo-deep);
    color: #fff;
    padding: clamp(120px, 18vh, 240px) 0;
    position: relative;
    overflow: hidden;
}

.tools::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, var(--bg), var(--indigo-deep));
    pointer-events: none;
}

.tools__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    will-change: transform;
}

.tools__blob--1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(193, 120, 23, 0.18), rgba(193, 120, 23, 0.04));
    top: 5%;
    right: -8%;
    animation: darkBlobDrift1 12s ease-in-out infinite alternate;
}

.tools__blob--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 114, 168, 0.2), rgba(90, 114, 168, 0.04));
    bottom: 5%;
    left: -5%;
    animation: darkBlobDrift2 15s ease-in-out infinite alternate;
}

@keyframes darkBlobDrift1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, 30px) scale(1.08);
    }

    66% {
        transform: translate(20px, -20px) scale(0.95);
    }

    100% {
        transform: translate(-20px, 40px) scale(1.05);
    }
}

@keyframes darkBlobDrift2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -25px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.92);
    }

    100% {
        transform: translate(25px, -35px) scale(1.06);
    }
}

.tools__heading {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tools__heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tools__subtitle {
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: clamp(48px, 8vh, 80px);
    font-size: 0.82rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    position: relative;
    z-index: 1;
}

.tools__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

.tool-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s var(--ease);
    position: relative;
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--amber-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(193, 120, 23, 0.2);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.tool-card:hover::after {
    opacity: 1;
}

.tool-card__visual {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.tool-card__visual svg {
    width: 40px;
    height: 40px;
    stroke: var(--amber);
    fill: none;
    stroke-width: 1.2;
    opacity: 0.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tool-card__body {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.tool-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-card__desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
    font-weight: 300;
}

.tools__cta {
    margin-top: clamp(48px, 8vh, 80px);
    position: relative;
    z-index: 1;
}

/* ============================================
   NOTE
   ============================================ */
.note-section {
    background: var(--indigo-deep);
    color: #fff;
    padding: 0 0 clamp(120px, 18vh, 240px);
    position: relative;
    overflow: hidden;
}

.note-section::before,
.note-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    will-change: transform;
}

.note-section::before {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(193, 120, 23, 0.14), transparent 70%);
    top: 10%;
    left: -8%;
    animation: darkBlobDrift2 14s ease-in-out infinite alternate;
}

.note-section::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(90, 114, 168, 0.16), transparent 70%);
    bottom: 15%;
    right: -5%;
    animation: darkBlobDrift1 11s ease-in-out infinite alternate;
}

.note-section__heading {
    margin-bottom: clamp(48px, 8vh, 80px);
}

.note-section__heading h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
}

.note-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.note-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: block;
    color: #fff;
    transition: all 0.5s var(--ease);
}

.note-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.note-card__thumb {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, rgba(44, 62, 107, 0.2), rgba(193, 120, 23, 0.05));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.note-card__body {
    padding: 24px;
}

.note-card__title {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 8px;
}

.note-card__date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
}

.note-section__cta {
    margin-top: 56px;
}

/* ============================================
   CTA — Crafted, not phoned in
   ============================================ */
.cta-section {
    background: var(--bg-warm);
    text-align: center;
    padding: clamp(120px, 18vh, 240px) 0;
    position: relative;
    overflow: hidden;
}

.cta-section__glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 120, 23, 0.12), transparent 70%);
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section__content {
    position: relative;
    z-index: 1;
}

.cta-section__label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-section__text {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cta-section__sub {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-bottom: 56px;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

/* ============================================
   FOOTER — Crafted, editorial
   ============================================ */
.footer {
    background: var(--ink);
    color: #fff;
    padding: clamp(64px, 10vh, 100px) 0 40px;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: start;
    padding-bottom: clamp(48px, 8vh, 80px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand-name {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer__brand-tagline {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.8;
}

.footer__nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer__nav a {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
}

.footer__social {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer__social a {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer__social a:hover {
    color: var(--amber);
}

.footer__copyright {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.05em;
}

/* ============================================
   REVEAL
   ============================================ */
.js-loaded .reveal {
    opacity: 0;
    transform: translateY(48px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    /* Header mobile — smooth overlay */
    .header__nav {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--bg) !important;
        z-index: 9995 !important;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 0 40px;
        gap: 0;
        mix-blend-mode: normal !important;
        isolation: isolate;

        /* Smooth transition instead of display toggle */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition:
            opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s 0.45s;
    }

    .header__nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition:
            opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s 0s;
    }

    /* Stagger menu items */
    .header__nav li {
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .header__nav.is-open li {
        opacity: 1;
        transform: translateX(0);
    }

    .header__nav.is-open li:nth-child(1) {
        transition-delay: 0.08s;
    }

    .header__nav.is-open li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .header__nav.is-open li:nth-child(3) {
        transition-delay: 0.20s;
    }

    .header__nav.is-open li:nth-child(4) {
        transition-delay: 0.26s;
    }

    .header__nav.is-open li:nth-child(5) {
        transition-delay: 0.32s;
    }

    .header__nav li {
        width: 100%;
        list-style: none;
    }

    .header__nav a {
        font-size: 1.3rem;
        color: var(--ink) !important;
        font-weight: 600;
        letter-spacing: -0.01em;
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero mobile — impactful */
    .hero {
        min-height: 100svh;
        padding: 0 0 80px;
    }

    .hero__content {
        padding: 0 28px;
    }

    .hero__tagline {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
        letter-spacing: -0.04em;
        margin-bottom: 20px;
    }

    .hero__blob--1 {
        width: 300px;
        height: 300px;
        top: 5%;
        right: -20%;
        filter: blur(60px);
    }

    .hero__blob--2 {
        width: 250px;
        height: 250px;
        top: 30%;
        left: -15%;
        filter: blur(60px);
    }

    .hero__blob--3 {
        width: 180px;
        height: 180px;
        bottom: 15%;
        right: 0;
        filter: blur(40px);
        background: rgba(210, 140, 60, 0.35);
    }

    .hero__blob--4 {
        width: 120px;
        height: 120px;
        bottom: 40%;
        left: 5%;
    }

    .hero__divider {
        height: 28px;
        margin-bottom: 16px;
    }

    .hero__catchcopy {
        font-size: 0.78rem;
        margin-bottom: 36px;
    }

    .hero__scroll {
        bottom: 20px;
    }

    .hero__scroll-line {
        height: 32px;
    }

    /* Statement mobile */
    .statement__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .statement__kicker {
        font-size: 1.6rem;
    }

    /* Services mobile */
    .service-item {
        grid-template-columns: 48px 1fr;
        gap: 12px;
    }

    .service-item__desc {
        grid-column: 1 / -1;
        padding-left: 60px;
    }

    .service-item__title {
        font-size: 1.05rem;
    }

    .service-item::after {
        left: -12px;
    }

    /* Tools / Note mobile */
    .tools__grid,
    .note-section__grid {
        grid-template-columns: 1fr;
    }

    .tool-card__visual {
        height: 140px;
    }

    /* Footer mobile */
    .footer__main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tools__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .note-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .note-section__grid .note-card:last-child {
        display: none;
    }
}