/* Lyonce website — components built on tokens.css (single source of truth). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ly-bg-canvas); color: var(--ly-text);
  font-family: var(--ly-font-body); font-size: var(--ly-text-body); line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ly-text-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--ly-font-display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ly-focus); outline-offset: 2px; }
::selection { background: var(--ly-azure-200); color: var(--ly-navy-900); }

.wrap { width: 100%; max-width: var(--ly-max-width); margin-inline: auto; padding-inline: var(--ly-margin); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--ly-space-4); top: -100px; z-index: 100; background: var(--ly-bg-inverse); color: var(--ly-bg-canvas); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--ly-space-4); }

/* ---------- Type helpers ---------- */
.label { font-family: var(--ly-font-mono); font-size: var(--ly-text-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ly-text-secondary); }
.label--link { color: var(--ly-text-link); }
.display { font-size: var(--ly-text-display); line-height: 0.95; letter-spacing: -0.045em; }
.h1 { font-size: var(--ly-text-h1); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: var(--ly-text-h2); line-height: 1.05; letter-spacing: -0.035em; }
.h3 { font-size: var(--ly-text-h3); line-height: 1.15; letter-spacing: -0.025em; }
.h4 { font-size: var(--ly-text-h4); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.lead { font-size: var(--ly-text-lead); line-height: 1.55; color: var(--ly-text-secondary); max-width: 40em; }
.muted { color: var(--ly-text-secondary); }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: var(--ly-space-4); }
.prose h2 { font-size: var(--ly-text-h3); line-height: 1.15; letter-spacing: -0.025em; margin-top: var(--ly-space-8); }
.prose h3 { font-size: var(--ly-text-h4); font-weight: 500; margin-top: var(--ly-space-6); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--ly-space-2); }

/* ---------- Logo (outlined lockup) ---------- */
.logo { display: inline-flex; color: inherit; text-decoration: none; }
.logo svg { height: 28px; width: auto; }
.ly-mass { fill: var(--ly-logo-mass); }
.ly-word { fill: currentColor; }
.ly-entry { fill: var(--ly-azure-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ly-space-2);
  min-height: 48px; padding: 0 var(--ly-space-5); border: 1px solid transparent; border-radius: var(--ly-radius);
  font-family: var(--ly-font-body); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color var(--ly-duration-fast) var(--ly-ease), color var(--ly-duration-fast) var(--ly-ease), border-color var(--ly-duration-fast) var(--ly-ease);
}
.btn svg { width: 18px; height: 18px; transition: transform var(--ly-duration-base) var(--ly-ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--ly-action-primary); color: var(--ly-on-primary); }
.btn--primary:hover { background: var(--ly-action-primary-hover); }
.btn--secondary { background: transparent; color: var(--ly-text); border-color: var(--ly-border-strong); }
.btn--secondary:hover { background: var(--ly-surface-tint); }
.btn--signal { background: var(--ly-action-signal); color: var(--ly-on-signal); }
.btn--signal:hover { background: var(--ly-azure-300); }
.btn--on-brand { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn--on-brand:hover { background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--ly-space-3); }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--ly-border); background: var(--ly-bg-canvas); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--ly-space-5); min-height: 76px; }
.site-header--brand { background: var(--ly-bg-brand); color: #FFFFFF; border-bottom-color: var(--ly-navy-400); --ly-logo-mass: #FFFFFF; }
.nav { display: flex; align-items: center; gap: var(--ly-space-6); }
.nav__list { display: flex; gap: var(--ly-space-6); list-style: none; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__link:hover { border-bottom-color: var(--ly-border-strong); }
.site-header--brand .nav__link:hover { border-bottom-color: #FFFFFF; }
.nav__link[aria-current="page"] { border-bottom-color: var(--ly-signal); }
.nav__tools { display: flex; align-items: center; gap: var(--ly-space-3); }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--ly-font-mono); font-size: 12px; letter-spacing: 0.06em; }
.lang__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; text-decoration: none; border-bottom: 2px solid transparent; }
.lang__link:hover { border-bottom-color: currentColor; }
.lang__link[aria-current="true"] { border-bottom-color: var(--ly-signal); font-weight: 500; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; border-radius: 0; }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ly-bg-canvas); color: var(--ly-text); border-bottom: 1px solid var(--ly-border); padding: var(--ly-space-4) var(--ly-margin) var(--ly-space-6); }
  .site-header--brand .nav { background: var(--ly-bg-brand); color: #FFFFFF; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { width: 100%; min-height: 52px; font-family: var(--ly-font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--ly-border); }
  .site-header--brand .nav__link { border-bottom-color: var(--ly-navy-400); }
  .nav__link[aria-current="page"] { box-shadow: inset 4px 0 0 var(--ly-signal); padding-left: 16px; }
  .nav__tools { margin-top: var(--ly-space-5); }
}

