/* hallmark: page=home, theme=custom (bold to calm), signature=try real demo sites + the flip */
/* ARACHNOWEBS homepage, v2.
   Idea: the page proves its own claim. It opens bold and dark (the "modern and impactful"
   site), lets the visitor try real demo sites in the hero, then a pinned sentence flips the
   whole page to calm and light ("simple and organized"). Real screenshots carry the page;
   no fake browser frames, no cards-in-a-row, no labels above headings.
   Type: Archivo condensed for display, Schibsted Grotesk for text, Satoshi only for the wordmark. */

/* ---------- Tokens: two moods of one system ---------- */
:root[data-style] {
  --display: "Archivo", "Schibsted Grotesk", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --flip: 520ms var(--ease-out);
  --gutter: clamp(20px, 5vw, 64px);
  --col-gap: clamp(28px, 4vw, 64px);
  --max: 1240px;
  --r-img: 10px;
  --shadow-img: 0 1px 2px rgb(0 0 0 / .25), 0 40px 80px -40px rgb(0 0 0 / .7);
}
:root[data-style="bold"] {
  --bg: #0b0b0c; --surface: #161618; --surface-line: #2a2a2e;
  --text: #f4f4f2; --muted: #a8a8b0; --accent: #f2434c; --accent-fill: #d7262f; --accent-ink: #ffffff;
  color-scheme: dark;
}
:root[data-style="calm"] {
  --bg: #121214; --surface: #1a1a1d; --surface-line: #2b2b30;
  --text: #f2f2f0; --muted: #a3a3ab; --accent: #f2434c; --accent-fill: #d7262f; --accent-ink: #ffffff;
  color-scheme: dark;
}
:root[data-style] .logo-dark { display: block; }
:root[data-style] .logo-light { display: none; }

:root[data-style] .theme-toggle { display: none; } /* the page sets its own mood */

html, body { overflow-x: clip; }
:root[data-style] body { background: var(--bg); color: var(--text); transition: background-color var(--flip), color var(--flip); }
:root[data-style] .site-header, :root[data-style] .site-footer,
:root[data-style] .btn, :root[data-style] .faq-item, :root[data-style] .lang-switch,
:root[data-style] .cart-toggle, :root[data-style] .menu-toggle, :root[data-style] .menu-row {
  transition: background-color var(--flip), color var(--flip), border-color var(--flip), transform 140ms var(--ease-out);
}
:root[data-style] .logo-word, :root[data-style] .brand-name { font-family: "Satoshi", var(--body); }
:root[data-style] .site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--surface-line); }
:root[data-style] .site-header .wrap { padding-block: 16px; max-width: var(--max); }
@media (max-width: 1099px) { :root[data-style] .nav-links { background: var(--bg); } }

.home main { display: block; }
.home .w { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.home h1, .home h2, .home h3 { font-family: var(--display); font-stretch: 74%; font-weight: 800; letter-spacing: -0.012em;
  overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
.home h2 { font-size: var(--fs-d2); line-height: .95; margin: 0; }
.home section { scroll-margin-top: 80px; }
.home :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; transition: none; }

/* ---------- 1. Hero: try the work ---------- */
.hx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "title title" "copy try";
  column-gap: var(--col-gap); row-gap: clamp(24px, 4vh, 44px); align-content: center;
  min-height: calc(100svh - 72px); padding-block: clamp(24px, 4vh, 48px); }
