:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --ink: #10151f;
  --ink-soft: #4a5162;
  --ink-faint: #7d8496;
  --border: #dcdcd6;
  --accent: #16304f;
  --accent-2: #2c5079;
  --accent-ink: #ffffff;
  --accent-soft: #e8edf3;
  --radius-s: 4px;
  --radius: 6px;
  --radius-l: 10px;
  --max-w: 1120px;
  --shadow: 0 14px 34px rgba(16, 21, 31, 0.1);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.01em; margin: 0; font-weight: 800; }
p { margin: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.4rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.4rem; }

/* header */
header.site {
  border-bottom: 2px solid var(--ink);
  background: rgba(245, 245, 242, 0.95);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; gap: 1.5rem; }

.logo-lockup { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo {
  font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo-tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 0.3rem; white-space: nowrap;
}

nav.main { flex: 1; display: flex; justify-content: center; }
nav.main ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
nav.main a { color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.burger {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  width: 42px; height: 38px; font-size: 1.1rem; cursor: pointer;
}

.menu-extra { display: none; }

@media (max-width: 860px) {
  header.site .wrap { position: relative; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .header-actions .lang-switch { display: none; }

  nav.main {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.25s ease;
  }
  header.site.menu-open nav.main {
    max-height: 80vh; opacity: 1; overflow-y: auto; pointer-events: auto;
  }
  nav.main ul { flex-direction: column; gap: 0; margin: 0; padding: 0.6rem 1.4rem 0; }
  nav.main ul li { border-bottom: 1px solid var(--border); }
  nav.main ul a { display: block; padding: 0.85rem 0; }

  .menu-extra {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.9rem;
    padding: 1.1rem 1.4rem 1.4rem; margin-top: 0.4rem; border-top: 1px solid var(--border);
  }
  .menu-extra .nav-cta { display: inline-flex; }
  .menu-extra .lang-switch { justify-content: center; }
}

@media (max-width: 560px) {
  .logo-tag { display: none; }
  header.site .wrap { gap: 0.6rem; }
  .header-actions { gap: 0.5rem; }
}

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.4rem; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border: 1px solid var(--accent); cursor: pointer;
}
.btn:hover { background: #0c1f36; border-color: #0c1f36; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.lg { padding: 0.95rem 1.8rem; font-size: 1.05rem; }

.trust-line { font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.9rem; }

/* sections */
section { padding: 5rem 0; }
section.tight { padding: 3.5rem 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem;
}
h2.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.6rem; }
p.section-sub { color: var(--ink-soft); max-width: 62ch; margin-bottom: 2.6rem; font-size: 1.05rem; }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); max-width: 18ch; margin-bottom: 1.1rem; }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 54ch; margin-bottom: 1.8rem; }
.page-hero { padding: 3.5rem 0 1rem; text-align: left; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 24ch; }
.page-hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; margin-top: 0.9rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* card grids */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.6rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }
.card .num { font-size: 0.8rem; font-weight: 700; color: var(--ink-faint); letter-spacing: 0.06em; margin-bottom: 0.6rem; display: block; }

