/* ==========================================================================
   andu creatives | visual alchemist
   All fonts are self-hosted – no connection to Google.
   ========================================================================== */

@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inconsolata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inconsolata"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inconsolata-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --ink: #edece8;
  --ink-2: rgba(237, 236, 232, 0.64);
  --ink-3: rgba(237, 236, 232, 0.4);
  --line: rgba(237, 236, 232, 0.14);
  --line-strong: rgba(237, 236, 232, 0.32);
  --paper: #cbcbcb;
  --paper-ink: #0a0a0a;
  --paper-ink-2: rgba(10, 10, 10, 0.64);
  --slate: #2b3a4d;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Inconsolata", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1320px;
  --gutter: clamp(16px, 3.5vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.mono, .label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.label { color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; }
.label.bullet::before { content: ""; width: 5px; height: 5px; background: currentColor; flex: none; }
.muted { color: var(--ink-3); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons (square, mono) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s; white-space: nowrap;
}
.btn:hover { border-color: var(--ink); }
.btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-dark { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-dark:hover { background: transparent; color: var(--bg); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { height: 30px; width: auto; flex: none; display: block; }
.logo-text { font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo-text small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-left: 14px; border-left: 1px solid var(--line-strong); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .btn { min-height: 46px; }
@media (max-width: 640px) { .nav-right .btn:not(.menu-btn) { display: none; } .nav-inner { height: 72px; } }
@media (max-width: 400px) { .logo-text { display: none; } }

.menu-btn { width: 66px; min-height: 46px; padding: 0; border: 1px solid var(--ink); position: relative; }
.menu-btn span { position: absolute; left: 50%; width: 20px; height: 1.5px; margin-left: -10px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); width: 18px; margin-left: -9px; }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); width: 18px; margin-left: -9px; }

/* Fullscreen-Menü */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); padding-top: 84px;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-open .nav { background: var(--bg); border-color: transparent; }
.menu .container { display: flex; flex-direction: column; min-height: calc(100svh - 84px); padding-top: 40px; padding-bottom: 40px; }
.menu-links { list-style: none; margin: 16px 0 40px; padding: 0; }
.menu-links li { border-bottom: 1px solid var(--line); overflow: hidden; }
.menu-links a {
  display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0;
  font-family: var(--serif); font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.1;
  transform: translateY(100%); transition: transform 0.6s var(--ease), color 0.3s;
}
.menu-links a .mono { color: var(--ink-3); }
.menu-links a:hover { color: var(--ink-2); }
.menu-open .menu-links a { transform: none; }
.menu-open .menu-links li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .menu-links li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .menu-links li:nth-child(4) a { transition-delay: 0.15s; }
.menu-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 150px 0 40px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero > .container:not(.hero-bottom) { will-change: transform, opacity; }
.hero-media .fallback {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 60% 50% at 75% 35%, rgba(43, 58, 77, 0.75), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(120, 112, 100, 0.22), transparent 70%),
    #0c0c0d;
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.06); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 45%, rgba(10,10,10,0.85) 100%); }
.hero-media.has-media::after { background: linear-gradient(rgba(10,10,10,var(--bg-dim, 0)), rgba(10,10,10,var(--bg-dim, 0))), linear-gradient(90deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.2) 55%, rgba(10,10,10,0) 80%), linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.45) 45%, rgba(10,10,10,0.9) 100%); }
@media (max-width: 860px) { .hero-media.has-media::after { background: linear-gradient(rgba(10,10,10,var(--bg-dim, 0)), rgba(10,10,10,var(--bg-dim, 0))), linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.6) 55%, rgba(10,10,10,0.9) 100%); } }
.hero-media img, .hero-media video, .section-bg img { filter: blur(var(--bg-blur, 0px)); }
.hero h1 { font-size: clamp(46px, 8.4vw, 124px); max-width: 1150px; }
.hero h1 .dim { color: var(--ink-3); }
.hero-sub { max-width: 500px; margin: 28px 0 36px; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 70px; }
.hero-info { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.7; }
.hero-info b { color: var(--ink); font-weight: 400; }
.hero-thumbs { display: flex; gap: 10px; }
.hero-thumb { position: relative; display: block; width: clamp(80px, 9vw, 130px); aspect-ratio: 4 / 3; border: 1px solid var(--line); opacity: 0.75; transition: opacity 0.3s, border-color 0.3s; }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb .label { position: absolute; left: 0; bottom: calc(100% + 8px); width: max-content; max-width: 240px; color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.hero-thumb:hover, .hero-thumb:focus-visible { opacity: 1; border-color: var(--ink); }
.hero-thumb:hover .label, .hero-thumb:focus-visible .label { opacity: 1; transform: none; }
.hero-thumbs:not(:hover) .hero-thumb:first-child { opacity: 1; border-color: var(--ink); }
@media (max-width: 640px) { .hero-thumbs { display: none; } }

/* Text rise (headlines) */
.rise .ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rise .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.rise.in .ln > span { transform: none; }
.rise.in .ln:nth-child(2) > span { transition-delay: 0.08s; }
.rise.in .ln:nth-child(3) > span { transition-delay: 0.16s; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
section[id] { scroll-margin-top: 84px; }
.section { padding: clamp(90px, 11vw, 160px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; align-items: end; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(40px, 5.6vw, 80px); margin-top: 18px; }
.section-head p { color: var(--ink-2); max-width: 440px; margin: 0; justify-self: end; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } .section-head p { justify-self: start; } }

/* Spec-Liste (Label + Wert, getrennt durch Linien) */
.specs { list-style: none; margin: 0; padding: 0; }
.specs li { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); }
.specs .val { font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Approach ---------- */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.approach > div { background: var(--bg); padding: clamp(24px, 3vw, 40px); min-height: 320px; display: flex; flex-direction: column; }
.approach .num { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.approach h3 { font-size: clamp(32px, 3.4vw, 48px); margin: auto 0 14px; padding-top: 60px; }
.approach p { color: var(--ink-2); margin: 0; max-width: 340px; }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr; } .approach > div { min-height: 240px; } }

/* ---------- Tutorials ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 28px; border: 1px solid var(--line-strong); width: fit-content; }
.chip { min-height: 42px; padding: 0 18px; border: 0; border-right: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.chip:last-child { border-right: 0; }
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); }

.tut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .tut-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tut-grid { grid-template-columns: 1fr; } }

.tut-card { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); transition: border-color 0.3s; }
.tut-card:hover { border-color: var(--line-strong); }
.tut-card.hidden { display: none; }
.project-card.hidden { display: none; }
.feed-grid { align-items: stretch; }
.feed-grid .project-card { display: flex; flex-direction: column; }
.feed-grid .project-body { flex: 1; flex-direction: column; align-items: flex-start; }
.feed-grid .project-body h3 { font-size: 27px; }
.feed-grid .project-meta { align-items: flex-start; text-align: left; flex-direction: row; gap: 14px; }
.feed-in { animation: feed-in 0.5s var(--ease) both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.feed-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.feed-links [hidden] { display: none; }
.anchor { position: relative; top: -90px; display: block; }
.tut-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tut-head .lock { display: inline-flex; align-items: center; gap: 6px; }
.tut-head .lock svg { width: 12px; height: 12px; }
.tut-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #141416; }
.tut-thumb .art { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.tut-thumb .art img { width: 100%; height: 100%; object-fit: cover; }
.tut-card:hover .tut-thumb .art { transform: scale(1.04); }
.tut-body { padding: 22px 18px 8px; display: flex; flex-direction: column; flex: 1; }
.tut-card h3 { font-size: 27px; line-height: 1.1; margin-bottom: 10px; }
.tut-card p { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.tut-card .specs { margin-top: auto; }
.tut-card .specs li { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 11px 0; }
.tut-card .specs .val { font-size: 13px; text-align: right; }
.tut-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.tut-foot .arrow { transition: transform 0.4s var(--ease); }
.tut-card:hover .tut-foot .arrow { transform: translateX(5px); }
.tut-card .stretched { position: absolute; inset: 0; z-index: 2; }

/* Muted placeholder artwork (until real thumbnails exist) */
.art-1 { background: radial-gradient(ellipse at 70% 30%, #4a5a6e, transparent 60%), linear-gradient(160deg, #1b1d21, #0d0d0e); }
.art-2 { background: radial-gradient(ellipse at 30% 70%, #6b645a, transparent 55%), linear-gradient(200deg, #222326, #0e0e0f); }
.art-3 { background: linear-gradient(180deg, transparent 55%, rgba(43,58,77,.8)), repeating-linear-gradient(90deg, #17181b 0 2px, #121214 2px 34px); }
.art-4 { background: radial-gradient(circle at 50% 45%, #8b8a86 0, #3a3c40 22%, #121214 60%); }
.art-5 { background: linear-gradient(115deg, #0f0f10 40%, #2b3a4d 40.2%, #2b3a4d 60%, #18191c 60.2%); }
.art-6 { background: radial-gradient(ellipse at 50% 120%, #5b6878, transparent 60%), #121315; }

/* ---------- Access (light section) ---------- */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .label { color: var(--paper-ink-2); }
.paper .section-head p { color: var(--paper-ink-2); }
.access-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .access-grid { grid-template-columns: 1fr; gap: 40px; } }
.access-grid h2 { font-size: clamp(44px, 6.4vw, 92px); margin: 18px 0 22px; }
.access-grid .intro { color: var(--paper-ink-2); max-width: 470px; margin: 0 0 34px; font-size: 17px; }
.benefits { display: grid; gap: 14px; }
.benefit { background: var(--bg-2); color: var(--ink); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.6); }
.benefit-top { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.benefit-top i { width: 5px; height: 5px; background: rgba(255,255,255,0.3); }
.benefit-top i.on { background: var(--ink); }
.benefit-body { padding: 18px 14px 26px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }
.benefit-body .n { display: block; margin-bottom: 34px; }
.benefit-body small { display: block; color: rgba(237,236,232,0.6); font-size: 13px; max-width: 320px; margin-top: 4px; }

/* ---------- Forms ---------- */
.access-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.field { display: flex; border: 1px solid var(--line-strong); transition: border-color 0.3s; }
.field:focus-within { border-color: var(--ink); }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: inherit; font-family: var(--mono); font-size: 15px; letter-spacing: 0.08em; padding: 0 18px; min-height: 54px; }
.field input::placeholder { color: var(--ink-3); text-transform: uppercase; }
.field .btn { min-height: 54px; border: 0; }
.paper .field { border-color: rgba(10,10,10,0.35); }
.paper .field:focus-within { border-color: var(--paper-ink); }
.paper .field input::placeholder { color: var(--paper-ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.paper .check { color: var(--paper-ink-2); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1px solid currentColor; background: transparent; display: grid; place-content: center; cursor: pointer; border-radius: 0; }
.check input::after { content: ""; width: 8px; height: 8px; background: currentColor; transform: scale(0); transition: transform 0.2s var(--ease); }
.check input:checked::after { transform: scale(1); }
.check a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-msg { min-height: 21px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.form-msg.error { color: #ff8f8f; }
.paper .form-msg.error { color: #a1121f; }
.form-msg.ok { color: #9be3b4; }
.paper .form-msg.ok { color: #0e6b34; }
.form-switch { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; opacity: 0.7; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; align-self: flex-start; }
.form-switch:hover { opacity: 1; }
@media (max-width: 520px) { .field { flex-direction: column; } .field .btn { width: 100%; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about h2 { font-size: clamp(44px, 6.4vw, 92px); margin-top: 18px; }
.about p { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); margin: 0 0 30px; max-width: 520px; }
.about p strong { color: var(--ink); font-weight: 400; }
.section.has-bg { position: relative; isolation: isolate; overflow: hidden; }
.section-bg { position: absolute; inset: 0; z-index: -1; }
.section-bg img { position: absolute; left: 0; top: -14%; width: 100%; height: 128%; object-fit: cover; object-position: 60% 40%; display: block; will-change: transform; }
.section-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,var(--bg-dim, 0.82)); }
.section-bg img, .hero-media img, .hero-media video { scale: var(--bg-scale, 1); }
.section-bg.is-faded::after { background: linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(10,10,10,var(--bg-dim, 0.78)) 18%, rgba(10,10,10,var(--bg-dim, 0.78)) 82%, rgba(10,10,10,1) 100%); }
.quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 16px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.modal.open { visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.8); opacity: 0; transition: opacity 0.4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-width: 580px; max-height: calc(100svh - 32px); overflow-y: auto;
  padding: clamp(28px, 5vw, 48px); background: var(--bg); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-panel h2 { font-size: clamp(34px, 5vw, 50px); margin: 16px 0 14px; }
.modal-panel > p { color: var(--ink-2); margin: 0 0 28px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; }
.modal-close:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; align-self: start; gap: 14px; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); line-height: 1; letter-spacing: -0.02em; }
.footer-brand .logo-mark { height: clamp(26px, 2.2vw, 34px); }
.footer-top h4 { font-family: var(--sans); font-weight: 400; font-size: 19px; margin: 0 0 18px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.footer-cols ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a, .footer-cols button { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; background: none; border: 0; padding: 0; color: var(--ink); text-align: left; transition: color 0.2s; }
.footer-cols a:hover, .footer-cols button:hover { color: var(--ink-3); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Consent banner ---------- */
.consent {
  position: fixed; z-index: 300; left: 16px; right: 16px; bottom: 16px; margin-left: auto; max-width: 520px;
  background: var(--bg); border: 1px solid var(--line-strong); padding: 22px;
  transform: translateY(calc(100% + 40px)); transition: transform 0.6s var(--ease);
}
.consent.show { transform: none; }
.consent h3 { font-size: 24px; margin: 10px 0 10px; }
.consent p { font-size: 14px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }
.consent p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .btn { min-height: 44px; padding: 0 12px; font-size: 13px; }
.consent-actions .btn[data-c="settings"] { grid-column: 1 / -1; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; min-height: 32px; }
.consent-details { display: none; flex-direction: column; margin-bottom: 18px; }
.consent.expanded .consent-details { display: flex; }
.consent-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.consent-opt strong { display: block; font-family: var(--mono); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.consent-opt span { font-size: 13px; color: var(--ink-2); line-height: 1.45; display: block; }
.toggle { position: relative; flex: none; width: 42px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle .slider { position: absolute; inset: 0; border: 1px solid var(--line-strong); transition: background 0.3s; cursor: pointer; }
.toggle .slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--ink-3); transition: transform 0.3s var(--ease), background 0.3s; }
.toggle input:checked + .slider { background: var(--ink); }
.toggle input:checked + .slider::after { transform: translateX(20px); background: var(--bg); }
.toggle input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }
.toggle input:focus-visible + .slider { outline: 1px solid var(--ink); outline-offset: 2px; }

/* ---------- Tutorial page ---------- */
.tut-hero { padding: 160px 0 50px; }
.back { display: flex; width: fit-content; margin-bottom: 40px; }
.tut-hero h1 { font-size: clamp(44px, 7vw, 104px); margin: 20px 0 24px; max-width: 1100px; }
.tut-hero .lead { max-width: 620px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); margin: 0; }
.tut-hero .specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 30px; margin-top: 50px; }
@media (max-width: 760px) { .tut-hero .specs { grid-template-columns: 1fr 1fr; } }

.player-frame { border: 1px solid var(--line); background: #0d0d0e; }
.player-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-gate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.player-gate .art { position: absolute; inset: 0; opacity: 0.7; }
.player-gate-inner { position: relative; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.player-gate-inner p { font-size: 14px; color: var(--ink-2); margin: 0; }
.player-gate-inner p a { text-decoration: underline; text-underline-offset: 3px; }

.steps { margin-top: 90px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.steps h2 { font-size: clamp(36px, 4vw, 56px); margin-top: 16px; }
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.step-list li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--ink-3); padding-top: 6px; }
.step-list h3 { font-size: 26px; margin-bottom: 8px; }
.step-list p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step-list li { grid-template-columns: 46px 1fr; } }
.locked-content { filter: blur(6px); pointer-events: none; user-select: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 160px 0 60px; }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(48px, 8vw, 96px); margin: 18px 0 50px; }
.legal h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 56px 0 16px; }
.legal h3 { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 30px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.legal .placeholder { background: rgba(255, 200, 100, 0.14); color: #ffd28a; padding: 1px 6px; font-style: normal; }
.legal .note { padding: 16px 20px; border: 1px dashed rgba(255, 200, 100, 0.5); color: #ffd28a; font-size: 14px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .rise .ln > span { transform: none; }
}

/* Already unlocked: hide the header access button */
.has-access .nav-right [data-open-access] { display: none; }

/* ==========================================================================
   WordPress additions
   ========================================================================== */

/* Blog-style tutorial content written in the block editor */
.entry { max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3, .entry h4 { color: var(--ink); margin-top: 2em; }
.entry h2 { font-size: clamp(30px, 3.2vw, 42px); }
.entry h3 { font-size: clamp(24px, 2.4vw, 30px); }
.entry h4 { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.entry p { margin: 0; }
.entry p + p { margin-top: 1em; }
.entry strong { color: var(--ink); font-weight: 500; }
.entry a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: 0.4em; }
.entry img, .entry video { height: auto; border: 1px solid var(--line); }
.entry figure { margin: 2em 0; }
.entry figcaption { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.entry blockquote { margin: 2em 0; padding: 0 0 0 24px; border-left: 1px solid var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--ink); }
.entry code { font-family: var(--mono); font-size: 0.92em; background: rgba(237, 236, 232, 0.08); padding: 2px 6px; }
.entry pre { font-family: var(--mono); font-size: 14px; background: var(--bg-2); border: 1px solid var(--line); padding: 18px; overflow-x: auto; color: var(--ink); }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.entry .wp-block-button__link { border-radius: 0; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 14px 24px; }
.entry .wp-block-embed iframe { width: 100%; }
.legal .entry { max-width: none; font-size: 16px; }
.legal .entry h2 { margin-top: 56px; }

.entry-locked { max-width: 640px; padding: 36px; border: 1px solid var(--line); }
.entry-locked .quote { margin-bottom: 12px; }
.entry-locked .muted { margin: 0 0 24px; }

/* Previous / next tutorial */
.tut-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 90px; padding-top: 30px; border-top: 1px solid var(--line); }
.tut-pager a { display: flex; flex-direction: column; gap: 10px; }
.tut-pager .serif { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
.tut-pager a:hover .serif { color: var(--ink-2); }

/* Archive pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--mono); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); }

/* WordPress admin bar offset */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* Accessibility helper WordPress expects */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Prompt / code boxes with copy button */
.prompt-box { margin: 2em 0; border: 1px solid var(--line-strong); background: #0d0d0e; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.prompt-bar .label { color: var(--ink-3); }
.prompt-bar .label::before { content: ""; width: 7px; height: 7px; background: #9be3b4; flex: none; animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.copy-btn { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.copied { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.entry .prompt-box pre { margin: 0; border: 0; background: transparent; padding: 18px 18px 20px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.65; }
.entry .prompt-box pre code { color: var(--ink); }
.entry .prompt-box.is-prompt pre code::before { content: "> "; color: var(--ink-3); }

/* ---------- Tutorial steps: every H2 becomes "Step 01", "Step 02" … ---------- */
.entry.is-steps { counter-reset: step; }
.entry.is-steps > h2 { counter-increment: step; margin-top: 2.6em; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.entry.is-steps > h2::before { content: "Step " counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.entry.is-steps > h2:first-child { margin-top: 0; }

.step-toc { position: sticky; top: 110px; align-self: start; }
.step-toc ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
.step-toc a { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); transition: color 0.2s; }
.step-toc a .n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; padding-top: 2px; }
.step-toc a:hover, .step-toc a.active { color: var(--ink); }
.step-toc:has(ol:empty) { visibility: hidden; }
@media (max-width: 800px) { .step-toc { position: static; } }

/* "The result" video after the steps */
.result { margin-top: 100px; padding-top: 40px; border-top: 1px solid var(--line); }
.result h2 { font-size: clamp(36px, 4.4vw, 60px); margin: 16px 0 36px; }

/* Locked tutorial */
.locked-hero { display: grid; grid-template-columns: 1.2fr 1fr; border: 1px solid var(--line); }
.locked-hero .art { position: relative; min-height: 340px; overflow: hidden; }
.locked-hero .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.locked-hero .entry-locked { border: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.locked-hero .entry-locked .quote, .locked-hero .entry-locked .muted { margin: 0; }
@media (max-width: 800px) { .locked-hero { grid-template-columns: 1fr; } .locked-hero .art { min-height: 200px; } }

/* One tutorial only: show it as a wide featured card */
.tut-grid.is-single { grid-template-columns: 1fr; }
.tut-grid.is-single .tut-card { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr auto; }
.tut-grid.is-single .tut-head { grid-column: 1 / -1; }
.tut-grid.is-single .tut-thumb { grid-row: 2 / 4; aspect-ratio: auto; min-height: 380px; }
.tut-grid.is-single .tut-body { padding: 30px; }
.tut-grid.is-single .tut-card h3 { font-size: clamp(30px, 3.4vw, 46px); }
.tut-grid.is-single .tut-foot { grid-column: 2; }
@media (max-width: 800px) {
  .tut-grid.is-single .tut-card { display: flex; }
  .tut-grid.is-single .tut-thumb { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Projects ---------- */
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { position: relative; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.3s; }
.project-card:hover { border-color: var(--line-strong); }
.project-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #141416; }
.project-thumb .art { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.project-thumb .art img { width: 100%; height: 100%; object-fit: cover; }
.project-card:hover .project-thumb .art { transform: scale(1.04); }
.project-code { position: absolute; left: 16px; top: 14px; color: var(--ink); }
.project-play { position: absolute; right: 16px; top: 14px; color: var(--ink); padding: 4px 10px; background: rgba(10, 10, 10, 0.55); }
.project-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 22px 20px 24px; }
.project-body h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.project-body p { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; max-width: 460px; }
.project-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
@media (max-width: 560px) { .project-body { flex-direction: column; align-items: flex-start; } .project-meta { align-items: flex-start; text-align: left; } }
.project-cover { margin: 0 0 20px; border: 1px solid var(--line); }
.project-cover img { width: 100%; height: auto; }
.entry .wp-block-gallery { gap: 12px; }

/* YouTube/Vimeo blocks inside tutorials and projects */
.andu-embed { margin: 2em 0; }
.andu-embed-box { position: relative; width: 100%; margin-inline: auto; overflow: hidden; background: #0d0d0e; border: 1px solid var(--line); container-type: inline-size; }
.andu-embed-box .gate-mini { display: none; }
.andu-embed-box .gate-mini a { text-decoration: underline; text-underline-offset: 3px; }
@container (max-width: 340px) {
  .andu-embed-box .player-gate-inner p, .andu-embed-box .player-gate-inner .check { display: none; }
  .andu-embed-box .gate-mini { display: block; }
  .andu-embed-box .btn { padding: 0 12px; font-size: 12px; min-height: 40px; }
}
.andu-embed-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.andu-embed-box .player-gate-inner { padding: 0 16px; }
.andu-embed figcaption { text-align: center; }

/* ==========================================================================
   Shop (WooCommerce) in the theme's look
   ========================================================================== */
.shop .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--line-strong); font-size: 15px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.woocommerce-error { border-color: #ff8f8f; color: #ffb0b0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }

/* Product list */
.shop ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1020px) { .shop ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .shop ul.products { grid-template-columns: 1fr; } }
.shop ul.products::before, .shop ul.products::after { display: none; }
.shop .tut-card .price { font-family: var(--mono); }
.shop .tut-card .price del { color: var(--ink-3); margin-right: 8px; }
.shop .woocommerce-pagination { margin-top: 40px; }
.shop .woocommerce-pagination ul { list-style: none; display: flex; gap: 8px; padding: 0; }
.shop .woocommerce-pagination a, .shop .woocommerce-pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--mono); }
.shop .woocommerce-pagination .current { background: var(--ink); color: var(--bg); }

/* Single product */
.product-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } .buy-box { position: static; } }
.product-labels { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.product-flag { color: var(--bg); background: var(--ink); padding: 4px 10px; }
.single-product .product_title { font-size: clamp(56px, 9vw, 132px); line-height: 0.95; margin: 22px 0 28px; }
.single-product .product_title .dim { display: block; color: var(--ink-3); font-size: 0.36em; line-height: 1.15; margin-top: 14px; max-width: 18ch; }
.product-lead { color: var(--ink-2); font-size: clamp(18px, 1.6vw, 22px); max-width: 560px; margin-bottom: 36px; }
.product-lead p { margin: 0 0 1em; }
.product-specs { max-width: 560px; }
.product-specs li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 20px; padding: 13px 0; }
.product-specs .val { font-size: 13px; text-align: right; }
.buy-box { position: sticky; top: 110px; border: 1px solid var(--line-strong); background: var(--bg-2); padding: clamp(24px, 3vw, 36px); }
.buy-box > .label { display: block; color: var(--ink-3); margin-bottom: 18px; }
.single-product .buy-box .price { font-family: var(--serif); font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -0.02em; line-height: 1; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.single-product .buy-box .price del { order: 2; font-size: 0.4em; color: var(--ink-3); margin: 0; }
.single-product .buy-box .price ins { text-decoration: none; }
.single-product .buy-box .price .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.single-product .buy-box .legal-price-info, .single-product .buy-box .wc-gzd-additional-info, .single-product .buy-box .small-business-info { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0; }
.single-product .buy-box form.cart { display: grid; gap: 10px; margin: 26px 0 0; }
.single-product .buy-box .single_add_to_cart_button { width: 100%; min-height: 56px; justify-content: center; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.single-product .buy-box .single_add_to_cart_button:hover { background: transparent; color: var(--ink); }
.single-product .buy-box .quantity { display: none; }
.single-product .buy-box #wc-stripe-express-checkout-element, .single-product .buy-box .wc-stripe-product-checkout-container, .single-product .buy-box .ppc-button-wrapper, .single-product .buy-box #ppc-button-ppcp-gateway { margin-top: 4px; }
.buy-notes { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.buy-notes li::before { content: "✓"; color: var(--ink); margin-right: 10px; }
.product-shots { display: grid; gap: clamp(16px, 2vw, 28px); margin-top: clamp(80px, 10vw, 140px); }
.product-shot { margin: 0; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.product-shot img { width: 100%; height: auto; display: block; }
.product-shot figcaption { padding: 14px 18px; color: var(--ink-3); border-top: 1px solid var(--line); }
.product-desc { max-width: 1000px; margin: clamp(80px, 10vw, 140px) 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.7; }
.product-desc > h2 { font-size: clamp(36px, 4.6vw, 64px); color: var(--ink); margin: 0 0 24px; max-width: 16ch; }
.product-desc > h3 { font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 64px 0 22px; }
.product-desc > h3::before { content: ""; display: inline-block; width: 6px; height: 6px; background: currentColor; margin: 0 10px 2px 0; }
.product-desc > p { max-width: 680px; }
.product-desc > ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .product-desc > ul { grid-template-columns: 1fr; } }
.product-desc > ul li { background: var(--bg); padding: 26px 24px; font-size: 16px; line-height: 1.6; margin: 0; }
.product-desc > ul li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; color: var(--ink); margin-bottom: 10px; }
.single-product .product-art { margin-top: clamp(60px, 8vw, 110px); }
.single-product .related, .single-product .upsells { margin-top: clamp(90px, 10vw, 140px); }
.single-product .related > h2, .single-product .upsells > h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 30px; }

/* Buttons used by WooCommerce */
.shop .button, .shop button[type="submit"], .shop .single_add_to_cart_button, .woocommerce-message .button, .checkout-button, .shop .woocommerce-Button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background 0.3s, color 0.3s;
}
.shop .button:hover, .shop button[type="submit"]:hover, .shop .single_add_to_cart_button:hover, .checkout-button:hover { background: transparent; color: var(--ink); }
.shop .button.alt { background: var(--ink); color: var(--bg); }
.shop .button:disabled, .shop button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms (checkout, login, register, account) */
.shop form .form-row { margin: 0 0 16px; }
.shop form label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.shop form label .required { color: var(--ink-2); text-decoration: none; }
.shop form label .optional { color: var(--ink-3); text-transform: none; letter-spacing: 0; }
.shop input[type="text"], .shop input[type="email"], .shop input[type="tel"], .shop input[type="password"], .shop input[type="number"], .shop textarea, .shop select, .shop .select2-container .select2-selection--single {
  width: 100%; min-height: 50px; padding: 0 16px; background: transparent; border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; outline: none;
}
.shop textarea { padding: 14px 16px; min-height: 110px; }
.shop input:focus, .shop textarea:focus, .shop select:focus { border-color: var(--ink); }
.shop select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.shop .select2-container .select2-selection--single { display: flex; align-items: center; }
.shop .select2-container .select2-selection__rendered { color: var(--ink); padding: 0; line-height: 1; }
.shop .select2-container .select2-selection__arrow { top: 12px; right: 10px; }
.shop .select2-dropdown { background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 0; color: var(--ink); }
.shop .select2-search__field { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.shop .select2-results__option--highlighted { background: var(--ink) !important; color: var(--bg) !important; }
.shop input[type="checkbox"], .shop input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: -3px; margin-right: 8px; }
.shop .woocommerce-form-login, .shop .woocommerce-form-register, .shop .woocommerce-ResetPassword { max-width: 480px; border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.shop .woocommerce-form-login .form-row, .shop .woocommerce-form-register .form-row { margin-bottom: 18px; }
.shop .woocommerce-form-login label.woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
.shop .lost_password { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.shop .lost_password a { text-decoration: underline; text-underline-offset: 4px; }
.shop .u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .shop .u-columns { grid-template-columns: 1fr; } }
.shop .u-columns h2 { font-size: 32px; margin-bottom: 20px; }

/* Tables (cart, orders) */
.shop table.shop_table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); margin: 0 0 30px; }
.shop table.shop_table th, .shop table.shop_table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.shop table.shop_table th { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.shop table.shop_table .product-thumbnail img { width: 70px; height: auto; border: 1px solid var(--line); }
.shop table.shop_table .product-remove a { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
.shop table.shop_table .product-remove a:hover { background: var(--ink); color: var(--bg); }
.shop table.shop_table .amount { font-family: var(--mono); }
.shop table.shop_table .quantity .qty { width: 70px; text-align: center; }
.shop .cart-collaterals { display: flex; justify-content: flex-end; }
.shop .cart_totals { width: min(100%, 440px); }
.shop .cart_totals h2 { font-size: 28px; margin-bottom: 16px; }
.shop .wc-proceed-to-checkout { margin-top: 20px; }
.shop .wc-proceed-to-checkout .button { width: 100%; }
.shop .coupon { display: flex; gap: 8px; align-items: center; }
.shop .coupon input { width: 200px; }
.shop .return-to-shop { margin-top: 20px; }
.shop .cart-empty { font-family: var(--serif); font-size: 32px; }

/* Checkout */
.shop form.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .shop form.checkout { grid-template-columns: 1fr; } }
.shop form.checkout h3, .shop form.checkout #order_review_heading { font-size: 28px; margin: 0 0 20px; }
.shop form.checkout .col2-set { display: block; }
.shop form.checkout .col-1, .shop form.checkout .col-2 { width: 100%; margin: 0 0 30px; }
.shop form.checkout .form-row-first, .shop form.checkout .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.shop form.checkout .form-row-first { margin-right: 16px; }
.shop #order_review { border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); position: sticky; top: 110px; }
.shop #payment { margin-top: 24px; }
.shop .wc_payment_methods { list-style: none; margin: 0 0 20px; padding: 0; }
.shop .wc_payment_method { padding: 14px 0; border-top: 1px solid var(--line); }
.shop .wc_payment_method > label { display: inline; font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.shop .wc_payment_method .payment_box { margin: 10px 0 0 26px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.shop .wc_payment_method .payment_box p { margin: 0; }
.shop .wc_payment_method img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
.shop .woocommerce-terms-and-conditions-wrapper, .shop .wc-gzd-checkbox-placeholder, .shop .legal { font-size: 14px; color: var(--ink-2); }
.shop .wc-gzd-checkbox-placeholder .form-row, .shop .woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 12px; }
.shop .wc-gzd-checkbox-placeholder label, .shop .woocommerce-terms-and-conditions-wrapper label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.shop #place_order { width: 100%; margin-top: 10px; }
.shop .woocommerce-privacy-policy-text { font-size: 13px; color: var(--ink-3); }
.shop .woocommerce-privacy-policy-text a, .shop .legal a, .shop .wc-gzd-checkbox-placeholder a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Thank you page */
.shop .woocommerce-thankyou-order-received { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 30px; }
.shop .woocommerce-order-overview { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 30px; }
.shop .woocommerce-order-overview li { padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.shop .woocommerce-order-overview strong { display: block; color: var(--ink); font-size: 16px; margin-top: 6px; }
.unlocked-box { border: 1px solid var(--ink); padding: clamp(24px, 4vw, 40px); margin: 0 0 40px; }
.unlocked-box h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 20px; }
.unlocked-box .specs li { flex-direction: row; justify-content: space-between; align-items: baseline; }
.unlocked-box .serif { font-size: 24px; }
.shop .woocommerce-order-details, .shop .woocommerce-customer-details { margin-top: 40px; }
.shop .woocommerce-order-details h2, .shop .woocommerce-customer-details h2, .shop .woocommerce-column__title { font-size: 28px; margin-bottom: 16px; }
.shop address { font-style: normal; color: var(--ink-2); line-height: 1.7; }

/* My account */
.shop .woocommerce-MyAccount-navigation { float: none; width: auto; margin-bottom: 40px; }
.shop .woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; border: 1px solid var(--line-strong); width: fit-content; }
.shop .woocommerce-MyAccount-navigation li { border-right: 1px solid var(--line-strong); }
.shop .woocommerce-MyAccount-navigation li:last-child { border-right: 0; }
.shop .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.shop .woocommerce-MyAccount-navigation li.is-active a, .shop .woocommerce-MyAccount-navigation a:hover { background: var(--ink); color: var(--bg); }
.shop .woocommerce-MyAccount-content { float: none; width: auto; max-width: 820px; color: var(--ink-2); }
.shop .woocommerce-MyAccount-content h2, .shop .woocommerce-MyAccount-content h3 { color: var(--ink); font-size: 28px; margin: 0 0 16px; }
.shop .woocommerce-MyAccount-content p { margin: 0 0 1em; }
.shop .woocommerce-MyAccount-content a:not(.button) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.shop .woocommerce-MyAccount-content .specs li { flex-direction: row; justify-content: space-between; align-items: baseline; }
.shop .woocommerce-MyAccount-content .specs .serif { font-size: 24px; text-decoration: none; }
.shop .woocommerce-orders-table .button { min-height: 38px; padding: 0 14px; font-size: 12px; }
.shop .woocommerce-Address { border: 1px solid var(--line); padding: 20px; }
.shop .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .shop .woocommerce-Addresses { grid-template-columns: 1fr; } }
.shop fieldset { border: 0; padding: 0; margin: 30px 0 0; }
.shop fieldset legend { font-family: var(--serif); font-size: 24px; margin-bottom: 16px; }
.shop .woocommerce-info a.showcoupon, .shop .woocommerce-info a.showlogin { text-decoration: underline; text-underline-offset: 3px; }

/* Germanized bits */
.shop .wc-gzd-order-submit .place-order { margin: 0; }
.shop .wc-gzd-product-name-right, .shop .wc-gzd-cart-info { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.shop .delivery-time-info, .shop .shipping-costs-info, .shop .tax-info, .shop .small-business-info { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.single-product .product-art { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.single-product .product-art .art { position: absolute; inset: 0; }
/* No grey placeholder images anywhere in the shop */
.shop img.woocommerce-placeholder, .shop img[src*="woocommerce-placeholder"] { display: none; }
/* Germanized ships its own layout stylesheet with light backgrounds: keep everything dark */
.shop table.shop_table, .shop table.shop_table th, .shop table.shop_table td, .shop table.shop_table tfoot, .shop .wc-gzd-order-review-fee, .shop .cart_totals table, .shop #order_review { background: transparent !important; color: var(--ink); }
.shop table.shop_table tfoot th { color: var(--ink-3); }
.shop table.shop_table tfoot td { font-family: var(--mono); }
.shop table.shop_table .product-name { color: var(--ink); }
.shop table.shop_table .product-quantity { color: var(--ink-3); }
.shop .woocommerce-checkout-review-order-table .product-thumbnail { display: none; }
.shop #order_review .small-business-info { display: block; margin-top: 10px; }
