/* Layout: one centered column (max 1120px) with full-width navy bands; brand: navy + turquoise, coral wave as the accent */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #0B2545;
  --muted: #4A5568;
  --line: #D6DEE6;
  --coral: #E8643A;
  --coral-text: #B8461F;
  --lagoon: #0E8A82;
  --lagoon-text: #0B6F69;
  --btn-bg: #0B2545;
  --btn-fg: #FFFFFF;
  --band: #0B2545;
  --tint: #F3F5F8;
  --hero-bg: #0B2545;
  --cta-bg: #2EC4B6;
  --cta-fg: #0B2545;
  --on-band: #F1F5F9;
  --on-band-muted: #B4C3D3;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081A31; --surface: #0F2540; --ink: #EEF3F8; --muted: #A9B8C9; --line: #1F3A5A;
    --coral: #F2845E; --coral-text: #F59A78; --lagoon: #2EC4B6; --lagoon-text: #2EC4B6;
    --btn-bg: #2EC4B6; --btn-fg: #0B2545;
    --band: #051326; --on-band: #EEF3F8; --on-band-muted: #9FB0C4;
    --tint: #0D2238; --hero-bg: #061629; --cta-bg: #2EC4B6; --cta-fg: #0B2545;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081A31; --surface: #0F2540; --ink: #EEF3F8; --muted: #A9B8C9; --line: #1F3A5A;
  --coral: #F2845E; --coral-text: #F59A78; --lagoon: #2EC4B6; --lagoon-text: #2EC4B6;
  --btn-bg: #2EC4B6; --btn-fg: #0B2545;
  --band: #051326; --on-band: #EEF3F8; --on-band-muted: #9FB0C4;
  --tint: #0D2238; --hero-bg: #061629; --cta-bg: #2EC4B6; --cta-fg: #0B2545;
  color-scheme: dark;
}

/* Logo: color version on light, white version on dark */
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--coral-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--lagoon); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack { display: flex; flex-direction: column; gap: 1rem; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lagoon-text);
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.4rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 104px; width: auto; display: block; }
.site-footer .brand img { height: 130px; }
@media (max-width: 480px) { .brand img { height: 76px; } }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.5rem 0.75rem; border-radius: 6px;
}
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { color: var(--coral-text); }
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle {
  font: inherit; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--lagoon); }
.menu-toggle {
  display: none; font: inherit; font-weight: 600; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 8px; padding: 0.35rem 0.7rem; cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 0.8rem 1.4rem; border: 2px solid transparent;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2.25rem; max-width: 62ch; }
.page-hero { padding-block: clamp(2.75rem, 6vw, 4.5rem) 1rem; }
.page-hero .stack { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Feature list */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.points > div { display: flex; flex-direction: column; gap: 0.4rem; }
.points h3 { font-size: 1.1rem; }
.points p { color: var(--muted); }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.plan.featured { border: 2px solid var(--coral); }
.plan .tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--coral); color: #0B2545; padding: 0.2rem 0.6rem; border-radius: 99px;
}
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-from { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 0.55rem; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--lagoon); }
.plan .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { text-align: left; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.note { font-size: 0.95rem; color: var(--muted); margin-top: 1rem; max-width: 70ch; }

/* Portfolio */
.project {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.project-visual {
  aspect-ratio: 16 / 9; max-width: 100%; display: grid; place-items: center; position: relative;
  background: var(--band); color: var(--on-band);
}
.mock-bar { height: 16px; background: var(--line); display: flex; gap: 4px; align-items: center; padding: 0 6px; }
.mock-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.6; }
.project-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.project-meta { font-size: 0.9rem; color: var(--muted); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.name-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
}
.name-card .logo-stacked { width: 200px; max-width: 100%; height: auto; }
.name-split { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.name-split .ja { font-weight: 400; }
.name-split .dav { font-weight: 700; color: var(--lagoon-text); }
.name-key { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; font-size: 1rem; }
.name-key dt { font-weight: 800; font-family: var(--font-display); }
.name-key dd { margin: 0; color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 62ch; }
.area-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
label { font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px;
  padding: 0.7rem 0.8rem; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: var(--lagoon); }
.form-status.err { color: var(--coral-text); }
.info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.info-list > div { display: flex; flex-direction: column; gap: 0.2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.info-value { font-size: 1.1rem; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--band); color: var(--on-band-muted); padding-block: 2.5rem; margin-top: 0; }
.site-footer .brand { color: var(--on-band); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--on-band); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .lang-toggle { transition: background-color .15s, border-color .15s, filter .15s; }
}

/* Extra pieces for the pricing page */
.terms { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; max-width: 70ch; }
.inline-note { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; padding: 1.1rem 1.4rem; border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 1.25rem; }
.inline-note strong { font-family: var(--font-display); font-weight: 600; }

.info-value a { color: var(--ink); text-decoration: none; }
.info-value a:hover { color: var(--lagoon-text); text-decoration: underline; }

/* Portfolio screenshots in a browser frame */
.project-visual.has-shot { padding: clamp(16px, 4%, 28px); place-items: stretch; }
.shot { background: var(--surface); border-radius: 8px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6); display: flex; flex-direction: column; min-width: 0; }
.shot .mock-bar { height: 22px; flex: none; }
.shot .mock-bar span { margin-left: 8px; font-size: 0.7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot a { display: block; flex: 1; min-height: 0; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project .visit { font-weight: 700; text-decoration: none; }

/* ===== Layout v2: centered hero, wave dividers, editorial service list, light footer ===== */
.header-cta { padding: 0.55rem 1.1rem; font-size: 0.95rem; }
@media (max-width: 980px) { .header-cta { display: none; } }
.center { text-align: center; align-items: center; margin-inline: auto; }
.btn-row.center { justify-content: center; }

.hero-c { position: relative; overflow: hidden; background: var(--tint); padding-block: clamp(3rem, 7vw, 5.5rem) 2.5rem; }
.hero-c-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.hero-c h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 18ch; }
.hero-c h1 .accent { color: var(--lagoon-text); }
.hero-c .lede { max-width: 62ch; }
.pill-tag { font-size: 0.85rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.rings-decor { position: absolute; width: min(560px, 70vw); right: -12%; top: -8%; color: var(--lagoon); opacity: 0.14; pointer-events: none; }
.page-hero .rings-decor { width: min(420px, 60vw); right: -6%; top: -30%; }

.wave-divider { line-height: 0; background: var(--bg); }
.wave-divider svg { display: block; width: 100%; height: clamp(28px, 4vw, 56px); }

.page-hero { position: relative; overflow: hidden; background: var(--tint); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }

.section-head.center { text-align: center; align-items: center; }
.section.tint { background: var(--tint); }

/* Editorial service list */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.svc-row:hover .svc-arrow { transform: translateX(4px); color: var(--coral-text); }
.svc-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.svc-ic .icon { width: 26px; height: 26px; color: var(--lagoon-text); }
.svc-txt { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.svc-txt strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.svc-txt > span { color: var(--muted); font-size: 0.98rem; }
.svc-arrow { font-size: 1.3rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .svc-arrow { transition: transform .15s, color .15s; } }
.center-link { text-align: center; margin-top: 1.75rem; font-weight: 700; }
.center-link a, .more { color: var(--coral-text); text-decoration: none; font-weight: 700; }

/* Timeline with wave connector */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6c5-6 10-6 20 0s15 6 20 0' fill='none' stroke='%23E8643A' stroke-width='2.4'/%3E%3C/svg%3E") repeat-x center / 40px 12px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.timeline .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--lagoon); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); position: relative; z-index: 1; }
.timeline p { color: var(--muted); max-width: 26ch; }
@media (max-width: 860px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; } .timeline::before { display: none; } }
@media (max-width: 460px) { .timeline { grid-template-columns: 1fr; } }

/* Recent work teaser */
.work-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 700px) { .work-row { grid-template-columns: 1fr; } }
.work-item { display: flex; flex-direction: column; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.work-img { display: block; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (prefers-reduced-motion: no-preference) { .work-img img { transition: transform .3s; } .work-item:hover .work-img img { transform: scale(1.03); } }
.work-meta { display: flex; flex-direction: column; gap: 0.1rem; }
.work-meta strong { font-family: var(--font-display); font-weight: 600; }

/* CTA block */
.cta-block { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.25rem); border-radius: 20px; background: var(--cta-bg); color: var(--cta-fg); }
.cta-block > .stack { flex: 1 1 340px; min-width: 0; position: relative; }
.cta-block h2 { color: var(--cta-fg); }
.cta-block p { color: var(--cta-fg); opacity: 0.85; max-width: 52ch; }
.cta-block .btn-row { position: relative; }
.cta-rings { position: absolute; width: 260px; right: -40px; bottom: -70px; color: #ffffff; opacity: 0.25; }
.btn-dark { background: #0B2545; color: #ffffff; }
.btn-dark:hover { filter: brightness(1.15); }
.btn-line { border-color: #0B2545; color: #0B2545; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,0.3); }

/* Services page details */
.svc-details { display: flex; flex-direction: column; }
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 4vw, 3rem); padding-block: 2rem; border-bottom: 1px solid var(--line); align-items: start; }
.svc-detail:first-child { padding-top: 0.5rem; }
.svc-detail > * { min-width: 0; }
@media (max-width: 760px) { .svc-detail { grid-template-columns: 1fr; } }
.svc-detail-head { display: flex; gap: 1rem; align-items: flex-start; }
.svc-detail h2 { font-size: 1.4rem; }
.svc-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.25rem; }
@media (max-width: 520px) { .svc-checks { grid-template-columns: 1fr; } }
.svc-checks li { display: grid; grid-template-columns: 18px 1fr; gap: 0.5rem; }
.svc-checks svg { width: 16px; height: 16px; margin-top: 5px; color: var(--lagoon-text); }

/* About values on tint */
.section.tint .points p { color: var(--muted); }

/* Light footer */
.site-footer { background: var(--tint); color: var(--muted); padding-block: 3rem 2rem; }
.site-footer .brand img { height: 110px; margin: 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-cols > :first-child { grid-column: 1 / -1; } }
.f-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.f-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--lagoon-text); text-decoration: underline; }
.site-footer .footer-bottom { border-top: 1px solid var(--line); color: var(--muted); }

