/* Glade Tech — workshop catalogue */

:root {
    --paper: #f2eee5;
    --paper-deep: #e8e2d4;
    --card: #fbf9f4;
    --ink: #161513;
    --ink-soft: #4a4741;
    --ink-faint: #7a756c;
    --rule: rgba(22, 21, 19, 0.16);
    --rule-strong: rgba(22, 21, 19, 0.85);
    --yellow: #ffd02b;
    --blue: #2346e0;
    --guru-art-bg: #f0ba40; /* matches the working Guru artwork */

    --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --font-serif: "Instrument Serif", Georgia, serif;

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --max: 1240px;
    --shadow-cut: 0 1px 0 rgba(22, 21, 19, 0.08), 0 22px 34px -22px rgba(22, 21, 19, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
    font-family: var(--font-mono); font-size: 0.85rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.mono, .spec, .eyebrow, .section-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- Links & buttons ---------- */

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    text-decoration: none; padding: 0.95rem 1.4rem;
    border: 2px solid var(--ink); border-radius: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--yellow); }
.btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--yellow); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--yellow); }

.link-arrow {
    font-weight: 600; text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.link-arrow:hover { background: var(--yellow); }


/* ---------- Tags ---------- */

.tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1.5px solid var(--ink); background: var(--card);
    padding: 0.2rem 0.6rem 0.2rem 0;
    white-space: nowrap;
}
.tag::before {
    content: ""; align-self: stretch; width: 1rem; margin: -0.2rem 0;
    border-right: 1.5px solid var(--ink);
}
.tag-dev::before {
    background: repeating-linear-gradient(-45deg, var(--ink) 0 3px, var(--yellow) 3px 7px);
}
.tag-live::before { background: var(--yellow); }

/* ---------- Nav ---------- */

.nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--rule); }

.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    height: 4.25rem;
}

.wordmark {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em;
    text-decoration: none;
}
.wordmark-mark {
    width: 1.35rem; height: 1.35rem; background: var(--yellow);
    border: 2px solid var(--ink); transform: rotate(-6deg);
    box-shadow: 3px 3px 0 var(--ink);
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a:not(.btn) {
    font-size: 0.95rem; font-weight: 500; text-decoration: none;
    border-bottom: 2px solid transparent; padding-bottom: 2px;
}
.nav-links a:not(.btn):hover { border-bottom-color: var(--yellow); }
.nav-links .btn { padding: 0.55rem 0.9rem; font-size: 0.9rem; box-shadow: 3px 3px 0 var(--yellow); }

.menu { display: none; position: relative; }
.menu summary {
    list-style: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
    border: 1.5px solid var(--ink); padding: 0.45rem 0.75rem;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--yellow); }
.menu-panel {
    position: absolute; right: 0; top: calc(100% + 0.5rem);
    background: var(--card); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
    min-width: 13rem; padding: 0.5rem 0;
}
.menu-panel a {
    display: block; padding: 0.65rem 1.1rem; text-decoration: none; font-weight: 500;
}
.menu-panel a:hover { background: var(--yellow); }

/* ---------- Section scaffolding ---------- */

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }

.section-head {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-label { color: var(--ink); white-space: nowrap; }
.section-label b { font-weight: 500; background: var(--yellow); padding: 0.1rem 0.35rem; margin-right: 0.35rem; }
.section-head::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }

.h2 {
    font-size: clamp(2.3rem, 5.6vw, 4.6rem);
    font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
    max-width: 16ch;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 38rem; line-height: 1.55; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.45;
    -webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 70%);
            mask-image: linear-gradient(105deg, transparent 30%, #000 70%);
}

.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}

.eyebrow { color: var(--ink-soft); margin-bottom: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
.eyebrow span + span::before { content: "·"; margin-right: 1rem; }

.hero h1 {
    font-size: clamp(3rem, 6.9vw, 6.4rem);
    font-weight: 800; letter-spacing: -0.05em; line-height: 0.9;
    margin-bottom: 2rem;
}
.hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; }

