/* GantsDev intro site — Apple-style layout in the brand palette: black, gold, white only.
   Layout: centered headlines, generous space, rounded tiles, black and white sections alternating. */
:root {
  --black: #0A0A0A;
  --gold: #F5C542;
  --gold-dark: #C9971C;
  --white: #FFFFFF;
  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --maxw: 1200px;
  --nav-height: calc(56px + env(safe-area-inset-top, 0px));
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* per-section tokens (dark by default) */
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .62);
  --tile: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  color-scheme: dark;
}
.light { --bg: var(--white); --fg: var(--black); --muted: rgba(10, 10, 10, .66); --tile: rgba(10, 10, 10, .045); --line: rgba(10, 10, 10, .1); color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 17px/1.5 var(--font); letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
em { font-style: normal; color: var(--gold); }
.light em { color: var(--gold-dark); }
::selection { background: var(--gold); color: var(--black); }
section { background: var(--bg); color: var(--fg); padding-block: clamp(80px, 9vw, 128px); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.kicker { margin: 0; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.45; font-weight: 600; color: var(--gold); }
.light .kicker { color: var(--gold-dark); }
.lede { margin: 0 auto; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 44ch; text-wrap: pretty; }
.head { display: grid; gap: 16px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 4.5vw, 60px); }
.head h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .85em 1.5em; border-radius: 999px; border: 0;
  font: 500 17px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold); box-shadow: inset 0 0 0 999px rgba(255, 255, 255, .12); }
.btn-sm { min-height: 32px; padding: .55em 1em; font-size: 13px; }
.btn-lg { padding: 1em 1.8em; font-size: 18px; }
.link-more { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--gold); text-decoration: none; font-size: 17px; font-weight: 500; }
.light .link-more { color: var(--gold-dark); }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, [role="tabpanel"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
video:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.light a:focus-visible, .light button:focus-visible { outline-color: var(--gold-dark); }

/* ---------- nav (stable black across both section backgrounds) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--nav-height);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.02em; justify-self: start; }
.brand b { color: var(--gold); font-weight: 700; }
.brand img { border-radius: 6px; width: 26px; height: 26px; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 36px); }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; color: rgba(255, 255, 255, .72); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="location"], .nav-links a[aria-current="page"] { color: var(--gold); }
.menu-toggle { display: none; }
.nav-end { display: flex; align-items: center; gap: 10px; justify-self: end; }
.lang { display: inline-flex; gap: 2px; }
.lang button { min-height: 44px; min-width: 36px; border: 0; background: none; color: rgba(255, 255, 255, .6); cursor: pointer; font: 500 12px/1 var(--font); padding: 6px 7px; border-radius: 6px; }
.lang button[aria-pressed="true"] { color: var(--white); }

/* ---------- hero (animation 1) ---------- */
.hero { padding-block: 48px 8px; text-align: center; overflow: hidden; }
.hero-copy { display: grid; gap: 16px; justify-items: center; padding-inline: var(--gutter); }
.hero h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 8px; }
.hero-stage { position: relative; width: min(82vw, 430px); aspect-ratio: 1; margin: 12px auto 0; perspective: 1000px; }
.dust { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }
.g-tilt {
  position: absolute; inset: 6%; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--float, 0px));
}
.g-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 50px 80px rgba(245, 197, 66, .2)); }
.g-glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .8) 50%, transparent 62%);
  background-size: 260% 100%; background-position: var(--glint, 120%) 0;
  -webkit-mask: url("../assets/img/hero-g.webp") center / contain no-repeat;
  mask: url("../assets/img/hero-g.webp") center / contain no-repeat;
}

