@font-face {
  font-family: Manrope;
  src: url("/media/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --shell-max: 1320px;
  --bg: #10101a;
  --panel: #1a1927;
  --text: #f6f3ff;
  --muted: #b9b5cb;
  --accent: #d3c5ff;
  --accent-hover: #e7ddff;
  --line: #3c384e;
  --glass: linear-gradient(155deg, #f5edff15, #d7bdff08 55%, #0a071a16);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); color: var(--accent); }
section[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(100% - 6rem, var(--shell-max)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: var(--accent); color: var(--bg); padding: .6rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; color: var(--bg); }

.site-header, .home-page { --shell-max: 1760px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.brand { display: inline-flex; align-items: center; gap: .68rem; font-size: 1.12rem; letter-spacing: -.035em; font-weight: 700; white-space: nowrap; }
.brand-studio { font-weight: 400; }
.brand i {
  flex: 0 0 28px; height: 28px; border-radius: 4px;
  background: #fff url("/media/dotlab-logo.jpg") center / 175% no-repeat;
}
nav a { display: flex; align-items: center; color: var(--muted); font-size: .92rem; }
.header-inner nav { display: flex; gap: .25rem; margin-inline-start: auto; padding: .2rem; }
.header-inner nav a { min-height: 44px; padding-inline: clamp(.65rem, 1.1vw, 1.1rem); border-radius: 99px; font-size: .97rem; }
.header-inner nav a { position: relative; isolation: isolate; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--text); }
.nav-liquid { background: #e6dbff20; box-shadow: inset 0 1px #fff2; }
.nav-liquid { position: absolute; z-index: -1; inset: 0; border-radius: inherit; pointer-events: none; }
.nav-drop {
  position: absolute; z-index: -1; inset: calc(50% - 5px) auto auto calc(50% - 5px);
  width: 10px; height: 10px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, #fff9, #cfbaff75 45%, #a68de02b 80%);
}

.header-cta { color: var(--accent); border: 1px solid var(--line); border-radius: 99px; padding: .57rem .85rem; font-size: .86rem; white-space: nowrap; }
.header-cta span { margin-left: .4rem; }
.header-cta:hover { border-color: var(--accent); }

main { padding-block: clamp(2.8rem, 6vw, 5.3rem) 0; min-height: 63vh; }
.eyebrow { display: flex; gap: .58rem; align-items: center; color: var(--accent); font: .71rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .13em; }
.eyebrow > span { width: 6px; height: 6px; flex: 0 0 6px; background: currentColor; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .85rem; padding: .74rem 1rem; min-height: 46px; border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.button.primary { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { color: var(--text); }
.button.secondary:hover { color: var(--accent); border-color: var(--accent); }
.button.unavailable { color: var(--muted); background: var(--bg); border-style: dashed; }
.text-link { color: var(--accent); font-weight: 600; font-size: .91rem; }
a.text-link:hover { text-decoration: underline; text-underline-offset: .28em; }

.media { width: 100%; display: block; border: 1px solid var(--line); }
.filled { background: var(--panel); object-fit: contain; }
.project-card .filled { object-fit: cover; }
.project-media { aspect-ratio: 4 / 3; }
.project-media.filled { aspect-ratio: 16 / 9; }
.plugin-media { aspect-ratio: 16 / 10; }
.placeholder {
  --grid: #d3c5ff1c;
  position: relative;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 38%, #302744, #191725 80%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  background-position: center;
}
.frame {
  position: absolute; inset: 13%; border: 1px solid #d3c5ff45;
  background: linear-gradient(90deg, transparent calc(50% - .5px), #d3c5ff28 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), #d3c5ff28 50%, transparent calc(50% + .5px));
}
.frame::before, .frame::after { content: ""; position: absolute; width: 16px; height: 16px; border: solid #d3c5ffaa; }
.frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.target { position: absolute; inset: 0; display: grid; place-content: center; color: var(--accent); font: 1.15rem var(--mono); }
.media-marker, .media-label { position: absolute; color: var(--accent); background: #181326e6; padding: .32rem .5rem; font: .65rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.media-marker { top: .65rem; left: .65rem; }
.media-label { bottom: .65rem; right: .65rem; }

.section { margin-top: clamp(3rem, 6vw, 5rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
.section-heading h2, .bundle-panel h2, .guide h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); margin-top: .65rem; }
.projects-grid, .plugin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card { display: block; }
.project-card:hover .media { border-color: var(--accent); }
.card-caption { display: flex; justify-content: space-between; align-items: start; gap: .8rem; padding: 1rem 1.2rem; }
.card-caption h3 { font-size: 1.4rem; }
.card-caption p { margin-top: .35rem; font-size: .87rem; }
.card-caption > span { color: var(--accent); }
.bundle-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: clamp(1.3rem, 4vw, 3.5rem); background: var(--panel); }
.bundle-panel p { margin-top: .8rem; }
.bundle-panel .button { margin-top: 1.25rem; }
.bundle-price { padding-left: clamp(1.3rem, 4vw, 3.5rem); border-left: 1px solid var(--line); }
.bundle-price > span, .product-price { font-size: clamp(2.7rem, 6.2vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.06em; color: var(--accent); white-space: nowrap; }

.page-title { margin-bottom: clamp(1.7rem, 4vw, 3.3rem); }
.page-title h1 { margin-top: .7rem; font-size: clamp(2.65rem, 6.4vw, 5.5rem); font-weight: 560; letter-spacing: -.075em; }
.page-title > p:last-child { margin-top: .9rem; font-size: 1.1rem; max-width: 65ch; }
.back { display: inline-block; margin-bottom: 1.55rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.4rem); align-items: start; }
.gallery { display: grid; gap: 1.2rem; }
.details, .contact-card { border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.details h2, .feature-list h2, .contact-card h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.details > p:not(.product-price), .contact-card > p:not(.eyebrow) { margin-top: .75rem; }
.details dl { margin: 1.45rem 0; border-top: 1px solid var(--line); padding-top: 1.15rem; }
.details dt { color: var(--accent); font-size: .84rem; }
.details dd { margin: .25rem 0 1rem; }
.details > p + .button { margin-top: 1rem; }
.feature-list { margin-top: 1.6rem; }
.feature-list ul { padding-left: 1.1rem; }
.feature-list li { padding-block: .38rem; }
.feature-list li::marker { color: var(--accent); }
.feature-list a { text-decoration: underline; text-underline-offset: .2em; }
.plugin-card { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 1.3rem; padding: 1.2rem; border: 1px solid var(--line); }
.plugin-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.index { color: var(--muted); font: .75rem var(--mono); }
.tag { border: 1px solid var(--line); border-radius: 99px; color: var(--accent); padding: .25rem .62rem; font: .84rem var(--mono); }
.plugin-card h2 { font-size: 1.55rem; }
.plugin-card p { margin-top: .55rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.contact-card:target, .guide:target { border-color: var(--accent); }
.contact-card h2 { margin-top: .7rem; }
.contact-card .button, .contact-card .text-link, .guide .button { margin-top: 1rem; }
.contact-card .text-link { display: block; width: fit-content; }
.contact-card .contact-link { display: inline-flex; align-items: center; gap: .45em; }
.contact-link svg { flex-shrink: 0; }
.availability { color: var(--accent); font-size: .9rem; }
.guide { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.guide p + p, .guide h2 + p { margin-top: .7rem; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-block: 1.4rem; }
.guide-step { border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.6rem); }
.guide-step h3 { font-size: 1.35rem; }
.guide-step ol { margin: .7rem 0 0; padding-left: 1.3rem; }
.guide-step li + li, .guide-step p { margin-top: .45rem; }
.guide-step li::marker { color: var(--accent); }
.detail-links { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.site-footer { margin-top: clamp(3.3rem, 7vw, 6rem); padding: 1.45rem 0 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.site-footer p, .domain, .footer-links { font-size: .85rem; color: var(--muted); }
.site-footer p { margin-top: .35rem; }
.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.social-link, .contact-card .social-link { display: inline-flex; align-items: center; gap: .45em; }
.tiktok-icon {
  flex: 0 0 1.15em; height: 1.15em; background: currentColor;
  mask: url("/media/icons/tiktok.svg") center / contain no-repeat;
}

body:not(.home-page) {
  background:
    radial-gradient(ellipse at 96% 5rem, #6f4ebc35, transparent 38rem),
    radial-gradient(ellipse at 4% 38rem, #3e387c33, transparent 35rem),
    var(--bg);
}
body:not(.home-page) .site-header {
  background: #12101cc4;
  backdrop-filter: blur(12px);
}
body:not(.home-page) .button { border-radius: 99px; }
body:not(.home-page) .button.secondary { background: #d3c5ff0d; }
body:not(.home-page) .button.unavailable { background: #10101a55; }
.project-card, .plugin-card, .details, .contact-card, .guide-step,
body:not(.home-page) .bundle-panel {
  background: var(--glass);
  border-color: #ded2ff38;
  border-radius: 1rem;
  box-shadow: inset 0 1px #fff2, inset 0 -1px #b69dff14, 0 8px 24px #09071330;
}
.project-card { height: 100%; border: 1px solid #ded2ff38; }
.project-card .media { border: 0; border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0; }
.project-card:is(:hover, :focus-visible), .plugin-card:hover, .plugin-card:focus-within {
  background: linear-gradient(155deg, #f5edff20, #d7bdff0b 55%, #0a071a16);
  border-color: #e9dcff8c;
}
.details, .contact-card { backdrop-filter: blur(10px); }
body:not(.home-page) .detail-grid .media { border-radius: 1rem; }

.home-page main { padding: 0; }
.home-opening { position: relative; isolation: isolate; }
.home-intro {
  position: absolute; z-index: 1; inset: clamp(2.6rem, 8vw, 8rem) 0 auto;
  pointer-events: none; color: #f9f7ff;
}
.home-intro h1 {
  margin-top: .7rem; font-family: Manrope, "Segoe UI", sans-serif;
  font-size: clamp(3rem, 7vw, 7.2rem); line-height: .98;
  font-weight: 700; letter-spacing: -.055em;
}
.home-intro h1 span { display: block; color: var(--accent); font-weight: 400; }
.home-subtitle { margin-top: 1rem; color: inherit; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.home-explore {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
  margin-top: clamp(1rem, 3vw, 2.2rem); padding: .45rem .9rem; pointer-events: auto;
  border-radius: 99px;
  font-size: .87rem;
}
.home-reel {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; background: var(--panel);
}
.home-reel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.home-reel-toolbar { position: absolute; z-index: 2; inset: .75rem 0 auto; pointer-events: none; }
.home-reel-controls {
  display: flex; align-items: center; gap: .35rem; width: fit-content; margin-inline-start: auto;
  padding: .2rem; border-radius: 99px;
  color: #fff; pointer-events: auto;
}
.home-reel-controls button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: inherit;
  font: inherit; font-size: 1.15rem; cursor: pointer;
}
.home-reel-controls button:hover, .home-reel-controls button:focus-visible { background: #423657; }
.home-reel-status { min-width: 6.3em; text-align: center; font: .72rem var(--mono); }

/* Glass surfaces stay dark enough for labels over bright images. */
.header-inner nav, .header-cta, .home-explore, .home-reel-controls {
  border: 1px solid #ded2ff38;
  background: linear-gradient(155deg, #f5edff1c, #d7bdff08 55%, #0a071a24), #1b1729;
  box-shadow: inset 0 1px #fff2, inset 0 -1px #b69dff14, 0 6px 20px #09071330;
}
.header-inner nav { border-radius: 1.5rem; }
.header-cta:hover, .home-explore:hover { border-color: #e9dcff8c; color: #fff; }
@supports (backdrop-filter: blur(1px)) {
  .home-explore, .home-reel-controls {
    background-color: #171329ad;
    backdrop-filter: blur(16px) saturate(145%);
  }
}

.home-slide { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; overflow: hidden; scroll-snap-align: start; }
.home-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #100d20ef, transparent 35%),
    linear-gradient(90deg, #0f0c20eb, #131026a8 29%, #19152d21 72%),
    linear-gradient(180deg, #1511279e, transparent 45%);
}
.home-panorama { height: clamp(465px, 49vw, 760px); border: 0; }
.home-panorama.filled { object-fit: cover; object-position: center 58%; }
.home-slide figcaption {
  position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; display: flex; align-items: center;
  justify-content: space-between; gap: .85rem; color: #fff;
  width: min(100% - 6rem, var(--shell-max)); margin-inline: auto; padding-block: .7rem;
  border-top: 1px solid #e1d6ff5c;
}
.home-slide figcaption a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; font-size: clamp(1.05rem, 1.9vw, 1.6rem); }
.home-slide figcaption a:hover { color: var(--accent); }
.home-index { font: .73rem var(--mono); white-space: nowrap; }
.home-reel-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.home-reel-index a { gap: .55rem; align-items: start; min-height: 60px; padding: .8rem .65rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.home-reel-index a + a { border-left: 1px solid var(--line); }
.home-reel-index a:hover { background: var(--panel); }
.home-reel-index a[aria-current="true"] { color: var(--text); background: var(--panel); box-shadow: inset 0 2px var(--accent); }
.home-reel-index .home-index { padding-top: .18rem; color: var(--accent); }
.home-workflow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding-block: 1.25rem 0; }
.home-workflow > span { color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.home-workflow ul { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; list-style: none; }
.home-workflow li { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 99px; font-size: .81rem; }
.home-page .section { margin-top: clamp(2.4rem, 5vw, 4.5rem); }
.home-page .section-heading h2, .home-contact h2 { font-weight: 500; letter-spacing: -.07em; }
.home-projects, .home-plugin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.1rem, 3vw, 2.3rem); }
.home-projects article { min-width: 0; }
.home-project-copy { display: grid; gap: .55rem; padding: .9rem clamp(.9rem, 2vw, 1.4rem) 1rem; }
.home-project-copy h3 { font-size: clamp(1.35rem, 2.45vw, 2.25rem); }
.home-project-copy p:not(.eyebrow) { max-width: 52ch; }
.home-shop {
  color-scheme: light; --bg: #f6f2ff; --panel: #e8e0ff; --text: #211936;
  --muted: #504663; --accent: #54348b; --accent-hover: #42266e; --line: #c7b8e1;
  color: var(--text); background: var(--panel); padding-block: clamp(1.4rem, 3vw, 2.5rem);
}
.home-shop .section-heading { border-top: 0; padding-top: 0; }
.home-plugin-list { gap: 0 clamp(1rem, 3vw, 2.4rem); margin: 0 0 1.5rem; padding: 0; list-style: none; }
.home-plugin-list li { border-top: 1px solid var(--line); }
.home-plugin-list a { height: 100%; padding: .85rem 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.home-plugin-list a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.home-plugin-list h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.home-plugin-list p { font-size: .9rem; }
.home-plugin-price { font: .86rem var(--mono); color: var(--accent); white-space: nowrap; }
.home-shop .bundle-panel { background: var(--bg); }
.home-contact { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; }
.home-contact h2 { font-size: clamp(2rem, 4.2vw, 3.7rem); margin-top: .55rem; }
.home-contact-links { display: flex; flex-wrap: wrap; gap: .65rem; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 3.5rem); }
  .home-slide figcaption { width: calc(100% - 3.5rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 2.3rem); }
  .header-inner { flex-wrap: wrap; min-height: auto; gap: 0 .6rem; }
  .header-inner > .brand { min-height: 56px; }
  .header-cta { order: 1; margin-inline-start: auto; }
  .header-inner nav { order: 2; width: 100%; flex-wrap: wrap; justify-content: space-between; margin: 0 0 .6rem; }
  .header-inner nav a { justify-content: center; padding-inline: .4rem; font-size: .88rem; }
  .home-slide figcaption { width: calc(100% - 2.3rem); }
  .home-intro h1 { font-size: clamp(2.35rem, 9vw, 4.6rem); }
  .home-reel-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-reel-index a:nth-child(odd) { border-left: 0; }
  .home-reel-index a { min-height: 48px; padding: .55rem; font-size: .83rem; }
  .projects-grid, .plugin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .detail-grid > .details { grid-row: 1; }
  .guide-steps { grid-template-columns: 1fr; }
  .site-footer { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .projects-grid, .plugin-grid, .bundle-panel { grid-template-columns: 1fr; }
  .home-projects, .home-plugin-list { grid-template-columns: 1fr; }
  .home-panorama { height: clamp(340px, 98vw, 420px); }
  .home-slide::after { background: linear-gradient(0deg, #100d20f4, transparent 32%), linear-gradient(90deg, #0f0c20d9, #15112c60 70%); }
  .bundle-price { padding: 1rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 340px) {
  .home-intro h1 { font-size: 2.15rem; }
  .header-cta { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-reel { scroll-behavior: auto; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-panorama.filled { transform: translate(var(--camera-x, 0), var(--camera-y, 0)) scale(1.04); transition: transform .25s ease-out; }
  .home-projects .project-media { transition: filter .25s ease; }
  .home-projects .project-card:is(:hover, :focus-visible) .project-media { filter: brightness(1.12); }
  .home-projects .text-link span { display: inline-block; transition: transform .25s ease; }
  .home-projects .project-card:is(:hover, :focus-visible) .text-link span { transform: translate(.2em, -.15em); }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal { animation: scroll-reveal-in .48s cubic-bezier(.2, .65, .3, 1) backwards; }
  .home-projects > .scroll-reveal:nth-child(even),
  .projects-grid > .scroll-reveal:nth-child(even),
  .home-plugin-list > .scroll-reveal:nth-child(even) { animation-delay: .06s; }
  .scroll-reveal:focus-within { animation: none; }

  @keyframes scroll-reveal-in {
    from { opacity: .45; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.studio-article { max-width: 920px; margin-inline: auto; }
.studio-article figure { margin: 0 0 2rem; }
.studio-article figure img { height: auto; }
.studio-article figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.studio-article-copy { max-width: 68ch; display: grid; gap: 1.5rem; line-height: 1.7; }
.studio-article-copy h2 { margin-bottom: .55rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }

.project-story { --shell-max: 1760px; padding-top: clamp(1.5rem, 4vw, 3.25rem); }
.project-opening .page-title { margin: 1.5rem 0; }
.project-back { display: inline-block; }
.project-hero-image, .project-gallery-image {
  display: block; width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: 1rem; background: #11101b; object-fit: contain;
}
.project-hero-board { width: fit-content; max-width: 100%; margin-inline: auto; perspective: 1100px; }
.project-glass-plate {
  position: relative; border-radius: 1rem;
  box-shadow: 0 20px 48px #09071375, 0 4px 0 #8b7fa146;
}
.project-glass-plate::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid #f0e5ff75;
  background: linear-gradient(138deg, #fff3 0%, #f2e7ff0a 24%, transparent 45%);
  box-shadow: inset 0 1px #fffc, inset 0 -1px #bfa9ff60;
}
.project-hero-image { width: auto; max-width: 100%; max-height: 78svh; }
.tilt-enabled .project-glass-plate {
  transform: rotateX(var(--board-tilt-x, 0deg)) rotateY(var(--board-tilt-y, 0deg));
  transition: transform .28s ease-out;
}
.is-tilting .project-glass-plate { transition-duration: .12s; }
.is-tilting .project-glass-plate::after {
  background: radial-gradient(ellipse at var(--board-light-x) var(--board-light-y), #fff5, #f2e7ff0c 38%, transparent 65%);
}
.project-tilt-toggle { margin-top: .8rem; font-family: inherit; cursor: pointer; }
.project-tilt-toggle[aria-pressed="true"] { border-color: var(--accent); }
.project-context { --shell-max: 960px; margin-block-start: clamp(1.8rem, 5vw, 4.5rem); }
.project-context p { max-width: 68ch; }
.project-gallery { display: grid; gap: clamp(1rem, 3vw, 2.5rem); margin-block-start: clamp(2rem, 6vw, 5rem); }
.project-gallery h2 { font-size: clamp(1.5rem, 4vw, 2.6rem); }

@media (min-width: 1800px) {
  .site-header, .home-page, .portfolio-page, .project-story {
    --shell-max: clamp(1760px, 90vw, 2100px);
  }
  .project-hero-image { max-height: 88svh; }
}

.plugin-sales-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 1.4rem; }
.plugin-sales-gallery figure { margin: 0; }
.plugin-sales-gallery a { display: block; }
.plugin-sales-gallery img, .plugin-installation img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .75rem; }
.plugin-sales-gallery figcaption { margin-top: .55rem; color: var(--muted); font-size: .9rem; }
.plugin-installation, .plugin-faq { max-width: 920px; }
.plugin-installation h3 { margin: 1.5rem 0 .65rem; font-size: 1.3rem; }
.plugin-installation img { width: auto; max-width: 100%; margin-block: .9rem; }
.plugin-installation pre { overflow-x: auto; padding: .75rem; background: var(--panel); }
.plugin-installation a, .plugin-faq a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.plugin-faq details { margin-top: .75rem; }
.plugin-faq summary { cursor: pointer; }
.plugin-faq summary::marker { color: var(--accent); }
@media (max-width: 760px) { .plugin-sales-gallery { grid-template-columns: 1fr; } }

.plugin-sidebar { display: grid; gap: 1rem; min-width: 0; }
.plugin-related { background: radial-gradient(ellipse at 100% 0, #b69dff24, transparent 72%), var(--glass); }
.plugin-related h2 { margin-top: .5rem; font-size: clamp(1.3rem, 2.1vw, 1.8rem); }
.plugin-related ul { display: grid; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.plugin-related-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  gap: .35rem .65rem; padding: .55rem; border: 1px solid var(--line); border-radius: .65rem;
}
.plugin-related-link img { width: 100%; height: 54px; grid-column: 1 / -1; object-fit: cover; border-radius: .35rem; }
.plugin-related-link:hover, .plugin-related-link:focus-visible { background: #d3c5ff14; border-color: var(--accent); }
.plugin-related-link strong { font-size: .95rem; }
.plugin-related-copy { display: block; color: var(--muted); font-size: .82rem; }
.plugin-related-price { color: var(--accent); font: .78rem var(--mono); white-space: nowrap; }
@media (min-width: 1100px) {
  .plugin-related-link { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .plugin-related-link img { grid-column: auto; }
}
@media (max-width: 760px) {
  .plugin-sidebar { display: contents; }
  .plugin-sidebar > .details:first-child { grid-row: 1; }
}

.quote-form { display: grid; gap: .55rem; margin-top: 1.2rem; }
.quote-form label { margin-top: .3rem; font-weight: 600; }
.quote-form input, .quote-form textarea {
  width: 100%; min-width: 0; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: .6rem; background: #10101ab8; color: var(--text); font: inherit;
}
.quote-form textarea { resize: vertical; }
.quote-form :is(input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote-form button { justify-self: start; margin-top: .2rem; cursor: pointer; }
.quote-form button:disabled { opacity: .7; cursor: wait; }
.quote-note { font-size: .85rem; }
.quote-feedback { color: var(--accent); }
.quote-feedback:empty { margin: 0; }

.plugin-card:has(.plugin-box-thumb) { grid-template-rows: auto auto 1fr auto; }
.plugin-box-thumb, .plugin-box-detail {
  display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .75rem;
}
.plugin-sales .feature-list { min-width: 0; margin-top: 0; }
.plugin-sales .feature-list h2 + p { margin-top: .55rem; }
.plugin-sales .details dd { overflow-wrap: anywhere; }
.plugin-box-detail { margin-bottom: 1.35rem; border-radius: 1rem; }
