@charset "UTF-8";
/* ==========================================================
   LUXE COAT — 3 page demo website (fictional / not public)
   White x Navy x Black. System fonts only, no external assets.
   ========================================================== */

:root {
  --navy: #152d43;
  --navy-deep: #0d1d2d;
  --navy-ink: #0a1622;
  --blue: #2c5a7b;
  --blue-soft: #7fa6c6;
  --white: #ffffff;
  --off: #f6f8fa;
  --mist: #eaf0f5;
  --ink: #1b2833;
  --muted: #55626e;
  --line: #dde3e9;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.82);

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", "BIZ UDPMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", "Meiryo", sans-serif;
  --latin: "Didot", "Bodoni 72", "Georgia", "Times New Roman", var(--serif);

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 40px -22px rgba(13, 29, 45, 0.45);
  --shadow-lg: 0 28px 60px -26px rgba(13, 29, 45, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  transition: opacity 0.24s ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible {
  outline-color: #9cc3e2;
}

.sr {
  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 {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nb { display: inline-block; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  line-height: 1.4;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: #b8d2e8; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.on-dark .h2 { color: var(--white); }

.lead {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.04rem);
}
.on-dark .lead { color: var(--on-dark-muted); }

.note {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
}
.on-dark .note { color: rgba(255, 255, 255, 0.74); }

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .arrow {
  position: relative;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
  flex: none;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  transform: rotate(45deg) translate(1px, 0);
  transform-origin: right top;
}
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--mist); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: rgba(255, 255, 255, 0.04); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: #c9d2db;
  color: #3e4b57;
  border-color: #c9d2db;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
}
.on-dark .text-link { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(21, 45, 67, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(13, 29, 45, 0.5); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: calc(1400px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.1;
}
.logo-main {
  font-family: var(--latin);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
}
.logo-sub {
  margin-top: 4px;
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
}
.global-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
}
.global-nav ul a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--latin);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--ink);
}
.global-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.global-nav ul a:hover::after,
.global-nav ul a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.global-nav ul a[aria-current="page"] { color: var(--navy); }
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}
.header-cta:hover { background: var(--blue); }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo-main { font-size: 1.25rem; }

  /* without JS: the nav simply wraps under the logo */
  .site-header { height: auto; min-height: var(--header-h); }
  .header-inner { flex-wrap: wrap; padding-block: 10px; gap: 8px 16px; }
  .global-nav { flex-wrap: wrap; gap: 8px 18px; }
  .global-nav ul { flex-wrap: wrap; gap: 4px 18px; }

  .js .site-header { height: var(--header-h); }
  .js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -8px;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .menu-bar, .menu-bar::before, .menu-bar::after {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--navy);
    transition: transform 0.3s var(--ease), background-color 0.2s;
  }
  .menu-bar { position: relative; }
  .menu-bar::before, .menu-bar::after { content: ""; position: absolute; left: 0; }
  .menu-bar::before { top: -7px; }
  .menu-bar::after { top: 7px; }
  .menu-open .menu-bar { background: transparent; }
  .menu-open .menu-bar::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .js .global-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 28px var(--gutter) 40px;
    background: var(--white);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .menu-open .global-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0s;
  }
  .js .global-nav ul { flex-direction: column; gap: 0; }
  .js .global-nav ul a {
    display: block;
    padding: 18px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .js .global-nav ul a::after { display: none; }
  .js .global-nav ul a[aria-current="page"] { color: var(--blue); }
  .js .header-cta { justify-content: center; min-height: 54px; font-size: 0.95rem; }
  body.menu-lock { overflow: hidden; }
}

