/* =========================================================
   nomatterlab — style.css
   ========================================================= */

:root {
  --navy: #0e1630;
  --ink: #1c2540;
  --muted: #6b7385;
  --line: #e4e6ee;
  --orange: #ff6a13;
  --orange-2: #ff8a2b;
  --orange-dark: #ee5a05;
  --bg: #fdfaf7;
  --bg-alt: #f3f4f8;
  --dark: #111a2c;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --header-h: 84px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid rgba(255, 106, 19, .55); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-size: 30px; font-weight: 700; letter-spacing: -.055em; line-height: 1; color: var(--navy);
}
.logo b { color: var(--orange); font-weight: 700; }
.logo--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 12px 26px -10px rgba(255, 106, 19, .7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255, 106, 19, .8); }
.btn-outline { color: var(--orange); border-color: var(--orange); background: transparent; padding: 11px 22px; font-size: 13.5px; }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(253, 250, 247, .72);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: rgba(14, 22, 48, .07); background: rgba(253, 250, 247, .9); box-shadow: 0 8px 24px -18px rgba(14, 22, 48, .35); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }

.nav { display: flex; align-items: center; gap: clamp(22px, 3.4vw, 46px); }
.nav a:not(.btn) {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--navy); padding: 8px 0;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 2.5px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover { color: var(--orange); }
.nav a.is-active { font-weight: 600; }
.nav a.is-active::after, .nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px;
  position: relative; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

section[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

/* ---------- Shared section bits ---------- */
.bar { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); margin-bottom: 22px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 33px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--navy); }
.section-head p { margin-top: 18px; font-size: 14.5px; line-height: 1.85; color: var(--muted); max-width: 34ch; }

.hand { font-family: var(--hand); font-weight: 500; }
.section-head .hand--orange { color: var(--orange); font-size: 27px; line-height: 1.1; margin-top: 30px; max-width: none; transform: rotate(-4deg); transform-origin: left; width: max-content; }
.hand svg { width: 100%; height: 10px; margin-top: 2px; }

.accent {
  background: linear-gradient(180deg, var(--orange-2), var(--orange-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto 35%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 168, 96, .16), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.22fr); gap: clamp(12px, 2vw, 32px); align-items: center; }
.hero-copy { position: relative; padding-top: 24px; }

