/* SKOOLS IT Consulting — shared styles (index, projects, checklist)
   Palette retained from the original page: ink / teal / green / cream / cloud / blush. */

:root {
    --ink: #17222C;
    --teal: #3EB6B6;
    --green: #6FA83A;
    --cream: #FAF7F2;
    --cloud: #D8ECEC;
    --blush: #F4E3DC;

    /* text-safe variants (AA on cream/white) */
    --teal-ink: #1C6F6F;
    --coral: #E5755D;
    --coral-ink: #C74C35;
    --green-ink: #4A7820;

    --bg: var(--cream);
    --surface: #FFFFFF;
    --surface-2: #F1EDE6;
    --text: var(--ink);
    --text-soft: #4B5A63;
    --border: rgba(23, 34, 44, 0.14);
    --rule: rgba(23, 34, 44, 0.22);
    --accent-text: var(--coral-ink);
    --green-text: var(--green-ink);

    --font-display: 'Fraunces', Georgia, serif;
    --font-ui: 'Manrope', system-ui, sans-serif;
    --font-mono: 'Manrope', system-ui, sans-serif;

    --fs-xs:   clamp(0.75rem, 0.73rem + 0.1vw, 0.8rem);
    --fs-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
    --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-h4:   clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    --fs-h3:   clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
    --fs-h2:   clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
    --fs-h1:   clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);

    --space-section: clamp(3.5rem, 2rem + 5vw, 6.5rem);
    --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
    --radius: 18px;

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #10171D; --surface: #17222C; --surface-2: #1C2A35;
        --text: #F2F5F4; --text-soft: #A9B7BC;
        --border: rgba(255, 255, 255, 0.12); --rule: rgba(255, 255, 255, 0.2);
        --accent-text: #F0836D; --green-text: #93C760;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #10171D; --surface: #17222C; --surface-2: #1C2A35;
    --text: #F2F5F4; --text-soft: #A9B7BC;
    --border: rgba(255, 255, 255, 0.12); --rule: rgba(255, 255, 255, 0.2);
    --accent-text: #F0836D; --green-text: #93C760;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text);
    font-family: var(--font-ui); font-size: var(--fs-body); line-height: 1.6;
    margin: 0; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.display { font-family: var(--font-display); font-optical-sizing: auto; letter-spacing: -0.01em; font-weight: 600; }
.display em { font-style: italic; color: var(--accent-text); }
.card h3, .pillar .head h3, .tabpanel h3, .models h4, .engage-row h3, .split blockquote p:first-child, .unit legend h2, .panel-head h2 { font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 600; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav (the one place glass earns it: floating, keeps context) ---------- */
nav.site { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(1px)) {
    nav.site { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    nav.site { background: var(--bg); backdrop-filter: none; }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand .brand-mark { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.brand-word .it { color: var(--green-text); }
.brand-word .ed { color: var(--accent-text); }
.nav-links { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.9rem); font-weight: 600; font-size: var(--fs-sm); }
.nav-links a:not(.btn) { color: var(--text-soft); transition: color 150ms var(--ease); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent;
    color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 0.95rem;
}
.icon-btn:hover { border-color: var(--coral); }
.icon-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 880px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 520px) { .nav-links .nav-cta { display: none; } .brand-word { font-size: 1rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 4px; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.85rem 1.35rem; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--rule); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--coral); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.nav-cta { padding: 0.6rem 1rem; }
.arrow-link { font-weight: 700; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-text); }
.arrow-link span { transition: transform 150ms var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Section shell ---------- */
section { padding: var(--space-section) 0; }
/* label chip, joined to its heading by a dashed teal connector */
p.kicker, .section-head p.kicker { position: relative; display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: #FAF7F2; padding: 0.4rem 0.65rem; border-radius: 2px; margin: 0 0 1.5rem; }
p.kicker::after { content: ''; position: absolute; left: 0.9rem; top: 100%; height: 1.5rem; border-left: 2px dashed var(--coral); }
.center p.kicker::after { left: 50%; transform: translateX(-1px); }
:root[data-theme="dark"] p.kicker, :root[data-theme="dark"] .section-head p.kicker { background: var(--coral); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) p.kicker, :root:not([data-theme="light"]) .section-head p.kicker { background: var(--coral); color: var(--ink); } }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: var(--fs-h2); line-height: 1.1; margin: 0 0 0.9rem; }
.section-head p { color: var(--text-soft); margin: 0; }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }

/* ---------- Pillar tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.tag::before { content: ''; width: 9px; height: 9px; border-radius: 2px; background: var(--dot, var(--teal)); }
.tag.ai { --dot: var(--ink); }
:root[data-theme="dark"] .tag.ai { --dot: #F2F5F4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.ai { --dot: #F2F5F4; } }
.tag.lxd { --dot: var(--green); }
.tag.it { --dot: var(--teal); }
.tag.good { --dot: #E39B85; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.3rem 0.6rem; border-radius: 3px; background: var(--surface); border: 1px solid var(--border); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Browser frame for real screenshots ---------- */
.frame { border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 24px 48px -28px rgba(23,34,44,.45); overflow: hidden; background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.frame-bar span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-soft); margin-left: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.footer-tag { color: var(--text-soft); font-size: var(--fs-sm); max-width: 46ch; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: var(--fs-sm); font-weight: 600; }
.footer-links a:hover { color: var(--accent-text); }

/* ---------- Forms ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
form.brief { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.8rem; }
form.brief label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; }
form.brief input, form.brief select, form.brief textarea {
    width: 100%; background: transparent; border: none; border-bottom: 1.5px solid var(--rule);
    padding: 0.75rem 0.1rem; font-family: var(--font-ui); font-size: var(--fs-body); color: var(--text); border-radius: 0;
}
form.brief select option { color: #17222C; }
form.brief input:focus, form.brief select:focus, form.brief textarea:focus { outline: none; border-color: var(--coral); }
form.brief textarea { resize: vertical; min-height: 7rem; }
.privacy { font-size: var(--fs-xs); color: var(--text-soft); margin: 0; max-width: 70ch; }
.form-status { font-size: var(--fs-sm); margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--accent-text); font-weight: 700; }
.form-status.err { color: #B2432F; }

/* ---------- Peg components: dotted ground, grid canvas, corner ticks, bento, tabs, dark band ---------- */
.canvas {
    position: relative; background-color: var(--cloud);
    padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: grid; place-items: center;
}
.canvas.green { background-color: color-mix(in srgb, var(--green) 28%, var(--cream)); }
.canvas.blush { background-color: var(--blush); }
:root[data-theme="dark"] .canvas { background-color: #1B2E36; } :root[data-theme="dark"] .canvas.green { background-color: #22311B; } :root[data-theme="dark"] .canvas.blush { background-color: #33272A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .canvas { background-color: #1B2E36; } :root:not([data-theme="light"]) .canvas.green { background-color: #22311B; } :root:not([data-theme="light"]) .canvas.blush { background-color: #33272A; } }
.canvas.ink { background-color: color-mix(in srgb, var(--ink) 18%, var(--bg)); }
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ''; position: absolute; width: 9px; height: 9px; border: 1px solid var(--rule); background: var(--bg); pointer-events: none; }
.ticks::before { top: -5px; left: -5px; }
.ticks::after { bottom: -5px; right: -5px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center { max-width: 52ch; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.card { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 15rem; }
.card h3 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.card p { font-size: var(--fs-sm); color: var(--text-soft); margin: 0; line-height: 1.5; }
.card svg.art { width: 100%; max-width: 220px; height: 96px; color: var(--text); }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.card.row { flex-direction: row; align-items: center; min-height: 0; }
.card.row svg.art { width: 96px; flex-shrink: 0; }
@media (max-width: 900px) { .bento .card, .bento .card.wide { grid-column: span 3; } }
@media (max-width: 600px) { .bento .card, .bento .card.wide { grid-column: span 6; } .card.row { flex-direction: column; align-items: flex-start; } }

.tabs { display: flex; gap: 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface-2); padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; border: 1px solid transparent; background: transparent; color: var(--text-soft); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.75rem 1rem; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--accent-text); border-color: var(--rule); }
.tabpanel { display: grid; grid-template-columns: 1.15fr 0.85fr; border: 1px solid var(--rule); border-top: none; border-radius: 0 0 6px 6px; overflow: hidden; margin-top: 1.25rem; border-top: 1px solid var(--rule); border-radius: 6px; }
.tabpanel[hidden] { display: none; }
.tabpanel .copy { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; background: var(--surface); }
.tabpanel h3 { font-size: var(--fs-h3); letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.tabpanel p { color: var(--text-soft); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; } }
.ticklist { list-style: none; padding: 0; margin: 0.2rem 0 0.4rem; display: grid; gap: 0.55rem; font-size: var(--fs-sm); }
.ticklist li { display: flex; gap: 0.6rem; align-items: baseline; }
.ticklist li::before { content: ''; width: 8px; height: 8px; border: 1.5px solid var(--teal); border-radius: 2px; flex-shrink: 0; transform: translateY(-1px); }