/* ---------- Page enter / leave ---------- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.site-main { animation: pageIn 0.7s var(--ease) both; }
html.is-leaving body { opacity: 0; }

/* ---------- Hero (shared by all pages) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(118deg, var(--navy-ink) 0%, var(--navy) 46%, #1d4262 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.glow--a {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  left: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(92, 150, 200, 0.55), transparent 65%);
  animation: drift 16s ease-in-out infinite alternate;
}
.glow--b {
  width: 30vw; height: 30vw;
  max-width: 420px; max-height: 420px;
  left: 28%; bottom: -16vw;
  background: radial-gradient(circle, rgba(64, 120, 170, 0.5), transparent 65%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6vw, 3vw, 0); }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  min-height: clamp(560px, calc(100vh - var(--header-h)), 700px);
}
.hero-body {
  padding: 72px 40px 72px var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - 1400px) / 2 + var(--gutter)));
}
.hero-body > * { animation: heroUp 1s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: 0.12s; }
.hero-body > :nth-child(3) { animation-delay: 0.26s; }
.hero-body > :nth-child(4) { animation-delay: 0.38s; }
.hero-body > :nth-child(5) { animation-delay: 0.5s; }
.hero-body > :nth-child(6) { animation-delay: 0.62s; }
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.38;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-title span { display: inline-block; white-space: nowrap; }
.hero-sub {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  letter-spacing: 0.12em;
}
.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: 0.94rem;
  line-height: 2;
  color: var(--on-dark-muted);
}
.demo-tag {
  display: inline-block;
  margin-top: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-media {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  animation: heroImg 1.6s var(--ease) both;
}
@keyframes heroImg {
  from { opacity: 0; transform: scale(1.03) translateX(4px); }
  to { opacity: 1; transform: none; }
}
/* soft light passing over the photo */
.hero-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.22) 48%, rgba(200, 225, 255, 0.12) 52%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 9s ease-in-out 1.2s infinite;
  mix-blend-mode: screen;
}
@keyframes shine {
  0% { transform: translateX(-120%); }
  28%, 100% { transform: translateX(120%); }
}

/* v2: the wide SUV photo is shown uncropped and sits on the bottom edge of the hero; left and top edges fade into the navy */
.hero--home .hero-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  min-height: 0;
}
.hero--home .hero-body { padding-block: 64px; }
.hero--home .hero-media { align-self: end; }
.hero--home .hero-media img {
  height: auto;
  aspect-ratio: 1672 / 941;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%), linear-gradient(180deg, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%), linear-gradient(180deg, transparent 0, #000 12%);
  mask-composite: intersect;
}

.hero--page .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.hero--page .hero-body { padding-block: 80px; }
.hero--page .hero-title { font-size: clamp(2rem, 3.4vw, 3.4rem); }
.hero--page .hero-media { min-height: 440px; }
.hero--page .hero-media img { position: absolute; inset: 0; }
.hero--service .hero-media img { object-position: 60% 10%; }
.hero--gallery .hero-media img { object-position: 50% 45%; }

@media (max-width: 900px) {
  .hero-grid,
  .hero--home .hero-grid,
  .hero--page .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; }
  .hero-media img,
  .hero--home .hero-media img {
    -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
    mask-composite: add;
  }
  .hero--home .hero-body { padding-block: 8px 56px; }
  .hero--home .hero-media img { aspect-ratio: 1672 / 941; height: auto; }
  .hero--page .hero-media { min-height: 0; aspect-ratio: 16 / 10; }
  .hero-body,
  .hero--page .hero-body { padding: 8px var(--gutter) 56px; }
  .hero-title { font-size: clamp(1.9rem, 9.6vw, 3.2rem); }
  .hero--page .hero-title { font-size: clamp(1.9rem, 8.6vw, 3rem); }
  .hero-shine { animation-duration: 11s; }
}
@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 9vw, 140px); }
.section--off { background: var(--off); }
.section--navy {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #1f4566 100%);
  color: var(--on-dark);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: none;
  flex-wrap: wrap;
}
.section-head--split .text-link { margin-top: 0; }

/* parallax frames */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.frame[data-parallax-frame] img { transform: scale(1.08); }

