/* ==========================================================
   CODEGEEK TECHNOLOGIES — site.css
   Warm paper background, near-black ink, amber accent, mono labels.
   Contents: tokens · base · header · hero · sections · cards · lists
             · steps · faq · work · forms · cta · footer · motion · responsive
   ========================================================== */

:root {
  --bg: #f3f0e8;
  --bg-2: #ebe6da;
  --paper: #faf8f3;
  --ink: #17191d;
  --ink-2: #4a4d55;
  --muted: #7b7e86;
  --line: rgba(23, 25, 29, 0.12);
  --line-2: rgba(23, 25, 29, 0.2);
  --amber: #ffb400;                /* brand amber: fills & buttons */
  --amber-ink: #8f5a00;            /* amber for text on paper (AA contrast) */
  --amber-soft: rgba(255, 180, 0, 0.16);
  --dark: #16181c;
  --dark-2: #20232a;
  --on-dark: #eeece6;
  --on-dark-2: #9da0a8;
  --green: #3f8a4a;
  --shadow: 14px 14px 0 rgba(52, 42, 22, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #111; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink-2); max-width: 58ch; }
p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font: 600 0.9rem/1.2 var(--body); border: 1.5px solid transparent; cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease); }
.btn--primary { background: var(--amber); color: #15130d; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px rgba(143, 90, 0, 0.35); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.arrow::after { content: "→"; margin-left: 8px; transition: transform 0.4s var(--ease); display: inline-block; }
a:hover > .arrow::after, .btn:hover .arrow::after, .link:hover .arrow::after { transform: translateX(4px); }
.link { font-weight: 600; color: var(--amber-ink); display: inline-flex; gap: 8px; align-items: center; }
.link:hover { color: var(--ink); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.4s, box-shadow 0.4s, padding 0.4s var(--ease); padding: 18px 0; }
.header.is-scrolled { background: rgba(243, 240, 232, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; border-radius: 7px; box-shadow: 5px 5px 0 rgba(52, 42, 22, 0.12); transition: height 0.4s var(--ease), transform 0.4s var(--ease); }
.header.is-scrolled .logo img { height: 40px; }
.logo:hover img { transform: translateY(-1px); }
.nav { display: flex; align-items: center; gap: clamp(8px, 1.6vw, 22px); }
.nav > a, .nav__group > button { position: relative; font: 500 0.88rem/1 var(--body); padding: 10px 6px; color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: color 0.25s; }
.nav > a:hover, .nav__group > button:hover, .nav [aria-current="page"], .nav__group.is-current > button { color: var(--ink); }
.nav > a[aria-current="page"]::after, .nav__group.is-current > button::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: var(--amber); border-radius: 2px; }
.nav__group { position: relative; }
.nav__group > button::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); order: 2; float: right; margin: 5px 0 0 8px; }
.menu { position: absolute; top: 100%; left: -16px; min-width: 300px; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 20px 40px -20px rgba(40, 30, 10, 0.25); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s; }
.nav__group:hover .menu, .nav__group:focus-within .menu, .nav__group.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; color: var(--ink-2); }
.menu a small { display: block; font-size: 0.76rem; color: var(--muted); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--amber-soft); color: var(--ink); }
.nav > a.nav__cta { margin-left: 8px; padding: 13px 24px; background: var(--amber); color: #15130d; border-radius: 999px; font-weight: 600; }
.nav > a.nav__cta:hover { background: #ffc633; color: #15130d; transform: translateY(-2px); }
.nav > a.nav__cta[aria-current="page"]::after { display: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger i:nth-child(1) { top: 18px; } .burger i:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(116px, 15vh, 156px) 0 clamp(48px, 8vh, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero--home h1 { font-size: clamp(2.2rem, 4.3vw, 3.7rem); max-width: 17ch; }
.hero--home .lead { max-width: 54ch; }
.hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); max-width: 19ch; }
.hero .lead { margin-top: 24px; }
.hero__sub { margin-top: 16px; font: 400 0.9rem/1.7 var(--body); color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); margin-bottom: 26px; text-transform: uppercase; }
.crumbs a:hover { color: var(--ink); } .crumbs span::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.hero__visual { position: relative; width: 100%; aspect-ratio: 1.1 / 1; min-height: 340px; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hero__visual.is-dragging { cursor: grabbing; }
.scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero__visual.is-ready .scene-canvas { opacity: 1; }
.hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font: 500 0.66rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 248, 243, 0.8); white-space: nowrap; opacity: 0; transition: opacity 0.6s 1.2s; pointer-events: none; }
.hero__visual.is-ready .hint { opacity: 1; }
.hero__visual.is-fallback .hint { display: none; }
/* flat fallback when WebGL is missing */
.fb { position: absolute; inset: 6% 3%; }
.fb__card { position: absolute; inset: 8% 8% 12% 6%; width: 86%; height: auto; transform: rotate(2.4deg); filter: drop-shadow(14px 14px 18px rgba(52, 42, 22, 0.18)); border-radius: 4%; }
.is-phone .fb__card { inset: 4% 24% 6% 24%; width: 52%; border-radius: 8%; }
.fb__chip { position: absolute; height: 9%; width: auto; filter: drop-shadow(5px 6px 8px rgba(52, 42, 22, 0.16)); }
.fb__a { top: 2%; right: 0; transform: rotate(2.4deg); } .fb__b { bottom: 8%; left: 0; transform: rotate(4deg); } .fb__c { bottom: -1%; right: 8%; height: 7%; transform: rotate(5deg); }