.hx-title { grid-area: title; font-size: var(--fs-d1); line-height: .9; margin: 0; }
.hx-title .ln { display: block; }
@media (min-width: 901px) { .hx-title .ln { white-space: nowrap; } }
.hx-copy { grid-area: copy; align-self: start; padding-top: 56px; }
.hx-try { grid-area: try; justify-self: end; width: min(100%, calc((100svh - 480px) * 1.6)); min-width: min(100%, 520px); }
.hx-lede { font-size: var(--fs-lede); line-height: 1.45; color: var(--muted); margin: 0 0 24px; max-width: 30ch; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-fact { margin: 24px 0 0; font-size: var(--fs-s); color: var(--muted); }
.hx-fact strong { color: var(--text); font-weight: 600; }

.hx-try { min-width: 0; }
.hx-pick { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.hx-pick button {
  font: 500 15px/1 var(--body); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--surface-line); border-radius: 999px; padding: 12px 16px; min-height: 44px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, transform 140ms var(--ease-out);
}
.hx-pick button:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 40%, transparent); }
.hx-pick button:active { transform: scale(0.97); }
.hx-pick button[aria-selected="true"] { color: var(--bg); background: var(--text); border-color: var(--text); }
.hx-frame { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--r-img); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-img); outline-offset: 4px; }
.hx-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out); }
.js .hx-frame img:not(.is-on) { opacity: 0; transform: scale(1.015); }
.hx-frame img:not(.is-on) { visibility: hidden; }
.js .hx-frame img:not(.is-on) { visibility: visible; }
.hx-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--fs-s); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.hx-open:hover { color: var(--text); text-decoration-color: currentColor; }

/* ---------- 2. The switch: one sentence flips the page ---------- */
.sx { position: relative; }
.sx-pin { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: var(--col-gap); align-items: center;
  min-height: 100svh; padding-block: 10vh; }
.sx-h { font-size: var(--fs-d2); line-height: .92; }
.sx-h .sx-a, .sx-h .sx-b { display: block; transition: color 600ms var(--ease-out); }
.sx-h .sx-b { margin-top: .28em; }
:root[data-style="calm"] .sx-a { color: color-mix(in srgb, var(--text) 42%, transparent); }
.sx-mark { position: relative; white-space: nowrap; }
.sx-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .075em; min-height: 3px;
  background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out) 150ms; }
:root[data-style="calm"] .sx-mark::after { transform: scaleX(1); }
.sx-note { margin: 32px 0 0; max-width: 42ch; font-size: var(--fs-l); line-height: 1.5; color: var(--muted); }
.sx-shots { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-img); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-img); }
.sx-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.sx-shots .sx-b-img { clip-path: inset(100% 0 0 0); transition: clip-path 900ms cubic-bezier(0.77, 0, 0.175, 1); }
:root[data-style="calm"] .sx-shots .sx-b-img { clip-path: inset(0 0 0 0); }

/* ---------- 3. Prices, set like a menu ---------- */
.px { padding-block: clamp(80px, 12vh, 140px); }
.px-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: end; margin-bottom: 40px; }
.px-head p { margin: 0; color: var(--muted); font-size: var(--fs-l); line-height: 1.5; max-width: 46ch; }
.menu { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }
.menu-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: var(--col-gap); align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--surface-line); }
.home .menu-row h3 { font-size: var(--fs-d3); line-height: 1; margin: 0 0 12px; min-height: 0; display: block; }
.menu-row .m-price { font-variant-numeric: tabular-nums; margin: 0; font-family: var(--display); font-stretch: 74%; font-weight: 700; font-size: var(--fs-d3); line-height: 1; white-space: nowrap; }
.menu-row .m-price span { display: block; margin-top: 8px; font: 400 15px/1.3 var(--body); color: var(--muted); }
.menu-row.is-main .m-price { color: var(--accent); }
.menu-row ul { list-style: none; margin: 4px 0 0; padding: 0; color: var(--muted); font-size: var(--fs-m); line-height: 1.5; }
.menu-row ul li { padding-left: 20px; position: relative; }
.menu-row ul li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--accent); }
.menu-row .btn { align-self: center; white-space: nowrap; }
.menu-row.in-cart { border-bottom-color: var(--accent); }
.px-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--col-gap); margin: 32px 0 0; }
.px-notes p { margin: 0; color: var(--muted); font-size: var(--fs-m); line-height: 1.55; }
.px-notes strong { color: var(--text); font-weight: 600; }

