/* ==========================================================================
   crafto.css — creative-agency design system for dijiji
   Loaded LAST (after site.css, ui.css, theme.css). It owns the palette,
   typography scale, buttons, grid lines and the section-level art direction.
   Structure, content and behaviour (JS) are untouched.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    --color-primary: #B5FF00;
    --color-black: #111111;
    --color-white: #FFFFFF;
    --color-light: #F5F5F5;
    --color-border: #E6E6E6;
    --color-muted: #5E5E5E;
    --color-light2: #f9f9f9;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
    --fs-hero: clamp(48px, 12.2vw, 212px);
    --fs-h2: clamp(46px, 8.2vw, 136px);
    --grid-line: var(--color-border);

    /* legacy names used by site.css / ui.css / theme.css now resolve to the system */
    --purple: var(--color-primary);
    --on-purple: var(--color-black);
    --sel: var(--color-primary);
    --display: "Rubik", "Arial Black", system-ui, sans-serif;
}

/* light is the primary theme: white page, black type, lime accent */
html[data-theme="light"] {
    --ink: var(--color-white);
    --ink-2: var(--color-white);
    --ink-3: var(--color-light);
    --ink-4: var(--color-black);
    --ink-5: #f9f9f9;
    --line: var(--color-border);
    --paper: var(--color-white);
    --paper-2: var(--color-light);
    --text: var(--color-black);
    --mute: var(--color-muted);
    --mute-2: var(--color-muted);
    --white: var(--color-white);
    --purple-t: var(--color-black);
    --grid-line: var(--color-border);
}

/* dark keeps the toggle working: black page, white type, lime accent */
html[data-theme="dark"] {
    --ink: var(--color-black);
    --ink-2: #181818;
    --ink-3: #1f1f1f;
    --ink-4: var(--color-white);
    --ink-5: #e8e8e8;
    --line: #2d2d2d;
    --paper: #161616;
    --paper-2: #1f1f1f;
    --text: var(--color-white);
    --mute: #a9a9a9;
    --mute-2: #a9a9a9;
    --white: var(--color-white);
    --purple-t: var(--color-primary);
    --grid-line: #262626;
}

/* ---------- 2. Base ---------- */
html[data-theme] body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.55;
}

html[data-theme] body::before { background: var(--ink); }

::selection { background: var(--color-primary); color: var(--color-black); }

:focus-visible {
    outline: 3px solid var(--color-black);
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: 0 0 0 6px var(--color-primary);
}

html[data-theme="dark"] :focus-visible,
html[data-theme="light"] .ink :focus-visible,
html[data-theme="light"] .foot :focus-visible {
    outline-color: var(--color-primary);
    box-shadow: none;
}

.grain { display: none; }

.progress {
    height: 4px;
    background: var(--color-black);
    box-shadow: 0 0 0 1px var(--color-primary);
}

html[data-theme="dark"] .progress { background: var(--color-primary); box-shadow: none; }

.cursor { background: var(--color-primary); box-shadow: 0 0 0 2px var(--color-black); }
.ctag { background: var(--color-black); color: var(--color-primary); }

