/* =========================================================
   KIKO Solutions — editorial design system
   Paper + ink + burnt orange · Bricolage Grotesque / Inter
   ========================================================= */

:root {
    --paper: #f7f4ee;
    --paper-tint: #efeadf;
    --ink: #1c1a17;
    --ink-soft: #57524a;
    --line: #ddd6c8;
    --accent: #c2510f;

    /* sunrise gradient family */
    --amber: #e88b1c;
    --flame: #d0490e;
    --plum: #a03579;
    --grad: linear-gradient(115deg, var(--amber), var(--flame) 48%, var(--plum));
    --grad-text: linear-gradient(105deg, #d0490e, #a03579);
    --grad-text-bright: linear-gradient(105deg, #f2a33c, #e8641c 45%, #d770c9);

    /* dark band */
    --on-ink: #f7f4ee;
    --on-ink-soft: rgba(247, 244, 238, 0.68);
    --line-dark: rgba(247, 244, 238, 0.16);

    --display: 'Bricolage Grotesque', 'Inter', sans-serif;
    --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; /* JS handles offset scrolling */ }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--paper); }

/* Content wrappers sit above the journey line (z1); section backgrounds stay below it */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 2; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.02em;
}
h1 em, h2 em { font-style: normal; font-weight: 700; color: var(--accent); }

p { color: var(--ink-soft); }

/* small labels */
.kicker, .index-label {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ============ BUTTONS & LINKS ============ */
.btn {
    display: inline-block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--accent); color: #fff; }

.btn-paper { background: transparent; color: var(--on-ink); border-color: rgba(247, 244, 238, 0.4); }
.btn-paper:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--on-ink); color: var(--ink); }

.link-quiet {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}
.link-quiet:hover { color: var(--accent); border-color: var(--accent); }

/* ============ HEADER ============ */
#site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(247, 244, 238, 0.92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
#site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex; align-items: baseline; gap: 5px;
}
.logo-dot {
    width: 10px; height: 10px; background: var(--grad);
    display: inline-block; border-radius: 2px;
}

.desktop-nav { display: flex; align-items: center; gap: 36px; }
.desktop-nav a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--accent); }
.desktop-nav a.nav-cta {
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 9px 18px;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.desktop-nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }

.mobile-nav-menu {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-nav-menu.active { max-height: 320px; }
.mobile-nav-menu a {
    display: block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    padding: 18px 48px;
    border-top: 1px solid var(--line);
}

/* ============ HERO ============ */
.hero { padding: 180px 0 0; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: 80px;
    align-items: end;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    margin: 28px 0 30px;
    max-width: 14em;
}
.hero-sub {
    font-size: 1.12rem;
    max-width: 34em;
    margin-bottom: 40px;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-index { padding-bottom: 8px; }
.hero-index .index-label {
    color: var(--ink-soft);
    display: block;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
}
.hero-index a {
    display: flex; align-items: baseline; gap: 14px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.2s, padding-left 0.25s;
}
.hero-index a span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent);
}
.hero-index a:hover { color: var(--accent); padding-left: 6px; }
@media (min-width: 1025px) {
    .hero-index { transform: translateY(46px); }
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
    margin-top: 90px;
    padding-top: 0;
}
.stat-strip > div {
    padding: 26px 24px 30px 0;
    border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: none; }
.stat-strip > div + div { padding-left: 24px; }
.stat-strip strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-strip span {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; border-top: 1px solid var(--line); }
.hero + .section, .section:first-of-type { border-top: none; }
.section-tint { background: var(--paper-tint); }

.section-head { margin-bottom: 64px; }
.section-head h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    max-width: 18em;
    margin-top: 26px;
}
.head-sub { margin-top: 18px; max-width: 38em; font-size: 1.05rem; }