/* ---------- services: one focal tile, three open columns ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.svc {
  display: grid; gap: 14px; align-content: start; min-height: 210px;
  padding: 24px 8px 0; border-top: 1px solid var(--line);
}
.svc-num { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc h3 { font-size: clamp(24px, 2.1vw, 28px); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.svc p { margin: 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.svc-feature { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 48px; min-height: 248px; padding: clamp(28px, 3vw, 40px); border: 0; border-radius: 24px; align-content: center; background: var(--black); color: var(--white); }
.svc-feature h3 { grid-column: 1; grid-row: 2 / 4; font-size: clamp(32px, 3.6vw, 46px); color: var(--gold); }
.svc-feature p { grid-column: 2; grid-row: 2; color: rgba(255, 255, 255, .72); max-width: 46ch; font-size: 19px; }
.svc-feature .link-more { grid-column: 2; grid-row: 3; justify-self: start; color: var(--gold); }
.svc-feature .svc-num { color: rgba(255, 255, 255, .5); }

/* ---------- AI demo (animation 2) ---------- */
.ai { position: relative; height: 280vh; padding: 0; }
.ai-pin { position: sticky; top: var(--nav-height); height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height)); display: grid; align-content: center; gap: clamp(20px, 3vh, 32px); padding-block: 24px; overflow: hidden; }
.ai-head { margin-bottom: 0; }
.ai-stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; max-width: 1200px; }
.paper { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1320 / 910; background: var(--black); }
.paper img { width: 100%; height: 100%; object-fit: cover; }
.paper-text { position: absolute; inset: 0; }
.paper-text span {
  position: absolute; font: 600 clamp(8px, 1.05vw, 14px)/1 "Courier New", ui-monospace, monospace; color: rgba(10, 10, 10, .82);
  white-space: nowrap; transform: translateY(-50%);
}
.paper-text .box {
  position: absolute; border: 2px solid var(--gold); border-radius: 5px; background: rgba(245, 197, 66, .2);
  opacity: 0; transform: scale(.97); transition: opacity .25s, transform .35s var(--ease);
}
.paper-text .box.on { opacity: 1; transform: none; }
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold);
  box-shadow: 0 0 18px 4px rgba(245, 197, 66, .65), 0 0 60px 14px rgba(245, 197, 66, .25);
  transform: translateY(var(--scan, -10px)); opacity: var(--scan-o, 0); transition: opacity .3s;
}
.sheet { border-radius: 22px; background: rgba(255, 255, 255, .06); overflow: hidden; font-variant-numeric: tabular-nums; }
.sheet-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; font-size: 13px; color: rgba(255, 255, 255, .6); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sheet-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.sheet-bar span { margin-left: 8px; }
.sheet-bar span.done { color: var(--gold); }
.sheet table { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1.1vw, 15px); }
.sheet th, .sheet td { padding: 12px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.sheet th { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .65); }
.sheet td:not(:first-child), .sheet th:not(:first-child) { text-align: right; }
.sheet tbody tr { opacity: 0; transform: translateX(-20px); transition: opacity .4s, transform .6s var(--ease); }
.sheet tbody tr.in { opacity: 1; transform: none; }
.sheet tfoot td { font-weight: 700; color: var(--gold); border-bottom: 0; }
.sheet-note { margin: 0; padding: 10px 18px 14px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.ai.is-unpinned { height: auto; }
.ai.is-unpinned .ai-pin { position: relative; top: auto; height: auto; padding-block: 72px; overflow: visible; }

/* ---------- prices ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 40px; }
.price { display: grid; grid-template-rows: minmax(44px, auto) auto 1fr; gap: 16px; align-content: start; padding: 28px 0; border-top: 1px solid var(--line); }
.price h3 { font-size: 18px; font-weight: 600; line-height: 1.35; text-align: left; }
.amount { margin: 0; font-size: clamp(32px, 3.2vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price p:last-child { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.price-hot { border-top-color: var(--gold); }
.price-hot .amount { color: var(--gold); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; text-align: left; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.steps span { color: var(--gold-dark); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; max-width: 26ch; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-card { display: grid; gap: 24px; justify-items: center; padding: 16px 0; }
.contact-card h2 { font-size: clamp(44px, 6vw, 80px); font-weight: 700; line-height: 1.06; letter-spacing: -.04em; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; margin-top: 12px; }
.contact-direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 64px; width: 100%; max-width: 640px; margin-top: 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-item { display: grid; gap: 6px; padding-block: 4px; text-decoration: none; }
.contact-item small { font-size: 13px; color: var(--muted); }
.contact-item b { font-size: 21px; font-weight: 600; }
.contact-item:hover b { color: var(--gold); }

/* ---------- footer ---------- */
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 24px 48px; padding-block: 32px 40px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.6; }
.footer p { margin: 0; }
.footer .brand { color: var(--white); }
.footer-details { display: grid; gap: 4px; }
.footer-details p:first-child { color: rgba(255, 255, 255, .8); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--white); font: 500 13px/1 var(--font); cursor: pointer; }
  .nav.is-open .nav-links { position: absolute; top: var(--nav-height); inset-inline: 0; display: flex; flex-direction: column; gap: 0; padding: 12px var(--gutter) 20px; background: var(--black); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-links a { font-size: 17px; }
  .svc-grid, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid .svc:last-child { grid-column: 1 / -1; }
  .svc-feature { column-gap: 24px; }
  .svc-feature h3 { font-size: 34px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; }
  .footer .brand { grid-column: 1 / -1; }
  .ai-stage { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .ai { height: 300vh; }
  .ai-head h2 { font-size: 36px; }
  .ai-head .lede { font-size: 15px; max-width: 42ch; }
}
@media (max-width: 600px) {
  .nav-end .btn { display: none; }
  .nav-end { gap: 4px; }
  .hero-copy { gap: 18px; }
  .hero h1 { font-size: clamp(36px, 11.2vw, 56px); }
  .hero-stage { width: min(90vw, 400px); margin-top: 20px; }
  .hero .kicker { max-width: 38ch; }
  .head { gap: 12px; }
  .head h2 { font-size: clamp(30px, 8.7vw, 44px); }
  .svc-grid, .price-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .svc-grid { gap: 28px; }
  .svc { min-height: 0; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; padding: 24px 0 0; }
  .svc-num { padding-top: 5px; }
  .svc:not(.svc-feature) p { grid-column: 2; }
  .svc-feature { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .svc-feature h3, .svc-feature p, .svc-feature .link-more { grid-column: auto; grid-row: auto; }
  .svc-feature h3 { font-size: clamp(28px, 7.5vw, 36px); }
  .svc-feature p { font-size: 17px; }
  .ai-head { gap: 10px; }
  .ai-head h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .ai-stage { gap: 16px; }
  .ai-pin { gap: 20px; }
  .paper, .sheet { border-radius: 18px; }
  .sheet-bar { padding: 10px 12px; font-size: 12px; }
  .sheet-bar i { width: 8px; height: 8px; }
  .sheet-bar span { margin-left: 4px; }
  .sheet th, .sheet td { padding: 8px 12px; }
  .price-grid { gap: 0; }
  .price { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 16px 20px; padding: 28px 0; }
  .price h3 { font-size: 17px; text-wrap: pretty; }
  .price .amount { text-align: right; font-size: clamp(28px, 7.7vw, 36px); }
  .price p:last-child { grid-column: 1 / -1; }
  .steps { gap: 24px; }
  .steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-content: start; padding-top: 20px; }
  .steps span { grid-row: 1 / 3; padding-top: 3px; }
  .steps h3 { margin: 0 0 8px; }
  .steps p { grid-column: 2; max-width: none; }
  .contact-card { gap: 20px; padding: 0; }
  .contact-card h2 { font-size: clamp(38px, 11.2vw, 56px); }
  .contact-links { flex-direction: column; gap: 24px; width: 100%; }
  .contact-links .btn { max-width: 100%; white-space: normal; line-height: 1.3; }
  .contact-direct { flex-direction: column; gap: 20px; margin-top: 12px; padding-top: 28px; }
  .contact-item b { font-size: 20px; }
  .footer { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sheet tbody tr, .paper-text .box, .scan-line, .swap-tabs button { transition: none; }
  .g-glint { display: none; }
  .ai { height: auto; }
  .ai .ai-pin { position: relative; top: auto; height: auto; padding-block: 80px; overflow: visible; }
}

/* ---------- work / portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { display: grid; gap: 32px; align-content: space-between; padding: clamp(24px, 2.8vw, 36px); border-radius: 28px; background: var(--tile); overflow: hidden; }
.case-copy, .case-details { display: grid; gap: 12px; align-content: start; }
.case h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; text-wrap: pretty; }
.case-copy > p:not(.badge), .case-details > p { margin: 0; color: var(--muted); font-size: 17px; max-width: 46ch; text-wrap: pretty; }
.badge { justify-self: start; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(10, 10, 10, .07); color: rgba(10, 10, 10, .75); }
.badge-gold { background: var(--gold); color: var(--black); }
.case-feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); align-items: center; gap: 20px 36px; background: var(--black); color: var(--white); }
.case-feature .case-copy { grid-column: 1; grid-row: 1; }
.case-feature .case-details { grid-column: 1; grid-row: 2; }
.case-feature .case-media { grid-column: 2; grid-row: 1 / 3; }
.case-feature .case-details > p { color: rgba(255, 255, 255, .68); }
.case-feature .link-more { color: var(--gold); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; color: rgba(255, 255, 255, .85); }
.case-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }

.browser { border-radius: 14px; overflow: hidden; background: var(--black); box-shadow: 0 24px 48px -24px rgba(10, 10, 10, .4); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255, 255, 255, .1); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser-screens { position: relative; aspect-ratio: 16 / 10; }
.browser-screens > img, .browser-screens > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.browser-screens > img { object-position: top left; }
.browser-screens > video { object-position: center; background: var(--black); color-scheme: dark; }
.browser-screens > .is-on { opacity: 1; }
.case-media { display: grid; gap: 14px; justify-items: center; }
.case-media .browser { width: 100%; }
.swap-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.swap-tabs button { min-height: 40px; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 500 14px/1.2 var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.swap-tabs button.is-on { background: var(--white); color: var(--black); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-top: 8px; }
.phones img {
  width: 34%; max-width: 200px; aspect-ratio: 375 / 812; object-fit: cover; border-radius: 26px;
  border: 6px solid var(--black); box-shadow: 0 30px 60px -25px rgba(10, 10, 10, .5);
}
.phones img:nth-child(1) { transform: translateX(14%) rotate(-6deg) scale(.9); }
.phones img:nth-child(2) { position: relative; z-index: 1; }
.phones img:nth-child(3) { transform: translateX(-14%) rotate(6deg) scale(.9); }

.chat { display: grid; gap: 10px; padding: 22px; border-radius: 22px; background: var(--black); }
.msg { margin: 0; max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.35; }
.msg-in { justify-self: end; background: var(--gold); color: var(--black); border-bottom-right-radius: 4px; }
.msg-out { justify-self: start; background: rgba(255, 255, 255, .1); color: var(--white); border-bottom-left-radius: 4px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .case-feature, .case-wide { grid-template-columns: minmax(0, 1fr); }
  .case-feature .case-copy, .case-feature .case-media, .case-feature .case-details { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
  .case { border-radius: 24px; gap: 28px; }
  .case-feature { gap: 24px; }
  .case-copy, .case-details { gap: 14px; }
  .case-feature .chips { gap: 6px 14px; }
  .case-feature .chips li { border: 0; padding: 0; font-size: 12px; color: rgba(255, 255, 255, .62); }
  .case-feature .browser { width: calc(100% + 16px); max-width: none; }
  .swap-tabs { width: 100%; }
  .swap-tabs button { flex: 1; min-width: 0; min-height: 44px; padding-inline: 10px; font-size: 13px; }
  #padaan-preview + .swap-tabs button:nth-child(2) { flex: 1.6; }
  .phones img { border-width: 5px; border-radius: 22px; }
  .badge { font-size: 12px; }
  .chat { padding: 16px; }
  .msg { max-width: 92%; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .browser-screens img, .phones img { transition: none; }
}

/* ---------- pages: projects, case study, home teaser ---------- */
.btn-outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line), inset 0 0 0 1.5px currentColor; }
.btn-outline:hover { background: var(--tile); }
.btn-quiet { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn-quiet:hover { background: rgba(255, 255, 255, .14); }

.page-hero { padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 80px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.page-hero .head { margin-bottom: clamp(40px, 5vw, 64px); }

.two-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
.way { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 2.6vw, 32px); border-radius: 24px; background: var(--tile); }
.way-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--black); font-weight: 800; font-size: 22px; }
.way h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.way p { margin: 0; color: var(--muted); font-size: 16px; }