/* small labels: readable sentence-case chips instead of tracked monospace caps */
.mono {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* ---------- 3. Thin vertical grid lines (reference signature) ---------- */
.hero,
.sec,
.tunnel,
.cloak-sec { position: relative; }

/*.hero::before,
.sec.paper::before,
.sec.ink::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: min(var(--wrap), calc(100% - var(--gut) - var(--gut-r)));
    transform: translateX(-50%);
    background:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x,
        linear-gradient(to left, var(--grid-line) 1px, transparent 1px) 100% 0 / 1px 100% no-repeat;
    pointer-events: none;
    z-index: 0;
}
    */
html[data-theme="light"] .sec.ink::before { --grid-line: #272727; }
html[data-theme="dark"] .sec.ink::before { --grid-line: #232323; }

.sec > .wrap,
.hero > .wrap { position: relative; z-index: 1; }

@media (max-width: 700px) {
    .hero::before,
    .sec.paper::before,
    .sec.ink::before { background-size: 50% 100%, 1px 100%; }
}

/* ---------- 4. Header / navigation ---------- */
html[data-theme] .top {
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.top .wrap { padding-block: 16px; gap: 28px; }

.logo { color: var(--text); }
.logo .wm { height: 36px; }

/* the dots of the wordmark carry the lime, outlined so they hold on white */
.wm circle,
html[data-theme="light"] .wm circle,
html[data-theme="light"] .receipt .logo .wm circle {
    fill: var(--color-primary);
    stroke: var(--color-black);
    stroke-width: 5px;
}

.foot .wm circle { stroke: none; }
.receipt .wm circle { stroke: var(--color-black); }

html[data-theme] .nav { gap: clamp(20px, 2.4vw, 38px); }

html[data-theme] .nav a {
    position: relative;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -.005em;
    padding-block: 6px;
    background: linear-gradient(var(--color-primary), var(--color-primary)) 0 88% / 0 .42em no-repeat;
    transition: background-size .35s var(--ease), color .2s;
}

html[data-theme] .nav a:hover,
html[data-theme] .nav a[aria-current] {
    color: var(--color-black);
    background-size: 100% .42em;
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a[aria-current] { color: var(--color-white); }

html[data-theme] .theme-toggle {
    border: 1.5px solid var(--text);
    color: var(--text);
    background: transparent;
}

html[data-theme] .theme-toggle:hover {
    background: var(--color-primary);
    border-color: var(--text);
    color: var(--color-black);
    transform: rotate(-12deg);
}

html[data-theme] .burger {
    border: 1.5px solid var(--text);
    color: var(--text);
    background: transparent;
}

html[data-theme] .burger:hover,
html[data-theme] .burger:focus-visible {
    background: var(--color-primary);
    border-color: var(--text);
    color: var(--color-black);
}

/* ---------- 5. Buttons ---------- */
.btn {
    gap: 12px;
    padding: 18px 30px;
    font: 600 17px/1 var(--body);
    letter-spacing: -.005em;
    border-radius: 999px;
    transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease);
}

.top .btn { padding: 13px 22px; font-size: 15.5px; }

/* primary: black pill, lime on hover */
html[data-theme] .btn-prpl,
html[data-theme] .btn-purple,
html[data-theme] .btn-ink,
html[data-theme] .drawer-tel {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: 0 0 0 1.5px var(--color-black);
}

html[data-theme] .btn-prpl:hover,
html[data-theme] .btn-purple:hover,
html[data-theme] .btn-ink:hover,
html[data-theme="light"] .btn-purple:hover,
html[data-theme] .drawer-tel:hover {
    background: var(--color-primary);
    color: var(--color-black) !important;
    box-shadow: 0 0 0 1.5px var(--color-black);
}

/* on black surfaces the primary flips to lime so it keeps its weight */
html[data-theme="dark"] .btn-prpl,
html[data-theme="dark"] .btn-purple,
html[data-theme="light"] .ink .btn-prpl,
html[data-theme="light"] .foot .btn-prpl {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: none;
}

html[data-theme="dark"] .btn-prpl:hover,
html[data-theme="dark"] .btn-purple:hover,
html[data-theme="light"] .ink .btn-prpl:hover,
html[data-theme="light"] .foot .btn-prpl:hover {
    background: var(--color-primary);
    color: var(--color-black) !important;
    box-shadow: none;
}

html[data-theme] .btn-ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--text);
}

html[data-theme] .btn-ghost:hover {
    background: var(--color-primary);
    color: var(--color-black) !important;
    box-shadow: inset 0 0 0 1.5px var(--color-black) !important;
}

.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.hdr-tel:hover svg { transform: rotate(-14deg); }

/* ---------- 6. Hero ---------- */
.hero {
    background: var(--ink);
    overflow: hidden;
}

    .hero .glow {
        /* the lime sun: a solid circle the headline overlaps */
        inset: auto;
        top: clamp(70px, 9vw, 150px);
        right: clamp(-120px, -6vw, -30px);
        width: clamp(260px, 44vw, 700px);
        height: auto;
        max-width: none;
        max-height: none;
        aspect-ratio: 1;
        border-radius: 50%;
        background: radial-gradient(circle at center, rgba(181, 255, 0, .28) 0%, transparent 58%);
        opacity: 1 !important;
        z-index: 0;
        animation: sun-in 1.3s var(--ease) both, sun-bob 11s ease-in-out 1.4s infinite;
    }

/* black outline ring orbiting the sun 
.hero .glow::before {
    content: "";
    position: absolute;
    inset: -9%;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    clip-path: inset(0 0 46% 0);
    animation: ring-spin 28s linear infinite;
}
    */

/* small black plus sign 
.hero .glow::after {
    content: "";
    position: absolute;
    right: 4%;
    top: -16%;
    width: clamp(26px, 3.2vw, 46px);
    aspect-ratio: 1;
    background:
        linear-gradient(var(--text), var(--text)) 50% 0 / 3px 100% no-repeat,
        linear-gradient(var(--text), var(--text)) 0 50% / 100% 3px no-repeat;
    animation: ring-spin 18s linear infinite reverse;
}
    */
@keyframes sun-in { from { transform: scale(.4); opacity: 0; } }
@keyframes sun-bob { 50% { transform: translate3d(-2.5vw, 2vw, 0); } }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.hero .wrap.inner { z-index: 2; }

.eyebrow {
    display: inline-flex;
    gap: 10px;
    padding: 9px 18px 9px 14px;
    border: 1.5px solid var(--text);
    border-radius: 999px;
    background: var(--ink);
    color: var(--text);
    font: 500 15px/1.2 var(--body);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: clamp(18px, 2.4vw, 32px);
}

html[data-theme] .hero .eyebrow { color: var(--text); }

.dot {
    width: 11px;
    height: 11px;
    background: var(--color-primary);
    box-shadow: 0 0 0 1.5px var(--color-black);
    animation: ping 2.2s infinite;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 1.5px var(--color-black), 0 0 0 1.5px rgba(181, 255, 0, .9); }
    70%, 100% { box-shadow: 0 0 0 1.5px var(--color-black), 0 0 0 13px rgba(181, 255, 0, 0); }
}

.mega {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: .84;
    letter-spacing: -.055em;
}

html[data-theme] .hero .mega,
html[data-theme] .hero .mega .heavy { color: var(--text); }

.mega .heavy { font-weight: 800; }

/* line 3: black type on a lime marker, lights up with the neon sign */
.ln3 {
    margin-top: calc(var(--fs-hero) * .25);
    font-size: clamp(26px, 5.2vw, 88px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.08;
}

html[data-theme] .typed,
html[data-theme="light"] .typed {
    display: inline;
    color: var(--color-black);
    padding: 0 1rem .4rem 1rem;
    background: linear-gradient(var(--color-primary), var(--color-primary)) 0 4% / 100% 1.1em no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

html[data-theme="dark"] .typed { color: var(--color-black); }

.typed-glow { display: none; }

html[data-theme] .hero .nf { color: var(--color-muted); }

.hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 110px);
    margin-top: clamp(28px, 3.6vw, 56px);
}

html[data-theme] .lede,
html[data-theme="light"] .hero .lede {
    color: var(--text);
    font-size: clamp(19px, 1.9vw, 26px);
    line-height: 1.38;
    max-width: 45ch;
}

.lede strong {
    font-weight: 700;
    color: var(--color-black);
    background: linear-gradient(var(--color-primary), var(--color-primary)) 0 88% / 100% 87% no-repeat;
}

.cta-row { gap: 14px; margin-top: 34px; }

/* facts: open columns divided by thin black rules, no boxes */
.facts {
    background: none;
    /* border: 0; */
    border-radius: 2rem;
    gap: 0;
    overflow: visible;
}

.facts div {
    background: none;
    /* padding: 18px 0 24px; 
    border: 1px solid #4b4b4b;*/
}

.facts div:nth-child(even) { border-left: 1px solid var(--line); }
.facts div:nth-child(n+3) { border-top: 1px solid var(--line); }

.facts b {
    letter-spacing: -.035em;
    line-height: 1.05;
}

.facts span { color: var(--mute); font-size: 15px; display: block; margin-top: 6px; }
/* seal: lime stamp */
.seal circle { fill: var(--color-primary); stroke: var(--color-black); stroke-width: 1.5; }
.seal text { fill: var(--color-black); }

/* the torch overlay: black with a lime-rimmed beam */
.hero .dark i {
    background: radial-gradient(circle 400px at 50% 50%,
        transparent 0,
        transparent calc(var(--r) * 1.056),
        rgba(181, 255, 0, .75) calc(var(--r) * 1.1424),
        rgba(17, 17, 17, .96) calc(var(--r) * 1.55));
}

/* ---------- 7. Marquee ---------- */
.marq {
    background: var(--color-primary);
    color: var(--color-black);
    border-block: 2px solid var(--color-black);
    padding-block: 20px;
}

.marq span { font-weight: 800; letter-spacing: -.035em; font-size: clamp(26px, 3.6vw, 48px); }
.marq span::after { content: "✺"; font-weight: 400; }

/* ---------- 8. Tunnel ---------- */
.tunnel { background: var(--ink); }

.tun-glow { background: radial-gradient(circle at center, rgba(181, 255, 0, .38) 0%, transparent 58%); }

.tun-dots {
    background-image: radial-gradient(var(--text) 1px, transparent 1.2px);
    opacity: .16;
}

.tun-ring.a { border: 2px solid var(--color-primary); }
.tun-ring.b { border: 1.5px dashed var(--text); opacity: .35; }

.tun-title .mono {
    color: var(--color-black);
    background: var(--color-primary);
    padding: 8px 18px;
    border-radius: 999px;
    letter-spacing: 0;
    margin-bottom: 26px;
    font-weight: 600;
}

.tun-title h2 {
    font-weight: 800;
    font-size: clamp(56px, 11vw, 176px);
    letter-spacing: -.06em;
    line-height: .86;
    color: var(--text);
}

.tun-title h2 b { font-weight: 800; }
html[data-theme] .tun-title p { color: var(--mute); }

.tun-card {
    border-radius: 18px;
    box-shadow: 0 30px 50px -24px rgba(17, 17, 17, .5), 0 0 0 2px var(--color-black);
}

.tun-card:hover { box-shadow: 0 30px 60px -20px rgba(17, 17, 17, .5), 0 0 0 4px var(--color-primary), 0 0 0 6px var(--color-black); }

.tun-card span {
    font: 600 13px/1.2 var(--body);
    letter-spacing: 0;
    text-transform: none;
    background: linear-gradient(transparent, rgba(17, 17, 17, .92));
}

.tun-prompt { color: var(--text); }
.tun-prompt i { background: linear-gradient(var(--text), transparent); }

/* ---------- 9. Section headings ---------- */
.sec { padding-block: clamp(84px, 11vw, 168px); }
.sec-head { gap: 28px 64px; margin-bottom: clamp(44px, 6vw, 96px); }

.sec-head .mono,
html[data-theme] .ink .sec-head .mono,
.faq .mono {
    display: inline-block;
    width: fit-content;
    background: var(--color-primary);
    color: var(--color-black) !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 22px;
}

.h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.h2 b { font-weight: 800; }

.sec-head p,
html[data-theme] .ink .sec-head p {
    color: var(--mute);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.5;
    max-width: 100%;
}

/* ---------- 10. Work (projects) ---------- */
html[data-theme] .paper { background: var(--ink); color: var(--text); }
html[data-theme="light"] .work.paper { background: var(--color-light); }
html[data-theme="light"] .work.paper::before { --grid-line: var(--color-border); }

.proj { gap: 20px; }

.proj .meta {
    border-bottom: 0;
    padding-bottom: 0;
    align-items: baseline;
}

.proj h3 {
    font-weight: 800;
    font-size: clamp(30px, 3.4vw, 52px);
    letter-spacing: -.045em;
    line-height: .95;
}

.proj .meta p { color: var(--mute); font-size: 16px; }

.proj .go {
    font: 600 14px/1 var(--body);
    padding: 11px 16px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1.5px var(--text);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.proj:hover .go { background: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--color-black); color: var(--color-black); }

/* the shot sits on a big rounded plate that floods lime on hover */
.proj .shot {
    border-radius: 36px;
    box-shadow: inset 0 0 0 1.5px var(--color-border);
    padding: 0;
    transition: background-color .5s var(--ease);
}

html[data-theme="dark"] .proj .shot { background: #1c1c1c; box-shadow: inset 0 0 0 1.5px var(--line); }
.proj:hover .shot,
.proj:focus-visible .shot { background: var(--color-primary); }
html[data-theme="dark"] .proj:hover .shot,
html[data-theme="dark"] .proj:focus-visible .shot { background: var(--color-primary); }

.proj .desk { box-shadow: 0 24px 40px -22px rgba(17, 17, 17, .55), 0 0 0 1.5px var(--color-black); }

@media (min-width: 761px) {
    .track .proj:nth-child(even) { margin-top: clamp(0px, 4vw, 64px); }
}

.hint { color: var(--text); }
.hint .bar2 { height: 4px; background: var(--color-border); }
.hint .bar2 i { background: var(--color-black); }
html[data-theme="dark"] .hint .bar2 i { background: var(--color-primary); }

/* ---------- 11. Package (black block) ---------- */
html[data-theme="light"] .sec.ink,
html[data-theme="light"] .foot {
    --ink: var(--color-black);
    --ink-2: #181818;
    --ink-3: #202020;
    --ink-4: var(--color-white);
    --line: #2f2f2f;
    --paper: var(--color-black);
    --text: var(--color-white);
    --mute: #ababab;
    --mute-2: #ababab;
    --purple-t: var(--color-primary);
    background: var(--color-light2);
    color: var(--color-black);
}

html[data-theme="dark"] .sec.ink { background: #0b0b0b; }

.package-tabs {
    display: flex;
    width: fit-content;
    margin: 0 auto clamp(28px, 4vw, 56px);
    padding: 5px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--color-black);
}

.package-tab {
    min-width: 132px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--color-white);
    font: 700 15px/1 var(--body);
    cursor: pointer;
    transition: background .2s, color .2s, transform .2s;
}

.package-tab:hover { transform: translateY(-1px); }
.package-tab.is-active { background: var(--color-primary); color: var(--color-black); }
.package-tab:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.pkg { gap: clamp(36px, 6vw, 110px); }

.inc {
    gap: 1px;
    background: var(--line);
    border-radius: 32px;
}

html[data-theme="light"] .sec.band.ink.work.hz .inc > .rv { background: var(--color-light2); }
html[data-theme="light"] .sec.band.ink.work.hz .inc > .rv h3 { color: var(--color-black); }

html[data-theme] .inc > div {  color: var(--text); padding: clamp(18px, 2.2vw, 30px); gap: 12px; }

html[data-theme] .inc > div:not(.wide):hover { background: var(--color-primary); color: var(--color-black); }
html[data-theme] .inc > div:not(.wide):hover p { color: var(--color-black); }
html[data-theme] .inc > div:not(.wide):hover svg { stroke: var(--color-black); }
html[data-theme] .inc > div:not(.wide):hover .i-wa path:last-child { fill: var(--color-black) !important; }

.inc svg { width: 38px; height: 38px; stroke: var(--color-primary); }
.inc h3 { font-weight: 800; font-size: 22px; letter-spacing: -.025em; }
.inc p { color: var(--mute); }

html[data-theme] .inc > .wide {
    background: var(--color-primary);
    color: var(--color-black);
}

html[data-theme] .inc > .wide p { color: var(--color-black); }

html[data-theme] .inc > .wide .btn-ghost,
html[data-theme="light"] .inc > .wide .btn-ghost {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: none !important;
}

html[data-theme] .inc > .wide .btn-ghost:hover { background: var(--color-white); color: var(--color-black) !important; }

html[data-theme] .register .keys i.k { background: var(--color-primary); }

/* ---------- 12. Process ---------- */
html[data-theme] .stp .n {
    border: 2px solid var(--text);
    background: var(--ink);
    color: var(--text);
}

html[data-theme] .stp.on .n,
html[data-theme] .stp.past .n {
    background: var(--color-primary);
    color: var(--color-black);
    border-color: var(--color-black);
}

html[data-theme="dark"] .stp.on .n,
html[data-theme="dark"] .stp.past .n { border-color: var(--color-primary); }

html[data-theme] .stp.on .n { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 45%, transparent); }
.stp .t { font-weight: 700; letter-spacing: -.01em; }

