/* ============================================
   PavlenkoVV — public design system
   ============================================ */

:root {
  --paper: #f3f0e8;
  --paper-2: #eae5d9;
  --card: #fbf9f3;
  --ink: #10110d;
  --ink-2: #282a23;
  --muted: #67695f;
  --line: rgba(16, 17, 13, 0.14);
  --line-strong: rgba(16, 17, 13, 0.28);
  --accent: #d6ff3f;
  --accent-soft: #eaff9a;
  --accent-ink: #10110d;
  --orange: #ff6238;
  --blue: #2e5bff;
  --radius: 22px;
  --radius-lg: 32px;
  --container: 1380px;
  --gutter: clamp(18px, 4vw, 52px);
  --header-h: 80px;
  --shadow: 0 18px 48px rgba(16, 17, 13, 0.08);
  --font-display: 'Unbounded Variable', 'Manrope Variable', 'Noto Sans SC', 'Hiragino Sans', 'Malgun Gothic', system-ui, sans-serif;
  --font-body: 'Manrope Variable', 'Noto Sans SC', 'Hiragino Sans', 'Malgun Gothic', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --paper: #0b0c09;
  --paper-2: #11130e;
  --card: #15170f;
  --ink: #f3f1e9;
  --ink-2: #d8d6cc;
  --muted: #9b9d92;
  --line: rgba(243, 241, 233, 0.14);
  --line-strong: rgba(243, 241, 233, 0.28);
  --accent: #c9f43c;
  --accent-soft: #3d4a12;
  --accent-ink: #0b0c09;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[data-theme="dark"] :focus-visible { outline-color: var(--accent); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
main { display: block; }
.section { padding: clamp(64px, 8.5vw, 122px) 0; }
.section-tight { padding: clamp(44px, 5vw, 72px) 0; }
.section-line { border-top: 1px solid var(--line); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.no-scroll { overflow: hidden; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2, .page-title, .hero-title, .why-title, .contact-title, .footer-cta h2 {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 62px); margin-top: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); max-width: 560px; line-height: 1.65; text-wrap: pretty; }
.section-head-right { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.section-head-right p { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn-sm { min-height: 42px; padding: 10px 16px; font-size: 13px; }
.btn-lg { min-height: 58px; padding: 15px 28px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s, color .2s; }
.text-link .ico { width: 16px; height: 16px; }
.text-link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 34px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; position: relative;
  font-family: var(--font-display); font-weight: 760; font-size: 14px; letter-spacing: -.1em;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 12%, transparent);
}
.brand-mark span:first-child { transform: translate(2px, -4px); }
.brand-mark span:nth-child(2) { transform: translate(-2px, 4px); }
.brand-mark i { position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-text strong { font-family: var(--font-display); font-weight: 620; font-size: 15px; letter-spacing: -.04em; }
.brand-text strong span { color: var(--muted); }
.brand-text small { font-size: 8.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 22px); margin-left: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 2px; border: 0; background: none;
  font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-link:hover::after, .nav-link.is-active::after, .nav-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.nav-trigger[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.nav-count {
  font-size: 9px; line-height: 1; padding: 3px 5px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--muted);
}
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .2s, border-color .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn .ico { width: 18px; height: 18px; }
.header-admin { color: var(--muted); }
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 750;
  transition: border-color .2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary .ico { width: 16px; height: 16px; }
.lang-chev { width: 12px !important; height: 12px !important; color: var(--muted); }
.lang-switch[open] summary { border-color: var(--ink); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 268px; z-index: 80;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
  box-shadow: var(--shadow);
}
.lang-menu-head { display: flex; justify-content: space-between; padding: 10px 12px 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; transition: background .15s; }
.lang-option:hover, .lang-option.is-active { background: var(--paper-2); }
.lang-option .ico { margin-left: auto; width: 15px; height: 15px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 2px; }
.lang-flag { font-size: 19px; line-height: 1; }
.lang-option span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.15; }
.lang-option b { font-size: 13px; font-weight: 700; }
.lang-option small { font-size: 9px; color: var(--muted); letter-spacing: .12em; margin-top: 2px; }
.theme-icon { display: none; align-items: center; justify-content: center; }
[data-theme="light"] .theme-moon { display: inline-flex; }
[data-theme="dark"] .theme-sun { display: inline-flex; }
.theme-toggle { display: inline-flex; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.burger:hover span:nth-child(1) { transform: translateX(2px); }
.header-cta { min-height: 42px; padding: 0 18px; font-size: 12.5px; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(16, 17, 13, .12); z-index: 70;
}
.mega.is-open { animation: megaIn .22s ease both; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega-inner {
  display: grid; grid-template-columns: 286px minmax(0, 1fr) 300px; gap: clamp(22px, 3vw, 44px);
  padding-top: 30px; padding-bottom: 34px;
}
.mega-kicker { display: flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: .17em; text-transform: uppercase; font-weight: 750; color: var(--muted); margin-bottom: 18px; }
.mega-kicker .dot { width: 6px; height: 6px; }
.mega-rail { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding-right: clamp(20px, 2.5vw, 36px); }
.mega-tab {
  display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 9px;
  width: 100%; padding: 15px 12px; margin-bottom: 6px; border: 0; border-radius: 13px;
  background: none; text-align: left; transition: background .2s, color .2s;
}
.mega-tab:hover { background: var(--paper-2); }
.mega-tab.is-active { background: var(--ink); color: var(--paper); }
.mega-tab-num { font-family: var(--font-display); font-size: 10px; color: var(--muted); }
.mega-tab.is-active .mega-tab-num { color: var(--accent); }
.mega-tab span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.mega-tab b { font-family: var(--font-display); font-size: 14px; font-weight: 560; letter-spacing: -.02em; }
.mega-tab small { font-size: 10px; color: var(--muted); letter-spacing: .06em; }
.mega-tab.is-active small { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.mega-tab .ico { width: 15px; height: 15px; opacity: .5; }
.mega-rail-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding-top: 24px; }
.mega-pane-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 14px; }
.mega-pane-head h3 { font-family: var(--font-display); font-size: 27px; font-weight: 580; letter-spacing: -.04em; margin: 6px 0 0; }
.mega-pane-head p { max-width: 300px; color: var(--muted); font-size: 12.5px; margin: 0; line-height: 1.5; }
.mega-list { display: grid; }
.mega-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 13px 8px; border-top: 1px solid var(--line); transition: background .15s, padding .2s; }
.mega-item:hover { background: var(--paper-2); padding-left: 14px; padding-right: 14px; }
.mega-item-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.mega-item-icon .ico { width: 19px; height: 19px; }
.mega-item-body { display: flex; flex-direction: column; min-width: 0; }
.mega-item-body b { font-size: 13px; font-weight: 750; }
.mega-item-body small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-item-meta { font-size: 9px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 7px; white-space: nowrap; }
.mega-item-arrow { width: 16px; height: 16px; color: var(--muted); }
.mega-all { display: inline-flex; align-items: center; gap: 7px; margin-top: 15px; font-size: 12px; font-weight: 750; }
.mega-all .ico { width: 15px; height: 15px; }
.mega-feature { background: var(--accent); color: var(--accent-ink); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; align-self: start; transform: rotate(1deg); }
.mega-feature-top { display: flex; justify-content: space-between; align-items: center; }
.mega-feature .tag { font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; border: 1px solid rgba(16,17,13,.25); border-radius: 999px; padding: 4px 8px; }
.mega-feature-num { font-family: var(--font-display); font-size: 11px; opacity: .55; }
.mega-feature-icon { width: 58px; height: 58px; border-radius: 15px; background: rgba(16,17,13,.12); display: flex; align-items: center; justify-content: center; margin: 30px 0 18px; }
.mega-feature-icon .ico { width: 28px; height: 28px; }
.mega-feature h4 { font-family: var(--font-display); font-size: 21px; font-weight: 620; letter-spacing: -.03em; margin: 0 0 6px; }
.mega-feature p { font-size: 12px; line-height: 1.5; margin: 0 0 20px; color: rgba(16,17,13,.7); }
.mega-feature-meta { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 700; padding: 12px 0; border-top: 1px solid rgba(16,17,13,.18); margin-bottom: 12px; }
.mega-feature-meta span { display: inline-flex; align-items: center; gap: 5px; }
.mega-feature-meta .ico { width: 13px; height: 13px; }
.mega-feature .btn { background: var(--accent-ink); color: var(--accent); }
.mega-feature .btn:hover { background: #fff; color: var(--accent-ink); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 120; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; animation: menuIn .25s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu-head { height: 76px; display: flex; align-items: center; justify-content: space-between; flex: none; border-bottom: 1px solid var(--line); }
.mobile-close .ico { width: 20px; height: 20px; }
.mobile-menu-scroll { overflow-y: auto; padding-bottom: 40px; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 0; }
.mobile-nav > a, .mobile-group > summary {
  display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(22px, 6vw, 34px); font-weight: 560; letter-spacing: -.04em;
}
.mobile-nav > a span, .mobile-group > summary span { font-family: var(--font-body); font-size: 10px; font-weight: 700; color: var(--muted); width: 22px; flex: none; }
.mobile-nav > a .ico { margin-left: auto; width: 20px; height: 20px; color: var(--muted); }
.mobile-group summary { cursor: pointer; list-style: none; }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary .ico { margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.mobile-group[open] summary .ico { transform: rotate(180deg); }
.mobile-group-body { padding: 6px 0 14px 36px; display: flex; flex-direction: column; gap: 2px; }
.mobile-group-body a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mobile-group-body a b { font-weight: 650; }
.mobile-group-body a small { color: var(--muted); font-size: 11px; }
.mobile-all { color: var(--muted); font-weight: 700; font-size: 12px !important; gap: 8px; }
.mobile-all .ico { width: 15px; height: 15px; margin: 0 !important; }
.mobile-langs { padding: 24px var(--gutter); }
.mobile-langs > span { font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 750; }
.mobile-langs > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.mobile-langs a { font-size: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.mobile-langs a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mobile-actions { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 9px; }
.mobile-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mobile-socials { display: flex; gap: 8px; padding: 24px var(--gutter) 0; }
.mobile-socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--social); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse at 70% 35%, #000 10%, transparent 70%);
  opacity: .4;
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -160px; top: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 4.5vw, 70px); align-items: center; padding-top: clamp(52px, 7vw, 94px); padding-bottom: clamp(34px, 5vw, 58px); }
.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: clamp(24px, 3vw, 36px); animation: fadeUp .7s .1s ease both; }
.hero-title { font-size: clamp(46px, 7.1vw, 104px); line-height: .96; letter-spacing: -.055em; margin: 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp .95s cubic-bezier(.2,.75,.2,1) forwards; }
.hero-title .line:nth-child(1) > span { animation-delay: .12s; }
.hero-title .line:nth-child(2) > span { animation-delay: .22s; }
.hero-title .line:nth-child(3) > span { animation-delay: .32s; }
.hero-title .accent { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 0 .09em .04em; display: inline-block; transform: rotate(-1.2deg); }
.hero-sub { max-width: 560px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; color: var(--muted); margin: clamp(24px, 3vw, 34px) 0 0; animation: fadeUp .8s .52s ease both; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3.5vw, 38px); animation: fadeUp .8s .62s ease both; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 12px; color: var(--muted); animation: fadeUp .8s .72s ease both; }
.hero-note .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47,191,113,.5); animation: pulse 2.4s infinite; flex: none; }
.hero-visual { position: relative; min-height: 560px; animation: fadeUp 1s .35s ease both; }
.hero-panel { position: absolute; border-radius: 26px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.hero-panel-main { left: 0; top: 18px; width: 76%; height: 500px; padding: 16px; transform: rotate(-2.2deg); display: flex; flex-direction: column; }
.hero-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; font-weight: 750; color: var(--muted); padding: 3px 5px 12px; }
.hero-panel-head span:last-child { display: inline-flex; align-items: center; gap: 5px; }
.hero-panel-head .dot { width: 5px; height: 5px; }
.phone { margin: auto; width: min(78%, 264px); aspect-ratio: 9 / 18.3; background: var(--ink); border-radius: 36px; padding: 8px; box-shadow: 0 24px 40px rgba(0,0,0,.25); position: relative; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 38%; height: 15px; background: var(--ink); border-radius: 999px; z-index: 3; }
.phone-screen { height: 100%; border-radius: 30px; overflow: hidden; position: relative; background: linear-gradient(150deg, #d6ff3f, #a8c62d 45%, #20231a); }
.phone-photo { position: absolute; inset: 0; background-image: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)), url('/uploads/project-aurora.jpg'); background-size: cover; background-position: center; }
.phone-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 14px 16px; color: #fff; }
.phone-ui-top { display: flex; justify-content: space-between; font-size: 7px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.phone-ui-mid { margin-top: auto; }
.phone-ui-mid .mini-logo { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 8px; font-weight: 800; margin-bottom: 10px; }
.phone-ui-mid h5 { font-family: var(--font-display); font-size: 19px; line-height: .98; letter-spacing: -.04em; margin: 0 0 6px; }
.phone-ui-mid p { font-size: 7.5px; opacity: .75; margin: 0 0 10px; }
.phone-ui-mid .mini-btn { display: inline-flex; font-size: 7px; font-weight: 800; background: var(--accent); color: var(--ink); padding: 5px 9px; border-radius: 999px; }
.phone-nav { display: flex; justify-content: space-between; padding: 10px 8px 4px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,.22); }
.phone-nav span { width: 5px; height: 5px; background: rgba(255,255,255,.65); border-radius: 50%; }
.hero-chip { position: absolute; background: var(--accent); color: var(--accent-ink); border: 1px solid rgba(16,17,13,.15); border-radius: 16px; box-shadow: var(--shadow); }
.hero-chip-lighthouse { right: 0; top: 74px; width: 128px; padding: 14px; transform: rotate(3.5deg); }
.hero-chip-lighthouse .ring { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 9px; background: conic-gradient(var(--accent-ink) 0 94%, rgba(16,17,13,.16) 94% 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.hero-chip-lighthouse .ring::before { content: ""; position: absolute; inset: 5px; background: var(--accent); border-radius: 50%; }
.hero-chip-lighthouse .ring b { position: relative; font-family: var(--font-display); font-size: 15px; }
.hero-chip-lighthouse small { font-size: 8px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }
.hero-chip-lighthouse span { display: block; font-size: 9px; margin-top: 2px; opacity: .7; }
.hero-chip-code { right: 5px; bottom: 92px; width: 178px; padding: 14px; background: var(--ink); color: var(--paper); border-color: rgba(255,255,255,.1); transform: rotate(-2.5deg); }
.hero-chip-code .code-dots { display: flex; gap: 4px; margin-bottom: 10px; }
.hero-chip-code .code-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hero-chip-code .code-dots span:first-child { background: var(--accent); }
.hero-chip-code pre { margin: 0; font-family: ui-monospace, monospace; font-size: 9px; line-height: 1.7; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.hero-chip-code pre b { color: var(--accent); font-weight: 500; }
.hero-chip-days { left: -16px; bottom: 28px; width: 150px; padding: 15px 16px; transform: rotate(1.6deg); background: var(--card); color: var(--ink); }
.hero-chip-days b { font-family: var(--font-display); font-size: 28px; letter-spacing: -.05em; display: block; line-height: 1; }
.hero-chip-days span { font-size: 9px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); font-weight: 750; }
.hero-chip-days i { position: absolute; right: 12px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); align-items: center; }
.hero-stat { display: flex; align-items: baseline; gap: 10px; }
.hero-stat b { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 36px); font-weight: 560; letter-spacing: -.05em; line-height: 1; }
.hero-stat span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; max-width: 120px; line-height: 1.3; }
.hero-scroll { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 750; justify-self: end; }
.hero-scroll .ico { width: 15px; height: 15px; animation: bob 2s infinite; }

