:root {
  --color-canvas: #ffffff;
  --color-surface: #fafafa;
  --color-text: #181925;
  --color-text-muted: #666666;
  --color-border: #e8e8e8;
  --color-accent: #7465d8;
  --color-lavender: #918df6;
  --color-blue: #2c78fc;
  --color-mint: #33c758;
  --color-mint-light: #f0faf3;
  --color-amber: #ffa600;
  --color-magenta: #d6409f;
  --color-accent-light: #f1effd;
  --font-heading: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;
  --page-max-width: 1200px;
  --radius: 16px;
  --section-space: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font-family: var(--font-body); font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-heading); font-weight: 400; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.6; letter-spacing: -.025em; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.6; }
.keep-phrase { display: inline-block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
img, video { max-width: 100%; height: auto; }
::selection { color: var(--color-text); background: var(--color-accent-light); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 5px; }
.container { width: min(var(--page-max-width), calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.section-label, .eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.section-label { display: flex; align-items: center; gap: 16px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.section-heading > .section-label { padding-top: 16px; }
.section-intro { margin-top: 16px; color: var(--color-text-muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 14px 22px; border: 1px solid var(--color-accent); border-radius: var(--radius); background: var(--color-accent); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.6; text-align: left; transition: background-color 200ms ease, border-color 200ms ease; }
.button:hover { background: #6353c2; border-color: #6353c2; }
.button span[aria-hidden] { font-size: 18px; line-height: 1; }
.button:disabled { cursor: not-allowed; opacity: .65; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 30; padding: 12px 20px; color: #fff; background: var(--color-accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Header: narrow screens use a native, keyboard-accessible details menu. */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--color-border); background: rgba(255, 255, 255, .98); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; flex-direction: column; flex-shrink: 0; font-family: var(--font-heading); font-size: 23px; line-height: 1.15; letter-spacing: -.03em; }
.wordmark-service { margin-top: 4px; font-family: var(--font-body); font-size: 10px; letter-spacing: .2em; }
.desktop-nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.desktop-nav a { padding-block: 12px; white-space: nowrap; }
.desktop-nav a:hover, .back-to-top:hover { color: var(--color-accent); }
.header-cta { gap: 16px; font-size: 12px; padding: 12px 16px; }
.mobile-menu { display: none; }

/* A full-width photograph anchors the page; the light wall holds the typography. */
.eyebrow { color: var(--color-accent); margin-bottom: 32px; }
h1 { font-size: clamp(44px, 4.5vw, 64px); line-height: 1.35; letter-spacing: -.02em; }
h1 > span { display: block; }
h1 strong { font-weight: 600; }
.photo-placeholder { display: grid; place-items: center; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-muted); text-align: center; }
.photo-placeholder p { font-size: 14px; }

/* Strengths use rules, not cards. */
.strengths-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.strength { border-top: 1px solid var(--color-border); padding-top: 24px; }
.strength h3 { margin-top: 32px; min-height: 64px; font-size: 18px; }
.strength p { margin-top: 20px; color: var(--color-text-muted); font-size: 15px; line-height: 1.9; }

/* Service: the short information flow is distinct from the detailed process. */
.service { background: var(--color-surface); }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; margin-top: 40px; }
.service-layout h2 { font-size: clamp(28px, 2.8vw, 38px); }
.service-body { color: var(--color-text-muted); }
.service-body p + p { margin-top: 20px; }
.content-list-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.content-list-layout h3 { font-size: 16px; }
.content-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 0; padding: 0; list-style: none; }
.content-list li { display: flex; align-items: baseline; gap: 12px; }
.content-list li::before { content: ""; width: 12px; border-top: 1px solid var(--color-text-muted); flex-shrink: 0; align-self: center; }

/* Process: sequential editorial rows, with a subtle progression on desktop. */
.process-list { padding: 0; margin: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--color-border); }
.process-list li:last-child { border-bottom: 1px solid var(--color-border); }
.process-list li > div { max-width: 640px; }
.process-list li:nth-child(even) > div { margin-left: 56px; }
.process-list p { margin-top: 12px; color: var(--color-text-muted); }
.process-note { margin-top: 24px; color: var(--color-text-muted); font-size: 14px; text-align: right; }

/* Pricing remains supporting information near the end of the page. */
.pricing { border-top: 1px solid var(--color-border); }
.price-group { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-block: 32px; border-top: 1px solid var(--color-border); }
.price-group h3 { font-size: 16px; padding-top: 3px; }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; }
.price-list > div + div { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--color-border); }
.price-list dt { flex: 1; font-size: 15px; }
.price-list dd { margin: 0; font-size: 24px; line-height: 1.5; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-list dd > span { font-size: 14px; }
.price-list .price-with-note { text-align: right; }
.price-list .price-note { display: block; margin-top: 4px; color: var(--color-text-muted); }
.price-list .price-estimate { font-size: 16px; }
.included-label { margin-top: 24px; color: var(--color-text-muted); font-size: 13px; }
.included-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin: 12px 0 0; padding-left: 18px; color: var(--color-text-muted); font-size: 14px; }
.included-list li::marker { font-size: 10px; }
.pricing-note { padding-top: 24px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 14px; }

/* Contact */
.contact { background: var(--color-surface); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.contact h2 { margin-top: 0; font-size: clamp(28px, 2.5vw, 36px); }
.contact-copy > p:not(.section-label) { margin-top: 24px; color: var(--color-text-muted); max-width: 600px; }
.form-availability { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 14px; }
.field + .field { margin-top: 24px; }
.field label { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; font-size: 14px; font-weight: 500; }
.required-label, .optional-label { font-size: 11px; font-weight: 400; color: var(--color-text-muted); }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-canvas); color: var(--color-text); line-height: 1.6; }
input { min-height: 50px; }
textarea { resize: vertical; min-height: 164px; }
input:focus, textarea:focus { border-color: var(--color-accent); outline: 2px solid var(--color-accent); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8a342c; }
.field-error { font-size: 13px; color: #8a342c; }
.field-error:not(:empty) { margin-top: 8px; }
.form-submit { width: 100%; justify-content: space-between; margin-top: 32px; }
.form-status { color: var(--color-text-muted); font-size: 14px; }
.form-status:not(:empty) { margin-top: 16px; }
.form-privacy { margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 13px; }
.form-privacy h3 { margin-bottom: 8px; color: var(--color-text); font-size: 14px; }
.form-privacy p + p { margin-top: 8px; }

/* Standalone not-found page uses the existing brand tokens. */
.not-found-header { padding-top: 32px; }
.not-found-header img { width: 180px; }
.not-found { min-height: 75vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-block: 72px; }
.not-found h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.6; }
.not-found > p { max-width: 600px; color: var(--color-text-muted); }