html[data-theme] .stagecard {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 40px;
}

html[data-theme="dark"] .stagecard { background: #0b0b0b; box-shadow: 0 0 0 1px var(--line); }

.cp h3 { font-weight: 800; letter-spacing: -.04em; }
.cp .big { -webkit-text-stroke: 1.5px var(--color-primary); }

/* ---------- 13. Curtain / stage ---------- */
html[data-theme] .cloak-sec { background: var(--color-black); }
html[data-theme] .cloak-top { color: var(--color-white); }
html[data-theme] .cloak-top span { color: var(--color-white); }
html[data-theme] .cloak { box-shadow: 0 0 0 1.5px var(--color-primary); border-radius: 40px; }
.cloak .plate { background: radial-gradient(60% 70% at 50% 50%, rgba(181, 255, 0, .16), transparent 72%), var(--color-black); }

/* ---------- 14. FAQ ---------- */
html[data-theme] .faq .h2 { color: var(--text); }
.qa { border-top: 2px solid var(--text); }
details { border-bottom: 1.5px solid var(--text); }

summary {
    font-weight: 700;
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -.025em;
    padding-block: 28px;
    transition: padding .3s var(--ease);
}

summary:hover { padding-left: 14px; }

summary .pm {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--text);
    transition: background-color .3s var(--ease), transform .45s var(--ease-spring);
}