/* ---------- TOP: concept ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.concept-text p.body { margin-top: 28px; color: var(--muted); max-width: 30em; }
.concept-media { position: relative; }
.concept-media .frame { aspect-ratio: 788 / 590; box-shadow: var(--shadow-lg); }
.concept-media::before {
  content: "";
  position: absolute;
  right: -24px; bottom: -24px;
  width: 58%; height: 70%;
  background: var(--mist);
  z-index: -1;
}
.concept-media { isolation: isolate; }
.vertical-mark {
  position: absolute;
  left: -46px; top: 0;
  writing-mode: vertical-rl;
  font-family: var(--latin);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--blue);
  opacity: 0.8;
}

/* ---------- Service cards (TOP) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -26px rgba(13, 29, 45, 0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--navy), var(--blue-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-no {
  font-family: var(--latin);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.card-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.card-text { margin-top: 12px; font-size: 0.9rem; line-height: 1.85; color: var(--muted); flex: 1; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--latin);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--navy);
}
.card-more .arrow { position: relative; width: 22px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease); }
.card-more .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor;
  transform: rotate(45deg); transform-origin: right top;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card:hover::after, .card:focus-visible::after { transform: scaleX(1); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.04); }
.card:hover .card-more .arrow, .card:focus-visible .card-more .arrow { transform: translateX(5px); }
.cards-foot { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.cards-foot .btn-row { justify-content: center; margin-top: 0; }

/* ---------- Craft (TOP) ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.craft-text p.body { margin-top: 28px; color: var(--on-dark-muted); max-width: 30em; }
.craft-media .frame { aspect-ratio: 4 / 3; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.craft-media { position: relative; }
.craft-media::after {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 42%; height: 42%;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

/* ---------- Gallery preview (TOP) ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
}
.preview-grid .frame--a { aspect-ratio: 16 / 10; }
.preview-grid .frame--a img { object-position: 50% 45%; }
.preview-grid .frame--b { aspect-ratio: 4 / 3.4; }
.preview-side { display: flex; flex-direction: column; gap: 24px; }
.preview-side .lead { margin-top: 0; }

/* ---------- Demo contact band ---------- */
.demo-band { text-align: center; overflow: hidden; isolation: isolate; }
.demo-band .h2 { max-width: 20em; margin-inline: auto; }
.demo-band .lead { max-width: 34em; margin-inline: auto; }
.demo-band .btn-row { justify-content: center; align-items: center; }
.demo-band .disabled-note { width: 100%; font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); margin-top: 4px; }
.demo-band .hero-bg .glow--a { left: auto; right: -10vw; top: -20vw; }
.demo-band .hero-bg .glow--b { left: 6%; bottom: -18vw; }

/* ---------- SERVICE rows ---------- */
.svc { padding-block: clamp(64px, 8vw, 120px); }
.svc + .svc { padding-top: 0; }
.svc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.svc--rev .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media .frame { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.svc-num-bg {
  position: absolute;
  top: -0.62em;
  right: -0.08em;
  font-family: var(--latin);
  font-size: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  line-height: 1;
  color: var(--mist);
  z-index: -1;
  letter-spacing: 0;
  user-select: none;
}
.svc--rev .svc-num-bg { right: auto; left: -0.08em; }
.svc-media { isolation: isolate; }
.svc-label {
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  color: var(--blue);
}
.svc-num { font-size: 1.15rem; color: var(--navy); }
.svc-body .h2 { margin-top: 12px; }
.svc-body p.body { margin-top: 24px; color: var(--muted); }

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  counter-reset: none;
}
.flow-item {
  position: relative;
  padding: 34px 26px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.flow-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: calc(clamp(14px, 2vw, 28px) / -2 - 4px);
  top: 50%;
  width: 8px; height: 8px;
  border-top: 1px solid var(--blue);
  border-right: 1px solid var(--blue);
  transform: rotate(45deg);
}
.flow-step {
  font-family: var(--latin);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--blue);
}
.flow-icon { width: 40px; height: 40px; margin-top: 18px; color: var(--navy); }
.flow-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.flow-text { margin-top: 10px; font-size: 0.88rem; line-height: 1.85; color: var(--muted); }
.flow-note { margin-top: 28px; }

/* ---------- GALLERY ---------- */
.gallery-note {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--off);
  border-left: 2px solid var(--blue);
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--ink);
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 17vw, 250px);
  gap: clamp(10px, 1.4vw, 18px);
}
.mosaic li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--mist);
  color: var(--white);
  text-decoration: none;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.g-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 22, 34, 0.62) 100%);
  transition: opacity 0.5s ease;
}
.g-cap {
  position: absolute;
  z-index: 2;
  left: 18px; bottom: 14px;
  font-family: var(--latin);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
}
.g-zoom {
  position: absolute;
  z-index: 2;
  right: 14px; bottom: 12px;
  width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.4s ease, transform 0.4s var(--ease);
}
.g-zoom svg { width: 14px; height: 14px; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.04); }
.g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
.g-item:focus-visible { outline-offset: 2px; }
.mosaic li:nth-child(1) .g-item img { object-position: 30% 50%; }
.mosaic li:nth-child(6) .g-item img { object-position: 60% 12%; }

/* studio */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.studio-grid .frame { aspect-ratio: 944 / 488; box-shadow: var(--shadow-lg); }
.studio-text p.body { margin-top: 26px; color: var(--muted); }

/* information */
.info-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.info-list { border-top: 1px solid var(--navy); }
.info-list > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.info-list dt { font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.info-list dd { color: var(--ink); font-size: 0.94rem; }
.info-closing {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--navy);
}