/* ---------- 4. The week ---------- */
.wk { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--surface-line); }
.wk h2 { max-width: 14ch; margin-bottom: 48px; }
.wk ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.wk li { padding-top: 20px; border-top: 2px solid var(--surface-line); }
.wk li:first-child { border-top-color: var(--accent); }
.wk .when { display: block; font-family: var(--display); font-stretch: 74%; font-weight: 700; font-size: var(--fs-xl); margin-bottom: 16px; color: var(--accent); }
.home .wk h3 { font-size: var(--fs-d4); line-height: 1.05; margin: 0 0 12px; }
.wk p { margin: 0; color: var(--muted); font-size: var(--fs-m); line-height: 1.55; }

/* ---------- 5. Questions ---------- */
.qx { padding-block: clamp(80px, 12vh, 140px); border-top: 1px solid var(--surface-line);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.qx-side { position: sticky; top: 110px; }
.qx-side p { margin: 20px 0 0; color: var(--muted); font-size: var(--fs-m); line-height: 1.5; max-width: 34ch; }
.qx-side a { color: var(--text); }
.qx .faq-list { border-top: 1px solid var(--surface-line); }
.qx .faq-item { border-bottom: 1px solid var(--surface-line); }
.qx .faq-item summary { padding: 24px 0; font-size: var(--fs-l); font-weight: 600; }
.qx .faq-item p { margin: 0 0 24px; color: var(--muted); font-size: var(--fs-m); line-height: 1.6; max-width: 60ch; }

/* ---------- 6. Close ---------- */
.cx { padding-block: clamp(88px, 14vh, 160px); border-top: 1px solid var(--surface-line); }
.cx h2 { font-size: var(--fs-d2); max-width: 15ch; margin-bottom: 36px; }
.cx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.cx-mail { font-family: var(--display); font-stretch: 74%; font-weight: 700; font-size: var(--fs-d4); text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px; overflow-wrap: anywhere; }
.cx-mail:hover { color: var(--accent); }
.cx-tel { color: var(--muted); font-size: var(--fs-l); text-decoration: none; }
.cx-tel:hover { color: var(--text); }
.cx p { margin: 28px 0 0; color: var(--muted); font-size: var(--fs-m); max-width: 52ch; }

/* ---------- Footer sits in the calm mood ---------- */
:root[data-style] .site-footer .wrap { max-width: var(--max); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hx, .sx-pin, .px-head, .qx { grid-template-columns: minmax(0, 1fr); }
  .hx { grid-template-areas: "title" "copy" "try"; }
  .hx-copy { padding-top: 0; }
  .hx-try { justify-self: stretch; width: 100%; min-width: 0; }
  .hx { min-height: auto; padding-top: 28px; }
  .sx-pin { min-height: 100svh; align-content: center; padding-block: 12vh 8vh; gap: 28px; }
  .menu-row { grid-template-columns: minmax(0, 1fr) auto; }
  .menu-row ul { grid-column: 1 / -1; grid-row: 2; }
  .menu-row .btn { grid-column: 1 / -1; justify-self: start; }
  .px-notes { grid-template-columns: minmax(0, 1fr); }
  .wk ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .qx-side { position: static; }
}
@media (max-width: 560px) {
  .wk ol { grid-template-columns: minmax(0, 1fr); }
  .hx-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-style] body, .sx-shots .sx-b-img, .sx-mark::after, .hx-frame img, .sx-h .sx-a, .sx-h .sx-b { transition: none; }
}

/* =====================================================================
   ALIVE: motion that comes from the brand and the real work.
   ===================================================================== */
/* The hero's living spider web (drawn by motion.js on a canvas) */
.hx { position: relative; isolation: isolate; }
.hx-web { position: absolute; z-index: -1; pointer-events: none; top: -72px; right: calc(-1 * var(--gutter));
  width: min(1100px, 92vw); height: calc(100% + 72px); opacity: 1; transition: opacity var(--flip); }
:root[data-style="calm"] .hx-web { opacity: 0; }
.hx-web { -webkit-mask-image: radial-gradient(ellipse 58% 62% at 62% 40%, #000 45%, rgb(0 0 0 / .55) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 62% at 62% 40%, #000 45%, rgb(0 0 0 / .55) 68%, transparent 100%); }
@media (max-width: 900px) { .hx-web { width: 120vw; right: -40vw; height: 70%; } }

/* The demo sites scroll themselves inside the frame */
.hx-frame img { height: auto; bottom: auto; object-fit: initial;
  transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out), translate 900ms cubic-bezier(0.65, 0, 0.35, 1); }
.hx-frame img.is-on.is-scrolling { translate: 0 var(--travel, 0px); transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out), translate var(--travel-time, 6s) cubic-bezier(0.45, 0, 0.55, 1); }