/* ============ SERVICE LIST ============ */
.service-list { border-top: 1px solid var(--ink); }
.service-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 4fr) minmax(0, 6fr) 60px;
    gap: 28px;
    align-items: baseline;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background 0.25s;
}
.row-num { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.row-title {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--ink);
    line-height: 1.15;
    transition: color 0.2s;
}
.row-desc { font-size: 0.98rem; color: var(--ink-soft); }
.row-arrow {
    font-size: 1.3rem; color: var(--ink);
    justify-self: end;
    transition: transform 0.25s, color 0.2s;
}
.service-row:hover .row-title, .service-row:hover .row-arrow { color: var(--accent); }
.service-row:hover .row-arrow { transform: translateX(6px); }

/* ============ NOTE FROM ADAM ============ */
.note-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
}

.note-photo {
    aspect-ratio: 3 / 4;
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    position: relative;
}
img.note-photo { object-fit: cover; width: 100%; height: auto; }
.note-figure .photo-caption { display: block; margin-top: 14px; }
.photo-caption {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.note-lede {
    font-family: var(--display);
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 26px;
}
.note-body p:not(.note-lede):not(.note-sig) { margin-bottom: 20px; font-size: 1.05rem; }
.note-sig {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    color: var(--accent);
    margin-top: 34px;
}

/* ============ PROCESS ============ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
}
.process-step {
    padding: 36px 28px 10px 0;
    border-right: 1px solid var(--line);
}
.process-step:last-child { border-right: none; }
.process-step + .process-step { padding-left: 28px; }
.step-num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 38px;
}
.process-step h3 { font-size: 1.35rem; margin-bottom: 14px; }
.process-step p:not(.step-num) { font-size: 0.95rem; }

/* ============ PORTFOLIO ============ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.portfolio-card {
    display: flex; flex-direction: column;
    background: none; border: none; padding: 0;
    text-align: left; cursor: pointer;
    font-family: inherit; color: inherit;
}
.portfolio-thumb {
    display: block; width: 100%; aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}
.portfolio-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s;
}
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.03); }
.portfolio-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.portfolio-meta {
    display: flex; align-items: baseline; gap: 12px;
    padding: 16px 2px 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    transition: border-color 0.25s;
}
.portfolio-card:hover .portfolio-meta { border-bottom-color: var(--accent); }
.pm-index { font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: var(--accent); }
.pm-name {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
}
.pm-cat {
    margin-left: auto;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ============ MANIFESTO (WEB DESIGN / AI) ============ */
.manifesto-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 80px;
    align-items: start;
}
.manifesto-body p { font-size: 1.12rem; margin-bottom: 22px; max-width: 36em; }
.manifesto-body .btn { margin-top: 12px; }
.manifesto-note {
    font-size: 0.92rem !important;
    margin-top: 22px;
    max-width: 32em;
}

.manifesto-list .index-label {
    color: var(--ink-soft);
    display: block;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ink);
}
.ruled-list { list-style: none; }
.ruled-list li {
    display: flex; align-items: baseline; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.ruled-list li::before {
    content: '—';
    color: var(--accent);
    flex-shrink: 0;
}

/* ============ CARE PLANS (DARK BAND) ============ */
.section-dark {
    background: var(--ink);
    border-top: none;
}
.section-dark .sec-num { color: var(--accent); filter: brightness(1.35); }
.section-dark h2 { color: var(--on-ink); }
.section-dark .head-sub { color: var(--on-ink-soft); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--on-ink);
}
.plan {
    padding: 44px 36px 44px 0;
    border-right: 1px solid var(--line-dark);
    display: flex; flex-direction: column;
    position: relative;
}
.plan + .plan { padding-left: 36px; }
.plan:last-child { border-right: none; padding-right: 0; }

.plan-tag {
    position: absolute; top: 0; left: 36px;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--accent);
    color: #fff;
    padding: 5px 12px;
    border-radius: 2px;
}
.plan:first-child .plan-tag { left: 0; }

.plan-name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-ink-soft);
    margin-bottom: 18px;
}
.plan-price {
    font-family: var(--display);
    font-weight: 600;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--on-ink);
    margin-bottom: 30px;
}
.plan-price span {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    color: var(--on-ink-soft);
    margin-left: 6px;
}