/* ---------- Hero (Azure Axis) ---------- */
.hero { position: relative; overflow: hidden; background: var(--ly-bg-brand); color: #FFFFFF; }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 112px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ly-gutter); row-gap: var(--ly-space-7); }
.hero__eyebrow { grid-column: 1 / -1; color: var(--ly-azure-200); }
.hero__title { grid-column: 1 / span 10; }
.hero__body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: var(--ly-space-6); }
.hero__body .lead { color: var(--ly-azure-100); }
/* The Azure Axis: vertical line at 3/8 of the viewport, horizontal signal line placed in the layout
   between headline (above) and body (below) — the Axis rule from the design system. */
.axis-v { position: absolute; inset: 0; pointer-events: none; }
.axis-v::before { content: ""; position: absolute; left: 37.5vw; top: 0; bottom: 0; width: 1px; background: var(--ly-navy-400); }
.hero__axis { grid-column: 1 / -1; position: relative; height: 2px; }
.hero__axis::before { content: ""; position: absolute; top: 0; height: 2px; left: calc(50% - 50vw); width: 100vw; background: var(--ly-signal); }
.hero__axis span { position: absolute; top: -11px; left: calc(50% - 12.5vw - 12px); width: 24px; height: 24px; background: var(--ly-signal); }
@media (max-width: 1023px) { .hero__title { grid-column: 1 / -1; } .hero__body { grid-column: 1 / -1; } }
@media (max-width: 767px) { .axis-v { display: none; } .hero__axis span { left: 0; width: 16px; height: 16px; top: -7px; } }

/* Page header (inner pages) */
.page-head { border-bottom: 1px solid var(--ly-border); }
.page-head .wrap { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(40px, 5vw, 72px); display: flex; flex-direction: column; gap: var(--ly-space-5); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 140px); }
.section--subtle { background: var(--ly-bg-subtle); }
.section--brand { background: var(--ly-bg-brand); color: #FFFFFF; }
.section--brand .label { color: var(--ly-azure-200); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ly-gutter); row-gap: var(--ly-space-4); margin-bottom: clamp(40px, 5vw, 72px); }
.section-head__meta { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: var(--ly-space-3); }
.section-head__meta .rule { width: 48px; height: 2px; background: var(--ly-signal); }
.section-head__title { grid-column: 5 / -1; }
.section-head__title p { margin-top: var(--ly-space-4); }
@media (max-width: 1023px) { .section-head__meta, .section-head__title { grid-column: 1 / -1; } }

/* Service rows */
.svc-list { list-style: none; border-bottom: 1px solid var(--ly-border); }
.svc { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) 32px; gap: var(--ly-gutter); align-items: baseline;
  padding: var(--ly-space-6) var(--ly-space-2); border-top: 1px solid var(--ly-border); color: inherit; text-decoration: none;
  transition: background-color var(--ly-duration-base) var(--ly-ease); }