/* The week: a red line draws across as you read */
.wk ol { position: relative; }
.wk li:first-child { border-top-color: var(--surface-line); }
.wk-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.no-js .wk-line, .wk-line.is-static { transform: none; }

/* Price rows answer the pointer */
@media (hover: hover) and (pointer: fine) {
  .menu-row { transition: background-color .2s ease, border-color .2s ease; }
  .menu-row:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
  .menu-row .m-price { transition: transform 300ms var(--ease-out); }
  .menu-row:hover .m-price { transform: translateX(6px); }
}

/* Switch words light up one by one (motion.js splits them) */
.sx-h .sw-word { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .hx-frame img.is-on.is-scrolling { translate: none; }
  .menu-row:hover .m-price { transform: none; }
}
.sx.is-driven .sx-shots .sx-b-img { transition: none; }
.sx-shots img { will-change: transform, clip-path; }

/* =====================================================================
   LIQUID GLASS + GLOW (bold mood only; the calm mood stays flat and plain)
   ===================================================================== */
:root[data-style] {
  --glass-fill: linear-gradient(150deg, rgb(255 255 255 / .065) 0%, rgb(255 255 255 / .012) 48%, rgb(255 255 255 / .04) 100%), rgb(14 14 18 / .2);
  --glass-line: rgb(255 255 255 / .16);
  --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .32), inset 0 -1px 0 rgb(255 255 255 / .06), inset 0 0 20px rgb(255 255 255 / .04), 0 22px 44px -22px rgb(0 0 0 / .75);
  --glass-filter: blur(6px) saturate(165%) brightness(1.05);
  --glow: rgb(242 67 76 / .55);
}
:root.lg-refract[data-style] .lg { --glass-filter: var(--lg-lens, blur(6px)) blur(2px) saturate(165%) brightness(1.05); }

/* The header becomes a floating glass bar over the web; in calm it is a plain bar.
   Same box in both moods, so nothing below it moves when the page flips. */
:root[data-style] .site-header { padding-top: 10px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
:root[data-style] .site-header .wrap { position: relative; border: 1px solid transparent; border-radius: 20px; padding-inline: 20px;
  transition: background-color var(--flip), border-color var(--flip), box-shadow var(--flip), border-radius var(--flip); }
:root[data-style] .site-header .wrap { background: var(--glass-fill); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }

/* bright rim that catches the light along the top-left edge */
:root[data-style] .lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgb(255 255 255 / .6), rgb(255 255 255 / 0) 30%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:root[data-style] .lang-switch, :root[data-style] .cart-toggle, :root[data-style] .menu-toggle { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .14); }

/* The trade picker becomes one glass bar */
.hx-pick { position: relative; display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--surface-line); }
.hx-pick button { border-color: transparent; }
:root[data-style] .hx-pick { background: var(--glass-fill); border-color: var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.hx-pick button[aria-selected="true"] { box-shadow: 0 4px 14px -6px rgb(0 0 0 / .5); }

/* Glow, used where light means something */
/* the preview sits in a warm pool of light, like a lit screen in a dark room */
.hx-try { position: relative; }
.hx-try::before { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 18%; bottom: -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 67 76 / .32), rgb(242 67 76 / 0)); filter: blur(28px); opacity: 1; transition: opacity var(--flip); pointer-events: none; }
:root[data-style="calm"] .hx-try::before { opacity: 0; }
:root[data-style="bold"] .hx-frame { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 90px -40px rgb(0 0 0 / .9); }
/* the bold half of the switch keeps a faint red light on the barbershop screen */
.sx-shots { overflow: visible; }
.sx-shots img { border-radius: var(--r-img); }
.sx-shots::before { content: ""; position: absolute; inset: 8% 4% -6%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(242 67 76 / .3), rgb(242 67 76 / 0)); filter: blur(30px); transition: opacity var(--flip); }
:root[data-style="calm"] .sx-shots::before { opacity: 0; }
/* the price in the main row glows softly in the dark */
:root[data-style="bold"] .menu-row.is-main .m-price { text-shadow: 0 0 24px rgb(242 67 76 / .45); }
:root[data-style] .site-header { padding-inline: clamp(8px, 2vw, 20px); }