@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.45); } 70% { box-shadow: 0 0 0 8px rgba(47,191,113,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,113,0); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Ticker */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-bottom: 1px solid var(--line); }
.ticker-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-group span { display: inline-flex; align-items: center; gap: 22px; padding: 15px 22px; font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 480; white-space: nowrap; }
.ticker-group span::after { content: "✳"; color: var(--accent); font-size: 14px; }

/* ---------- Services ---------- */
.services .section-head { margin-bottom: 42px; }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.service-card {
  position: relative; display: flex; flex-direction: column; min-height: 330px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px); overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.service-card::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.service-card:hover::after { opacity: 1; }
.service-card:nth-child(1) { grid-column: span 7; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service-card:nth-child(2) { grid-column: span 5; }
.service-card:nth-child(3), .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 4; }
.service-card:nth-child(1)::after { opacity: .9; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
.service-num { font-family: var(--font-display); font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.service-card:first-child .service-num { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.service-icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--paper-2); color: var(--ink); }
.service-card:first-child .service-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--accent); }
.service-icon .ico { width: 22px; height: 22px; }
.service-title { font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); font-weight: 560; letter-spacing: -.035em; line-height: 1.1; margin: 0 0 10px; }
.service-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; max-width: 480px; }
.service-card:first-child .service-desc { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.service-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.service-features li { font-size: 12px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.service-features .ico { width: 13px; height: 13px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 2px; margin-top: 2px; }
.service-card:first-child .service-features li { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.service-card:first-child .service-features .ico { color: var(--ink); }
.service-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.service-card:first-child .service-bottom { border-color: rgba(255,255,255,.14); }
.service-price { display: flex; flex-direction: column; }
.service-price small { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 750; }
.service-card:first-child .service-price small { color: color-mix(in srgb, var(--paper) 50%, transparent); }
.service-price b { font-family: var(--font-display); font-size: 22px; font-weight: 560; letter-spacing: -.04em; }
.service-price span { font-size: 10px; color: var(--muted); }
.service-card:first-child .service-price span { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.service-link { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; flex: none; }
.service-card:first-child .service-link { border-color: rgba(255,255,255,.25); color: var(--paper); }
.service-link:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(8deg); }
.service-link .ico { width: 18px; height: 18px; }
.service-badge { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 5px 9px; }

/* ---------- Why ---------- */
.why { background: var(--ink); color: var(--paper); border-radius: clamp(26px, 3vw, 40px); margin: 0 clamp(10px, 1.5vw, 22px); overflow: hidden; position: relative; }
.why::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; opacity: .18; mask-image: linear-gradient(to bottom, #000, transparent 55%); }
.why-inner { position: relative; padding: clamp(40px, 6vw, 84px) clamp(24px, 4vw, 64px); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); }
.why-copy { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; }
.why .eyebrow { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.why-title { font-size: clamp(36px, 4.8vw, 68px); margin: 16px 0 22px; color: var(--paper); }
.why-text { color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 15px; line-height: 1.7; max-width: 440px; }
.why-note { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; letter-spacing: .06em; color: color-mix(in srgb, var(--paper) 50%, transparent); text-transform: uppercase; font-weight: 700; }
.why-note .signature { font-family: var(--font-display); font-size: 19px; letter-spacing: -.04em; color: var(--accent); text-transform: none; }
.why-points { display: flex; flex-direction: column; }
.why-point { display: grid; grid-template-columns: 44px 42px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.14); align-items: start; }
.why-point:first-child { border-top: 0; padding-top: 0; }
.why-point-num { font-family: var(--font-display); font-size: 10px; color: color-mix(in srgb, var(--paper) 40%, transparent); padding-top: 4px; }
.why-point-icon { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); background: rgba(255,255,255,.04); }
.why-point-icon .ico { width: 20px; height: 20px; }
.why-point h3 { font-family: var(--font-display); font-size: clamp(16px, 1.5vw, 21px); font-weight: 540; letter-spacing: -.02em; margin: 0 0 6px; color: var(--paper); }
.why-point p { color: color-mix(in srgb, var(--paper) 57%, transparent); font-size: 13px; line-height: 1.6; margin: 0; max-width: 520px; }
.why-point:hover .why-point-icon { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ---------- Gallery ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 36px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px 16px; }
.project-card { display: flex; flex-direction: column; position: relative; }
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3), .project-card:nth-child(4), .project-card:nth-child(5), .project-card:nth-child(6) { grid-column: span 3; }
.project-media { position: relative; overflow: hidden; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); }
.project-card:nth-child(1) .project-media, .project-card:nth-child(2) .project-media { aspect-ratio: 16 / 10.5; }
.project-card:nth-child(n+3) .project-media { aspect-ratio: 3 / 4; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .3s; }
.project-card:hover .project-media img { transform: scale(1.055); }
.project-card:hover .project-media { border-color: var(--line-strong); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 40%, rgba(0,0,0,.15)); opacity: .7; pointer-events: none; }
.project-badge { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; gap: 5px; align-items: center; }
.project-badge span { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--ink); backdrop-filter: blur(8px); padding: 4px 8px; border-radius: 999px; }
.project-index { position: absolute; right: 12px; top: 9px; z-index: 2; font-family: var(--font-display); font-size: 10px; color: rgba(255,255,255,.85); }
.project-hover { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; transform: translateY(8px) scale(.9); opacity: 0; transition: .25s; }
.project-card:hover .project-hover { transform: none; opacity: 1; }
.project-hover .ico { width: 18px; height: 18px; }
.project-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 13px 2px 0; }
.project-info h3 { font-family: var(--font-display); font-size: clamp(15px, 1.4vw, 20px); font-weight: 560; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 4px; }
.project-card:nth-child(1) .project-info h3, .project-card:nth-child(2) .project-info h3 { font-size: clamp(19px, 2vw, 27px); }
.project-info p { margin: 0; color: var(--muted); font-size: 11px; }
.project-info .year { flex: none; font-size: 10px; color: var(--muted); padding-top: 4px; }
.gallery-foot { display: flex; justify-content: center; margin-top: 40px; }
.gallery-foot .btn { min-width: 210px; }