.svc:hover { background: var(--ly-surface-tint); }
.svc__n { font-family: var(--ly-font-mono); font-size: 12px; color: var(--ly-text-link); }
.svc__t { font-family: var(--ly-font-display); font-weight: 600; font-size: var(--ly-text-h4); letter-spacing: -0.02em; line-height: 1.2; }
.svc__d { color: var(--ly-text-secondary); }
.svc__a { color: var(--ly-text-link); transition: transform var(--ly-duration-base) var(--ly-ease); }
.svc:hover .svc__a { transform: translateX(4px); }
@media (max-width: 767px) { .svc { grid-template-columns: 40px minmax(0, 1fr) 24px; } .svc__d { grid-column: 2 / 3; } .svc__a { grid-row: 1; grid-column: 3; } }

/* Grids & cards */
.grid { display: grid; gap: var(--ly-gutter); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.step { border-top: 1px solid currentColor; padding-top: var(--ly-space-5); display: flex; flex-direction: column; gap: var(--ly-space-3); }
.step__k { font-family: var(--ly-font-mono); font-size: 12px; color: var(--ly-signal); }
.step__t { font-family: var(--ly-font-display); font-weight: 600; font-size: var(--ly-text-h3); letter-spacing: -0.03em; line-height: 1.1; }
.section--brand .step p { color: var(--ly-azure-100); }
.section--brand .step__k { color: var(--ly-azure-300); }
.card { display: flex; flex-direction: column; gap: var(--ly-space-4); padding: var(--ly-space-6); border: 1px solid var(--ly-border-strong); background: var(--ly-surface); color: inherit; }
.card__t { font-family: var(--ly-font-display); font-weight: 600; font-size: var(--ly-text-h4); letter-spacing: -0.02em; line-height: 1.2; }
.card p { color: var(--ly-text-secondary); }
.list-rows { list-style: none; }
.list-rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ly-gutter); padding: var(--ly-space-5) 0; border-top: 1px solid var(--ly-border); }
.list-rows li:first-child { border-top-color: var(--ly-border-strong); }
.list-rows li:last-child { border-bottom: 1px solid var(--ly-border); }
.list-rows strong { font-family: var(--ly-font-display); font-weight: 600; font-size: var(--ly-text-h4); letter-spacing: -0.02em; line-height: 1.25; }
.list-rows span { color: var(--ly-text-secondary); }
@media (max-width: 767px) { .list-rows li { grid-template-columns: 1fr; gap: var(--ly-space-2); } }

/* Service detail */
.svc-detail { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ly-gutter); row-gap: var(--ly-space-5); padding-block: var(--ly-space-8); border-top: 1px solid var(--ly-border); scroll-margin-top: 24px; }
.svc-detail:first-of-type { border-top-color: var(--ly-border-strong); }
.svc-detail__head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: var(--ly-space-3); }
.svc-detail__body { grid-column: 7 / -1; display: flex; flex-direction: column; gap: var(--ly-space-5); }
.ticks { list-style: none; display: grid; gap: var(--ly-space-3); }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: var(--ly-space-3); }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55em; background: var(--ly-signal); }
@media (max-width: 1023px) { .svc-detail__head, .svc-detail__body { grid-column: 1 / -1; } }
.toc { display: flex; flex-wrap: wrap; gap: var(--ly-space-2); list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--ly-border); font-family: var(--ly-font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ly-text); text-decoration: none; }
.toc a:hover { border-color: var(--ly-border-strong); background: var(--ly-surface-tint); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--ly-bg-brand); color: #FFFFFF; }
.cta .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 120px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--ly-space-6); }
.cta h2 { max-width: 16ch; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ly-signal); }

.notice { border: 1px solid var(--ly-border-strong); padding: var(--ly-space-4) var(--ly-space-5); background: var(--ly-surface-tint); font-size: 15px; }
.facts { display: grid; gap: var(--ly-space-5); align-content: start; }
.facts dt { font-family: var(--ly-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ly-text-secondary); }
.facts dd { margin: 4px 0 0; font-size: 17px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ly-bg-inverse); color: var(--ly-bg-canvas); --ly-logo-mass: var(--ly-bg-canvas); }
.site-footer .wrap { padding-block: var(--ly-space-8) var(--ly-space-7); display: grid; gap: var(--ly-space-7); }
.site-footer__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--ly-space-6); }
.site-footer h2 { font-family: var(--ly-font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; margin-bottom: var(--ly-space-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--ly-space-2); }
.site-footer a { color: inherit; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ly-space-3); padding-top: var(--ly-space-5); border-top: 1px solid rgba(127, 140, 160, 0.4); font-size: 13px; opacity: 0.85; }
.site-footer .logo svg { height: 32px; }