/* problem list */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.problem-list li {
  display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-soft);
  padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-s);
}
.problem-list li::before { content: "-"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: step; }
.step { padding: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; display: grid; place-items: center; margin-bottom: 0.9rem; font-size: 0.95rem;
}
.step h4 { margin-bottom: 0.35rem; font-size: 1rem; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* case study */
.case-study {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) { .case-study { grid-template-columns: 1fr; } }
.case-study .cs-text { padding: 2.4rem; }
.case-study .tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: 0.8rem; font-weight: 700; padding: 0.28rem 0.7rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.case-study h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.case-study ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.case-study ul li { margin-bottom: 0.45rem; }
.case-study .visit { display: inline-block; margin-top: 1.4rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.cs-shot { position: relative; overflow: hidden; background: var(--accent-soft); min-height: 260px; }
.cs-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* budai teaser */
.budai-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.budai-chip {
  display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); text-align: center; font-weight: 800; letter-spacing: 0.05em;
  padding: 1.6rem 1rem; transition: transform 0.15s;
}
.budai-chip:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .budai-chip:hover { transform: none; } }
.budai-chip small { display: block; font-weight: 500; letter-spacing: normal; margin-top: 0.4rem; font-size: 0.8rem; opacity: 0.85; }
.bc-basic { background: #fff; color: #2563eb; }
.bc-3d { background: #0a0a1a; color: #22d3ee; }
.bc-editorial { background: #f8f5f0; color: #a0522d; font-family: Georgia, serif; }
.bc-luxury { background: #0d0d0d; color: #c9b98f; }
.bc-bold { background: #f2ff49; color: #0a0a0a; }

/* faq */
details.faq { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
details.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--ink-soft); margin-top: 0.8rem; max-width: 68ch; }

/* about */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
@media (max-width: 760px) { .about-block { grid-template-columns: 1fr; } }
.about-block p { color: var(--ink-soft); margin-bottom: 1rem; }
.people { display: grid; gap: 1rem; margin-top: 1rem; }
.person { display: flex; gap: 0.9rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.person .avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.person strong { display: block; font-size: 0.98rem; }
.person span { color: var(--ink-faint); font-size: 0.85rem; }

/* form */
form.contact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 2.2rem; display: grid; gap: 1.1rem; box-shadow: var(--shadow);
}
form.contact label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 0.35rem; }
form.contact input, form.contact textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  font-family: inherit; font-size: 1rem; background: var(--bg);
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.contact textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: -0.4rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info .info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.contact-info .info-card strong { display: block; margin-bottom: 0.3rem; }
.contact-info a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* final cta */
.final-cta { background: var(--ink); color: #f1f1ec; border-radius: var(--radius-l); padding: 3.2rem 2.4rem; text-align: center; }
.final-cta h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-bottom: 0.8rem; color: #fff; }
.final-cta p { color: #c7c7bf; margin-bottom: 1.6rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
.final-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.final-cta .btn:hover { background: #e9e9e2; border-color: #e9e9e2; }

/* footer */
footer.site { border-top: 1px solid var(--border); padding: 3rem 0 2rem; color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid p { color: var(--ink-faint); margin-top: 0.6rem; font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 0.85rem; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-faint); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* language switch */
.lang-switch { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; }
.lang-switch a, .lang-switch span {
  padding: 0.2rem 0.45rem; border-radius: var(--radius-s); text-decoration: none; color: var(--ink-faint);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch span[aria-current="true"] { color: var(--ink); background: var(--accent-soft); }

/* select (contact form) */
form.contact select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-s);
  font-family: inherit; font-size: 1rem; background: var(--bg); color: var(--ink);
}
form.contact select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* notice / consent line */
.notice {
  display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--ink-soft);
  background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 0.8rem 1rem; margin-top: 1.4rem;
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column;
}
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan .plan-badge {
  align-self: flex-start; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.plan .plan-for { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 1.1rem; }
.plan .price { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin-bottom: 0.2rem; }
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-faint); }
.plan ul { list-style: none; margin: 1.1rem 0 1.4rem; padding: 0; flex: 1; }
.plan ul li { padding: 0.5rem 0; border-top: 1px solid var(--border); font-size: 0.93rem; color: var(--ink-soft); }
.plan ul li:first-child { border-top: none; }
.plan .btn { text-align: center; justify-content: center; }

.price-notes { display: grid; gap: 0.9rem; margin-top: 1rem; }
.price-notes .card { border-top: 3px solid var(--accent); }

/* legal / prose pages */
.prose h2 { font-size: 1.3rem; margin: 2.4rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.4rem; }
.prose strong { color: var(--ink); }
.prose .updated { color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 2rem; }

/* services table (à la carte) */
.svc-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.svc-table caption { text-align: left; caption-side: top; color: var(--ink-faint); font-size: 0.88rem; margin-bottom: 0.8rem; }
.svc-table th, .svc-table td { padding: 0.9rem 1.1rem; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
.svc-table thead th { border-top: none; background: var(--accent-soft); color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.svc-table td.svc-name { font-weight: 700; white-space: nowrap; }
.svc-table td.svc-desc { color: var(--ink-soft); font-size: 0.94rem; }
.svc-table td.svc-price { font-weight: 700; white-space: nowrap; text-align: right; }
.svc-table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table td { display: block; width: 100%; }
  .svc-table tr { border-top: 1px solid var(--border); padding: 0.9rem 1.1rem; }
  .svc-table td { border: none; padding: 0.15rem 0; }
  .svc-table td.svc-price { text-align: left; color: var(--accent); }
}

/* messenger bubble */
.chat-bubble {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; max-width: 44px; max-height: 44px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0;
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(16,21,31,0.28); text-decoration: none; box-sizing: border-box;
}
.chat-bubble:hover { background: #0c1f36; }
.chat-bubble svg { width: 20px; height: 20px; display: block; }
.chat-bubble .chat-label {
  position: absolute; right: 52px; bottom: 10px; background: var(--ink); color: #fff;
  padding: 0.4rem 0.7rem; border-radius: var(--radius-s); font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity 0.15s, transform 0.15s; pointer-events: none;
}
.chat-bubble:hover .chat-label, .chat-bubble:focus-visible .chat-label { opacity: 1; transform: none; }
@media (max-width: 600px) { .chat-bubble .chat-label { display: none; } }

/* mobile CTA text swap */
.cta-short { display: none; }
@media (max-width: 480px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
}