/* Home: simple hero */
.hero-c .rings-decor { opacity: 0.08; }
.hero-c { padding-block: clamp(3.5rem, 9vw, 7rem) 3rem; }
.points { text-align: left; }

/* Navy heroes */
.hero-c, .page-hero { background: var(--hero-bg); color: #FFFFFF; }
.hero-c h1, .page-hero h1 { color: #FFFFFF; }
.hero-c h1 .accent { color: #2EC4B6; }
.hero-c .lede, .page-hero .lede { color: #C9D5E3; }
.hero-c .eyebrow, .page-hero .eyebrow { color: #F2845E; }
.hero-c .rings-decor, .page-hero .rings-decor { color: #2EC4B6; opacity: 0.18; }
.pill-tag { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #FFFFFF; }
.hero-c .btn-primary { background: #2EC4B6; color: #0B2545; }
.hero-c .btn-ghost { border-color: rgba(255,255,255,0.45); color: #FFFFFF; }
.hero-c .btn-ghost:hover { border-color: #FFFFFF; }
.why > div { align-items: flex-start; }
.why-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin-bottom: 0.4rem; }
.why-ic .icon { width: 26px; height: 26px; color: var(--lagoon-text); }

/* Header joined with the navy banner */
body::before { background: var(--hero-bg); }
.site-header { background: var(--hero-bg); backdrop-filter: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-header .logo-light { display: none !important; }
.site-header .logo-dark { display: block !important; }
.site-header .wrap { padding-block: 0.6rem; }
.nav { gap: 0.15rem; }
.nav a { color: #E4ECF5; font-weight: 500; position: relative; padding: 0.5rem 0.85rem; border-radius: 0; }
.nav a:hover { background: transparent; color: #FFFFFF; }
.nav a[aria-current="page"] { color: #FFFFFF; font-weight: 600; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.15rem; height: 3px; border-radius: 3px; background: #F2845E; }
.header-cta.btn-primary { background: #2EC4B6; color: #0B2545; }
.lang-toggle, .menu-toggle { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.35); }
.lang-toggle:hover, .menu-toggle:hover { border-color: #FFFFFF; }
.hero-c { padding-top: clamp(2.5rem, 7vw, 5rem); }
.page-hero { padding-top: clamp(2rem, 5vw, 3.25rem); }
@media (max-width: 860px) {
  .nav { background: var(--hero-bg); border-bottom: 1px solid rgba(255,255,255,0.12); }
  .nav a { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav a[aria-current="page"]::after { left: 0.5rem; right: auto; width: 28px; bottom: 0.4rem; }
}

/* Nav as part of the banner (not a separate bar) */
.site-header { position: relative; top: auto; border-bottom: 0; }
body::before { display: none; }
.nav a { font-weight: 600; color: #FFFFFF; }
.nav a[aria-current="page"] { color: #F2845E; }
.nav a[aria-current="page"]::after { display: none; }
.hero-c, .page-hero { margin-top: -1px; }
.hero-c .rings-decor { top: 6%; right: -8%; width: min(460px, 60vw); }
.page-hero .rings-decor { top: 12%; right: -4%; width: min(320px, 45vw); }

/* Sticky navy menu + turquoise banner */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); background: #0B2545; }
body::before { display: block; background: #0B2545; }
.nav a[aria-current="page"] { color: #F2845E; }
@media (max-width: 860px) { .nav { background: #0B2545; } }
:root { --hero-bg: #2EC4B6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-bg: #2EC4B6; } }
:root[data-theme="dark"] { --hero-bg: #2EC4B6; }
.hero-c, .page-hero { color: #0B2545; margin-top: 0; }
.hero-c h1, .page-hero h1 { color: #0B2545; }
.hero-c h1 .accent { color: #0B2545; text-decoration: underline wavy #E8643A; text-decoration-thickness: 3px; text-underline-offset: 0.18em; text-decoration-skip-ink: none; }
.hero-c .lede, .page-hero .lede { color: #123A4F; }
.hero-c .eyebrow, .page-hero .eyebrow { color: #0B2545; }
.hero-c .rings-decor, .page-hero .rings-decor { color: #FFFFFF; opacity: 0.35; }
.pill-tag { background: rgba(255,255,255,0.55); border-color: rgba(11,37,69,0.15); color: #0B2545; }
.hero-c .btn-primary { background: #0B2545; color: #FFFFFF; }
.hero-c .btn-ghost { border-color: #0B2545; color: #0B2545; }
.hero-c .btn-ghost:hover { background: rgba(255,255,255,0.3); border-color: #0B2545; }
.hero-c a:focus-visible, .page-hero a:focus-visible { outline-color: #0B2545; }

@media (max-width: 600px) { .rings-decor { display: none; } }

.hero-c h1 .accent { text-decoration: none; color: inherit; }

.hero-c h1 .accent { color: #8F2F0E; }
.legal-note { margin: 1rem 0 0; font-size: 0.8rem; color: var(--muted); max-width: 90ch; }
td.num { white-space: normal; }

.hero-c .lede, .page-hero .lede { color: #0B2545; font-weight: 600; }

.price-from { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.inline-note .more { margin-left: auto; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.review blockquote { margin: 0; font-size: 1.02rem; }
.review figcaption { display: flex; flex-direction: column; gap: 0.1rem; margin-top: auto; }
.review-stars { display: flex; gap: 3px; color: #E8643A; }
.review-stars svg { width: 18px; height: 18px; }
.review-stars.big svg { width: 22px; height: 22px; opacity: 0.35; }
.review-empty { max-width: 620px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 2rem 1.5rem; }

/* Mobile: dropdown menu under the navy bar */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .menu-toggle::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .site-header .wrap { position: relative; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #0B2545; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 3px solid #E8643A;
    padding: 0.25rem max(16px, env(safe-area-inset-right, 0px)) 0.75rem max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 16px 30px -18px rgba(0,0,0,0.6); }
  .nav.open { display: flex; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1.05rem; }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Animaciones (mismo estilo que Torres Tax) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes slideIn { from { opacity: 0; transform: translateX(40px) rotate(8deg); } to { opacity: 1; transform: none; } }
  @keyframes pop { 0% { transform: scale(0); } 65% { transform: scale(1.2); } 100% { transform: scale(1); } }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11, 37, 69, .45); } 70% { box-shadow: 0 0 0 16px rgba(11, 37, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(11, 37, 69, 0); } }
  @keyframes pulseTeal { 0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, .55); } 70% { box-shadow: 0 0 0 14px rgba(46, 196, 182, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes ringsIn { from { opacity: 0; transform: translateX(40px) rotate(8deg); } to { opacity: .35; transform: none; } }
  @keyframes drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-3deg); } }

  /* Encabezado */
  .brand img { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
  .brand:hover img { transform: rotate(-6deg) scale(1.06); }
  .header-cta { animation: pulseTeal 2.8s 1.8s infinite; }

  /* Entrada del banner */
  .hero-c .pill-tag, .hero-c h1, .hero-c .lede, .hero-c .btn-row, .page-hero .eyebrow, .page-hero h1, .page-hero .lede { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-c h1, .page-hero h1 { animation-delay: .08s; }
  .hero-c .lede, .page-hero .lede { animation-delay: .16s; }
  .hero-c .btn-row { animation-delay: .24s; }
  .rings-decor { animation: ringsIn .9s .2s cubic-bezier(.2, .7, .2, 1) both, drift 7s 1.2s ease-in-out infinite; }
  .hero-c .btn-primary { animation: rise .7s .24s cubic-bezier(.2, .7, .2, 1) both, pulse 2.8s 1.6s infinite; }
  .wave-line { stroke-dasharray: 1; animation: draw 1.4s .35s cubic-bezier(.4, 0, .2, 1) both; }

  /* Botones y tarjetas */
  .btn { transition: transform .18s, filter .15s, background-color .2s, border-color .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .svc-row { transition: background-color .25s, padding-left .25s; }
  .svc-row:hover { background: var(--tint); padding-left: .75rem; }
  .svc-ic { transition: transform .4s cubic-bezier(.3, 1.4, .5, 1); }
  .svc-row:hover .svc-ic, .svc-detail:hover .svc-ic { transform: rotate(-10deg) scale(1.1); }
  .plan, .project, .review, .why > div, .cta-block { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
  .plan:hover, .project:hover, .review:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(11, 37, 69, .14); }
  .project .visit, .more, .center-link a { transition: transform .25s; display: inline-block; }
  .project:hover .visit, .more:hover, .center-link a:hover { transform: translateX(6px); }
  .timeline .dot { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), background-color .3s; }
  .timeline li:hover .dot { transform: scale(1.12); background: #2EC4B6; }
  .nav.open a { animation: rise .35s both; }
  .nav.open a:nth-child(2) { animation-delay: .04s; } .nav.open a:nth-child(3) { animation-delay: .08s; }
  .nav.open a:nth-child(4) { animation-delay: .12s; } .nav.open a:nth-child(5) { animation-delay: .16s; }
  .nav.open a:nth-child(6) { animation-delay: .2s; }

  /* Al bajar: las secciones aparecen y los íconos saltan */
  @supports (animation-timeline: view()) {
    .section .wrap > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .svc-row, .timeline li, .plan, .project, .why > div, .review, .svc-detail, .table-wrap tr { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
    .timeline .dot, .why-ic, .svc-checks svg, .plan li svg { animation: pop linear both; animation-timeline: view(); animation-range: entry 20% entry 70%; }
  }
}

/* Fixes v40 */
.svc-checks li > span, .f-list li, .f-list a { overflow-wrap: anywhere; min-width: 0; }
.footer-cols > * { min-width: 0; }
.legal-note { max-width: none; font-size: 1rem; line-height: 1.5; color: var(--ink); font-weight: 600; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.notary-notice { grid-column: 1 / -1; margin: 0; padding: 1rem 1.25rem; border: 2px solid var(--coral); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 1.05rem; font-weight: 600; line-height: 1.5; max-width: none; }
.table-wrap + .notary-notice { margin-top: 1.25rem; }

/* v41 */
.brand img { height: 72px; }
.site-footer .brand img { height: 110px; }
@media (max-width: 480px) { .site-header .brand img { height: 56px; } }
a.lang-toggle { text-decoration: none; display: inline-block; line-height: 1.4; }
h2.eyebrow { font-family: var(--font-body); line-height: 1.6; letter-spacing: 0.14em; }
.h-sm { font-size: 1.15rem; }
.svc-detail { scroll-margin-top: 100px; }
.work-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .work-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .work-row { grid-template-columns: 1fr; } }
.work-meta strong { font-size: 1rem; line-height: 1.3; }
.work-meta .muted { font-size: 0.9rem; }
.timeline li:hover .dot { color: #0B2545; }
.err-page { text-align: center; align-items: center; padding-block: clamp(3rem, 9vw, 6rem); }
.err-page p { max-width: 52ch; }