.project-list { display: grid; gap: 24px; }
.project { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--tile); }
.project:nth-child(even) .project-media { order: 2; }
.project-media { display: grid; gap: 14px; justify-items: center; }
.project-media .browser, .project-media .chat { width: 100%; }
.project-media .swap-tabs { background: rgba(10, 10, 10, .08); }
.project-media .swap-tabs button { color: rgba(10, 10, 10, .7); }
.project-media .swap-tabs button.is-on { background: var(--black); color: var(--white); }
.project-copy { display: grid; gap: 12px; align-content: start; }
.project-copy h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.project-copy > p:not(.badge):not(.includes-title):not(.project-price) { margin: 0; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.includes-title { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.includes { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.includes li { position: relative; padding-left: 26px; font-size: 16px; }
.includes li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg); }
.project-price { display: grid; gap: 2px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.project-price b { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; color: var(--fg); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.project-actions-center { justify-content: center; }

.teaser-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.teaser { display: grid; gap: 28px; align-content: space-between; padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--tile); color: inherit; text-decoration: none; overflow: hidden; transition: transform .5s var(--ease); }
.teaser:hover { transform: translateY(-4px); }
.teaser:hover .link-more { text-decoration: underline; text-underline-offset: 4px; }
.teaser-dark { background: var(--black); color: var(--white); }
.teaser-dark .link-more { color: var(--gold); }
.teaser-copy { display: grid; gap: 12px; align-content: start; }
.teaser h3 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.teaser-copy > p:not(.badge) { margin: 0; color: var(--muted); font-size: 17px; max-width: 42ch; }
.teaser-dark .teaser-copy > p:not(.badge) { color: rgba(255, 255, 255, .68); }
.teaser-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.teaser-phones img { max-width: 150px; }

.showcase { max-width: 1040px; margin-bottom: clamp(48px, 6vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; max-width: 1040px; margin-inline: auto; }
.stats div { padding-top: 22px; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats dd { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 24ch; }
.stats-note { max-width: 1040px; margin: 20px auto 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 26px; border-radius: 22px; background: var(--tile); }
.feature h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.cta-band { text-align: center; }
.cta-band .contact-card h2 { font-size: clamp(38px, 5vw, 64px); }

/* ---------- request form (dialog) ---------- */
.req { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; background: #121110; color: var(--white); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.req::backdrop { background: rgba(10, 10, 10, .7); backdrop-filter: blur(6px); }
.req-form, .req-done { position: relative; display: grid; gap: 16px; padding: clamp(24px, 4vw, 34px); }
.req-head h2, .req-done h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.req-project { margin: 6px 0 0; color: var(--gold); font-size: 15px; font-weight: 500; }
.req-field { display: grid; gap: 7px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.req-field input, .req-field textarea { width: 100%; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .05); color: var(--white); font: 400 16px/1.4 var(--font); }
.req-field textarea { resize: vertical; min-height: 84px; }
.req-field input:focus, .req-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.req-field [aria-invalid="true"] { border-color: var(--gold); }
.req-error { min-height: 0; color: var(--gold); font-size: 13px; }
.req-error:empty { display: none; }
.req-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.req-done p { margin: 0; color: rgba(255, 255, 255, .75); }
.req-message { margin: 0; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(245, 197, 66, .4); font: 400 14px/1.5 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.req-call { font-size: 14px; }
.req-call a { color: var(--gold); font-weight: 600; }
.req-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--white); font-size: 22px; cursor: pointer; }

@media (max-width: 900px) {
  .project, .teaser-grid { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(even) .project-media { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .two-ways, .stats, .features, .steps-3 { grid-template-columns: minmax(0, 1fr); }
  .project, .teaser { border-radius: 24px; }
  .project-actions .btn { flex: 1 1 100%; }
  .stats { gap: 8px; }
  .req-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .teaser { transition: none; }
  .teaser:hover { transform: none; }
}

/* ---------- Padaan plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin-inline: auto; }
.plan { display: grid; gap: 18px; align-content: start; padding: clamp(26px, 3vw, 36px); border-radius: 28px; background: var(--tile); }
.plan h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.plan-price { margin: 0; font-size: clamp(40px, 4.6vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { margin-left: 4px; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-limit { display: grid; gap: 4px; margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan-limit b { font-size: 18px; font-weight: 600; }
.plan-limit span { color: var(--muted); font-size: 15px; }
.plan .btn { justify-self: stretch; margin-top: 6px; }
.plan-pro { background: var(--black); color: var(--white); --muted: rgba(255, 255, 255, .62); --line: rgba(255, 255, 255, .14); }
.plan-pro .plan-price { color: var(--gold); }
.plan-pro .includes li::before { border-color: var(--gold); }
.plans-more { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } }
