/* ===== Tokens ===== */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #14161a;
  --muted: #5f6672;
  --line: #e3dfd6;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7dd;
  --wa: #1fa855;
  --logo-bg: #14161a;
  --logo-fg: #f6f4ef;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20,22,26,.05), 0 12px 32px -12px rgba(20,22,26,.18);
  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0d0f12;
  --surface: #161a1f;
  --ink: #f2f0ea;
  --muted: #9aa1ac;
  --line: #262b32;
  --accent-soft: #3a1d12;
  --logo-bg: #1d2229;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--accent); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; }
.brand-logo { width: 38px; height: 38px; flex: none; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-size: 1.1rem; letter-spacing: -.02em; }
.brand-name small { font: 600 .62rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
nav#nav { display: flex; gap: 6px; }
nav#nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted); }
nav#nav a:hover { background: var(--surface); color: var(--ink); }
.tools { display: flex; align-items: center; gap: 8px; }
#lang, .icon-btn {
  height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; font: 600 .85rem var(--font-body); cursor: pointer;
}
#lang { padding: 0 10px; }
.icon-btn { width: 38px; display: grid; place-items: center; }
.menu-btn { display: none; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* ===== Hero ===== */
.hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; padding: clamp(48px, 9vw, 110px) 0 56px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .88rem; font-weight: 500; margin-bottom: 1.4rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #25c35f; box-shadow: 0 0 0 0 rgba(37,195,95,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37,195,95,0); } 100% { box-shadow: 0 0 0 0 rgba(37,195,95,0); } }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 40ch; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hero-card li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee-track span { padding: 16px 34px; font: 700 1.05rem var(--font-head); color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-left: 68px; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 110px) 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font: 600 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* ===== Projects ===== */
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.project.flip { grid-template-columns: 1fr 1.25fr; }
.project.flip .shot { order: 2; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; }
.project:hover .shot { transform: translateY(-4px) rotate(-.4deg); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot.noimg::after { content: attr(data-label); display: grid; place-items: center; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); font: 700 clamp(1.2rem, 3vw, 1.8rem) var(--font-head); color: var(--muted); }
.project-tag { font-size: .85rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.project-body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1rem 0 0; }
.chips li { padding: 6px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: .82rem; font-weight: 500; }

/* ===== Services ===== */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card { grid-column: span 2; }
.card:nth-child(n+4) { grid-column: span 3; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p:not(.price) { color: var(--muted); flex: 1; }
.card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card.featured p:not(.price) { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.ribbon { align-self: flex-start; margin-bottom: 12px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font: 800 2.2rem var(--font-head); margin: .6rem 0 .8rem; }
.price small, .price .from { font: 500 .9rem var(--font-body); color: var(--muted); }
.price .from { margin-right: 4px; }
.link { font-weight: 600; text-decoration: none; color: var(--accent); }
.link:hover { text-decoration: underline; }
.note { margin-top: 22px; }

/* ===== Process ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.num { font: 700 .9rem var(--font-head); color: var(--accent); }
.steps h3 { margin: 6px 0 8px; }
.steps p { color: var(--muted); }

/* ===== About ===== */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.about-mark { aspect-ratio: 1; display: grid; transform: rotate(-4deg); }
.about-mark svg { width: 100%; height: 100%; border-radius: 22%; box-shadow: var(--shadow); }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 1.1rem var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-bottom: clamp(56px, 9vw, 110px); }
.contact-list { margin: 28px 0; display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); align-content: start; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink); font: 400 1rem var(--font-body);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; }

/* ===== Footer & floating ===== */
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(31,168,85,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* ===== Modal ===== */
dialog { width: min(1100px, 96vw); height: min(780px, 90vh); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(10,12,15,.65); backdrop-filter: blur(4px); }
.dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dlg-bar div { display: flex; gap: 8px; }
dialog iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.dlg-note { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(n+4) { grid-column: auto; }
  .card:last-child { grid-column: 1 / -1; }
  .hero, .project, .project.flip, .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .project.flip .shot { order: 0; }
  .hero-card { transform: none; }
  .about-mark { max-width: 200px; }
  .menu-btn { display: grid; }
  nav#nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  nav#nav.open { display: flex; }
  nav#nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
