:root {
  color-scheme: dark;
  --bg: #100f17;
  --panel: #16141f;
  --raised: #1c1929;
  --line: #302b3f;
  --text: #f5f2ff;
  --muted: #b6afc7;
  --accent: #c2a8ff;
  --action: #c4a9ff;
  --action-ink: #191126;
  --header-height: 73px;
  --section-height: calc(100svh - var(--header-height));
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, figure { margin: 0; }
.shell { width: min(100% - 96px, 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 12px; padding: .6rem 1rem; background: var(--action); color: #171024; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #302b3faa; background: var(--bg); transition: transform .22s ease; }
.site-header.is-away { transform: translateY(-101%); }
.site-header:focus-within { transform: none; }
.header-inner, .footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: calc(var(--header-height) - 1px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); font: 700 21px/1 var(--display); letter-spacing: -.055em; }
.wordmark-accent { color: var(--accent); }
.brand-icon { width: 32px; height: 32px; flex: none; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 32px); color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a:hover, .techlocal-credit:hover, .text-link:hover { color: var(--accent); }
.header-inner .menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 50px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: var(--action-ink); background: var(--action); }
.button-primary:hover { background: #dbc8ff; }
.button-secondary { color: #eee5ff; background: #21192f; border-color: #463760; }
.button-secondary:hover { background: #302243; border-color: #7559a0; }
.button-small { min-height: 39px; padding: .4rem .85rem; }

.hero {
  --hero-image-height: clamp(182px, calc(100svh - 222px), 520px);
  display: grid;
  align-content: center;
  min-height: var(--section-height);
  padding-block: clamp(20px, 4svh, 45px);
  background: radial-gradient(ellipse at 78% 38%, #261843 0, #17121f 51%, transparent 77%);
}
.hero-layout { display: grid; grid-template-columns: minmax(305px, .94fr) minmax(0, 1.39fr); align-items: center; gap: clamp(28px, 4vw, 65px); }
.hero-copy { padding-block: 20px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: .7em; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; }
.eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #c49cff; box-shadow: 0 0 12px #aa78ff; flex: none; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.065em; }
h1 { margin-top: 22px; font-size: clamp(4.35rem, 7.5vw, 7.5rem); line-height: .94; }
h1 em { color: var(--accent); font-style: normal; }
.hero-body { color: var(--muted); max-width: 37ch; margin-top: 24px; font-size: clamp(16px, 1.5vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px 22px; margin-top: 22px; }
.text-link { font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.hero-price { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; }
.hero-price div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-price dt, .hero-delivery { color: var(--muted); font-size: 12px; }
.hero-price dd { margin: 0; color: var(--text); font: 700 23px/1.1 var(--display); }
.hero-delivery { margin-top: 9px; }
.hero-visual {
  display: grid;
  place-items: center;
  width: min(100%, calc(var(--hero-image-height) * 1.55));
  min-width: 0;
  aspect-ratio: 1.55;
  justify-self: end;
  padding: clamp(10px, 2.25vw, 30px);
  border: 1px solid #55446f;
  border-radius: 19px;
  background: radial-gradient(ellipse at 12% 0%, #38275b, transparent 62%),
    radial-gradient(ellipse at 92% 100%, #28204a, transparent 55%), #14121d;
  box-shadow: 0 20px 45px #0b0713a0;
}
.spec-strip { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spec-cell { min-width: 0; }
.spec-card {
  height: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #17141f;
  pointer-events: none;
  transition: transform .18s ease-out, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.spec-strip strong, .spec-strip span { display: block; }
.spec-strip strong { font: 700 16px/1.3 var(--display); }
.spec-strip span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.spec-cell:hover .spec-card {
  background: #281e3d;
  border-color: #9676cf;
  box-shadow: 0 4px 16px #a174f034;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .spec-cell:hover .spec-card {
    transform: perspective(500px) translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  }
}

.section {
  display: grid;
  align-content: center;
  min-height: var(--section-height);
  padding-block: clamp(32px, 7svh, 82px);
}
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px 34px; margin-bottom: 29px; }
h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: .99; }
.section-heading h2 { margin-top: 9px; }
.section-heading > p { color: var(--muted); max-width: 36ch; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.art-card { width: 100%; overflow: hidden; padding: clamp(7px, 1.1vw, 12px) clamp(7px, 1.1vw, 12px) 0; text-align: left; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.art-card:hover { border-color: #9a7bc5; transform: translateY(-3px); }
.art-card > span { display: block; padding: 9px 2px 12px; font-weight: 700; }
.art-card:hover > span { color: var(--accent); }
.photo-example {
  margin-top: clamp(32px, 6vw, 72px);
  padding: clamp(16px, 2.5vw, 28px);
  width: min(100%, 960px);
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: radial-gradient(ellipse at top left, #261940, transparent 75%), var(--panel);
}
.photo-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.photo-copy p { max-width: 43ch; margin-top: 12px; color: var(--muted); }
.photo-copy .button { margin-top: 17px; }
.photo-examples { display: grid; gap: 15px; width: min(100%, 360px); justify-self: end; }
.photo-mat-stage { padding: 14px 10px; border: 1px solid #514563; border-radius: 10px; background: radial-gradient(ellipse at 28% 10%, #3b323e, #1b161e 78%); }
.photo-example figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); }

.studio { background: radial-gradient(ellipse at top right, #261940, transparent 68%), #14111d; border-block: 1px solid var(--line); }
.studio-layout { display: grid; grid-template-columns: minmax(290px, 390px) minmax(0, 1fr); gap: 17px; }
.studio-controls, .studio-preview { min-width: 0; padding: clamp(17px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.options { display: grid; gap: 8px; margin: 0 0 19px; padding: 0; border: 0; min-width: 0; }
.options legend { margin-bottom: 9px; padding: 0; font-weight: 700; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.option:has(:checked) { border-color: #9975db; background: #221934; }
.option input { margin: 0; accent-color: var(--action); }
.option strong { display: block; font-size: 14px; }
.option small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.option b { color: var(--accent); font-size: 14px; }
.upload-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.file-input { width: 100%; font-size: 12px; color: var(--muted); }
.file-input::file-selector-button { padding: .55rem .75rem; margin-right: .6rem; border: 1px solid #55456d; border-radius: 6px; color: var(--text); background: var(--raised); cursor: pointer; font: 700 12px var(--body); }
.input-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.crop-controls { margin-top: 10px; font-size: 13px; }
.crop-controls input { display: block; accent-color: var(--accent); width: 100%; }
textarea { display: block; width: 100%; max-width: 100%; min-height: 105px; padding: 10px; resize: vertical; border: 1px solid #544669; border-radius: 7px; background: var(--raised); color: var(--text); font-size: 14px; }
textarea::placeholder { color: #a19ab2; }
.estimate { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; padding-top: 13px; border-top: 1px solid var(--line); }
.estimate strong { font: 700 23px var(--display); }
.review-button { width: 100%; margin-top: 13px; }
.status { min-height: 0; font-size: 12px; color: var(--accent); }
.status:not(:empty) { margin-top: 8px; }
.studio-preview { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview-top span { color: var(--muted); font-size: 13px; }
.preview-stage { display: grid; place-items: center; min-height: 205px; padding: clamp(12px, 3vw, 45px); border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse, #352451 0%, #191524 75%); }
.desk-mat {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 9 / 4;
  overflow: hidden;
  border: clamp(2px, .35vw, 5px) solid #111016;
  border-radius: 2.5% / 5.625%;
  background: #18141d;
  box-shadow: 0 2px 0 #09070c, 0 0 0 1px #877c934f, 0 9px 15px #08060bb5;
}
.desk-mat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px dashed #c3b8c27a;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #0d0b1299;
}
.desk-mat > img { width: 100%; height: 100%; object-fit: cover; }
.desk-mat--hero > img, .desk-mat--dog > img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}
/* Crop the old photographed edges away so the shared stitched edge is the only visible one. */
.desk-mat--hero > img { left: 52.1%; width: 116%; }
.desk-mat--dog > img { width: 109%; }
#preview-caption { font-size: 13px; color: var(--muted); }

.faq { display: grid; align-items: start; grid-template-columns: .7fr 1fr; gap: 21px 45px; }
.faq-items { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 16px 33px 16px 0; position: relative; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 14px; right: 5px; color: var(--accent); font: 500 23px/1 var(--display); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding: 0 14px 16px 0; }
.contact {
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 72% 10%, #2e2041, transparent 68%), #14111d;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  width: min(100% - 96px, 1120px);
  padding: clamp(23px, 4vw, 52px);
  background: linear-gradient(135deg, #23192f 2%, #181421 58%, #14141e);
  border: 1px solid #493951;
  border-radius: 23px;
  box-shadow: 0 24px 55px #09071375;
}
.contact-copy { min-width: 0; }
.contact .contact-copy h2 {
  max-width: 12ch;
  margin-top: 10px;
  font-size: clamp(2.6rem, 5.6vw, 5.3rem);
  line-height: .98;
}
.contact-copy h2 em { color: var(--accent); font-style: normal; }
.contact-intro { max-width: 36ch; color: var(--muted); margin-top: 16px; }
.contact-start { margin-top: 10px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.contact-start:hover { color: var(--text); }
.contact-art {
  min-width: 0;
  min-height: clamp(175px, 23vw, 270px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  border: 1px solid #493959;
  border-radius: 15px;
  background: radial-gradient(ellipse at 68% 68%, #352452, #211830 57%, #171322);
}
.contact-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(120deg, transparent 0 17px, #c5a8ff13 18px 19px, transparent 20px 32px);
  mask-image: linear-gradient(115deg, #000, transparent 65%, #000);
}
.contact-art-mat {
  width: 84%;
  transform: rotate(-7deg);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.contact-art-mat > img { object-position: right 52%; }
.contact-channels { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-channel {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: clamp(14px, 2.1vw, 24px);
  border: 1px solid #41344e;
  border-radius: 12px;
  background: #20192b;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.contact-channel:focus-within { border-color: #9679c2; }
.contact-channel-heading { display: flex; align-items: center; gap: 11px; }
.contact-channel h3 { margin: 0 0 3px; font: 700 19px/1.2 var(--display); }
.contact-channel p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.contact-icon {
  display: grid;
  place-items: center;
  position: relative;
  flex: 0 0 42px;
  height: 42px;
  border: 1px solid #645184;
  border-radius: 10px;
  color: #dac4ff;
  background: #38274c;
}
.contact-icon::before, .contact-icon::after { content: ""; position: absolute; }
.contact-icon-mail::before { width: 19px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; }
.contact-icon-mail::after { width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.contact-icon-chat::before { width: 18px; height: 14px; border: 1.5px solid currentColor; border-radius: 5px; transform: translateY(-2px); }
.contact-icon-chat::after { width: 5px; height: 5px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; background: #38274c; transform: translate(-4px, 5px) skewY(-40deg); }
.contact-email.button-primary { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.contact-channel .button { min-height: 44px; }
.contact-actions { display: flex; width: 100%; gap: 8px; }
.contact-whatsapp { min-width: 0; flex-wrap: wrap; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.contact-call { flex: none; min-width: 78px; border-color: #6b5289; }
.contact-link-label { font-size: 12px; font-weight: 600; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .contact-art:hover .contact-art-mat { transform: translateY(-5px) rotate(-3deg) scale(1.035); }
  .contact-channel:hover { transform: translateY(-2px); border-color: #795c99; background: #2a1f37; }
}
.site-footer { border-top: 1px solid var(--line); background: #121019; }
.footer-inner { min-height: 72px; padding-block: 10px; }
.footer-inner .wordmark { font-size: 18px; }
.footer-inner .brand-icon { width: 26px; height: 26px; }
.techlocal-credit { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; font-size: 13px; color: var(--muted); }
.techlocal-credit img { object-fit: contain; background: #f5f2ff; border-radius: 4px; padding: 2px 3px; }

dialog { max-width: min(480px, 100% - 36px); width: 100%; padding: 24px; border: 1px solid #715b8c; border-radius: 14px; color: var(--text); background: var(--panel); }
dialog::backdrop { background: #0b0813c9; }
dialog h2 { font-size: 32px; margin-right: 34px; }
.dialog-close { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; line-height: 1; border: 1px solid var(--line); border-radius: 7px; background: var(--raised); color: var(--text); font-size: 22px; }
.review-details { margin: 16px 0; }
.review-details div { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-details dt { color: var(--muted); }
.review-details dd { margin: 0; text-align: right; }
#review-content { white-space: pre-wrap; overflow-wrap: anywhere; max-height: min(23vh, 160px); overflow: auto; }
#download { margin-top: 16px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 48px); }
  .hero { padding-block: 28px; }
  .hero-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 22px; }
  h1 { font-size: clamp(3.4rem, 7.35vw, 6rem); }
  .contact-layout { width: calc(100% - 48px); }
}

@media (max-width: 870px) {
  :root { --header-height: 63px; }
  .header-inner { position: relative; }
  .header-inner .menu-toggle { display: inline-flex; min-height: 44px; }
  .header-inner .header-cta { display: none; }
  .site-nav { display: none; }
  .site-nav.is-open { display: grid; position: absolute; inset: calc(100% + 1px) 0 auto; gap: 0; padding: 6px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 10px 28px #0b0813a0; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 8px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .hero { padding-block: 21px; }
  .hero-layout { gap: 18px; }
  .hero-copy { padding-block: 4px 0; }
  h1 { margin-top: 16px; font-size: clamp(2.75rem, 7.9vw, 4rem); }
  .hero-body { margin-top: 15px; }
  .hero-actions { margin-top: 18px; gap: 8px 14px; }
  .hero-price { margin-top: 12px; }
  .hero-visual { border-radius: 13px; aspect-ratio: 1.65; }
  .spec-strip { margin-top: 19px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .spec-card { padding: 10px 12px; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading > p { margin-top: 10px; }
  .gallery { gap: 9px; }
  .art-card > span { padding: 8px 2px; font-size: 12px; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-preview { grid-row: 1; }
  .preview-stage { min-height: 150px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .contact-layout { width: calc(100% - 36px); }
  .footer-inner { flex-wrap: wrap; gap: 9px 18px; }
}

@media (max-width: 580px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: clamp(3.1rem, 11vw, 4rem); }
  .hero-visual { width: 100%; aspect-ratio: 1.85; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-example { grid-template-columns: minmax(0, 1fr); }
  .photo-examples { justify-self: center; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); padding: 19px; gap: 16px; }
  .contact .contact-copy h2 { max-width: none; }
  .contact-intro { margin-top: 12px; }
  .contact-art { min-height: clamp(160px, 44vw, 230px); }
  .contact-channels { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 581px) and (max-height: 760px) {
  .hero { padding-block: clamp(14px, 3svh, 24px); }
  .hero-copy { padding-block: 4px; }
  .hero h1 { font-size: clamp(2.65rem, min(7.5vw, 12svh), 6.25rem); margin-top: 12px; }
  .hero-body { margin-top: 12px; font-size: clamp(15px, 1.5vw, 18px); }
  .hero-actions { margin-top: 14px; gap: 6px 14px; }
  .hero-actions .button { min-height: 44px; }
  .hero-price { margin-top: 10px; }
  .spec-strip { margin-top: 16px; }
}

@media (min-width: 581px) and (max-height: 560px) {
  .hero { padding-block: 12px; }
  .hero h1 { font-size: clamp(2.4rem, min(7vw, 11svh), 5.5rem); }
  .hero-body { line-height: 1.45; }
  .hero-actions { margin-top: 10px; }
  .hero-actions .button { padding-inline: .85rem; }
  .hero-actions a { font-size: 13px; }
  .spec-strip { margin-top: 12px; }
  .spec-card { padding-block: 8px; }
}

@media (min-width: 581px) and (max-width: 760px) and (max-height: 560px) {
  .hero-layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero .eyebrow { letter-spacing: .1em; }
}

@media (max-width: 365px) {
  .shell { width: calc(100% - 28px); }
  .wordmark { font-size: 18px; gap: 7px; }
  .contact-layout { width: calc(100% - 28px); padding: 15px; }
  .brand-icon { width: 28px; height: 28px; }
  .header-inner { gap: 8px; }
  .button-small { font-size: 12px; padding-inline: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