/* =====================================================================
   INNER PAGES (pricing, work, contact, legal) on the same system
   ===================================================================== */
.inner main.wrap { max-width: var(--max); padding-inline: var(--gutter); display: block; }
.inner main > .section { padding-top: clamp(48px, 9vh, 96px); gap: 40px; }
.inner h1 { font-size: var(--fs-d2); line-height: .92; margin: 0; max-width: 14ch; }
.inner .section-head { max-width: none; gap: 20px; }
.inner .section-head .lede { color: var(--muted); font-size: var(--fs-lede); line-height: 1.5; max-width: 58ch; margin: 0; }
.inner .cx { padding-inline: 0; margin-top: clamp(64px, 10vh, 120px); }

/* Pricing */
.px-page .menu { margin-top: 8px; }
.home .menu-row .m-name { font-size: var(--fs-d3); line-height: 1; margin: 0 0 12px; }
.px-page .px-notes { margin-top: 8px; }
.inner .free-card { background: none; border: 0; border-top: 2px solid var(--text); border-radius: 0; padding: 32px 0 0; margin-top: 24px;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--col-gap); box-shadow: none; }
.inner .free-head h2 { font-size: var(--fs-d3); line-height: 1; margin: 0 0 12px; }
.inner .free-head p { margin: 0; color: var(--muted); }
.inner .free-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--surface-line); }
.inner .free-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--surface-line); }
.inner .free-name { font-weight: 600; font-size: var(--fs-m); }
.inner .free-name small { display: block; margin-top: 4px; font-weight: 400; font-size: var(--fs-s); color: var(--muted); line-height: 1.5; }
.inner .free-tag { font-family: var(--display); font-stretch: 74%; font-weight: 700; font-size: var(--fs-xl); color: var(--accent); background: none; border: 0; padding: 0; white-space: nowrap; }
.inner .note { color: var(--muted); font-size: var(--fs-s); max-width: 62ch; }

/* Our work: big real sites that scroll themselves */
.inner .projects { display: grid; gap: clamp(64px, 10vh, 120px); margin-top: 16px; }
.inner .project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--col-gap); align-items: center; }
.inner .project:nth-child(even) .shot { order: 2; }
.inner .shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-img); border: 0;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 40px 90px -40px rgb(0 0 0 / .9); transform: none; background: var(--surface); }
.inner .shot:hover { transform: none; }
.inner .shot img { position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: auto; object-fit: initial; transition: translate 900ms cubic-bezier(0.65, 0, 0.35, 1); }
.inner .shot img.is-scrolling { translate: 0 var(--travel, 0px); transition: translate var(--travel-time, 6s) cubic-bezier(0.45, 0, 0.55, 1); }
.inner .shot::before { content: ""; position: absolute; inset: 10% 6% -8%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(242 67 76 / .22), rgb(242 67 76 / 0)); filter: blur(30px); }
.inner .project-body h2 { font-size: var(--fs-d3); line-height: .95; margin: 0 0 16px; }
.inner .project-body p { color: var(--muted); font-size: var(--fs-m); line-height: 1.55; margin: 0 0 20px; max-width: 44ch; }
.inner .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.inner .chips li { font-size: var(--fs-s); color: var(--text); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--surface-line); background: none; }

