/* Gatrani Studio — design tokens + components. No external dependencies. */
:root {
  --paper: #F3EFE7;
  --paper-2: #EAE5D9;
  --ink: #0B1730;
  --ink-2: #34405A;
  --muted: #625E55;
  --line: rgba(18, 18, 18, .14);
  --accent: #F2A71B;
  --accent-ink: #8F5A00;
  --blue: #2B33FF;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 0 rgba(18,18,18,.04), 0 18px 40px -18px rgba(18,18,18,.28);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
p { margin: 0 0 1em; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }
.ic { flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2a2a28; box-shadow: 0 10px 24px -10px rgba(18,18,18,.5); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { box-shadow: 0 10px 24px -10px rgba(242,167,27,.7); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.5); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow .ic { transition: transform .25s var(--ease); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(243,239,231,.86); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { display: block; height: 60px; width: auto; }
.site-footer .logo { align-self: flex-start; background: var(--paper); padding: 10px 16px; border-radius: 14px; }
.site-footer .logo img { height: 56px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.main-nav a:hover { background: rgba(18,18,18,.07); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav-contact-m { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; text-decoration: none; font: 700 .75rem/1 var(--sans); letter-spacing: .06em; }
.lang-switch span { padding: 7px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch span.on { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 36px 0 0; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .78rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(242,167,27,.22); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(242,167,27,0); } }
.hero h1 em { font-style: italic; color: var(--accent-ink); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--accent); opacity: .35; border-radius: 99px; transform: skewX(-12deg); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 58ch; line-height: 1.55; }
.hero .lead { margin: 26px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .96rem; }
.hero-proof li { display: flex; align-items: center; gap: 10px; }
.hero-proof .ic { color: var(--accent-ink); }

.hero-stage { position: relative; height: 560px; perspective: 1400px; --mx: 0; --my: 0; }
.stage-glow { position: absolute; inset: 8% 4% 4% 10%; background: radial-gradient(circle at 30% 30%, rgba(242,167,27,.5), transparent 55%), radial-gradient(circle at 75% 70%, rgba(43,51,255,.35), transparent 55%); filter: blur(40px); }
.frame { position: absolute; width: 74%; border-radius: 16px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px rgba(18,18,18,.08); overflow: hidden; transition: transform .5s var(--ease); will-change: transform; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f2f0ea; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4cfc3; }
.frame-bar span { margin-left: 10px; font: 500 .7rem/1 var(--sans); color: var(--muted); background: #fff; padding: 5px 10px; border-radius: 6px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-screen { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.frame-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.f1 { left: 0; top: 4%; transform: rotate(-6deg) translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px), 0); z-index: 1; }
.f2 { right: 0; top: 18%; z-index: 3; transform: rotate(2deg) translate3d(calc(var(--mx) * 18px), calc(var(--my) * 12px), 0); }
.f3 { left: 12%; bottom: 0; z-index: 2; width: 66%; transform: rotate(-2deg) translate3d(calc(var(--mx) * 8px), calc(var(--my) * 18px), 0); }
.chip { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 10px 16px; font: 700 .85rem/1 var(--sans); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip .ic { color: var(--accent-ink); }
.c-a { left: -2%; top: 46%; }
.c-b { right: 2%; top: 4%; animation-delay: -2s; }
.c-c { right: 8%; bottom: 8%; animation-delay: -4s; background: var(--ink); color: var(--paper); }
.c-c .ic { color: #6BE28F; }
@keyframes float { 50% { transform: translateY(-12px); } }

.marquee { border-block: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: italic 600 1.5rem/1 var(--serif); padding: 20px 28px; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: "✦"; color: var(--accent); font-style: normal; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.pt-0 { padding-top: 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .lead, .section-dark p { color: rgba(243,239,231,.78); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 16px; color: var(--accent-ink); }
.section-head.on-dark .eyebrow { color: var(--accent); }
.section-head .lead { margin-top: 18px; }
.section > .container > .center, .section .center { margin-top: 44px; }
.page-hero { padding: clamp(54px, 8vw, 110px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero .lead { margin-top: 24px; }
.page-hero .eyebrow { color: var(--accent-ink); }
.center-block { text-align: center; }
.center-block .lead { margin: 16px auto 28px; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 24px; max-width: 70ch; }
.fine-top { margin: 0 0 40px; }

/* bento services */
.bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento { position: relative; text-decoration: none; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 270px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.bento:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bento p { color: var(--muted); margin: 0; }
.bento .more { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.bento-code { font: italic 600 4.5rem/1 var(--serif); position: absolute; right: 22px; top: 8px; color: rgba(18,18,18,.07); }
.b1 { grid-column: span 3; background: var(--ink); color: var(--paper); }
.b1 p { color: rgba(243,239,231,.75); }
.b1 .bento-code { color: rgba(243,239,231,.1); }
.b1 .ic { color: var(--accent); }
.b2 { grid-column: span 3; }
.b3 { grid-column: span 2; background: var(--accent); border-color: transparent; }
.b3 p { color: var(--ink); opacity: .8; }
.b4 { grid-column: span 4; background: #E4DFFF; border-color: transparent; }
.b4 p { color: var(--ink-2); }

/* demo cards */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.demo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.demo-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.demo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.demo-card[hidden] { display: none; }
.demo-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.demo-card:hover .demo-thumb img { transform: scale(1.05); }
.demo-num { position: absolute; left: 14px; top: 14px; background: var(--paper); font: 700 .75rem/1 var(--sans); padding: 7px 10px; border-radius: 999px; letter-spacing: .08em; }
.demo-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-cat { font: 700 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }
.demo-cat span { opacity: .5; }
.demo-body h3 a { text-decoration: none; }
.demo-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.demo-style { font-size: .88rem !important; }
.demo-style b { color: var(--ink); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }

/* gallery tools */
.gallery-tools { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: 600 .88rem/1 var(--sans); border: 1.5px solid var(--line); background: rgba(255,255,255,.55); padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: all .2s; color: var(--ink); }
.chip-btn span { opacity: .55; margin-left: 4px; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-btn.is-soon { border-style: dashed; }
.search-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px; min-width: 260px; }
.search-box:focus-within { border-color: var(--ink); }
.search-box input { border: 0; background: none; padding: 13px 0; font: inherit; width: 100%; outline: none; }
.result-count { color: var(--muted); font-size: .9rem; margin: 0 0 22px; }
.empty-state { text-align: center; padding: 64px 24px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state[hidden] { display: none; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 10px auto 24px; }

/* process (dark) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 29px; height: 1px; background: rgba(243,239,231,.25); }
.step { position: relative; padding: 0 22px 0 0; }
.step-n { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--accent); color: var(--accent); font: italic 600 1.35rem/1 var(--serif); position: relative; margin-bottom: 24px; }
.step h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--paper); }
.step p { font-size: .94rem; margin: 0; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.price-card.popular { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-14px); box-shadow: var(--shadow); }
.price-card.popular .price-for, .price-card.popular .price small { color: rgba(243,239,231,.7); }
.price-card.popular .ic { color: var(--accent); }
.badge { position: absolute; top: -14px; left: 28px; background: var(--accent); color: var(--ink); font: 800 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.price-for { color: var(--muted); margin: 0; min-height: 3.2em; font-size: .97rem; }
.price { margin: 6px 0 4px; display: flex; flex-direction: column; }
.price small { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.price strong { font: 600 clamp(2rem, 3vw, 2.6rem)/1 var(--serif); letter-spacing: -.03em; }
.maint-card .price { flex-direction: row; align-items: baseline; gap: 8px; }
.maint-card .price small { margin: 0; text-transform: none; letter-spacing: 0; }
.price-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 10px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.check-list .ic { color: var(--accent-ink); margin-top: 3px; }
.check-list.on-dark .ic { color: var(--accent); }
.check-list.big li { font-size: 1.2rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .96rem; vertical-align: middle; }
.compare thead th { font: 600 1.25rem/1.1 var(--serif); background: var(--paper); }
.compare thead th small { display: block; font: 500 .8rem/1.2 var(--sans); color: var(--muted); margin-top: 6px; }
.compare tbody th { font-weight: 600; width: 32%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .pop { background: #FFF3EE; }
.compare thead .pop { background: #FFE3D8; }
.compare .yes { color: #0A7B3E; display: inline-flex; }
.compare .no { color: #a9a597; display: inline-flex; }
.maint-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; }
.maint-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.maint-card .btn { align-self: flex-start; margin-top: 8px; }

/* commitments / pillars */
.commit-list, .pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.commit-list li { display: flex; gap: 22px; padding: 28px 0; border-top: 1.5px solid var(--ink); }
.commit-list li > span, .pillars li > span { font: italic 600 2.2rem/1 var(--serif); color: var(--accent-ink); }
.commit-list h3 { margin-bottom: 8px; }
.commit-list p { margin: 0; color: var(--muted); }
.pillars { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillars li { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.pillars p { color: var(--muted); margin: 0; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1.5px solid var(--line); }
.quote blockquote { margin: 0 0 18px; font: 500 1.15rem/1.5 var(--serif); }
.quote figcaption { color: var(--muted); font-size: .92rem; }

/* faq */
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 1.3rem/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--ink); transition: transform .3s var(--ease), background .3s; }
details[open] .faq-ic { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.faq-a { padding: 0 60px 26px 0; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* cta band */
.cta-band { background: var(--accent); padding: clamp(56px, 8vw, 100px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.cta-inner h2 { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.8rem); }
.cta-inner p { margin: 16px 0 0; font-size: 1.15rem; max-width: 46ch; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* services page */
.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 52px 0; border-top: 1.5px solid var(--ink); scroll-margin-top: 90px; }
.service-id { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.service-code { font: italic 600 4rem/1 var(--serif); color: var(--accent-ink); }
.service-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.service-main h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 28px 0; }
.two-col h4 { margin-bottom: 14px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.service-pkg { color: var(--muted); font-size: .92rem; margin-left: 8px; }
.service-pkg a { font-weight: 700; color: var(--ink); }

/* portfolio */
.case-list { display: grid; gap: 80px; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.case.rev .case-shot { order: 2; }
.case-shot { display: block; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); aspect-ratio: 16 / 10; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.case-shot:hover { transform: scale(1.015) rotate(-.4deg); }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-info h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 8px 0 6px; }
.case-kind { color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.case-info dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 18px; margin: 22px 0; padding: 20px 0; border-block: 1px solid var(--line); font-size: .95rem; }
.case-info dt { font: 700 .72rem/1.8 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-info dd { margin: 0; }
.swatches { display: flex; gap: 8px; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

/* how it works */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 33px; top: 20px; bottom: 20px; width: 2px; background: var(--ink); opacity: .2; }
.tl-item { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 28px; padding-bottom: 28px; }
.tl-n { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--accent); font: italic 600 1.6rem/1 var(--serif); position: relative; z-index: 1; }
.tl-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.tl-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); margin-bottom: 14px; }
.tl-card h3 { margin-bottom: 10px; }
.tl-card p { color: var(--muted); }
.tl-out { margin: 14px 0 0 !important; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--paper); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.form-card, .side-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); }
.side-card { position: sticky; top: 100px; display: grid; gap: 18px; background: var(--paper-2); }
.side-card hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 0; }
.side-card p { margin: 0; display: flex; gap: 10px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; border: 0; }
.form-grid .field { margin: 0; }
.field label, .field legend { font-weight: 600; font-size: .93rem; padding: 0; }
.field em { color: var(--accent-ink); font-style: normal; }
.field input, .field select, .field textarea { font: inherit; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); width: 100%; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(18,18,18,.08); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C23B1F; background: #FFF5F2; }
.err { color: #B1341A; font-size: .85rem; margin: 0; min-height: 0; }
.err:empty { display: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; cursor: pointer; font-size: .92rem; background: var(--paper); transition: all .2s; }
.check:hover { border-color: var(--ink); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; padding: 0; }
.check:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-error { color: #B1341A; font-weight: 600; background: #FFF1ED; padding: 12px 16px; border-radius: 12px; }
.demo-banner { background: #E4DFFF; border-radius: 14px; padding: 14px 18px; margin-bottom: 24px; font-size: .95rem; }
.demo-banner[hidden], .thanks[hidden], .form-error[hidden] { display: none; }
.thanks { text-align: center; display: grid; justify-items: center; gap: 18px; padding: 20px 0; }
.thanks-ic { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #CFF5DB; color: #0A7B3E; }
.wa-preview { text-align: left; white-space: pre-wrap; background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; font: .88rem/1.6 var(--sans); max-width: 100%; width: 100%; margin: 0; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand p { color: rgba(243,239,231,.7); max-width: 40ch; margin: 18px 0 0; }
.footer-tag { font: italic 500 1.3rem/1.3 var(--serif); color: var(--paper) !important; }
.site-footer h4 { color: rgba(243,239,231,.55); margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a { text-decoration: none; color: rgba(243,239,231,.88); display: inline-flex; gap: 8px; align-items: center; }
.footer-links a:hover { color: var(--accent); }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(243,239,231,.3); border-radius: 50%; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; border-top: 1px solid rgba(243,239,231,.15); padding: 24px 0 32px; font-size: .88rem; color: rgba(243,239,231,.6); }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 28px -8px rgba(18,140,70,.7); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* reveal */
html.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 480px; max-width: 640px; margin-inline: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 29px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 58px 1fr; column-gap: 22px; padding: 0; }
  .step-n { grid-row: span 2; margin: 0; }
  .demo-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .price-card.popular { transform: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .case, .case.rev { grid-template-columns: 1fr; gap: 28px; }
  .case.rev .case-shot { order: 0; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { position: fixed; inset: 78px 0 auto 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 14px 24px 26px; transform: translateY(-14px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); margin: 0; }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; font-size: 1.15rem; padding: 14px 6px; border-radius: 10px; }
  .nav-contact-m { display: block; }
  .header-actions { margin-left: auto; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .b1, .b2, .b3, .b4 { grid-column: span 2; }
  .service { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .service-id { flex-direction: row; align-items: center; }
  .service-code { font-size: 3rem; }
  .split, .footer-grid, .commit-list { grid-template-columns: 1fr; gap: 36px; }
  .maint-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(1200px, 100% - 36px); }
  .header-row { height: 68px; gap: 12px; }
  .main-nav { inset: 68px 0 auto 0; }
  .hero-stage { height: 360px; }
  .chip { font-size: .72rem; padding: 8px 12px; }
  .demo-grid, .demo-grid-3 { grid-template-columns: 1fr; }
  .two-col, .form-grid, .pillars { grid-template-columns: 1fr; }
  .gallery-tools { flex-direction: column; align-items: stretch; }
  .search-box { min-width: 0; }
  .cta-buttons .btn { width: 100%; }
  .faq summary { font-size: 1.1rem; }
  .faq-a { padding-right: 0; }
  .tl-item { grid-template-columns: 52px 1fr; gap: 16px; }
  .tl-n { width: 52px; height: 52px; font-size: 1.2rem; }
  .timeline::before { left: 25px; }
  .tl-card { padding: 22px; }
  .case-info dl { grid-template-columns: 1fr; gap: 4px; }
  .case-info dt { margin-top: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lang-switch span { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