summary:hover .pm { background: var(--color-primary); }
    summary:hover .pm::before {
        background: var(--color-black) !important;
    }
    summary:hover .pm::after {
        background: var(--color-black)!important;
    }

details[open] summary .pm {
    background: var(--color-primary);
    border-color: var(--color-black);
    transform: rotate(180deg);
}

details[open] summary .pm::before {
        background: rgb(0 0 0);
}
    details[open] summary .pm::after {
        background: rgb(0 0 0);
    }

details p { color: var(--mute); font-size: 18px; max-width: 100%; }

/* ---------- 15. Final call to action (lime slab) ---------- */
html[data-theme] .final {
    background: var(--color-primary);
    color: var(--color-black);
    padding-block: clamp(90px, 12vw, 190px);
}



html[data-theme] .final .mono,
html[data-theme="light"] .final .mono {
    background: var(--color-black);
    color: var(--color-primary);
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block;
}

.final .wrap { position: relative; z-index: 1; }

.final .giant {
    font-size: clamp(54px, 12.4vw, 206px);
    font-weight: 800;
    line-height: .86;
    letter-spacing: -.06em;
    margin: 26px 0 48px;
    color: var(--color-black);
}

.final .giant b { font-weight: 800; }
.final .giant span { font-weight: 800; }
.final .giant .caret { background: var(--color-black); }