/* Contact: the form sits on a glass panel */
.inner .contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); align-items: start; }
.inner .contact-card { position: relative; border-radius: 22px; padding: clamp(24px, 3vw, 40px);
  background: var(--glass-fill); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
.inner .contact-card h2 { font-size: var(--fs-d3); margin: 0 0 20px; }
.inner .contact-form input, .inner .contact-form textarea { background: rgb(0 0 0 / .28); border: 1px solid rgb(255 255 255 / .12); color: var(--text); border-radius: 10px; }
.inner .contact-form input:focus, .inner .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(242 67 76 / .22); }
.page-contact main { position: relative; }
.page-contact .contact-card::before { content: ""; position: absolute; inset: 10% -4% -6%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(242 67 76 / .2), rgb(242 67 76 / 0)); filter: blur(34px); }
.inner .email-line { color: var(--muted); }
.inner .email-line a { color: var(--text); }

/* Legal pages: a comfortable reading column */
.inner .legal { max-width: 70ch; }
.inner .legal h2 { font-size: var(--fs-d4); margin: 40px 0 12px; }
.inner .legal p, .inner .legal li { color: color-mix(in srgb, var(--text) 82%, transparent); line-height: 1.65; }

@media (max-width: 900px) {
  .inner .project, .inner .contact-grid, .inner .free-card { grid-template-columns: minmax(0, 1fr); }
  .inner .project:nth-child(even) .shot { order: 0; }
}

/* =====================================================================
   PHONES: a glass buy bar, shown after the first screen, hidden at the end
   ===================================================================== */
.buy-bar { display: none; }
@media (max-width: 700px) {
  .buy-bar { display: flex; position: fixed; z-index: 35; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 18px;
    background: var(--glass-fill); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow), 0 18px 40px -16px rgb(0 0 0 / .8);
    -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
    transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform 420ms var(--ease-out), opacity 300ms var(--ease-out); }
  .buy-bar.is-on { transform: none; opacity: 1; }
  .buy-bar p { margin: 0; font-size: var(--fs-s); line-height: 1.3; color: var(--muted); }
  .buy-bar p strong { display: block; color: var(--text); font-size: var(--fs-s); }
  .buy-bar .btn { flex: none; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .buy-bar { transition: none; } .inner .shot img.is-scrolling { translate: none; } }
.inner .project:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
@media (max-width: 900px) { .inner .project:nth-child(even) { grid-template-columns: minmax(0, 1fr); } }
.inner .contact-form ::placeholder { color: var(--muted); opacity: 1; }
.page-privacy main p, .page-privacy main li, .page-terms main p, .page-terms main li { max-width: 60ch; }
.page-contact h1 { font-size: clamp(40px, 5vw, 76px); }

/* =====================================================================
   PHONES & PERFORMANCE
   ===================================================================== */
/* Soft light pools without the costly blur filter (cheaper on every device) */
.hx-try::before, .sx-shots::before, .inner .shot::before, .page-contact .contact-card::before { filter: none; }

/* Clearer, lighter glass on touch screens and small screens */
@media (max-width: 900px), (pointer: coarse) {
  :root[data-style] {
    --glass-fill: linear-gradient(150deg, rgb(255 255 255 / .055) 0%, rgb(255 255 255 / .01) 50%, rgb(255 255 255 / .035) 100%), rgb(12 12 16 / .2);
    --glass-filter: blur(5px) saturate(155%);
    --glass-shadow: inset 0 1px 0 rgb(255 255 255 / .28), inset 0 -1px 0 rgb(255 255 255 / .05), 0 16px 32px -18px rgb(0 0 0 / .7);
  }
}