/* ---------- Contact ---------- */
.contact { background: var(--accent); color: var(--accent-ink); border-radius: clamp(26px, 3vw, 38px); margin: 0 clamp(10px, 1.5vw, 22px); overflow: hidden; position: relative; }
.contact::before { content: ""; position: absolute; width: 480px; height: 480px; right: -140px; bottom: -180px; border: 1px solid rgba(16,17,13,.18); border-radius: 50%; box-shadow: 0 0 0 60px rgba(16,17,13,.03), 0 0 0 120px rgba(16,17,13,.03); }
.contact-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 80px); padding: clamp(36px, 5vw, 70px) clamp(24px, 4vw, 64px); }
.contact .eyebrow { color: rgba(16,17,13,.55); }
.contact-title { font-size: clamp(38px, 5.2vw, 72px); margin: 16px 0 20px; color: var(--accent-ink); max-width: 520px; }
.contact-text { font-size: 15px; line-height: 1.65; color: rgba(16,17,13,.7); max-width: 420px; }
.contact-details { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.contact-details a, .contact-details span { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--accent-ink); }
.contact-details .ico { width: 16px; height: 16px; opacity: .6; }
.contact-note { margin-top: auto; padding-top: 28px; font-size: 11px; color: rgba(16,17,13,.55); display: flex; align-items: center; gap: 8px; }
.contact-form-wrap { background: var(--paper); border: 1px solid rgba(16,17,13,.16); border-radius: 22px; padding: clamp(20px, 2.5vw, 30px); box-shadow: 0 20px 50px rgba(16,17,13,.08); align-self: center; }
.form-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.form-head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.form-head span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 750; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field label span { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .7; }
.field input, .field textarea, .field select {
  width: 100%; background: color-mix(in srgb, var(--paper) 50%, transparent); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; font-size: 13.5px; outline: none;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2367695f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); background: var(--paper); }
.form-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.form-consent { font-size: 9.5px; line-height: 1.5; color: var(--muted); }
.form-consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-status { border-radius: 9px; padding: 10px 12px; font-size: 11.5px; line-height: 1.4; }
.form-status.success { background: color-mix(in srgb, #2fbf71 14%, transparent); color: #168044; border: 1px solid color-mix(in srgb, #2fbf71 30%, transparent); }
.form-status.error { background: color-mix(in srgb, var(--orange) 12%, transparent); color: #b23d1c; border: 1px solid color-mix(in srgb, var(--orange) 26%, transparent); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: clamp(70px, 9vw, 120px); position: relative; overflow: hidden; }
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer-cta .eyebrow { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.footer-cta h2 { font-size: clamp(36px, 5vw, 76px); margin-top: 14px; color: var(--paper); max-width: 760px; }
.footer-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; flex: none; }
.footer-mail { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: clamp(16px, 1.8vw, 24px); letter-spacing: -.03em; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 7px; }
.footer-mail .ico { width: 19px; height: 19px; color: var(--accent); }
.footer-other { padding: clamp(32px, 4vw, 50px) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.footer-section-head h3 { font-family: var(--font-display); font-size: 14px; font-weight: 540; letter-spacing: -.01em; margin: 0; display: flex; gap: 12px; align-items: center; }
.footer-section-head h3 span { font-family: var(--font-body); font-size: 9px; color: color-mix(in srgb, var(--paper) 40%, transparent); letter-spacing: .1em; }
.footer-section-head .text-link { color: var(--paper); border-color: rgba(255,255,255,.25); }
.footer-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.footer-project { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; transition: background .2s, border-color .2s; }
.footer-project:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.3); }
.footer-project-img { width: 54px; height: 54px; border-radius: 9px; overflow: hidden; flex: none; background: rgba(255,255,255,.08); }
.footer-project-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-project-body { display: flex; flex-direction: column; min-width: 0; }
.footer-project-body small { font-size: 9px; color: color-mix(in srgb, var(--paper) 48%, transparent); letter-spacing: .03em; }
.footer-project-body b { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: -.02em; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-project-arrow { margin-left: auto; color: color-mix(in srgb, var(--paper) 50%, transparent); }
.footer-project-arrow .ico { width: 17px; height: 17px; }
.footer-main { padding-top: clamp(40px, 5vw, 66px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand .brand-mark i { border-color: var(--ink); }
.footer-brand .brand-text strong span { color: color-mix(in srgb, var(--paper) 50%, transparent); }
.footer-brand .brand-text small { color: color-mix(in srgb, var(--paper) 45%, transparent); }
.footer-brand p { color: color-mix(in srgb, var(--paper) 58%, transparent); font-size: 13px; line-height: 1.6; max-width: 300px; margin: 0 0 18px; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); font-weight: 700; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #47d17d; box-shadow: 0 0 0 4px rgba(71,209,125,.15); }
.footer-socials { display: flex; gap: 7px; margin-top: 22px; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--paper) 72%, transparent); transition: background .2s, color .2s; }
.footer-socials a:hover { background: var(--social); color: #fff; border-color: var(--social); }
.footer-socials .ico { width: 16px; height: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 45%, transparent); margin: 0 0 8px; font-weight: 800; }
.footer-col a, .footer-col > span { font-size: 12.5px; color: color-mix(in srgb, var(--paper) 72%, transparent); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-col .ico { width: 14px; height: 14px; opacity: .55; }
.footer-word-wrap { overflow: hidden; padding: 0 0 10px; }
.footer-word { font-family: var(--font-display); font-size: clamp(76px, 17.5vw, 260px); font-weight: 700; line-height: .78; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px rgba(243,241,233,.20); white-space: nowrap; display: flex; justify-content: center; user-select: none; }
.footer-word span { color: var(--accent); -webkit-text-stroke: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 26px; border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; color: color-mix(in srgb, var(--paper) 48%, transparent); }
.footer-bottom .to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.footer-bottom .to-top .ico { width: 13px; height: 13px; }

/* ---------- Floating & cookies ---------- */
.float-dock { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 7px; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.float-socials { display: flex; flex-direction: column; gap: 6px; }
.float-btn { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); position: relative; transition: background .2s, color .2s, transform .2s; }
.float-btn .ico { width: 16px; height: 16px; }
.float-btn:hover { background: var(--social, var(--ink)); color: #fff; transform: scale(1.06); }
.float-theme:hover { background: var(--ink); color: var(--paper); }
.float-btn::after { content: attr(data-label); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(4px); background: var(--ink); color: var(--paper); font-size: 9px; font-weight: 700; white-space: nowrap; padding: 5px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: .2s; }
.float-btn:hover::after { opacity: 1; transform: translateY(-50%); }
.float-rule { width: 16px; height: 1px; background: var(--line); margin: 2px 0; }
.cookie-bar { position: fixed; left: 18px; bottom: 18px; z-index: 54; display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-size: 10.5px; line-height: 1.45; }
[data-cookies="accepted"] .cookie-bar { display: none; }
.cookie-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cookie-icon svg { width: 17px; height: 17px; }
.cookie-bar p { margin: 0; color: var(--muted); }
.cookie-bar p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar .btn { flex: none; min-height: 34px; padding: 6px 12px; font-size: 10px; }

/* ---------- Page heroes / utilities ---------- */
.page-hero { padding: clamp(48px, 7vw, 92px) 0 clamp(30px, 4vw, 52px); position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: end; }
.page-title { font-size: clamp(46px, 8vw, 112px); letter-spacing: -.06em; margin-top: 16px; }
.page-title .accent { color: var(--accent-ink); background: var(--accent); border-radius: 10px; padding: 0 .08em .05em; display: inline-block; transform: rotate(-1.5deg); }
.page-sub { color: var(--muted); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.65; max-width: 460px; margin: 0; }
.page-meta { display: flex; align-items: center; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 26px; }
.page-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.page-meta b { color: var(--ink); }
.page-meta .ico { width: 14px; height: 14px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { opacity: .45; }
.breadcrumbs .ico { width: 12px; height: 12px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; position: sticky; top: var(--header-h); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); z-index: 30; }
.filter-chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 650; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { width: 30px; height: 28px; border: 0; background: transparent; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }
.view-toggle .ico { width: 14px; height: 14px; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 18px; font-size: 14px; }

/* Gallery listing */
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
.collection-grid .project-card { grid-column: auto !important; }
.collection-grid .project-media { aspect-ratio: 16 / 11; }
.collection-grid .project-info h3 { font-size: clamp(18px, 2vw, 26px); }
.collection-grid.is-list { grid-template-columns: 1fr; gap: 0; }
.collection-grid.is-list .project-card { display: grid; grid-template-columns: 156px 1fr auto; align-items: center; gap: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.collection-grid.is-list .project-media { aspect-ratio: 16 / 10; border-radius: 12px; }
.collection-grid.is-list .project-hover, .collection-grid.is-list .project-badge, .collection-grid.is-list .project-index { display: none; }
.collection-grid.is-list .project-info { padding: 0; align-items: center; }
.collection-grid.is-list .project-info .year { padding: 0; }
.collection-grid.is-list .project-info p { margin-top: 3px; }
.project-list-index { display: none; }
.collection-grid.is-list .project-list-index { display: block; font-family: var(--font-display); font-size: 11px; color: var(--muted); grid-column: 1; grid-row: 1; align-self: start; }
.collection-grid.is-list .project-card > .project-media { grid-column: 2; }
.collection-grid.is-list .project-info { grid-column: 3; min-width: 300px; }
.is-hidden { display: none !important; }

/* Detail pages */
.detail-hero { padding-bottom: 26px; }
.detail-cover { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8.2; background: var(--paper-2); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); pointer-events: none; }
.detail-cover-caption { position: absolute; left: clamp(18px, 3vw, 38px); bottom: clamp(18px, 3vw, 34px); z-index: 2; color: #fff; right: 30px; }
.detail-cover-caption .eyebrow { color: rgba(255,255,255,.75); }
.detail-cover-caption h1 { font-family: var(--font-display); font-size: clamp(34px, 5.5vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 10px 0 0; text-wrap: balance; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.detail-main { min-width: 0; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.detail-facts { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.detail-fact { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.detail-fact:last-child { border-bottom: 0; }
.detail-fact span { color: var(--muted); }
.detail-fact b { font-weight: 700; text-align: right; }
.detail-cta-card { background: var(--accent); color: var(--accent-ink); border-radius: 18px; padding: 20px; }
.detail-cta-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 580; letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.15; }
.detail-cta-card p { font-size: 12px; line-height: 1.5; color: rgba(16,17,13,.68); margin: 0 0 16px; }
.detail-cta-card .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.detail-cta-card .btn:hover { background: #fff; color: var(--accent-ink); }
.detail-actions { display: flex; flex-direction: column; gap: 8px; }
.detail-actions .btn { width: 100%; }
.detail-hint { font-size: 9.5px; color: var(--muted); line-height: 1.5; padding: 0 2px; }
.prose { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 580; letter-spacing: -.03em; line-height: 1.2; margin: 34px 0 12px; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 18px; }
.prose p { margin: 0 0 16px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 20px; }
.detail-section { margin-top: clamp(34px, 4.5vw, 56px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--line); }
.detail-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.detail-section-head h2 { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 580; letter-spacing: -.04em; margin: 0; display: flex; align-items: center; gap: 10px; }
.detail-section-head h2 .ico { width: 22px; height: 22px; color: var(--muted); }
.detail-section-head span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.feature-item { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.45; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.feature-item .ico { width: 15px; height: 15px; color: var(--accent-ink); background: var(--accent); border-radius: 50%; padding: 2.5px; flex: none; margin-top: 2px; }

/* Versions / help / comments */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 24px 8px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline-item:first-child::before { background: var(--accent); border-color: var(--accent-ink); }
.timeline-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.timeline-top b { font-family: var(--font-display); font-size: 14px; font-weight: 560; letter-spacing: -.02em; }
.timeline-top span { font-size: 10px; color: var(--muted); }
.timeline-top .badge { font-size: 8px; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 6px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.timeline p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.faq { display: flex; flex-direction: column; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; font-size: 14px; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 17px; height: 17px; color: var(--muted); transition: transform .2s; flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .faq-body { padding: 0 30px 18px 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.comments { display: flex; flex-direction: column; gap: 10px; }
.comment { padding: 15px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.comment-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 7px; }
.comment-top b { font-size: 12.5px; }
.comment-top span { font-size: 9.5px; color: var(--muted); }
.comment p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.comment-form { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-2); }
.comment-form h3 { font-size: 14px; margin: 0 0 12px; font-family: var(--font-display); font-weight: 560; }
.comment-form .form-grid { gap: 10px; }
.comment-form .field textarea { min-height: 76px; }
.comment-note { font-size: 9.5px; color: var(--muted); margin-top: 7px; }
.detail-success { background: color-mix(in srgb, #2fbf71 12%, transparent); border: 1px solid color-mix(in srgb, #2fbf71 28%, transparent); color: #168044; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 14px; }

/* Project specific */
.project-body { max-width: 780px; }
.project-body .prose { font-size: 15.5px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.project-fact { padding: 12px 0; border-bottom: 1px solid var(--line); }
.project-fact span { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 750; margin-bottom: 3px; }
.project-fact b { font-size: 12.5px; font-weight: 650; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; }
.project-nav a { border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; transition: background .2s, border-color .2s; }
.project-nav a:hover { background: var(--paper-2); border-color: var(--line-strong); }
.project-nav small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.project-nav b { font-family: var(--font-display); font-size: 15px; font-weight: 540; letter-spacing: -.02em; }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.project-gallery img { width: 100%; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }
.project-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16/8; }

/* Item pages */
.item-hero { padding: clamp(36px, 5vw, 64px) 0 28px; }
.item-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.item-title { font-family: var(--font-display); font-size: clamp(42px, 6.5vw, 88px); line-height: .95; letter-spacing: -.06em; margin: 14px 0 14px; }
.item-sub { color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; max-width: 560px; margin: 0 0 22px; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.item-tag { font-size: 9.5px; font-weight: 750; letter-spacing: .03em; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; color: var(--muted); }
.item-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.item-artifact { background: var(--ink); color: var(--paper); border-radius: 24px; padding: 22px; position: relative; overflow: hidden; transform: rotate(1.2deg); box-shadow: var(--shadow); }
.item-artifact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%); }
.item-artifact-top { display: flex; justify-content: space-between; align-items: center; position: relative; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 55%, transparent); font-weight: 750; }
.item-artifact-icon { width: 80px; height: 80px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: var(--accent); margin: 34px 0 24px; position: relative; }
.item-artifact-icon .ico { width: 38px; height: 38px; }
.item-artifact h3 { position: relative; font-family: var(--font-display); font-size: 24px; font-weight: 560; letter-spacing: -.03em; margin: 0 0 5px; color: var(--paper); }
.item-artifact p { position: relative; font-size: 12px; color: color-mix(in srgb, var(--paper) 55%, transparent); margin: 0 0 24px; }
.item-artifact-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; gap: 10px; }
.item-artifact-stat b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 540; color: var(--paper); }
.item-artifact-stat span { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 45%, transparent); }
.item-artifact .btn { position: relative; margin-top: 20px; }
.item-artifact .btn-accent { width: 100%; }
.item-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.item-layout .detail-aside { top: calc(var(--header-h) + 24px); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.spec-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 650; text-align: right; }
.item-header-lite { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 26px; }

/* Links */
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-card { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); min-height: 190px; transition: background .2s, border-color .2s, transform .2s; }
.link-card:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--paper-2); }
.link-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.link-icon { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper-2); display: flex; align-items: center; justify-content: center; }
.link-icon .ico { width: 19px; height: 19px; }
.link-num { font-family: var(--font-display); font-size: 10px; color: var(--muted); }
.link-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 560; letter-spacing: -.02em; margin: 0 0 3px; }
.link-domain { font-size: 10px; color: var(--muted); }
.link-card p { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 11px 0 0; }
.link-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; }
.link-cat { font-size: 8.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.link-arrow { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.link-card:hover .link-arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.link-arrow .ico { width: 14px; height: 14px; }
.links-note { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 13px; font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; padding-bottom: 40px; }
.legal-side { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-side .eyebrow { margin-bottom: 14px; }
.legal-side nav { display: flex; flex-direction: column; gap: 2px; }
.legal-side nav a { font-size: 12px; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.legal-side nav a:hover, .legal-side nav a.is-active { background: var(--paper-2); color: var(--ink); }
.legal-doc { max-width: 780px; }
.legal-doc-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.legal-doc-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 10px; }
.legal-doc-head span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.legal-doc .prose h3 { margin-top: 27px; font-size: 17px; }
.legal-doc .prose p { font-size: 14px; line-height: 1.75; color: var(--ink-2); }

/* 404 */
.error-page { min-height: 62vh; display: flex; align-items: center; padding: 80px 0; }
.error-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.error-code { font-family: var(--font-display); font-size: clamp(130px, 24vw, 320px); line-height: .8; letter-spacing: -.08em; color: var(--ink); position: relative; }
.error-code span { color: var(--accent); -webkit-text-stroke: 2px var(--ink); }
.error-copy h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 14px; }
.error-copy p { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

/* Modal / dialog */
dialog.mockup-dialog { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink); overflow: hidden; }
dialog.mockup-dialog::backdrop { background: rgba(6, 7, 5, .82); backdrop-filter: blur(6px); }
.mockup-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mockup-top b { font-family: var(--font-display); font-size: 13px; font-weight: 550; }
.mockup-top button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; display: flex; align-items: center; justify-content: center; }
.mockup-body { max-height: calc(92vh - 60px); overflow: auto; background: var(--paper-2); }
.mockup-body img { width: 100%; height: auto; }
.mockup-meta { padding: 10px 16px; font-size: 10px; color: var(--muted); text-align: center; }

/* Cookie accepted early */
[data-cookies="accepted"] .cookie-bar { display: none; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .main-nav { gap: 12px; }
  .nav-link { font-size: 12px; }
  .header-cta { display: none; }
  .hero-title { font-size: clamp(44px, 6.6vw, 88px); }
  .hero-visual { min-height: 520px; }
  .hero-panel-main { height: 460px; }
  .footer-projects { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 500px; max-width: 620px; width: 100%; margin: 0 auto; }
  .hero-title { font-size: clamp(48px, 9vw, 92px); }
  .service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 6; }
  .service-card:nth-child(3), .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 4; }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .why-copy { position: static; }
  .why-text { max-width: 680px; }
  .why-points { margin-top: 8px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact { grid-column: 2 / 4; }
  .detail-layout, .item-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .section-head-right p { margin-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(n) { grid-column: span 1; }
  .service-card:nth-child(1) { grid-column: span 2; }
  .service-card { min-height: 300px; }
  .project-card:nth-child(1), .project-card:nth-child(2) { grid-column: span 6; }
  .project-card:nth-child(n+3) { grid-column: span 6; }
  .project-card:nth-child(n+3) .project-media { aspect-ratio: 16 / 11; }
  .gallery-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-title { max-width: 620px; }
  .contact-note { margin-top: 0; padding-top: 0; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-cta-actions { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { flex-wrap: wrap; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-sub { max-width: 620px; }
  .detail-layout, .item-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .item-hero-grid { grid-template-columns: 1fr; }
  .item-artifact { max-width: 420px; transform: none; }
  .detail-cover { aspect-ratio: 16 / 10; }
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-side { position: static; }
  .legal-side nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .legal-side nav a { border: 1px solid var(--line); }
  .error-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-scroll { display: none; }
  .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .float-dock { right: 12px; bottom: 12px; }
  body:has(.cookie-bar:not([hidden])) .float-dock { bottom: 92px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --radius: 18px; }
  body { font-size: 15px; }
  .header-inner { gap: 12px; }
  .brand-text small { display: none; }
  .brand-mark { width: 40px; height: 40px; }
  .header-actions { gap: 6px; }
  .lang-switch summary { padding: 0 10px; }
  .lang-current { font-size: 11px; }
  .lang-chev { display: none; }
  .theme-toggle { display: none; }
  .hero-grid { padding-top: 36px; padding-bottom: 28px; }
  .hero-title { font-size: clamp(42px, 13.5vw, 66px); }
  .hero-sub { font-size: 14.5px; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 0; }
  .hero-visual { min-height: 430px; }
  .hero-panel-main { height: 390px; width: 78%; left: 0; top: 0; padding: 12px; }
  .phone { border-radius: 28px; padding: 6px; }
  .phone-screen { border-radius: 23px; }
  .hero-chip-lighthouse { width: 104px; padding: 11px; top: 42px; }
  .hero-chip-lighthouse .ring { width: 42px; height: 42px; }
  .hero-chip-code { width: 146px; right: -4px; bottom: 4px; padding: 11px; }
  .hero-chip-code pre { font-size: 7.5px; }
  .hero-chip-days { width: 118px; padding: 11px; left: 0; bottom: 40px; }
  .hero-chip-days b { font-size: 21px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 0; }
  .hero-stat b { font-size: 25px; }
  .hero-stat span { font-size: 9px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(n) { grid-column: span 1; }
  .service-card { min-height: 0; }
  .why { margin: 0 8px; border-radius: 24px; }
  .why-point { grid-template-columns: 30px 38px 1fr; gap: 11px; padding: 19px 0; }
  .why-point-icon { width: 38px; height: 38px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 26px; }
  .project-card:nth-child(n) { grid-column: span 1; }
  .project-card:nth-child(n) .project-media { aspect-ratio: 16 / 11; }
  .collection-grid { grid-template-columns: 1fr; gap: 26px; }
  .collection-grid.is-list .project-card { grid-template-columns: 108px 1fr; gap: 14px; }
  .collection-grid.is-list .project-info { min-width: 0; }
  .collection-grid.is-list .project-list-index { display: none; }
  .collection-grid.is-list .project-card > .project-media { grid-column: 1; }
  .collection-grid.is-list .project-info { grid-column: 2; }
  .contact { margin: 0 8px; border-radius: 24px; }
  .contact-inner { padding: 30px 18px; }
  .contact-title { font-size: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 18px; }
  .footer-projects { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-other { padding: 28px 0; }
  .footer-word { font-size: 22vw; }
  .footer-bottom { font-size: 9px; gap: 10px; }
  .footer-bottom .to-top { margin-left: auto; }
  .float-dock { flex-direction: row; bottom: 10px; right: 50%; transform: translateX(50%); padding: 6px 8px; }
  .float-socials { flex-direction: row; }
  .float-rule { width: 1px; height: 16px; margin: 0 2px; }
  .float-btn::after { display: none; }
  .cookie-bar { bottom: 66px; align-items: flex-start; flex-wrap: wrap; }
  .cookie-bar .btn { margin-left: auto; }
  body:has(.cookie-bar:not([hidden])) .float-dock { bottom: 10px; }
  .filter-bar { top: var(--header-h); margin-inline: -16px; padding-inline: 16px; }
  .filter-actions .view-toggle { display: none; }
  .page-title { font-size: clamp(42px, 12vw, 68px); }
  .detail-cover { aspect-ratio: 4 / 4.4; border-radius: 18px; }
  .detail-cover-caption h1 { font-size: 38px; }
  .project-facts { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .project-nav { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .item-artifact-stats { gap: 6px; }
  .spec-grid { grid-template-columns: 1fr; }
  .comment-form { padding: 14px; }
  .lang-menu { right: -46px; width: 250px; }
  .footer-cta h2 { font-size: 36px; }
  .footer-mail { font-size: 15px; }
  .footer-cta-actions .btn { width: 100%; }
  .mobile-menu-head { height: 68px; }
  .mobile-nav > a, .mobile-group > summary { font-size: 25px; padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}


/* ---------- Cards for tools, notes, related ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.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; }
.img-fallback { width:100%; height:100%; min-height:180px; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:28px; color:var(--muted); background:linear-gradient(135deg,var(--paper-2),color-mix(in srgb,var(--accent) 20%,var(--paper-2))); }
.gallery-head h2 { font-family:var(--font-display); font-size:clamp(34px,4.4vw,62px); font-weight:620; letter-spacing:-.045em; line-height:1.02; margin:14px 0 0; text-wrap:balance; }
.project-hero-actions { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.project-hero-actions .detail-hint { padding:0; }

.items-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.item-card { display:flex; flex-direction:column; min-height:330px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--card); position:relative; overflow:hidden; transition:transform .25s,border-color .25s,background .25s; }
.item-card::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; right:-90px; top:-90px; background:radial-gradient(circle,color-mix(in srgb,var(--accent) 34%,transparent),transparent 68%); opacity:0; transition:.25s; }
.item-card:hover { transform:translateY(-4px); border-color:var(--line-strong); }
.item-card:hover::after { opacity:1; }
.item-card-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:30px; position:relative; z-index:1; }
.item-card-icon { width:46px; height:46px; border-radius:13px; border:1px solid var(--line); background:var(--paper-2); display:flex; align-items:center; justify-content:center; }
.item-card-icon .ico { width:22px; height:22px; }
.item-card-version { font-size:9px; letter-spacing:.06em; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:3px 7px; }
.item-card-cat { font-size:8.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; position:relative; z-index:1; }
.item-card h3 { font-family:var(--font-display); font-size:22px; font-weight:570; letter-spacing:-.035em; line-height:1.1; margin:0 0 8px; position:relative; z-index:1; }
.item-card p { font-size:12.5px; line-height:1.55; color:var(--muted); margin:0 0 16px; position:relative; z-index:1; }
.item-card-tags { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:18px; position:relative; z-index:1; }
.item-card-tags span { font-size:8.5px; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 7px; }
.item-card-foot { display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:14px; border-top:1px solid var(--line); position:relative; z-index:1; }
.item-card-stat { display:inline-flex; align-items:center; gap:4px; font-size:10px; color:var(--muted); font-weight:700; }
.item-card-stat .ico { width:12px; height:12px; }
.item-card-platform { font-size:9px; color:var(--muted); margin-left:auto; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.item-card-arrow { width:30px; height:30px; border:1px solid var(--line); border-radius:50%; display:inline-flex; align-items:center; justify-content:center; margin-left:auto; transition:.2s; }
.item-card-platform + .item-card-arrow { margin-left:6px; }
.item-card:hover .item-card-arrow { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); }
.item-card-arrow .ico { width:14px; height:14px; }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.related-grid .project-card { grid-column:auto !important; }
.related-grid .project-media { aspect-ratio:16/10 !important; }
.related-grid .project-info h3 { font-size:17px !important; }
.page-note { display:flex; align-items:center; gap:12px; margin-top:30px; padding:16px 18px; border:1px dashed var(--line-strong); border-radius:13px; font-size:11.5px; line-height:1.5; color:var(--muted); }
.page-note .text-link { margin-left:auto; flex:none; font-size:11px; color:var(--ink); }
.page-note-icon { width:30px; height:30px; border-radius:50%; background:var(--paper-2); display:flex; align-items:center; justify-content:center; flex:none; }
.page-note-icon .ico { width:14px; height:14px; }

@media (max-width:1080px) {
  .items-grid { grid-template-columns:repeat(2,1fr); }
  .related-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px) {
  .items-grid { grid-template-columns:1fr; }
  .related-grid { grid-template-columns:1fr; }
  .page-note { align-items:flex-start; flex-wrap:wrap; }
  .page-note .text-link { margin-left:42px; }
  .project-hero-actions { flex-direction:row; flex-wrap:wrap; }
}

.brand-logo { width:44px; height:44px; border-radius:12px; object-fit:contain; background:var(--paper-2); padding:3px; flex:none; border:1px solid var(--line); }
.footer-brand .brand-logo { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.16); }

.header-admin { width:auto; padding:0 12px; gap:6px; border-radius:999px; font-size:11px; font-weight:700; }
.header-admin-label { white-space:nowrap; }
@media (max-width:1240px){ .header-admin { width:42px; padding:0; } .header-admin-label { display:none; } }

.mobile-count { margin-left:8px; font-family:var(--font-body); font-size:10px; font-weight:750; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 7px; }
.mobile-close:focus-visible { outline-color: var(--accent); outline-offset: 2px; }

.mobile-group > summary .mobile-count { width:auto; flex:none; margin-left:8px; font-family:var(--font-body); font-size:10px; font-weight:750; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:2px 7px; }
.mobile-group > summary .ico { margin-left:auto; }

.footer-lang-note { font-size:9px; color:color-mix(in srgb,var(--paper) 38%,transparent); max-width:240px; line-height:1.4; }

/* Keep dark brand sections dark even when the site theme is dark */
.ticker, .why, .site-footer {
  --paper: #f3f1e9;
  --paper-2: #1a1c15;
  --card: #1a1c15;
  --ink: #10110d;
  --ink-2: #282a23;
  --muted: #9b9d92;
  --line: rgba(243, 241, 233, 0.14);
  --line-strong: rgba(243, 241, 233, 0.28);
}


/* Selects: keep the native dropdown readable in both themes */
.field select { color-scheme: light; }
.field select option,
.field select optgroup { background-color: #fbf9f3; color: #10110d; }
[data-theme="dark"] .field select { color-scheme: dark; background-color: #15170f; color: #f3f1e9; }
[data-theme="dark"] .field select option,
[data-theme="dark"] .field select optgroup { background-color: #15170f; color: #f3f1e9; }