.hero .lede { margin-bottom: 2.25rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Collage */
.collage { position: relative; aspect-ratio: 1 / 0.88; max-width: 560px; width: 100%; justify-self: end; }
.cut { position: absolute; background: var(--card); padding: 8px; box-shadow: var(--shadow-cut); }
.cut img { width: 100%; }
.cut figcaption {
    font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-faint); padding: 0.45rem 0.1rem 0; line-height: 1; white-space: nowrap;
}
@media (max-width: 680px) { .cut figcaption { font-size: 0.5rem; letter-spacing: 0.05em; } }
.cut::before {
    content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 20px;
    background: rgba(255, 238, 170, 0.78); transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.cut-house { right: 0; top: 4%; width: 80%; transform: rotate(1.5deg); z-index: 1; }
.cut-house figcaption { text-align: right; padding: 0.1rem 0.1rem 0.5rem; }
.cut-guru { left: 2%; bottom: 0; width: 37%; transform: rotate(-5deg); z-index: 2; }
.cut-guru::before { width: 52px; left: 45%; transform: translateX(-50%) rotate(5deg); }
.cut-bloom { right: 10%; bottom: 6%; width: 35%; transform: rotate(4deg); z-index: 2; }
.cut-bloom::before { width: 48px; transform: translateX(-50%) rotate(-6deg); }

/* ---------- Index: three areas ---------- */

.index { list-style: none; border-top: 1.5px solid var(--ink); }
.index-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
    gap: 1.5rem 2rem; align-items: start;
    padding: 2.25rem 0; border-bottom: 1.5px solid var(--ink);
}
.index-num {
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500;
    padding-top: 0.6rem;
}
.index-title {
    font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95;
}
.index-title small {
    display: block; margin-top: 0.75rem;
    font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-soft); line-height: 1.35;
}
.index-body { color: var(--ink-soft); padding-top: 0.45rem; }
.index-body p + p { margin-top: 0.85rem; }
.index-body strong { color: var(--ink); font-weight: 600; }
.index-cta { padding-top: 0.55rem; white-space: nowrap; }
.index-row .tag { margin-top: 1rem; }
.index-row:hover .index-num { background: var(--yellow); }
.index-num { justify-self: start; padding: 0.15rem 0.4rem; margin-top: 0.45rem; transition: background 0.2s ease; }


/* ---------- Chatacus ---------- */

.chatacus-intro {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.product-name {
    font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.product-name::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--yellow); border: 1.5px solid var(--ink); }
.chatacus-intro .lede { margin-top: 1.5rem; }

.tree {
    font-family: var(--font-mono); font-size: 0.86rem; list-style: none;
    border: 1.5px solid var(--ink); background: var(--card); padding: 1.25rem 1.4rem;
    box-shadow: 6px 6px 0 var(--ink);
}
.tree-title { font-size: 0.7rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.tree ul { list-style: none; }
.tree li { position: relative; line-height: 1.5; }
.tree ul ul { margin-left: 1.1rem; padding-left: 1.1rem; border-left: 1.5px solid var(--ink); }
.tree ul ul li { padding: 0.35rem 0 0.35rem 0.6rem; }
.tree ul ul li::before {
    content: ""; position: absolute; left: -1.1rem; top: 1.05rem; width: 1.4rem; height: 1.5px; background: var(--ink);
}
.tree .t-strong { font-weight: 500; color: var(--ink); }
.tree .t-note { color: var(--ink-faint); }
.tree .t-here { background: var(--yellow); padding: 0 0.3rem; }

.chatacus-cta { margin-top: 2rem; }

/* Chatacus family */
.cx-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3.5rem, 7vw, 6rem) clamp(2rem, 6vw, 5.5rem);
    margin-top: clamp(1rem, 3vw, 2rem);
}
.cx:nth-child(even) { margin-top: clamp(0rem, 8vw, 7rem); }
.cx-visual { position: relative; margin-bottom: 2.75rem; padding-right: 14%; }
.cx-main { position: relative; border: 1.5px solid var(--ink); background: var(--card); }
.cx-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cx-inset {
    position: absolute; right: 0; bottom: -2rem; width: 48%;
    background: var(--card); padding: 7px; box-shadow: var(--shadow-cut);
    transform: rotate(3deg); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cx-inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cx:nth-child(even) .cx-inset { transform: rotate(-3deg); }
.cx:hover .cx-inset { transform: rotate(0deg) translateY(-4px); }
.cx-num {
    position: absolute; left: -0.6rem; top: -0.9rem;
    font-family: var(--font-mono); font-weight: 500; font-size: 0.9rem;
    background: var(--yellow); border: 1.5px solid var(--ink); padding: 0.3rem 0.55rem;
    box-shadow: 3px 3px 0 var(--ink);
}
.cx:nth-child(2) .cx-num, .cx:nth-child(3) .cx-num { background: var(--card); }
.cx .spec { margin-bottom: 0.4rem; }
.cx h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 0.75rem; }
.cx > p:last-child { color: var(--ink-soft); max-width: 32rem; }