@media (max-width: 700px) {
  /* Tall phone frames show the phone version of each demo site, readable */
  .hx-frame { aspect-ratio: 4 / 5; }
  .sx-shots { aspect-ratio: 1 / 1; }
  .inner .shot { aspect-ratio: 4 / 5; }

  /* More room to breathe */
  .hx { row-gap: 40px; padding-top: 48px; padding-bottom: 64px; }
  .hx-title { margin-bottom: 4px; }
  .hx-lede { margin-bottom: 32px; font-size: var(--fs-l); }
  .hx-actions { gap: 12px; }
  .hx-fact { margin-top: 28px; }
  .hx-pick { margin-bottom: 20px; }
  .hx-open { margin-top: 20px; }
  .sx-pin { gap: 36px; padding-block: 14vh 10vh; }
  .sx-h .sx-b { margin-top: .4em; }
  .sx-note { margin-top: 28px; }
  .px, .wk, .qx, .cx { padding-block: 96px; }
  .px-head { gap: 20px; margin-bottom: 40px; }
  .menu-row { padding: 36px 0; row-gap: 20px; }
  .menu-row ul li + li { margin-top: 4px; }
  .px-notes { gap: 20px; margin-top: 40px; }
  .wk h2 { margin-bottom: 40px; }
  .wk ol { row-gap: 44px; }
  .wk h3 { margin-bottom: 12px; }
  .qx { gap: 36px; }
  .qx .faq-item summary { padding: 28px 0; }
  .cx h2 { margin-bottom: 40px; }
  .cx-row { gap: 24px; }
  .inner main > .section { padding-top: 64px; gap: 48px; }
  .inner .projects { gap: 96px; }
  .inner .project { gap: 28px; }
  .inner .free-list li { padding: 20px 0; }
  .site-footer .wrap { row-gap: 32px; }
  .hx-web { width: 100%; right: calc(-1 * var(--gutter)); height: 62%; }
}

/* =====================================================================
   PHONES: one idea per screen
   ===================================================================== */
.hx-try-label { display: none; }
.lang-in-menu { display: none; }
@media (max-width: 700px) {
  /* Header: logo, cart, menu. Language lives in the menu; cart shows a count only when there is one */
  :root[data-style] .site-header .lang-switch { display: none; }
  .nav-links .lang-in-menu { display: flex; }
  .cart-toggle.is-empty .cart-count { display: none; }
  :root[data-style] .site-header .wrap { padding-block: 10px; }

  /* First screen: the promise and one action */
  .hx { min-height: 0; padding-top: 56px; row-gap: 0; }
  .hx-title { margin-bottom: 24px; }
  .hx-copy { min-height: calc(100svh - 72px - 56px - 2 * (var(--fs-d1) * .9) - 24px); display: flex; flex-direction: column; }
  .hx-lede { margin-bottom: 36px; }
  .hx-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .hx-actions .btn-primary { min-height: 56px; font-size: var(--fs-m); }
  .hx-actions .btn-ghost { background: none; border: 0; box-shadow: none; min-height: 48px; justify-content: center;
    text-decoration: underline; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
  .hx-fact { margin-top: 20px; text-align: center; }

  /* Second screen: try the real work */
  .hx-try { margin-top: 96px; padding-top: 0; }
  .hx-try-label { display: block; margin: 0 0 18px; font-family: var(--display); font-stretch: 74%; font-weight: 800; font-size: var(--fs-d4); line-height: 1; }
  .hx-pick { margin-bottom: 20px; }
  .hx-open { margin-top: 20px; display: inline-block; }

  /* The switch gets a full screen */
  .sx-pin { min-height: 100svh; }
  .sx-h { font-size: clamp(40px, 11vw, 52px); }

  /* Footer: room and tap targets */
  .site-footer { padding-block: 64px 120px; }
  .site-footer .wrap { row-gap: 40px; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-nav { gap: 4px 20px; }
  .site-footer .operator { line-height: 1.7; margin-top: 8px; }
}

/* The web is a true background: fixed to the screen, sized once, ignores the layout around it.
   100lvh = the largest viewport height, so the phone's address bar sliding away changes nothing. */
.hx-web { position: fixed; top: 0; left: 0; right: auto; width: 100vw; height: 100lvh; z-index: -1;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 66% 34%, #000 42%, rgb(0 0 0 / .5) 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 62% at 66% 34%, #000 42%, rgb(0 0 0 / .5) 68%, transparent 100%); }
@media (max-width: 900px) { .hx-web { width: 100vw; height: 100lvh; right: auto; top: 0; } }
@media (max-width: 700px) { .hx-web { width: 100vw; height: 100lvh; right: auto; top: 0;
  -webkit-mask-image: radial-gradient(ellipse 95% 55% at 72% 30%, #000 40%, rgb(0 0 0 / .5) 66%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 55% at 72% 30%, #000 40%, rgb(0 0 0 / .5) 66%, transparent 100%); } }