/* ---------- Motion: reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--ly-duration-slow) var(--ly-ease), transform var(--ly-duration-slow) var(--ly-ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Print ---------- */
@media print { .site-header, .site-footer, .cta, .axis-v, .hero__axis, .skip-link { display: none !important; } .hero, .page-head { background: none; color: #000; } body { font-size: 11pt; } }

/* ---------- v1.1: technology tags & capability matrix ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border: 1px solid var(--ly-border);
  font-family: var(--ly-font-mono); font-size: 12px; line-height: 1.35; letter-spacing: 0.02em; color: var(--ly-text); background: var(--ly-surface); }
.section--brand .tags li { border-color: var(--ly-navy-400); background: transparent; color: #FFFFFF; }

.cap-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ly-border-strong); }
.cap { display: flex; flex-direction: column; gap: var(--ly-space-4); padding: var(--ly-space-6) var(--ly-space-6) var(--ly-space-7) 0; border-bottom: 1px solid var(--ly-border); }
.cap:not(:nth-child(3n+1)) { padding-left: var(--ly-space-6); border-left: 1px solid var(--ly-border); }
.cap__head { display: flex; align-items: center; justify-content: space-between; color: var(--ly-text); }
.cap__n { font-family: var(--ly-font-mono); font-size: 12px; color: var(--ly-text-link); }
.cap__t { font-family: var(--ly-font-display); font-weight: 600; font-size: var(--ly-text-h4); letter-spacing: -0.02em; line-height: 1.2; }
.cap__d { color: var(--ly-text-secondary); }
.cap .tags { margin-top: auto; }
.cap__link { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.cap__link:hover { text-decoration: underline; }
.cap-note { margin-top: var(--ly-space-5); font-size: 13px; color: var(--ly-text-secondary); }
@media (max-width: 1023px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .cap:nth-child(2n) { padding-left: var(--ly-space-6); border-left: 1px solid var(--ly-border); }
}
@media (max-width: 767px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(2n) { padding: var(--ly-space-6) 0; border-left: 0; }
}

.svc-detail__head .icon { color: var(--ly-text); }
.svc-detail__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--ly-space-6); }
.svc-detail__cols h3 { margin-bottom: var(--ly-space-3); }
.step .tags { margin-top: var(--ly-space-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }
.facts dd[lang] { font-size: 15px; }

/* ---------- v1.2: email-only contact ---------- */
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.contact-mail { display: flex; flex-direction: column; gap: var(--ly-space-6); align-items: flex-start; }
.contact-mail__address { font-family: var(--ly-font-display); font-weight: 600; font-size: clamp(32px, 2.2rem + 2.4vw, 72px); line-height: 1; letter-spacing: -0.04em; color: var(--ly-text); text-decoration: none; border-bottom: 2px solid var(--ly-signal); padding-bottom: 6px; overflow-wrap: anywhere; }
.contact-mail__address:hover { color: var(--ly-text-link); }
.contact-mail__tips { width: 100%; border-top: 1px solid var(--ly-border-strong); padding-top: var(--ly-space-5); display: flex; flex-direction: column; gap: var(--ly-space-4); }
.contact-company { display: flex; flex-direction: column; gap: var(--ly-space-6); padding: var(--ly-space-6); border: 1px solid var(--ly-border-strong); align-self: start; scroll-margin-top: 24px; }
.prose code { font-family: var(--ly-font-mono); font-size: 0.9em; padding: 1px 4px; background: var(--ly-bg-subtle); }