.squiggle { position: absolute; left: -26px; top: -22px; width: 74px; color: var(--orange); }
.hero h1 {
  font-size: clamp(46px, 5.7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.042em; color: var(--navy);
}
.hero h1 .accent { display: inline-block; padding-right: .04em; }
.lead { margin-top: 30px; max-width: 30em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.75; color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 34px; margin-top: 38px; }

.link-play { display: inline-flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--navy); }
.play {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--navy); border-radius: 50%;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.play svg { width: 22px; height: 22px; }
.link-play:hover .play { background: var(--navy); color: #fff; transform: scale(1.08); }

/* ---- Phone stage (sizes in container-query units) ---- */
.stage { position: relative; width: 100%; max-width: 760px; margin-inline: auto; aspect-ratio: 650 / 540; container-type: inline-size; }
.deco { position: absolute; overflow: visible; pointer-events: none; }
.deco-rays { left: 66%; top: -1.1%; width: 9%; }
.deco-arc-o { left: 2%; top: 60%; width: 13%; }
.deco-arcs { left: 90%; top: 37%; width: 6%; }

.phone {
  position: absolute; left: 35.5%; top: 3.3%; width: 31%; aspect-ratio: 1 / 2.03; rotate: 9deg; z-index: 2;
  border-radius: 6.4cqw; padding: 1.15cqw;
  background: linear-gradient(145deg, #58657b 0%, #232c3c 22%, #0d1421 55%, #313b4e 100%);
  box-shadow:
    inset 0 0 0 .25cqw rgba(255, 255, 255, .18),
    -1.5cqw 5cqw 6cqw -1cqw rgba(14, 22, 48, .34),
    -3cqw 8cqw 10cqw -3cqw rgba(14, 22, 48, .24);
}
.phone-btn { position: absolute; background: linear-gradient(90deg, #3a465a, #1a2231); border-radius: .4cqw; }
.phone-btn--l1 { left: -.5cqw; top: 13%; width: .6cqw; height: 4%; }
.phone-btn--l2 { left: -.5cqw; top: 20%; width: .6cqw; height: 8%; }
.phone-btn--r  { right: -.5cqw; top: 24%; width: .6cqw; height: 11%; }

.phone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 5.3cqw;
  background: linear-gradient(180deg, #fff 0%, #faf8f6 100%);
  box-shadow: inset 0 0 0 .2cqw rgba(0, 0, 0, .45);
}
.phone-notch { position: absolute; left: 50%; top: 1.5cqw; translate: -50% 0; width: 10cqw; height: 2.7cqw; border-radius: 2cqw; background: #0a0f1a; z-index: 3; }
.screen-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 8cqw; text-align: center; z-index: 1; }
.screen-dash { width: 3.4cqw; height: .5cqw; border-radius: 1cqw; background: var(--orange); margin-bottom: 5cqw; align-self: center; }
.screen-logo { font-size: 4.9cqw; font-weight: 700; letter-spacing: -.055em; line-height: 1; color: var(--navy); white-space: nowrap; }
.screen-logo b { color: var(--orange); font-weight: 700; }
.screen-tag { margin-top: 2.2cqw; font-family: var(--hand); font-size: 2.15cqw; line-height: 1.15; color: #8a90a0; rotate: -4deg; }
.screen-wave { position: absolute; left: 0; bottom: 0; width: 70%; height: 38%; z-index: 2; }
.screen-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .0) 40%, rgba(255, 255, 255, .5) 47%, rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }

/* floating chips */
.chip {
  position: absolute; z-index: 3; width: 21cqw; padding: 2.5cqw 2.3cqw 2.4cqw; border-radius: 3.8cqw; rotate: 10deg;
  box-shadow: 0 2.6cqw 5.5cqw -2.4cqw rgba(30, 40, 90, .30), 0 .4cqw 1cqw rgba(30, 40, 90, .06);
  animation: bob 6s ease-in-out infinite;
}
.chip strong { display: block; font-size: 2.35cqw; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.chip small { display: block; margin-top: .5cqw; font-size: 1.95cqw; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.chip-icon { display: grid; place-items: center; width: 6.6cqw; height: 6.6cqw; border-radius: 2.1cqw; margin-bottom: 1.8cqw; color: #fff; box-shadow: 0 1cqw 2cqw -.8cqw rgba(0, 0, 0, .35); }
.chip-icon svg { width: 3.6cqw; height: 3.6cqw; }

.chip--blue   { left: 11%; top: 8.7%;  background: #dfe1fc; animation-delay: -1s; }
.chip--blue .chip-icon { background: linear-gradient(145deg, #4c5df0, #2e3fd0); }
.chip--blue strong { color: #2233b8; } .chip--blue small { color: #6c77e0; }

.chip--mint   { left: 6.5%; top: 43.7%; background: #d3f5e6; animation-delay: -3s; }
.chip--mint .chip-icon { background: linear-gradient(145deg, #34c996, #1aa578); }
.chip--mint strong { color: #0a6a4d; } .chip--mint small { color: #33ad86; }

.chip--white  { left: 69.5%; top: 17.5%; width: 23cqw; background: #fff; animation-delay: -2s; }
.chip--white .chip-icon { background: linear-gradient(145deg, #bb7ce8, #9558d6); }
.chip--white strong { color: #6b3db6; } .chip--white small { color: #b48ee3; }

.chip--yellow { left: 67.5%; top: 51.4%; width: 23.5cqw; background: #fdefc4; animation-delay: -4s; }
.chip--yellow .chip-icon { background: linear-gradient(145deg, #ffb936, #f39a12); }
.chip--yellow strong { color: #1d1d22; } .chip--yellow small { color: #dfa32a; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.1cqw; } }

/* =========================================================
   PRODUCTS
   ========================================================= */
.products { padding: clamp(40px, 5vw, 68px) 0 clamp(56px, 7vw, 92px); background: var(--bg); }
.products .section-head { max-width: 560px; }
.products .section-head p { max-width: 52ch; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }

.product-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 30px 28px 26px; border-radius: 28px;
  background: var(--tint); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); pointer-events: none;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(30, 40, 90, .4); }
.product-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--tile); color: #fff; margin-bottom: 22px; box-shadow: 0 12px 20px -10px var(--tile); position: relative; z-index: 1; }
.product-icon svg { width: 26px; height: 26px; }
.product-card h3 { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--navy); position: relative; z-index: 1; }
.product-card p { margin-top: 12px; font-size: 14px; line-height: 1.75; color: #4b5470; position: relative; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.tags li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 500; color: var(--navy); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 600; color: var(--navy); position: relative; z-index: 1; }
.card-link .ico { transition: transform .25s var(--ease); }
.card-link:hover .ico { transform: translateX(5px); }
.card-link:hover { color: var(--orange-dark); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: clamp(52px, 6vw, 84px) 0; background: var(--bg-alt); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); padding-top: 6px; }
.service-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--bg); color: var(--fg); margin-bottom: 18px;
  transition: transform .35s var(--ease);
}
.service-icon svg { width: 25px; height: 25px; }
.service:hover .service-icon { transform: translateY(-4px) rotate(-6deg); }
.service h3 { font-size: 15px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; margin-bottom: 8px; }
.service p { font-size: 13px; line-height: 1.75; color: var(--muted); max-width: 22ch; }

/* =========================================================
   TEAM
   ========================================================= */
.team { position: relative; padding: clamp(52px, 6vw, 84px) 0 calc(clamp(52px, 6vw, 84px) + 46px); background: var(--bg); overflow: hidden; }
.team-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.team .section-head p { max-width: 36ch; }

.tech {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; padding: 6px 0 6px clamp(16px, 2.4vw, 34px);
  border-left: 1px solid #dcdde3; justify-items: center;
}
.tech li { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); text-align: center; white-space: nowrap; }
.tech svg { width: 38px; height: 38px; color: var(--navy); transition: transform .35s var(--ease), color .2s; }
.tech li:hover svg { transform: translateY(-4px) scale(1.06); color: var(--orange); }

.team-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(46vw, 700px); z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%); mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
}
.team-visual svg { width: 100%; height: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; z-index: 3; margin-top: -46px; overflow: hidden; color: #fff; background: var(--dark);
  border-radius: 50% 50% 0 0 / 46px 46px 0 0;
}
.ring { position: absolute; width: 360px; height: 360px; border: 2px solid var(--orange); border-radius: 50%; pointer-events: none; opacity: .9; }
.ring--l { left: -300px; top: 10px; }
.ring--r { right: -300px; top: 40px; }
.footer-band {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 56px);
  padding-top: clamp(64px, 6.5vw, 84px); padding-bottom: 34px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; padding-right: clamp(20px, 4vw, 56px); border-right: 1px solid rgba(255, 255, 255, .16); min-height: 56px; justify-content: center; }
.footer-brand .logo { font-size: 30px; }
.footer-brand p { font-size: 13px; color: #a3abbd; }
.footer-cta { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-cta p { font-size: 14px; color: #dfe3ee; }
.footer-hand { position: relative; color: var(--orange); font-size: 27px; line-height: 1.05; text-align: right; rotate: -7deg; padding-right: 8px; }
.footer-hand span { color: #e9ecf4; display: block; }
.footer-hand svg { width: 100%; height: 10px; margin-top: 4px; }

.footer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 12.5px; color: #8b93a8; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { transition: color .2s; }
.footer-bottom a:hover { color: var(--orange-2); }

/* =========================================================
   CONTACT DIALOG
   ========================================================= */
.contact-dialog {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 30px; background: var(--bg); color: var(--ink);
  box-shadow: 0 40px 90px -30px rgba(14, 22, 48, .7); overflow: auto; margin: auto;
}
.contact-dialog::backdrop { background: rgba(14, 22, 48, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact-dialog[open] { animation: dlg-in .35s var(--ease); }
.contact-dialog[open]::backdrop { animation: fade-in .3s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.dialog-card { position: relative; padding: clamp(26px, 5vw, 44px); }
.dialog-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-alt); color: var(--navy); transition: background-color .2s, transform .25s var(--ease); }
.dialog-close:hover { background: #e7e9f1; transform: rotate(90deg); }
.dialog-card h2 { font-size: clamp(26px, 4vw, 32px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1.15; }
.dialog-lead { margin: 10px 0 24px; font-size: 14.5px; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font-size: 14.5px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 106, 19, .15); }
.field .is-invalid, .consent .is-invalid { border-color: #e5383b; }
.field input::placeholder, .field textarea::placeholder { color: #a5abba; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.form-status { min-height: 22px; margin: 6px 0 10px; font-size: 13.5px; font-weight: 500; }
.form-status.is-error { color: #d12b2e; }
.form-status.is-ok { color: #178a5d; }
.btn[disabled] { opacity: .7; pointer-events: none; }

.dialog-success { text-align: center; padding: 24px 0 8px; }
.dialog-success[hidden] { display: none; }
.dialog-success p { margin: 12px auto 26px; max-width: 34ch; color: var(--muted); }
.success-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #d5f4e6; color: #178a5d; }
.success-mark svg { width: 34px; height: 34px; }
.dialog-success .btn-outline { padding: 14px 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .services .section-head p { max-width: 60ch; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team-spacer { display: none; }
  .team { padding-bottom: calc(320px + 46px); }
  .team-visual {
    top: auto; height: 320px; width: 100%; max-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 34%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}

@media (max-width: 880px) {
  :root { --header-h: 72px; }
  .logo { font-size: 26px; }
  .nav-toggle { display: flex; }
  .header-inner { display: flex; justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px;
    background: rgba(253, 250, 247, .98); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(14, 22, 48, .08); box-shadow: 0 26px 30px -24px rgba(14, 22, 48, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-size: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a.is-active { color: var(--orange); }
  .nav-cta { display: inline-flex; margin-top: 18px; padding: 14px 22px; font-size: 15px; }

  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding-top: 34px; }
  .squiggle { left: -6px; top: 2px; width: 60px; }
  .stage { max-width: 560px; }

  .footer-band { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .footer-brand { border-right: 0; padding-right: 0; align-items: center; }
  .footer-hand { text-align: center; rotate: -4deg; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom nav { justify-content: center; }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .tech { border-left: 0; border-top: 1px solid #dcdde3; padding: 28px 0 0; justify-items: start; max-width: 380px; }
  .tech li { flex-direction: row; gap: 14px; font-size: 13.5px; }
  .site-footer { margin-top: -46px; }
}

@media (max-width: 560px) {
  .service-list { grid-template-columns: 1fr; gap: 28px; }
  .service { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; }
  .service-icon { grid-row: 1 / span 2; margin: 0; }
  .service p { max-width: none; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chip { width: 24cqw; padding: 2.2cqw 2.2cqw; }
  .chip--yellow { width: 27cqw; }
  .chip strong { font-size: 2.9cqw; } .chip small { font-size: 2.3cqw; }
  .chip-icon { width: 7cqw; height: 7cqw; }
  .chip-icon svg { width: 3.8cqw; height: 3.8cqw; }
  .footer-hand { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(14, 22, 48, .06); }
.lang-switch button {
  min-width: 40px; padding: 7px 11px; border: 0; border-radius: 999px; background: transparent;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; line-height: 1; color: var(--muted);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.lang-switch button:hover:not(.is-active) { color: var(--orange); }
.lang-switch button.is-active { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -2px rgba(14, 22, 48, .28); }

html[lang="en"] .tr-only, html:not([lang="en"]) .en-only { display: none !important; }

/* lock page scroll while any modal is open */
body:has(dialog[open]) { overflow: hidden; }

/* =========================================================
   ENTRY GATE DIALOGS (under construction + KVKK)
   ========================================================= */
.gate-dialog {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 0; border-radius: 30px;
  background: var(--bg); color: var(--ink); overflow: auto; box-shadow: 0 44px 100px -30px rgba(14, 22, 48, .75);
}
.gate-dialog::backdrop { background: rgba(14, 22, 48, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gate-dialog[open] { animation: dlg-in .4s var(--ease); }
.gate-dialog[open]::backdrop { animation: fade-in .3s ease; }

.gate-card { position: relative; padding: clamp(32px, 6vw, 44px) clamp(22px, 6vw, 40px) clamp(26px, 5vw, 36px); text-align: center; }
#wip-dialog .gate-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px;
  background: repeating-linear-gradient(-45deg, #ffb936 0 12px, #1b2236 12px 24px);
}
.gate-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 24px; color: #fff; }
.gate-icon svg { width: 34px; height: 34px; }
.gate-icon--wip { background: linear-gradient(145deg, #ffb936, #f39a12); box-shadow: 0 16px 26px -12px rgba(243, 154, 18, .85); }
.gate-icon--kvkk { background: linear-gradient(145deg, #4c5df0, #2e3fd0); box-shadow: 0 16px 26px -12px rgba(46, 63, 208, .8); }
.gate-card h2 { font-size: clamp(24px, 5vw, 29px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--navy); }
.gate-card p { margin: 14px auto 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.gate-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--orange-dark); }
.gate-link .ico { transition: transform .25s var(--ease); }
.gate-link:hover .ico { transform: translateX(4px); }
.gate-actions { display: flex; justify-content: center; margin-top: 26px; }
.gate-actions--split { flex-direction: column; gap: 10px; }
.gate-actions--split .btn { width: 100%; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--navy); border-color: var(--navy); }

/* =========================================================
   LEGAL PAGE (kvkk.html)
   ========================================================= */
.legal-body { background: var(--bg); }
.legal { padding: clamp(28px, 5vw, 56px) 0 clamp(44px, 7vw, 88px); }
.legal-wrap { max-width: calc(860px + var(--gutter) * 2); }
.legal-card {
  padding: clamp(24px, 5.5vw, 56px); border-radius: 28px; background: #fff; border: 1px solid rgba(14, 22, 48, .05);
  box-shadow: 0 30px 60px -42px rgba(30, 40, 90, .4);
}
.legal-card h1 { font-size: clamp(28px, 5.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--navy); }
.legal-card .legal-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.legal-card .legal-draft { margin: 22px 0; padding: 14px 16px; border-radius: 14px; background: #fff4dc; border: 1px solid #ffe2a8; font-size: 13.5px; line-height: 1.65; color: #7a5200; }
.legal-card h2 { display: flex; align-items: center; gap: 12px; margin: 34px 0 10px; font-size: clamp(17px, 3.8vw, 20px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; color: var(--navy); }
.legal-card h2 span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: #ffe9d9; color: var(--orange-dark); font-size: 13px; font-weight: 700; }
.legal-card p, .legal-card li { font-size: 15px; line-height: 1.8; color: #3d4763; }
.legal-card > p { margin-top: 8px; }
.legal-card ul { margin: 10px 0 0; padding-left: 22px; list-style: disc; }
.legal-card li { padding-left: 4px; }
.legal-card li::marker { color: var(--orange); }
.legal-card a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal-card code { padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); font-size: .9em; }
.legal-card blockquote { margin: 14px 0 0; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 16px 16px 0; background: #fff7f1; font-size: 15px; line-height: 1.8; color: var(--ink); }
.legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.legal-actions .btn { padding: 13px 22px; font-size: 13.5px; }
.legal-status { margin: 0 !important; font-size: 13.5px !important; color: #178a5d !important; }
.legal-footer { padding: 4px 0 34px; text-align: center; font-size: 12.5px; color: var(--muted); }

@media (max-width: 560px) {
  .legal-back { padding: 10px 14px; }
  .legal-card { border-radius: 22px; }
  .header-actions { gap: 10px; }
}

.legal-body .header-inner { display: flex; justify-content: space-between; }