/* ---------- Fact strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__in > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.strip__in > div:first-child { border-left: 0; padding-left: 0; }
.strip dt { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.strip dd { font: 500 1.08rem/1.3 var(--display); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--alt { background: rgba(235, 230, 218, 0.72); }
.section--paper { background: rgba(250, 248, 243, 0.8); border-block: 1px solid var(--line); }

/* faded 3D background layer (bg.js): fixed behind all content */
.bgfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; }
main, .footer { position: relative; z-index: 1; }
@media print { .bgfx { display: none; } }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--dark .lead, .section--dark p { color: var(--on-dark-2); }
.section--dark .eyebrow { color: var(--amber); }
.head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; } .head--center .eyebrow::before { display: none; }
.head .lead { margin-top: 18px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split--rev > :first-child { order: 2; }
.sticky { position: sticky; top: 110px; }
.prose p { color: var(--ink-2); max-width: 66ch; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose ul { margin: 1em 0; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; color: var(--ink-2); }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--amber); }
.prose a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Media (offset-shadow frame, like the 3D card) ---------- */
.media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.media img { width: 100%; }
.media--tall img { aspect-ratio: 4/3; object-fit: cover; }
.media--contain img { object-fit: contain; background: #fff; }
.caption { margin-top: 14px; font: 400 0.76rem/1.5 var(--mono); color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card__n { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.14em; color: var(--amber-ink); margin-bottom: 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 0.93rem; line-height: 1.65; }
.card__more { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 0.86rem; color: var(--amber-ink); }
.section--dark .card { background: var(--dark-2); border-color: rgba(255, 255, 255, 0.1); }
.section--dark .card p { color: var(--on-dark-2); }
.section--dark a.card:hover { border-color: rgba(255, 180, 0, 0.5); box-shadow: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li, .chip { font: 500 0.72rem/1 var(--mono); padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: transparent; white-space: nowrap; }
.chip--amber { background: var(--amber-soft); border-color: rgba(143, 90, 0, 0.3); color: #5e3b00; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Lists ---------- */
.checks { display: grid; gap: 0; }
.checks--2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
.checks li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 21px; width: 12px; height: 7px; border-left: 2px solid var(--amber-ink); border-bottom: 2px solid var(--amber-ink); transform: rotate(-45deg); }
.section--dark .checks li { border-color: rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.section--dark .checks li::before { border-color: var(--amber); }
.panel { padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.panel h3 { margin-bottom: 8px; } .panel > p { color: var(--ink-2); margin-bottom: 14px; }
.panel--dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.panel--dark h3 { color: var(--on-dark); } .panel--dark > p { color: var(--on-dark-2); }
.panel--dark .checks li { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.12); } .panel--dark .checks li::before { border-color: var(--amber); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bullets { display: grid; gap: 14px; }
.bullets li { padding-left: 26px; position: relative; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 12px; height: 2px; background: var(--amber); }
.bullets b { color: var(--ink); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { position: relative; padding: 0 24px 0 0; }
.steps li::before { content: ""; position: absolute; top: 19px; left: 44px; right: 0; height: 1px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--amber); font: 500 0.78rem/1 var(--mono); margin-bottom: 22px; position: relative; z-index: 1; }
.steps h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.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; position: relative; padding: 24px 48px 24px 0; font: 500 1.1rem/1.35 var(--display); letter-spacing: -0.01em; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.7rem/1 var(--display); color: var(--amber-ink); transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--amber-ink); }
.faq details p { padding: 0 48px 26px 0; color: var(--ink-2); max-width: 70ch; animation: fade 0.6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Industry index ---------- */
.index { border-top: 1px solid var(--line-2); }
.index a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line-2); font: 400 clamp(1.15rem, 2.2vw, 1.7rem)/1.2 var(--display); letter-spacing: -0.02em; transition: padding 0.5s var(--ease), background 0.5s, color 0.3s; }
.index a small { font: 400 0.8rem/1.4 var(--body); color: var(--muted); letter-spacing: 0; margin-left: auto; max-width: 28ch; text-align: right; }
.index a i { font-style: normal; color: var(--amber-ink); opacity: 0; transform: translateX(-10px); transition: all 0.5s var(--ease); }
.index a:hover { padding-left: 18px; background: linear-gradient(90deg, var(--amber-soft), transparent); }
.index a:hover i { opacity: 1; transform: none; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.04em; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; color: var(--ink-2); transition: all 0.3s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work.is-hidden { display: none; }
.work__shot { position: relative; height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); background: #e4dfd2; }
.work__shot::before { content: ""; position: absolute; top: 12px; left: 14px; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 14px 0 #febc2e, 28px 0 #28c840; }
.work__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.work:hover .work__shot img { transform: scale(1.04); }
.work__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work__cat { font: 500 0.68rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); }
.work h3 { font-size: 1.15rem; }
.work .tags { margin-top: auto; padding-top: 4px; }
.work .tags li { font-size: 0.68rem; padding: 5px 9px; }
.work__visit { font-weight: 600; font-size: 0.82rem; color: var(--amber-ink); }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack > div { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.stack h4 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 16px; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font: 500 0.82rem/1 var(--display); padding: 9px 13px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); border-radius: 32px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 0, 0.28), transparent 68%); pointer-events: none; }
.cta h2 { color: var(--on-dark); font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 22ch; }
.cta p { color: var(--on-dark-2); margin-top: 14px; max-width: 52ch; }
.cta .actions { margin: 0; position: relative; }
.cta .btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; } .cta .btn--ghost:hover { border-color: var(--amber); }

/* ---------- Contact ---------- */
.details { border-top: 1px solid var(--line-2); margin-top: 28px; }
.details > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { font: 500 0.7rem/1.9 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.details dd a:hover { color: var(--amber-ink); }
.form { display: grid; gap: 16px; padding: clamp(24px, 3.4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font: 500 0.78rem/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font: 400 0.96rem/1.4 var(--body); transition: border-color 0.25s, box-shadow 0.25s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--amber-soft); }
.form .is-invalid { border-color: #c0392b; }
.form__status { min-height: 1.4em; font-size: 0.88rem; color: var(--ink-2); }
.form__status.ok { color: var(--green); } .form__status.err { color: #b3261e; }
.form__status a { color: var(--amber-ink); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-2); padding-top: clamp(56px, 8vw, 88px); }
.footer a:hover { color: var(--amber); }
.footer .logo img { height: 52px; box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.14); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer p { font-size: 0.88rem; max-width: 36ch; margin-top: 16px; }
.footer h4 { font: 500 0.7rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; font-size: 0.9rem; }
.footer__contact { margin-top: 20px; display: grid; gap: 4px; font-size: 0.88rem; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.78rem; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); font: 600 0.72rem/1 var(--mono); color: var(--on-dark); transition: all 0.3s; }
.social a:hover { background: var(--amber); color: #111; border-color: var(--amber); }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 0.82rem/1 var(--body); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45); transition: transform 0.4s var(--ease), background 0.3s; }
.wa:hover { transform: translateY(-3px); background: #000; }
.wa i { width: 9px; height: 9px; border-radius: 50%; background: #4bd16a; box-shadow: 0 0 0 0 rgba(75, 209, 106, 0.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(75, 209, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 209, 106, 0); } }

/* ---------- Thank-you / offline ---------- */
.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--pad) 60px; }
.center-page .lead { margin: 18px auto 0; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
noscript + * .reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps li:nth-child(2)::before { display: none; }
  .works { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .burger { display: block; z-index: 3; }
  .nav { position: fixed; inset: 0; z-index: 2; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 92px var(--pad) 28px; background: var(--bg); overflow-y: auto; transform: translateY(-102%); transition: transform 0.6s var(--ease); }
  .nav.open { transform: none; }
  .nav > a, .nav__group > button { width: 100%; text-align: left; padding: 16px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav > a[aria-current="page"]::after, .nav__group.is-current > button::after { display: none; }
  .nav__group > button::before { margin-top: 8px; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 4px; max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
  .nav__group:hover .menu { max-height: 0; }
  .nav__group.open .menu { max-height: 640px; }
  .menu a { padding: 12px 8px; font-size: 1rem; }
  .nav__cta { margin: 20px 0 0; text-align: center; border-bottom: 0 !important; color: #15130d !important; }
  .logo { position: relative; z-index: 3; }

  .hero { padding-top: 104px; }
  .hero__grid, .split, .split--even, .pair, .cta { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .hero__visual { order: -1; max-width: 560px; margin-inline: auto; min-height: 0; aspect-ratio: 1.3 / 1; }
  .hero h1, .hero--page h1 { max-width: none; }
  .sticky { position: static; }
  .strip__in { grid-template-columns: repeat(2, 1fr); }
  .strip__in > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .strip__in > div:nth-child(-n+2) { border-top: 0; }
  .cards--3, .cards--2, .checks--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta .actions { margin-top: 4px; }
}
@media (max-width: 640px) {
  .cards--4, .stack, .works, .form .row, .steps { grid-template-columns: 1fr; }
  .steps li::before { display: none; } .steps li { padding: 0; }
  .details > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .index a small { display: none; }
  .wa span { display: none; } .wa { padding: 14px; }
  .actions .btn { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa i { animation: none; } .faq details p { animation: none; }
}

/* contact page: map */
.map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 14px 14px 0 rgba(52, 42, 22, 0.08); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(0.98); }
.map__link { position: absolute; left: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-2); font: 600 0.82rem var(--body); color: var(--ink); }
.map__link:hover { border-color: var(--amber); }