/* Proof */
.proof {
    margin-top: clamp(4.5rem, 9vw, 7rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1.5px solid var(--ink);
}
.proof-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.proof .tag { margin-bottom: 1rem; }
.proof-title { font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 28ch; }

.proof-shots { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.shot { background: var(--card); border: 1.5px solid var(--ink); padding: 6px 6px 0; }
.shot img { width: 100%; border: 1px solid rgba(22, 21, 19, 0.15); }
.shot figcaption {
    font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.55rem 0.15rem 0.6rem;
}
.shot-main { box-shadow: 6px 6px 0 var(--yellow); }
.proof-side { display: flex; flex-direction: column; gap: 1.5rem; }
.proof-side .shot { transform: rotate(1.5deg); }
.proof-quote-small { border-left: 4px solid var(--yellow); padding-left: 1rem; }
.proof-quote-small p { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.proof-quote-small .serif { font-weight: 400; }
.proof-quote-small cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Catalogue ---------- */








.studio-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.studio-claim { font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }


/* ---------- Education ---------- */

.education { background: var(--paper-deep); border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }

.edu-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.edu {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
    background: var(--card); border: 1.5px solid var(--ink);
    padding: clamp(1.5rem, 4vw, 3.5rem);
}
.edu + .edu { margin-top: clamp(1.5rem, 3vw, 2rem); }
.edu-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); }
.edu-flip .edu-art { order: 2; }
.edu-art { position: relative; max-width: 380px; width: 100%; justify-self: center; }
.edu-art-wide { max-width: 560px; }
.edu-art::before {
    content: ""; position: absolute; inset: 0; background: var(--blue);
    transform: translate(14px, 14px) rotate(3deg);
}
.edu-flip .edu-art::before { background: var(--yellow); border: 1.5px solid var(--ink); transform: translate(-14px, 14px) rotate(-2deg); }
.edu-art figure { position: relative; background: var(--card); border: 1.5px solid var(--ink); padding: 0.6rem 0.6rem 0; transform: rotate(-2deg); }
.edu-flip .edu-art figure { transform: rotate(1.5deg); }
.edu-art img { width: 100%; }
.edu-art figcaption {
    font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.55rem 0.1rem 0.6rem;
}
.edu h3 {
    font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
    margin: 1rem 0 1.25rem;
}
.edu h3 .serif { color: var(--blue); }
.edu p { color: var(--ink-soft); max-width: 34rem; }
.edu p + p { margin-top: 0.85rem; }
.edu .spec { margin-top: 1.5rem; }

.edu-note { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- About ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait { position: relative; width: 100%; max-width: 340px; margin: 1.5rem 0 0 1.5rem; }
.portrait-yellow { position: absolute; left: -1rem; top: -1rem; width: 110%; height: 108%; background: var(--yellow); transform: rotate(-5deg); }
.portrait-blue { position: absolute; left: -2.5rem; bottom: -2.5rem; width: 78%; height: 70%; background: var(--blue); transform: rotate(6deg); }
.portrait-frame { position: relative; margin: 1rem 0 0 0.75rem; background: var(--card); padding: 10px; transform: rotate(3deg); box-shadow: 0 20px 36px -16px rgba(22, 21, 19, 0.45); }
.portrait-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.portrait-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 14%; }
.crown { position: absolute; left: 8%; top: -8%; width: 38%; height: 27%; transform: rotate(-20deg); color: var(--ink); }
.portrait-label {
    position: relative; display: inline-block; margin-top: 3.25rem; margin-left: -0.5rem;
    background: var(--ink); color: var(--paper); padding: 0.4rem 0.7rem;
    font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
    transform: rotate(-2deg);
}

.about-copy .h2 { margin-bottom: 1.75rem; }
.about-copy p { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.about-copy p + p { margin-top: 1rem; }
.about-copy p strong { color: var(--ink); font-weight: 600; }


/* ---------- Contact ---------- */

.contact { padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6rem); }
.contact-title {
    font-size: clamp(3rem, 9.5vw, 8.5rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.9;
    max-width: 12ch; margin-bottom: 2rem;
}
.contact-title .serif { font-weight: 400; }
.contact .lede { margin-bottom: 2.5rem; }
.contact-email {
    display: inline-block; font-size: clamp(1.5rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.035em;
    text-decoration: none; background: var(--yellow); border: 2px solid var(--ink); padding: 0.4rem 1rem 0.5rem;
    box-shadow: 6px 6px 0 var(--ink); transition: transform 0.2s ease, box-shadow 0.2s ease;
    word-break: break-word;
}
.contact-email:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2.75rem; list-style: none; }
.contact-links a { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; border-bottom: 2px solid var(--yellow); }
.contact-links a:hover { background: var(--yellow); }
.contact-aside { margin-top: 2.5rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1.5px solid var(--ink); padding: 2rem 0 2.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; }
.footer-grid p + p { margin-top: 0.3rem; }
.footer-family { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-family a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer-family a:hover { border-bottom-color: var(--ink); }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .menu { display: block; }
    .hero-grid { grid-template-columns: 1fr; }
    .collage { justify-self: center; max-width: 520px; margin-top: 1rem; }
    .index-row { grid-template-columns: 4rem minmax(0, 1fr); }
    .index-body, .index-cta { grid-column: 2; }
    .index-body { padding-top: 0; }
    .chatacus-intro, .edu-head, .studio-intro { grid-template-columns: 1fr; align-items: start; }
    .tree { max-width: 30rem; }
    .proof-head, .proof-shots { grid-template-columns: 1fr; }
    .proof-head .btn { justify-self: start; }
    .edu, .edu-flip { grid-template-columns: 1fr; }
    .edu-flip .edu-art { order: 0; }
    .edu-art { max-width: 320px; }
    .edu-art-wide { max-width: 480px; }
    .about-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 280px; margin: 1.5rem 0 3.5rem 2rem; }
}

@media (max-width: 680px) {
    body { font-size: 1rem; }
    .cx-grid { grid-template-columns: 1fr; }
    .cx:nth-child(even) { margin-top: 0; }
    .index-row { grid-template-columns: 1fr; gap: 0.9rem; padding: 1.75rem 0; }
    .index-body, .index-cta { grid-column: 1; }
    .index-num { margin-top: 0; }
        .hero-actions .btn { width: 100%; justify-content: center; }
}
.hero .hero-sub { font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.4; max-width: 30ch; }

/* Education — the why */
.why {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem); align-items: start;
    border-top: 1.5px solid var(--ink); padding-top: clamp(2rem, 4vw, 3rem);
    margin-top: clamp(3.5rem, 7vw, 5.5rem);
}
.why-label { display: inline-block; background: var(--yellow); padding: 0.15rem 0.45rem; margin-bottom: 1.25rem; }
.why h3 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-bottom: 1.5rem; max-width: 16ch; }
.why h3 .serif { color: var(--blue); }
.why-intro p:not(.why-label) { color: var(--ink-soft); max-width: 36rem; }
.why-intro p + p { margin-top: 0.85rem; }
.why-intro strong { color: var(--ink); font-weight: 600; }