/* Minimal footer */
.site-footer { display: flex; align-items: center; gap: 40px; min-height: 160px; padding-block: 40px; }
.site-footer p { color: var(--color-text-muted); font-size: 12px; }
.back-to-top { display: inline-flex; gap: 24px; align-items: center; margin-left: auto; font-size: 12px; }

@media (min-width: 1180px) and (max-width: 1280px) {
  .desktop-nav { gap: 16px; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1023px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: flex; align-items: center; gap: 16px; min-height: 48px; padding-inline: 8px; font-size: 13px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-lines { position: relative; width: 20px; height: 10px; border-block: 1px solid var(--color-text); }
  .mobile-menu[open] .menu-lines { height: 1px; border-bottom: 0; transform: rotate(45deg); }
  .mobile-menu[open] .menu-lines::after { content: ""; position: absolute; inset: -1px 0 0; border-top: 1px solid var(--color-text); transform: rotate(90deg); }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; padding: 16px 48px 32px; border-bottom: 1px solid var(--color-border); background: var(--color-canvas); max-height: calc(100dvh - 88px); overflow-y: auto; }
  .mobile-menu nav > a:not(.button) { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
  .mobile-menu .button { margin-top: 24px; }
  .strengths-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .strength h3 { min-height: 0; }
  .desktop-break { display: none; }
  .service-layout, .contact-layout { gap: 48px; }
  .price-list > div { gap: 20px; }
}

@media (max-width: 760px) {
  :root { --section-space: 72px; }
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; }
  .wordmark { font-size: 21px; }
  .wordmark-service { font-size: 9px; }
  .mobile-menu nav { padding: 8px 20px 24px; max-height: calc(100dvh - 72px); }
  .mobile-menu .button { width: 100%; font-size: 13px; }
  .eyebrow { margin-bottom: 24px; font-size: 12px; letter-spacing: .04em; }
  h1 { font-size: clamp(36px, 7.5vw, 44px); line-height: 1.4; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section-heading > .section-label { padding-top: 0; }
  .section-label { font-size: 12px; }
  h2 { font-size: 28px; line-height: 1.6; }
  .strengths-grid { grid-template-columns: 1fr; gap: 32px; }
  .strength { display: grid; grid-template-columns: 48px 1fr; gap: 12px 24px; padding-top: 24px; }
  .strength h3 { margin: 0; font-size: 18px; }
  .strength p { grid-column: 2; margin: 0; font-size: 16px; }
  .service-layout { grid-template-columns: 1fr; gap: 32px; margin-top: 24px; }
  .service-layout h2 { font-size: 28px; }
  .content-list-layout { grid-template-columns: 1fr; gap: 24px; }
  .content-list { gap: 12px 20px; font-size: 14px; }
  .process-list li { grid-template-columns: 48px 1fr; gap: 24px; padding-block: 32px; }
  .process-list h3 { font-size: 18px; }
  .process-list li:nth-child(even) > div { margin-left: 0; }
  .process-note { text-align: left; }
  .price-group { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .price-list > div { gap: 12px; }
  .price-list dd { font-size: 22px; }
  .price-list dt { font-size: 14px; }
  .included-list { font-size: 13px; gap: 8px 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact h2 { margin-top: 24px; font-size: 28px; }
  .form-submit { gap: 12px; padding-inline: 18px; font-size: 13px; }
  .site-footer { flex-wrap: wrap; gap: 24px; min-height: 0; padding-block: 32px; }
  .site-footer p { width: 100%; order: 3; }
}

@media (max-width: 380px) {
  h1 { font-size: clamp(31px, 9.7vw, 36px); }
  .strength { grid-template-columns: 36px 1fr; gap: 12px 20px; }
  .content-list { grid-template-columns: 1fr; }
  .price-list > div { flex-direction: column; gap: 8px; }
  .price-list .price-with-note { text-align: left; }
  .price-list .price-note { display: inline; margin-left: 8px; }
  .included-list { grid-template-columns: 1fr; }
  .form-submit, .hero-cta { font-size: 12px; padding-inline: 12px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Scroll motion is opt-in: absent JS / reduced motion keeps every element visible. */
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}
.motion-ready [data-reveal="strength"] { transform: translate3d(0, 12px, 0); }
.motion-ready [data-reveal="body"] { transform: translate3d(0, 10px, 0); }
.motion-ready [data-reveal="price"] {
  transform: translate3d(0, 8px, 0);
}
.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 600ms ease, transform 650ms cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal="price"].is-revealed { transition-duration: 500ms; }
.motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; transition: none; }
.motion-ready .hero-photo { transform: translate3d(0, var(--hero-photo-shift, 0px), 0); }
/* The existing overflow:hidden clips replacement photography without scaling the image. */

/* A hairline links the timeline anchors without affecting document flow. */
.process-list { position: relative; }
.process-list::before, .process-list::after {
  content: "";
  position: absolute;
  top: var(--timeline-start, 40px);
  left: 96px;
  width: 1px;
  height: var(--timeline-length, calc(100% - 80px));
  pointer-events: none;
}
.process-list::before { background: var(--color-border); }
.process-list::after {
  background: var(--color-accent);
  transform-origin: top;
  transform: scaleY(0);
}
.motion-ready .process-list::after { transform: scaleY(var(--timeline-progress, 0)); }
.motion-ready .process-list li > .timeline-marker,
.motion-ready .process-list li > div { opacity: .55; transition: opacity 400ms ease, color 400ms ease; }
.motion-ready .process-list li.is-reached > .timeline-marker,
.motion-ready .process-list li.is-reached > div { opacity: 1; }
.motion-ready .process-list li.is-current > .timeline-marker { color: var(--color-accent); }

.contact { position: relative; isolation: isolate; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-accent-light);
  opacity: 0;
  pointer-events: none;
}
.motion-ready .contact::before { opacity: var(--contact-softness, 0); }
.desktop-nav a[aria-current="location"],
.mobile-menu nav a[aria-current="location"] {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

@media (max-width: 760px) {
  .process-list::before, .process-list::after { left: 60px; }
  .motion-ready .process-list li > .timeline-marker,
  .motion-ready .process-list li > div { transition-duration: 350ms; }
}
@media (prefers-reduced-motion: reduce) {
  /* Immediate CSS fallback also covers a preference change before the JS listener runs. */
  .motion-ready [data-reveal],
  .motion-ready .hero-copy > :not(.hero-cta),
  .motion-ready .hero-photo { opacity: 1; transform: none; transition: none; }
  .motion-ready .process-list li > .timeline-marker,
  .motion-ready .process-list li > div { opacity: 1; color: inherit; transition: none; }
  .motion-ready .process-list::after { transform: scale(0); transition: none; }
  .motion-ready .contact::before { opacity: 0; }
}

/* Editorial rhythm: one broad room scene, a vertical detail, then a closing panorama. */
.editorial-photo { position: relative; overflow: hidden; margin: 0; border-radius: var(--radius); background: var(--color-surface); }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.electone-visual { width: 90%; max-width: 1080px; aspect-ratio: 3 / 2; margin: 64px 0 56px auto; }
.process-intro { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: center; margin-bottom: 64px; }
.process-intro .section-heading { display: block; margin: 0; }
.process-intro .section-label { padding-top: 0; }
.process-intro h2 { margin-top: 24px; }
.piano-detail-visual { aspect-ratio: 4 / 5; }
.contact-visual-wrap { padding: 24px 0 0; }
.contact-visual { width: 100%; aspect-ratio: 16 / 7; border-radius: 0; }
.contact-visual img { object-position: 50% 60%; }
[data-photo-parallax] img { position: absolute; top: -30px; height: calc(100% + 60px); }
.motion-ready [data-photo-parallax] img { transform: translate3d(0, var(--photo-shift, 0px), 0); }
.motion-ready [data-reveal="photo"] { transform: translate3d(0, 8px, 0); }

@media (max-width: 760px) {
  .electone-visual { width: 100%; margin-block: 40px; }
  .process-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .piano-detail-visual { width: 72%; max-width: 360px; justify-self: end; }
  .contact-visual-wrap { padding-top: 0; }
  .contact-visual { aspect-ratio: 3 / 2; }
  .contact-visual img { object-position: 35% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-photo-parallax] img { transform: none; }
  .motion-ready [data-reveal="photo"] { transform: none; }
}


/* White + lavender direction. Photographs keep their natural colour. */
html { scroll-padding-top: 120px; }
.button { border-radius: 9999px; font-weight: 600; }
.site-header { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(1248px, calc(100% - 48px)); border: 1px solid var(--color-border); border-radius: 9999px; background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(24,25,37,.05); }
.header-inner.container { width: 100%; min-height: 72px; padding: 10px 22px; gap: 20px; }
.wordmark { font-family: var(--font-body); font-size: 21px; font-weight: 600; }
.wordmark-service { font-weight: 400; }
.desktop-nav { gap: 20px; font-size: 12px; }
.header-cta { font-size: 12px; gap: 12px; padding: 12px 18px; }

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; overflow: hidden; width: 100%; margin: 0; padding: 164px 0 56px; background: var(--color-canvas); }
.hero-copy { position: relative; width: min(1200px, calc(100% - 80px)); margin: 0; text-align: center; }
.hero .eyebrow { color: var(--color-text-muted); margin-bottom: 24px; letter-spacing: .04em; }
.hero h1 { font-family: var(--font-body); font-size: clamp(52px, 5.2vw, 80px); font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.hero h1 strong { font-weight: inherit; }
.hero-description { max-width: 640px; margin: 28px auto 0; color: var(--color-text-muted); }
.hero-cta { margin: 32px auto 0; text-align: center; }
.hero-photo { position: relative; inset: auto; z-index: 0; width: min(1600px, 90%); aspect-ratio: 1672 / 941; height: auto; margin: 64px auto 0; overflow: hidden; border-radius: 24px; box-shadow: 0 8px 28px rgba(24,25,37,.05); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after { content: ""; position: absolute; z-index: -1; bottom: 0; width: 100%; height: 42%; background: linear-gradient(125deg, #f3f7ff, #f2effd 60%, #fbf2f8); pointer-events: none; }

.section-label { gap: 0; color: var(--color-text-muted); }
.strengths { position: relative; margin-top: 0; background: var(--color-canvas); }
.strengths-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px 64px; }
.strength { display: block; border-top: 1px solid var(--color-border); padding-top: 24px; }
.strength h3 { margin-top: 0; min-height: 0; font-size: 23px; }
.strength p { max-width: 460px; font-size: 16px; margin-top: 20px; }
.desktop-break { display: none; }
.service { background: #fbfaff; }
.service > .container > .section-label { color: var(--color-accent); }
.electone-visual { box-shadow: 16px 16px 0 #ede9fc; }
.content-list li::before { border-color: var(--color-lavender); }

/* Unnumbered timeline: the dot centres drive the existing scroll progression. */
.process-list li { grid-template-columns: 16px 1fr; align-items: start; gap: 40px; padding: 36px 0; border: 0; }
.process-list li:last-child { border: 0; }
.process-list li > div { width: 100%; max-width: 860px; padding-bottom: 32px; border-bottom: 1px solid var(--color-border); }
.process-list li:nth-child(even) > div { margin-left: 0; }
.timeline-marker { display: block; width: 12px; height: 12px; margin: 10px 0 0 2px; padding: 0; border: 1px solid #c9c5d9; border-radius: 50%; background: var(--color-canvas); position: relative; z-index: 1; }
.process-list::before, .process-list::after { left: 8px; }
.process-list::after { background: var(--color-lavender); }
.motion-ready .process-list li.is-reached > .timeline-marker { background: var(--color-amber); border-color: var(--color-amber); }
.motion-ready .process-list li.is-current h3 { color: var(--color-accent); }
.process-intro h2 { margin-top: 0; }
.contact { background: var(--color-canvas); }
.contact::before { background: var(--color-mint-light); }
input, textarea { border-radius: 12px; }

@media (max-width: 1179px) {
  .hero h1 { font-size: clamp(46px, 5.1vw, 64px); }
  .strengths-grid { gap: 48px 64px; }
}
@media (max-width: 1023px) {
  .site-header { width: calc(100% - 40px); }
  .header-inner.container { min-height: 64px; padding: 8px 20px; }
  .mobile-menu nav { top: calc(100% + 12px); padding: 16px 28px 28px; max-height: calc(100dvh - 112px); border: 1px solid var(--color-border); border-radius: 24px; box-shadow: 0 8px 28px rgba(24,25,37,.05); }
  .hero { padding-top: 140px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 112px; }
  .site-header { top: 12px; width: calc(100% - 24px); }
  .header-inner.container { min-height: 60px; padding: 6px 16px; }
  .wordmark { font-size: 19px; }
  .mobile-menu summary { gap: 10px; padding-inline: 4px; }
  .mobile-menu nav { padding: 12px 20px 24px; max-height: calc(100dvh - 108px); }
  .hero { padding: 120px 0 32px; }
  .hero-copy { width: calc(100% - 40px); }
  .hero .eyebrow { margin-bottom: 20px; font-size: 11px; letter-spacing: 0; }
  .hero h1 { font-size: clamp(28px, 7.8vw, 48px); line-height: 1.45; letter-spacing: -.04em; }
  .hero-description { margin-top: 24px; font-size: 14px; line-height: 1.9; }
  .hero-cta { width: auto; max-width: 100%; justify-content: center; font-size: 12px; padding: 14px 18px; gap: 12px; margin-top: 28px; }
  .hero-photo { width: calc(100% - 32px); height: auto; margin-top: 40px; border-radius: 16px; }
  .hero::after { height: 28%; }
  .strengths-grid { grid-template-columns: 1fr; gap: 40px; }
  .strength { display: block; }
  .strength h3 { font-size: 21px; }
  .strength p { margin-top: 16px; }
  .electone-visual { box-shadow: 8px 8px 0 #ede9fc; }
  .process-list li { grid-template-columns: 16px 1fr; gap: 20px; padding-block: 24px; }
  .process-list li > div { padding-bottom: 24px; }
  .process-list .timeline-marker { width: 12px; height: 12px; margin-top: 8px; padding: 0; }
  .process-list::before, .process-list::after { left: 8px; }
}

/* Approved TONAVIA identity: lockup on desktop, wordmark on mobile. */
.wordmark { display: block; flex-shrink: 0; line-height: 0; }
.wordmark picture { display: block; }
.wordmark img { display: block; width: 160px; height: auto; }
@media (max-width: 760px) {
  .site-header .wordmark img { width: 120px; }
}

/* Portfolio hero: the sample websites supply the colour and visual variety. */
.hero { padding: 150px 0 42px; background: #fff; }
.hero::after { display: none; }
.hero-copy { width: min(1280px, calc(100% - 64px)); z-index: 4; }
.hero h1 { font-size: clamp(64px, 5.1vw, 88px); line-height: 1.22; letter-spacing: -.045em; }
.hero h1 > span { display: block; }
.hero-description { margin-top: 22px; line-height: 1.8; }
.hero-cta { margin-top: 26px; }
/* Two continuous portfolio strips. Each repeated set has the same trailing gap. */
.portfolio-wall { width:100%; margin:64px 0 0; position:relative; padding-bottom:36px; }
.portfolio-rows { display:grid; gap:28px; overflow:hidden; }
.portfolio-row { overflow:hidden; }
.portfolio-track { display:flex; width:max-content; animation:portfolio-left 90s linear infinite; }
.row-2 .portfolio-track { animation-name:portfolio-right; animation-duration:84s; }
.portfolio-set { display:flex; gap:24px; padding-right:24px; flex:none; }
.portfolio-card { margin:0; flex:none; }
.portfolio-card img { display:block; height:clamp(260px,22vw,320px); width:auto; max-width:none; border:1px solid rgba(24,25,37,.1); border-radius:8px; box-shadow:0 3px 10px rgba(24,25,37,.035); }
@keyframes portfolio-left { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }
@keyframes portfolio-right { from { transform:translate3d(-50%,0,0); } to { transform:translate3d(0,0,0); } }
.portfolio-pause { position:absolute; width:1px; height:1px; opacity:0; }
.portfolio-pause-label { position:absolute; right:24px; bottom:0; cursor:pointer; color:var(--color-text-muted); font-size:11px; padding:5px 8px; border-radius:4px; }
.portfolio-pause-label .play-text { display:none; }
.portfolio-pause:checked ~ .portfolio-rows .portfolio-track { animation-play-state:paused; }
.portfolio-pause:checked + .portfolio-pause-label .pause-text { display:none; }
.portfolio-pause:checked + .portfolio-pause-label .play-text { display:inline; }
.portfolio-pause:focus-visible + .portfolio-pause-label { outline:2px solid #7465D8; outline-offset:3px; }
@media (max-width:1100px) and (min-width:761px) { .hero h1 { font-size:64px; } }
@media (max-width:760px) {
  .hero { padding:122px 0 28px; }
  .hero-copy { width:calc(100% - 36px); }
  .hero h1 { font-size:clamp(36px,6.7vw,48px); line-height:1.35; letter-spacing:-.055em; }
  .hero .eyebrow { margin-bottom:20px; }
  .hero-description { font-size:13px; margin-top:22px; }
  .hero-cta { margin-top:24px; max-width:100%; font-size:11px; padding:14px 18px; }
  .portfolio-wall { margin-top:44px; }
  .portfolio-rows { gap:24px; }
  .portfolio-set { gap:14px; padding-right:14px; }
  .portfolio-card img { height:clamp(130px,30vw,170px); border-radius:6px; }
  .portfolio-track { animation-duration:110s; }
  .row-2 .portfolio-track { animation-duration:104s; }
}
@media(prefers-reduced-motion:reduce) {
  .portfolio-wall .portfolio-track { animation:none; transform:none; }
  .portfolio-pause,.portfolio-pause-label { display:none; }
}

.hero-mobile-break { display: none; }
@media (max-width: 760px) { .hero-mobile-break { display: initial; } }

/* Review refinements: consistent features, readable copy, balanced service media. */
.hero h1 { font-family:"Helvetica Neue", Arial, var(--font-body); font-size:clamp(56px,7.8vw,108px); font-weight:500; line-height:1.1; letter-spacing:-.055em; }
.hero h1 > span { white-space:nowrap; }
.hero-description { margin-top:30px; font-size:16px; line-height:1.8; letter-spacing:.025em; }
.hero-support { display:block; margin-top:6px; font-size:14px; letter-spacing:0; }
.strength h3 { font-size:23px; font-weight:600; line-height:1.5; color:var(--color-text); }
.strength p { max-width:none; line-height:1.9; }
.service-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px; }
.service-body { max-width:36em; font-size:16px; line-height:2; line-break:strict; text-wrap:pretty; }
.service-body p { text-wrap:balance; }
.service-body p+p { margin-top:24px; }
.service-deliverables { display:grid; grid-template-columns:320px minmax(0,1fr); gap:64px; align-items:center; max-width:1040px; margin:56px auto 0; }
.service-visual { width:100%; aspect-ratio:4/5; border-radius:10px; }
.service-visual img { object-fit:contain; }
.content-list-layout { display:block; }
.content-list-layout h3 { font-size:20px; font-weight:600; margin:0 0 24px; }
.content-list { gap:0 28px; font-size:15px; }
.content-list li { padding:14px 0; border-bottom:1px solid #e5e1f0; }
.process-intro { grid-template-columns:minmax(0,1fr) 320px; gap:64px; }
.process-visual { width:100%; aspect-ratio:3/2; border-radius:10px; }
@media(max-width:1023px) {
  .service-layout { gap:40px; }
  .service-deliverables { grid-template-columns:260px minmax(0,1fr); gap:40px; }
  .process-intro { grid-template-columns:1fr 260px; gap:40px; }
}
@media(max-width:760px) {
  .hero h1 { font-size:clamp(30px,9.8vw,64px); line-height:1.14; letter-spacing:-.05em; }
  .hero-description { max-width:none; margin:24px auto 0; font-size:14px; }
  .hero-support { max-width:27em; margin:7px auto 0; font-size:12px; line-height:1.85; }
  .strengths-grid { grid-template-columns:1fr; gap:32px; }
  .strength h3 { font-size:21px; }
  .service-layout { grid-template-columns:1fr; gap:28px; }
  .service-body { font-size:15px; max-width:none; }
  .service-deliverables { grid-template-columns:1fr; gap:32px; margin-top:40px; }
  .service-visual { width:min(220px,72%); justify-self:center; }
  .content-list-layout h3 { font-size:19px; }
  .content-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; font-size:13px; }
  .process-intro { grid-template-columns:1fr; gap:28px; }
  .process-visual { width:min(280px,100%); justify-self:center; }
}
@media(max-width:380px) { .content-list { grid-template-columns:1fr; } }

/* Header optical alignment and simplified section headings. */
.header-inner.container { min-height:78px; padding:13px 28px; gap:28px; }
.site-header .wordmark img { width:140px; }
.desktop-nav { gap:22px; font-size:14px; line-height:1.5; }
.desktop-nav a { padding-block:14px; }
.header-cta { min-height:46px; padding:12px 20px; gap:14px; font-size:13px; line-height:1.5; white-space:nowrap; }
.strengths > .section-heading, .pricing > .section-heading { display:block; text-align:left; }
.service-layout { margin-top:0; }
.form-submit { justify-content:center; font-size:14px; }
@media (min-width:1024px) and (max-width:1179px) {
  .header-inner.container { gap:18px; padding-inline:22px; }
  .desktop-nav { gap:16px; font-size:13px; }
  .header-cta { font-size:12px; padding-inline:16px; }
}
@media(max-width:1023px) {
  .header-inner.container { min-height:70px; padding:10px 22px; }
}
@media(max-width:760px) {
  .header-inner.container { min-height:64px; padding:8px 18px; gap:16px; }
  .site-header .wordmark img { width:120px; }
}