.plan-features { list-style: none; flex-grow: 1; margin-bottom: 36px; }
.plan-features li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 0.92rem;
    color: var(--on-ink-soft);
}
.plan-features li strong { color: var(--on-ink); font-weight: 600; }

.plans-footnote {
    margin-top: 56px;
    font-size: 0.92rem;
    color: var(--on-ink-soft);
}
.plans-footnote a { color: var(--on-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.plans-footnote a:hover { color: #fff; border-color: #fff; }

/* ============ CONTACT ============ */
.contact { padding: 130px 0 120px; text-align: left; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 20px 0 44px; }
.contact-email {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.8rem);
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    transition: color 0.2s;
    word-break: break-word;
}
.contact-email:hover { color: var(--accent); }
.contact-promise { margin-top: 30px; font-size: 1rem; max-width: 34em; }
.contact-meta {
    display: flex; gap: 36px; flex-wrap: wrap;
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.contact-meta a, .contact-meta span {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    text-decoration: none;
}
.contact-meta a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer p {
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ============ SPOTLIGHT (BOTTOM SHEET) ============ */
.spotlight-overlay {
    position: fixed; inset: 0;
    background: rgba(28, 26, 23, 0.7);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    z-index: 2999; opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.spotlight-overlay.active { opacity: 1; pointer-events: auto; }

.project-spotlight {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    height: 88vh; max-height: 880px;
    background: var(--paper);
    z-index: 3000;
    transition: bottom 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    border-top: 1px solid var(--line);
}
.project-spotlight.active { bottom: 0; }

.spotlight-close {
    position: absolute; top: 24px; right: 24px;
    width: 48px; height: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3010;
    color: var(--ink);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.spotlight-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.spotlight-layout { display: flex; height: 100%; }
.spotlight-image-container { flex: 6; background: var(--ink); }
.spotlight-image-container img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.spotlight-info {
    flex: 4; padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
    overflow-y: auto;
}
.sl-badge {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.spotlight-info h3 { font-size: 2.4rem; margin-bottom: 20px; }
.spotlight-info p { font-size: 1.08rem; margin-bottom: 40px; line-height: 1.7; }
.spotlight-cta { align-self: flex-start; }

/* ============ INTRO (wordmark opens big, flies home to the corner) ============ */
.intro {
    position: fixed; inset: 0;
    z-index: 2000;
    background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    transition: opacity 0.8s ease;
}
.intro.fade { opacity: 0; }
.intro-word {
    display: inline-flex; align-items: baseline; gap: 0.06em;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(88px, 18vw, 230px);
    letter-spacing: -0.03em;
    line-height: 0.8;
    color: var(--ink);
    opacity: 0;
    will-change: transform;
}
.intro-dot {
    width: 0.135em; height: 0.135em;
    border-radius: 15%;
    background: var(--grad);
}
@keyframes introIn {
    from { opacity: 0; transform: translateY(20px) scale(0.94); }
    to   { opacity: 1; transform: none; }
}
@keyframes introDotHop {
    from { opacity: 0; transform: translateY(-1.1em); }
    60%  { opacity: 1; transform: translateY(0.08em); }
    to   { opacity: 1; transform: none; }
}
.intro.play .intro-word { animation: introIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.intro.play .intro-dot  { animation: introDotHop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards; }
#site-header .logo { transition: opacity 0.6s ease; }
body.intro-on #site-header .logo { opacity: 0; }

/* ============ HEADER DOT: an occasional pet-like quiver ============ */
@keyframes dotQuiver {
    0%, 100% { transform: none; }
    15% { transform: translateX(-1.5px) rotate(-9deg); }
    30% { transform: translateX(1.5px) rotate(8deg); }
    45% { transform: translateX(-1.2px) rotate(-6deg); }
    60% { transform: translateX(1px) rotate(4deg); }
    78% { transform: translateX(-0.5px) rotate(-2deg); }
}
.logo-dot.quiver { animation: dotQuiver 0.6s ease-in-out; }

/* ============ BRAND BAND (Sundot screensaver, scroll-native) ============ */
.brand-band {
    position: relative;
    padding: 240px 0 64px;   /* headroom for the dot's arc */
    overflow: hidden;
}
.brand-word {
    position: relative;
    z-index: 1;
    display: inline-block;   /* so scrollWidth measures the glyphs, not the column */
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(96px, 30vw, 500px);   /* JS refits to fill the column */
    line-height: 0.8;
    letter-spacing: -0.03em;
    color: var(--ink);
    white-space: nowrap;
    text-shadow: 3px 3px 9px rgba(28, 26, 23, 0.14);
}
.brand-dot {
    display: inline-block;
    width: 0.135em; height: 0.135em;
    border-radius: 15%;
    background: var(--grad);
    margin-left: 0.12em;
    transition: opacity 0.3s ease;
}
.brand-fly {
    position: absolute;
    left: 0; top: 0;
    width: 24px; height: 24px;
    border-radius: 15%;
    background: var(--grad);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    will-change: transform;
}
.brand-glow {
    position: absolute;
    left: 0; top: 0;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 139, 28, 0.32) 0%, rgba(208, 73, 14, 0.10) 52%, transparent 72%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}
.brand-tag {
    min-height: 1.7em;
    margin-top: 34px;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1rem, 1.9vw, 1.5rem);
    letter-spacing: -0.01em;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
}
@media (max-width: 768px) {
    .brand-band { padding: 80px 0 36px; }
    .brand-tag { opacity: 0.95; }   /* animation is desktop-only; keep the line */
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-index { max-width: 420px; }
    .note-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
    .manifesto-grid { grid-template-columns: 1fr; gap: 56px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step { border-right: none; padding: 36px 0 10px; border-bottom: 1px solid var(--line); }
    .process-step + .process-step { padding-left: 0; }
    .process-grid .process-step:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 32px; }
    .process-grid .process-step:nth-child(even) { padding-left: 32px; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip > div { border-bottom: 1px solid var(--line); }
    .stat-strip > div:nth-child(even) { border-right: none; padding-left: 24px; }
    .stat-strip > div:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 768px) {
    .wrap { padding: 0 22px; }
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-nav-menu a { padding: 16px 22px; }

    .hero { padding-top: 130px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 1.02rem; }
    .stat-strip { margin-top: 64px; }
    .stat-strip strong { font-size: 1.8rem; }

    .section { padding: 72px 0; }
    .section-head { margin-bottom: 44px; }

    .service-row {
        grid-template-columns: 44px 1fr;
        gap: 8px 16px;
        padding: 26px 0;
    }
    .row-title { grid-column: 2; font-size: 1.3rem; }
    .row-desc { grid-column: 2; font-size: 0.92rem; }
    .row-arrow { display: none; }
    .row-num { grid-row: 1; padding-top: 6px; }

    .note-grid { grid-template-columns: 1fr; gap: 40px; }
    .note-photo { max-width: 300px; }
    .note-lede { font-size: 1.25rem; }

    .process-grid { grid-template-columns: 1fr; }
    .process-grid .process-step:nth-child(odd) { border-right: none; padding-right: 0; }
    .process-grid .process-step:nth-child(even) { padding-left: 0; }
    .step-num { margin-bottom: 20px; }

    .portfolio-grid { grid-template-columns: 1fr; gap: 36px; }

    .plans-grid { grid-template-columns: 1fr; border-top: none; }
    .plan { border-right: none; border-top: 1px solid var(--on-ink); padding: 44px 0 40px; }
    .plan + .plan { padding-left: 0; }
    .plan-tag { left: 0 !important; }

    .contact-meta { gap: 18px; flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 6px; }

    .spotlight-layout { flex-direction: column; }
    .spotlight-image-container { flex: none; height: 38vh; }
    .spotlight-info { padding: 36px 24px; justify-content: flex-start; }
    .spotlight-info h3 { font-size: 1.7rem; }
    .project-spotlight { height: 94vh; }
    .spotlight-close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

/* =========================================================
   EXPRESSIVE LAYER — sunrise motif
   Gradient sun + arcs + contour lines over the editorial base.
   Appended last so these rules win the cascade.
   ========================================================= */

/* Film grain over the paper */
body::after {
    content: '';
    position: fixed; inset: 0;
    z-index: 9999; pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Gradient italics on key words */
h1 em, h2 em {
    font-style: normal;
    color: var(--flame);
    background: var(--grad-text);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    animation: gradPan 7s ease-in-out infinite alternate;
}
.section-dark h2 em {
    background: var(--grad-text-bright);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradPan 7s ease-in-out infinite alternate;
}

/* Gradient structural rules */
.stat-strip,
.service-list,
.process-grid,
.plans-grid {
    border-top: 1px solid;
    border-image: var(--grad) 1;
}
.hero-index .index-label,
.manifesto-list .index-label {
    border-bottom: 1px solid;
    border-image: var(--grad) 1;
}

/* Gradient details */
.logo-dot { background: var(--grad); }
.plan-tag { background: var(--grad); }
.btn-accent { background: var(--grad); }
.btn-accent:hover { filter: brightness(1.1); color: #fff; }
.btn-ink:hover { background: var(--grad); color: #fff; }
.spotlight-cta:hover { background: var(--grad); }

.stat-strip strong {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.note-photo {
    border: 1px solid transparent;
    background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--grad) border-box;
}

/* Hero artwork: gradient sun, arcs, contour lines */
.hero-grid { position: relative; }
.hero-main, .hero-index { position: relative; z-index: 1; }

.hero-art {
    position: absolute;
    top: -70px; right: -70px;
    width: min(46vw, 600px);
    aspect-ratio: 640 / 760;
    z-index: 0;
    pointer-events: none;
}
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Warm glows on tinted + dark sections */
.section-tint {
    background-color: var(--paper-tint);
    background-image:
        radial-gradient(720px 420px at 92% -8%, rgba(232, 139, 28, 0.13), transparent 60%),
        radial-gradient(600px 420px at -6% 108%, rgba(160, 53, 121, 0.09), transparent 60%);
}
.section-dark {
    background-color: #191713;
    background-image:
        radial-gradient(1100px 700px at 88% 112%, rgba(208, 73, 14, 0.30), transparent 62%),
        radial-gradient(800px 560px at 4% -12%, rgba(160, 53, 121, 0.22), transparent 58%);
}

.process-grid { position: relative; }
.process-step { position: relative; z-index: 1; }

/* Portfolio: gradient wash + view chip on hover */
.portfolio-thumb { position: relative; }
.portfolio-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--grad);
    opacity: 0;
    mix-blend-mode: color;
    transition: opacity 0.35s ease;
}
.portfolio-thumb::before {
    content: 'View project \2192';
    position: absolute;
    bottom: 14px; left: 14px;
    z-index: 2;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-card:hover .portfolio-thumb::after { opacity: 0.5; }
.portfolio-card:hover .portfolio-thumb::before { opacity: 1; transform: none; }
.portfolio-card:hover .portfolio-meta { border-bottom: 1px solid; border-image: var(--grad) 1; }
.service-row:hover .row-title { transform: translateX(6px); }
.row-title { transition: color 0.2s, transform 0.3s ease; }

/* Contact: sun on the horizon */
.contact { position: relative; overflow: hidden; }
.contact .wrap { position: relative; z-index: 2; }
.contact-email { border-bottom: 2px solid; border-image: var(--grad) 1; }
.contact-email:hover {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Motion: choreographed entrances, gated on viewport entry
        (the IntersectionObserver adds .in), then quiet idle loops.
        All CSS, so the prefers-reduced-motion block below stills
        everything.

        Hero sequence: sun appears → rings radiate outward → lines
        draw in → idle (breathe / pulse / drift) takes over.       ---- */

/* Journey rail: the bold line down the left of the page that follows the
   visitor's scroll. JS builds it from section positions and draws it live. */
.journey {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 1;              /* above section backgrounds, below .wrap content (2) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}
.journey.on { opacity: 0.9; }
@media (max-width: 768px) {
    .journey { display: none; }
}

/* Rail nodes: hollow until the line arrives, then lit */
.jnode {
    fill: var(--paper);
    stroke: #eda24a;
    stroke-width: 2;
    transition: fill 0.35s ease, stroke 0.35s ease;
}
.jnode.lit { fill: #e88b1c; stroke: #e88b1c; }

/* Section milestones: big bold number + title, revealed when the rail arrives */
.sec-num {
    display: flex;
    align-items: baseline;
    gap: 18px;
    font-family: var(--display);
    text-transform: none;
    letter-spacing: -0.01em;
}
.sec-num b {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-22px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.sec-num span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-soft);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.milestone-on .sec-num b,
.milestone-on .sec-num span { opacity: 1; transform: none; }
.section-dark .sec-num b {
    background: var(--grad-text-bright);
    -webkit-background-clip: text; background-clip: text;
}
.section-dark .sec-num span { color: var(--on-ink-soft); }
@media (max-width: 768px) {
    .sec-num b { font-size: 2rem; }
    /* rail is hidden on mobile, so labels are always visible */
    .sec-num b, .sec-num span { opacity: 1; transform: none; }
}

/* Flowing gradient — the pan that keeps key words alive */
@keyframes gradPan {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

/* Kinetic headline: JS wraps hero h1 words in .w spans */
@keyframes wordUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1 .w {
    display: inline-block;
    opacity: 0;
    animation: wordUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero h1 .wg {
    background: var(--grad-text);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: wordUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               gradPan 7s ease-in-out 1s infinite alternate;
}

/* Livelier hovers */
.service-row:hover { background: linear-gradient(90deg, rgba(232, 139, 28, 0.08), transparent 55%); }
.portfolio-card { transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.portfolio-card:hover { transform: translateY(-6px); }
.btn-ink:hover, .btn-accent { background-size: 200% 100%; }
.btn-ink:hover { background-image: var(--grad); animation: gradPan 3s ease-in-out infinite alternate; }

/* Pre-states: hidden until the scene enters the viewport */
.hero-art .hero-sun {
    transform-box: fill-box; transform-origin: center;
    opacity: 0; transform: scale(0.35);
}
.hero-art .ring {
    transform-box: fill-box; transform-origin: center;
    opacity: 0; transform: scale(0.6);
}

/* Entrance keyframes */
@keyframes sunIn {
    0%   { opacity: 0; transform: scale(0.35); }
    60%  { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes ringIn {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

/* Idle keyframes */
@keyframes sunBreathe {
    from { transform: scale(1); }
    to   { transform: scale(1.03); }
}
@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.4; }
}

/* 1. The sun appears */
.hero-art.in .hero-sun {
    animation: sunIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards,
               sunBreathe 7s ease-in-out 3.4s infinite alternate;
}

/* 2. The rings radiate outward, one by one — then keep pulsing outward */
.hero-art.in .ring-1 { animation: ringIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards, ringPulse 12s ease-in-out 3.4s infinite; }
.hero-art.in .ring-2 { animation: ringIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s    forwards, ringPulse 12s ease-in-out 4.9s infinite; }
.hero-art.in .ring-3 { animation: ringIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.25s forwards, ringPulse 12s ease-in-out 6.4s infinite; }
.hero-art.in .ring-4 { animation: ringIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.5s  forwards, ringPulse 12s ease-in-out 7.9s infinite; }


/* Expressive layer responsive */
@media (max-width: 1024px) {
    .hero-art { top: -30px; right: -50px; width: 420px; opacity: 0.85; }
}
@media (max-width: 768px) {
    .hero-art { top: 0; right: -110px; width: 340px; opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