.refs { list-style: none; display: grid; gap: 1rem; padding-top: 0.5rem; }
.ref { background: var(--card); border: 1.5px solid var(--ink); padding: 1.1rem 1.25rem 1.2rem; }
.ref:nth-child(1) { transform: rotate(-0.8deg); box-shadow: 5px 5px 0 var(--blue); }
.ref:nth-child(2) { transform: rotate(0.6deg); box-shadow: 5px 5px 0 var(--yellow); }
.ref .spec { margin-bottom: 0.4rem; }
.ref-title { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.75rem; }
.ref .link-arrow { font-size: 0.95rem; }

.steps {
    grid-column: 1 / -1; list-style: none;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1.5px solid var(--ink); background: var(--card);
}
.steps li { padding: 1.1rem 1.25rem 1.25rem; position: relative; }
.steps li + li { border-left: 1.5px solid var(--ink); }
.steps li + li::before {
    content: "→"; position: absolute; left: -0.8rem; top: 50%; transform: translateY(-50%);
    width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
    background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 50%; font-size: 0.8rem;
}
.steps .mono { display: block; margin-bottom: 0.4rem; color: var(--ink); }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 1020px) {
    .why { grid-template-columns: 1fr; }
    .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps li:nth-child(3) { border-left: 0; }
    .steps li:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
    .steps li:nth-child(3)::before { content: none; }
}
@media (max-width: 680px) {
    .refs { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .steps li + li { border-left: 0; border-top: 1.5px solid var(--ink); }
    .steps li + li::before, .steps li:nth-child(3)::before { content: "↓"; left: 1.25rem; top: -0.8rem; transform: none; }
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-product { background: var(--ink); color: var(--paper); padding-left: 0.65rem; gap: 0.55rem; }
.tag-product::before { content: none; }
.tag-product b { font-weight: 500; background: var(--yellow); color: var(--ink); padding: 0 0.35rem; margin-right: -0.2rem; }

/* Mobile hero: bring the collage up into the first screen */
@media (max-width: 680px) {
    .hero { padding: 1.5rem 0 3.5rem; }
    .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .hero-copy { display: contents; }
    .hero .eyebrow { order: 1; margin-bottom: 1rem; font-size: 0.7rem; gap: 0.3rem 0.6rem; flex-wrap: nowrap; white-space: nowrap; }
    .hero .eyebrow span + span::before { margin-right: 0.6rem; }
    .hero .eyebrow span:first-child { display: none; }
    .hero .eyebrow span:nth-child(2)::before { content: none; }
    .hero h1 { order: 2; margin-bottom: 0.9rem; }
    .hero .hero-sub { order: 3; margin-bottom: 1.75rem; font-size: 1.15rem; }
    .collage { order: 4; margin: 0 auto 2.25rem; max-width: 400px; }
    .hero-actions { order: 5; }
}

/* External-link arrow (drawn, so phones don't swap in an emoji) */
.arr {
    display: inline-block; width: 0.8em; height: 0.8em; margin-left: 0.3em; vertical-align: -0.06em;
    fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; flex-shrink: 0;
}
.btn .arr { margin-left: -0.15em; }

/* Proof lifted to the top of the page */
.proof-lead { margin-top: 0; padding-top: 0; border-top: 0; }
.proof-note { margin-top: 0.75rem; color: var(--ink-soft); }

/* Work with Marc */
.marc-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; }
.marc-cta .lede { margin-bottom: 1.75rem; }
@media (max-width: 1020px) { .marc-cta { grid-template-columns: 1fr; align-items: start; } }

/* Hero collage cards are links: whole card clickable, gentle lift on hover */
.cut-link { position: absolute; inset: 0; z-index: 5; }
.cut-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.collage .cut { transition: translate 0.25s ease, box-shadow 0.25s ease; }
.collage .cut:has(.cut-link:hover), .collage .cut:has(.cut-link:focus-visible) {
    translate: 0 -6px; box-shadow: 0 1px 0 rgba(22, 21, 19, 0.08), 0 28px 38px -22px rgba(22, 21, 19, 0.5);
}
@media (prefers-reduced-motion: reduce) { .collage .cut:has(.cut-link:hover) { translate: none; } }

/* Educator enquiry on the Guru Simulator card */
.edu-cta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1.5px solid var(--ink); max-width: 34rem; }
.edu-cta-label { display: inline-block; background: var(--yellow); padding: 0.15rem 0.45rem; margin-bottom: 0.75rem; }
.edu .edu-cta p:not(.edu-cta-label) { color: var(--ink); }
.edu-cta .link-arrow { display: inline-block; margin-top: 0.9rem; }