.band-dark { background: var(--ink); color: #F2F5F4; overflow: hidden; position: relative; }
:root[data-theme="dark"] .band-dark { background: #0B1116; border-block: 1px solid var(--border); }
.band-dark .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.band-dark h2 { font-size: var(--fs-h2); margin: 0 0 0.8rem; line-height: 1.08; }
.band-dark p { color: #B9C6CB; margin: 0 0 1.6rem; max-width: 44ch; }
.band-dark svg.art { width: 100%; height: auto; max-height: 260px; color: #F2F5F4; }
@media (max-width: 760px) { .band-dark .wrap { grid-template-columns: 1fr; } }

/* line-art: draws once on load, sits still afterwards */
.draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 1.6s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reveal (structure, not decoration: content arrives in reading order) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion is the user's choice ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
:root[data-motion="reduce"] *, :root[data-motion="reduce"] *::before, :root[data-motion="reduce"] *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
}
:root[data-motion="reduce"] .reveal { opacity: 1; transform: none; }

@media print {
    nav.site, footer, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Header backdrop: animated gradient gridlines (teal grid + drifting green glow) ---------- */
.hero, .page-hero {
    position: relative; isolation: isolate;
    background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--cloud) 30%, var(--bg)) 100%);
    --grid: 56px; --gl-a: rgba(62,182,182,.14); --gl-b: rgba(111,168,58,.32);
}
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-hero { --gl-a: rgba(62,182,182,.10); --gl-b: rgba(147,199,96,.24); background: linear-gradient(180deg, #10171D 0%, #13202A 100%); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero, :root:not([data-theme="light"]) .page-hero { --gl-a: rgba(62,182,182,.10); --gl-b: rgba(147,199,96,.24); background: linear-gradient(180deg, #10171D 0%, #13202A 100%); }
}
.hero::before, .hero::after, .page-hero::before, .page-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-size: var(--grid) var(--grid);
    animation: grid-pan 40s linear infinite;
}
.hero::before, .page-hero::before {
    background-image: linear-gradient(to right, var(--gl-a) 1px, transparent 1px), linear-gradient(to bottom, var(--gl-a) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
            mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 78%);
}
.hero::after, .page-hero::after {
    background-image: linear-gradient(to right, var(--gl-b) 1px, transparent 1px), linear-gradient(to bottom, var(--gl-b) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 60%);
            mask-image: radial-gradient(circle at center, #000 0%, transparent 60%);
    -webkit-mask-size: 55vmax 55vmax; mask-size: 55vmax 55vmax;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: grid-pan 40s linear infinite, glow-drift 18s ease-in-out infinite alternate;
}
@keyframes grid-pan { from { background-position: 0 0; } to { background-position: var(--grid) var(--grid); } }
@keyframes glow-drift {
    0%   { -webkit-mask-position: 0% 10%;  mask-position: 0% 10%; }
    50%  { -webkit-mask-position: 60% 90%; mask-position: 60% 90%; }
    100% { -webkit-mask-position: 100% 20%; mask-position: 100% 20%; }
}
@media print { .hero, .page-hero { background: none; } .hero::before, .hero::after, .page-hero::before, .page-hero::after { display: none; } }

.footer-motto { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 .6rem; color: var(--text); }
.footer-motto span { color: var(--accent-text); }

/* footer copyright line */
.footer-copy{margin-top:1.8rem;padding-top:1.2rem;border-top:1px solid var(--border)}
.footer-copy p{margin:0;font-size:.8rem;color:var(--text-soft)}