.back-band { text-align: center; padding-block: clamp(64px, 7vw, 100px); }
.back-band .btn-row { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: var(--on-dark);
  padding: clamp(56px, 6vw, 80px) 0 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-logo { font-family: var(--latin); letter-spacing: 0.16em; line-height: 1.6; }
.footer-logo .fl-main { font-size: 1.35rem; }
.footer-logo .fl-main, .footer-logo .fl-sub { white-space: nowrap; }
.footer-logo .fl-sub { font-size: 0.72rem; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.8); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a {
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  display: inline-block;
  padding: 6px 0;
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.footer-notes { padding-top: 28px; display: grid; gap: 10px; max-width: 60em; }
.footer-notes p { font-size: 0.8rem; line-height: 1.85; color: rgba(255, 255, 255, 0.8); }
.copyright { margin-top: 28px; font-family: var(--latin); font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(255, 255, 255, 0.66); }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; color: inherit; }
.notice {
  width: min(92vw, 460px);
  padding: 36px 32px 28px;
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-lg);
}
.notice::backdrop { background: rgba(10, 22, 34, 0.55); }
.notice-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.notice p.body { margin-top: 14px; font-size: 0.94rem; color: var(--ink); }
.notice .btn-row { margin-top: 24px; justify-content: flex-end; }
.notice .btn { min-height: 44px; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 16, 26, 0.9); }
.lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 64px clamp(12px, 6vw, 96px) 72px;
}
.lb-figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img {
  max-width: min(100%, 1400px);
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.lightbox[open] .lb-img { animation: lbIn 0.45s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.lb-cap {
  margin-top: 14px;
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.lb-cap small { display: block; font-family: var(--sans); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(10, 22, 34, 0.5);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  top: 24px; left: 20px;
  font-family: var(--latin);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lb-stage { padding: 64px 10px 84px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .vertical-mark { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-item:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  .concept-grid, .craft-grid, .svc-grid, .studio-grid, .info-wrap, .preview-grid { grid-template-columns: 1fr; }
  .svc--rev .svc-media { order: 0; }
  .concept-media { margin-right: 12px; }
  .concept-media::before { right: -12px; bottom: -12px; }
  .craft-media { order: -1; margin-left: 10px; }
  .craft-media::after { left: -10px; top: -10px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .card-media { aspect-ratio: 16 / 9; }
  /* narrow screens: each tile keeps a ratio close to its photo instead of fixed row heights */
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .mosaic li:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .mosaic li:nth-child(6) { grid-column: span 2; }
  .mosaic .g-item { height: auto; aspect-ratio: 4 / 3; }
  .mosaic li:nth-child(1) .g-item { aspect-ratio: 1672 / 941; }
  .mosaic li:nth-child(6) .g-item { aspect-ratio: 16 / 10; }
  .svc-num-bg { top: -0.5em; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .cards li:last-child { grid-column: span 2; }
  .cards li:last-child .card-media { aspect-ratio: 21 / 9; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow-item:not(:last-child)::after {
    right: auto; left: 50%; top: auto; bottom: -11px;
    transform: translateX(-50%) rotate(135deg);
  }
  .flow-item:nth-child(2)::after { display: block; }
  .flow-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 18px;
    padding: 22px 20px 24px;
  }
  .flow-item > * { grid-column: 2; }
  .flow-item .flow-icon { grid-column: 1; grid-row: 1 / span 3; width: 36px; height: 36px; margin-top: 2px; }
  .flow-title { margin-top: 6px; }
  .mosaic .g-cap { left: 12px; bottom: 10px; font-size: 0.64rem; letter-spacing: 0.14em; }
  .mosaic .g-zoom { right: 8px; bottom: 6px; width: 28px; height: 28px; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .card-body { padding: 22px 20px 26px; }
  .notice { padding: 30px 22px 22px; }
}
@media (max-width: 359px) {
  .eyebrow { letter-spacing: 0.18em; gap: 10px; }
  .eyebrow::before { width: 24px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic li:nth-child(1), .mosaic li:nth-child(6) { grid-column: auto; }
}

/* ---------- Single-file preview ---------- */
.preview-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10, 22, 34, 0.96);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
}
.preview-bar a {
  flex: 1;
  max-width: 180px;
  display: grid;
  place-items: center;
  min-height: 44px;
  font-family: var(--latin);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
}
.preview-bar a[aria-current="page"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.preview-ribbon {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  padding: 6px 12px;
}
html[data-mode="single"] body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.js[data-mode="single"] .page:not(.is-active) { display: none; }
.page.is-active { animation: pageIn 0.6s var(--ease) both; }
html[data-mode="single"] .site-main { animation: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
  .hero-shine, .glow { display: none; }
  .frame[data-parallax-frame] img { transform: none !important; }
}