html[data-theme] .final .secret { color: var(--color-black); font-size: clamp(19px, 2vw, 26px); }
.final .row { border-top: 2px solid var(--color-black); }

html[data-theme] .final .btn-ink { background: var(--color-black); color: var(--color-white); }
html[data-theme] .final .btn-ink:hover { background: var(--color-white); color: var(--color-black); box-shadow: 0 0 0 1.5px var(--color-black); }

html[data-theme] .call { color: var(--color-black); }
html[data-theme] .call .ic { background: var(--color-black); color: var(--color-primary); }
.call .num { font-weight: 800; letter-spacing: -.045em; }
html[data-theme] .mailline { color: var(--color-black); }

/* ---------- 16. Footer ---------- */
html[data-theme] .foot {
    background: var(--color-black);
    color: var(--color-white);
    border-top: 0;
    padding-block: 72px 4px;
    position: relative;
    overflow: hidden;
}

html[data-theme] .foot .logo { color: var(--color-white); }
html[data-theme] .foot a:hover { color: var(--color-primary); }
html[data-theme] .foot-about,
html[data-theme] .foot-col ul,
html[data-theme] .foot address,
html[data-theme] .foot-facts dd { color: #b4b4b4; }
html[data-theme] .foot-facts dd strong { color: var(--color-white); }

.foot-col h2 {
    font: 700 18px/1.2 var(--body);
    letter-spacing: -.01em;
    text-transform: none;
    color: var(--color-primary);
}

html[data-theme] .foot-base { border-top-color: #2f2f2f; color: #9b9b9b; }

/* exact brand wordmark behind the footer base */
.foot-wordmark-wrap {
    position: relative;
    display: block;
    width: min(70%, 770px);
    margin: clamp(10px, 3vw, 40px) auto clamp(20px, 4vw, 56px);

}

.foot-wordmark {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.foot-wordmark-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    pointer-events: none;
}

/* ---------- 17. Floating bits ---------- */
.wa-dugme {
    background: var(--color-primary);
    color: var(--color-black) !important;
    box-shadow: 0 0 0 2px var(--color-black), 0 14px 30px rgba(17, 17, 17, .28);
}

.wa-dugme__yazi,
.wa-dugme:hover .wa-dugme__yazi,
.wa-dugme:focus-visible .wa-dugme__yazi { color: var(--color-black) !important; }

.wa-dugme::before {
    background: var(--color-primary);
    border-radius: inherit;
    pointer-events: none;
}

body:has(.wa-dugme:hover) .cursor,
body:has(.wa-dugme:hover) .ctag { opacity: 0; }

.wa-dugme:hover,
.wa-dugme:focus-visible {
    background: var(--color-primary);
    color: var(--color-black) !important;
    box-shadow: 0 0 0 2px var(--color-black), 0 14px 30px rgba(17, 17, 17, .28);
}

@keyframes waDalga {
    0% { box-shadow: 0 0 0 0 rgba(181, 255, 0, .6); }
    55%, 100% { box-shadow: 0 0 0 14px rgba(181, 255, 0, 0); }
}

/* ---------- 18. Scroll-driven motion (progressive enhancement) ---------- */
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .hero .glow {
            animation: sun-in 1.3s var(--ease) both, sun-parallax linear both;
            animation-timeline: auto, scroll(root);
            animation-range: normal, 0 90vh;
        }
        @keyframes sun-parallax { to { translate: -4vw 14vh; } }

        .sec-head .h2,
        .faq .h2,
        .final .giant {
            animation: head-reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }
        @keyframes head-reveal {
            from { clip-path: inset(0 0 100% 0); transform: translateY(.18em); }
            to { clip-path: inset(-5% -5% -5% -5%); transform: none; }
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .glow, .hero .glow::before, .hero .glow::after, .final::after { animation: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .seal-button { top: -86px; }
}

@media (max-width: 860px) {
    .top .wrap { padding-block: 12px; gap: 10px; }
    .logo .wm { height: 32px; }
    .sec-head { gap: 20px; }
    .hero .glow { top: 12px; width: 78vw; right: -28vw; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seal-button { width: 104px; height: 104px; top: -70px; right: 0; display:none }
    .final::before { width: 90vw; bottom: -40vw; }
}

@media (max-width: 560px) {
    .btn { padding: 16px 24px; font-size: 16px; }
    .cta-row .btn { flex: 1 1 100%; justify-content: center; }
    .eyebrow { font-size: 13.5px; padding: 8px 14px 8px 12px; }
    .sec { padding-block: 72px; }
    summary { padding-block: 22px; }
    .final .row { gap: 22px; }
    .package-tabs { width: min(100%, 380px); }
    .package-tab { min-width: 0; flex: 1; padding-inline: 14px; }
}

/* ---------- 20. Fixes: portfolio pin, URL pill, chat mock ---------- */
.proj .meta p.go { width: auto; display: inline-flex; align-self: flex-start; }
.work.hz .h2 { font-size: clamp(40px, 5.4vw, 88px); }
.work.hz .sec-head { margin-bottom: clamp(16px, 2.4vw, 36px); }
.work.hz .proj { width: min(40vw, 560px); }
@media (min-width: 761px) { .work.hz .track .proj:nth-child(even) { margin-top: 24px; } }

html[data-theme] .msg.me, html[data-theme] .chat .me { background: var(--color-primary); color: var(--color-black); }
html[data-theme] .msg.us, html[data-theme] .chat .us { background: #262626; color: var(--color-white); }

/* ---------- 11b. Package: Starter / Profesyonel panels ---------- */
.receipt ul[hidden],
.inc[hidden] { display: none !important; }

/* receipt: "upgrade" rows of the Profesyonel package sit on the dark strip */
.receipt li.lux span:first-child { letter-spacing: .02em; }

/* new Profesyonel icons: same hover language as the other cards */
.inc > div:hover .i-blog .bl { animation: blogline .7s var(--ease) both; }
.inc > div:hover .i-blog .bl2 { animation-delay: .08s; }
.inc > div:hover .i-blog .bl3 { animation-delay: .16s; }
.inc > div:hover .i-pin .pin { animation: pinhop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes blogline { from { transform: scaleX(0); transform-origin: 0 50%; } to { transform: scaleX(1); transform-origin: 0 50%; } }
@keyframes pinhop { 40% { transform: translateY(-3px); } 100% { transform: none; } }

/* ---------- 11c. Package: light theme legibility ---------- */
/* section intro text was #ababab on near-white */
html[data-theme="light"] #paket .sec-head p { color: var(--mute-light, #6d7280); }

/* hairlines follow the site's light borders instead of the dark ink grid */
html[data-theme="light"] #paket .inc { background: var(--color-border); border-color: var(--color-border); }
html[data-theme="light"] #paket .inc > div:not(.wide) p { color: #5b5f6b; }

/* lime icons vanish on white: seat them on a black chip (same black + lime pairing as the tabs and buttons) */
html[data-theme="light"] #paket .inc > div:not(.wide) > svg {
    box-sizing: content-box;
    width: 26px;
    height: 26px;
    padding: 10px;
    border-radius: 14px;
    background: var(--color-black);
    stroke: var(--color-primary);
    transition: transform .3s var(--ease);
}
html[data-theme="light"] #paket .inc > div:not(.wide):hover > svg { stroke: var(--color-primary); }
html[data-theme="light"] #paket .inc > div:not(.wide):hover .i-wa path:last-child { fill: var(--color-primary) !important; }
html[data-theme="light"] #paket .inc > div:not(.wide) .i-wa path:last-child { fill: var(--color-primary) !important; }

/* ---------- Seal: "10.000 TL'den başlayan" ---------- */
.seal circle.in { fill: none; stroke: var(--color-black); stroke-width: 1; stroke-dasharray: 1.5 3; stroke-linecap: round; opacity: .55; }
.seal .mid { font-size: 22px; }
.seal .mid2 { font: 800 10px var(--mono); letter-spacing: .08em; }
.seal .mid3 { font: 700 7.4px var(--mono); letter-spacing: .16em; }
