/* =========================================================
   RIKORUTO — 映像制作・写真撮影サービス
   Design system stylesheet
   ========================================================= */

:root {
  /* Brand palette */
  --white: #ffffff;
  --bg-light: #f8f7fb;
  --bg-lavender: #f1eefb;
  --text-dark: #111827;
  --text-mid: #4b5563;
  --text-soft: #6b7280;
  --line: #ece9f4;

  --pink: #ff5fa2;
  --blue: #45c8ff;
  --purple: #7b61ff;

  --grad: linear-gradient(135deg, #ff5fa2 0%, #7b61ff 50%, #45c8ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 95, 162, 0.14) 0%, rgba(123, 97, 255, 0.14) 50%, rgba(69, 200, 255, 0.14) 100%);

  /* Type */
  --font-jp: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Poppins", "Zen Kaku Gothic New", sans-serif;

  /* Radii + shadow */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 4px 18px rgba(31, 23, 71, 0.06);
  --shadow-md: 0 14px 40px rgba(31, 23, 71, 0.09);
  --shadow-lg: 0 30px 70px rgba(31, 23, 71, 0.13);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Helpers ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-light { background: var(--bg-light); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.3;
  margin: 10px 0 0;
  letter-spacing: 0.01em;
}
.section-head p {
  margin: 18px 0 0;
  color: var(--text-mid);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-grad {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(123, 97, 255, 0.32);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(123, 97, 255, 0.4); }

.btn-ghost {
  background: #fff;
  color: var(--text-dark);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #d9d3ee; box-shadow: var(--shadow-md); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(31, 23, 71, 0.05);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 6px 16px rgba(123, 97, 255, 0.34);
}
.logo .word {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
}
.logo-mark { width: 44px; height: 44px; object-fit: contain; }
.word-jp { font-family: var(--font-jp); font-weight: 800; font-size: 17px; letter-spacing: 0.02em; }
.logo-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  flex: none;
}
.logo-badge img { width: 38px; height: 38px; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links .mobile-cta { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(72px, 10vw, 130px);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--bg-lavender) 0%, rgba(248, 247, 251, 0) 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.blob.b1 { width: 420px; height: 420px; background: var(--pink); top: -120px; left: -80px; opacity: 0.32; }
.blob.b2 { width: 480px; height: 480px; background: var(--blue); top: 40px; right: -120px; opacity: 0.3; }
.blob.b3 { width: 360px; height: 360px; background: var(--purple); bottom: -160px; left: 30%; opacity: 0.26; }

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 0;
}
.hero-copy { max-width: 820px; }
.hero-badge { margin: 0 auto; }
.hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { justify-content: center; }
.hero-stats { justify-content: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
}
.hero-badge .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.hero h1 {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.32;
  letter-spacing: 0.005em;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 .em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .nowrap { white-space: nowrap; }
.hero-sub {
  margin: 24px 0 0;
  max-width: 30em;
  color: var(--text-mid);
  font-size: clamp(15px, 1.7vw, 18px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-stats { display: flex; gap: clamp(24px, 4vw, 44px); margin-top: 46px; }
.hero-stats .stat .n { font-family: var(--font-en); font-weight: 700; font-size: clamp(24px, 3vw, 32px); }
.hero-stats .stat .l { font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.04em; }

/* Hero stacked thumbnail cards */
.hero-cards {
  position: relative;
  height: clamp(380px, 42vw, 520px);
}
.thumb {
  position: absolute;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  border: 6px solid #fff;
}
.thumb image-slot { width: 100%; height: 100%; display: block; }
.thumb .tag {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 999px;
}
.thumb.t1 { width: 60%; aspect-ratio: 4/5; top: 0; right: 4%; z-index: 3; }
.thumb.t2 { width: 52%; aspect-ratio: 16/10; bottom: 6%; left: 0; z-index: 4; }
.thumb.t3 { width: 34%; aspect-ratio: 1/1; top: 30%; right: 0; z-index: 5; }
.float-chip {
  position: absolute;
  z-index: 6;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 700;
}
.float-chip .play {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
}
.float-chip.fc1 { top: 8%; left: -4%; }

/* ---------- Service ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #e4def5; }

.svc-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 22px rgba(123, 97, 255, 0.28);
  margin-bottom: 22px;
}
.svc-icon svg { width: 28px; height: 28px; stroke: #fff; }
.card h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: 0.01em; }
.card .en-label { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--purple); text-transform: uppercase; }
.svc-tags { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
  font-size: 12.5px;
  color: var(--text-mid);
  background: var(--bg-light);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work-media { position: relative; aspect-ratio: 16/9; }
.work-media image-slot { width: 100%; height: 100%; }
.work-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 700;
  color: #fff;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(6px);
  padding: 6px 13px; border-radius: 999px;
}
.work-body { padding: 22px 24px 26px; }
.work-body h3 { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.55; }
.work-meta { margin-top: 10px; font-family: var(--font-en); font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.05em; }
.work-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-family: var(--font-jp);
  font-size: 13.5px; font-weight: 700;
  color: var(--purple);
}
.work-link .ext { font-family: var(--font-en); transition: transform .2s ease; }
.work-link:hover { color: var(--pink); }
.work-link:hover .ext { transform: translate(2px, -2px); }

/* YouTube facade */
.work-media.yt { cursor: pointer; background: #000; }
.yt-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media.yt::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,0.14); transition: background .25s ease;
}
.work-media.yt:hover::after { background: rgba(0,0,0,0.04); }
.yt-play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 62px; height: 62px;
  border: none; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
  transition: transform .2s ease;
}
.yt-play svg { width: 25px; height: 25px; fill: #fff; margin-left: 3px; }
.work-media.yt:hover .yt-play { transform: scale(1.08); }
.yt-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.work-media.playing .yt-play,
.work-media.playing::after,
.work-media.playing .work-cat { display: none; }

/* ---------- Media / 運営サービス ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.media-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #e4def5; }
.media-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.media-icon svg { width: 27px; height: 27px; stroke: var(--purple); }
.media-en { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--purple); text-transform: uppercase; }
.media-card h3 { font-size: 19px; font-weight: 800; margin: 6px 0 10px; }
.media-card p { margin: 0; color: var(--text-mid); font-size: 14px; line-height: 1.75; }
.media-arr {
  position: absolute; top: 30px; right: 30px;
  font-family: var(--font-en);
  color: var(--purple);
  font-size: 18px;
  transition: transform .25s ease;
}
.media-card:hover .media-arr { transform: translateX(4px); }

/* ---------- Photo gallery (masonry) ---------- */
.photo-grid {
  column-count: 4;
  column-gap: 16px;
}
.photo-cell {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.photo-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-cell image-slot { width: 100%; height: auto; display: block; }
.photo-cell.p image-slot { aspect-ratio: 2 / 3; }
.photo-cell.l image-slot { aspect-ratio: 3 / 2; }

/* ---------- Feature ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  align-items: flex-start;
}
.feature-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--grad);
  min-width: 44px; height: 44px;
  border-radius: 13px;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(123, 97, 255, 0.26);
}
.feature h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--text-mid); font-size: 14.5px; line-height: 1.7; }

/* ---------- Flow ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 30px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  opacity: 0.35;
  z-index: 0;
}
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-num {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  color: var(--purple);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.flow-step:hover .flow-num { transform: translateY(-4px); border-color: transparent; background: var(--grad); color: #fff; }
.flow-step h4 { margin: 0; font-size: 15.5px; font-weight: 700; }
.flow-step p { margin: 6px 0 0; font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }

/* ---------- Profile ---------- */
.profile {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}
.profile-photo { position: relative; }
.profile-photo image-slot { width: 100%; height: auto; aspect-ratio: 1/1; border-radius: var(--r-md); }
.profile-photo .ring {
  position: absolute; inset: -14px -14px auto auto;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(2px);
  opacity: 0.25;
  z-index: -1;
}
.profile h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin: 0; }
.profile .role { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.12em; color: var(--purple); font-weight: 600; margin-top: 6px; }
.profile p { color: var(--text-mid); font-size: 15px; line-height: 1.9; margin: 18px 0 0; }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a {
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.socials a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.socials a svg { width: 20px; height: 20px; fill: var(--text-dark); }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.contact-intro {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  padding: clamp(36px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
}
.contact-intro::before, .contact-intro::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.16); filter: blur(50px); pointer-events: none;
}
.contact-intro::before { width: 240px; height: 240px; top: -100px; left: -60px; }
.contact-intro::after { width: 260px; height: 260px; bottom: -120px; right: -70px; }
.contact-intro > * { position: relative; z-index: 1; }
.contact-intro .eyebrow { color: rgba(255,255,255,0.85); }
.contact-intro h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 14px 0 0; line-height: 1.4; }
.contact-intro p { margin: 18px 0 0; font-size: clamp(14px, 1.5vw, 15.5px); line-height: 1.9; opacity: 0.95; }
.contact-mail {
  margin-top: auto;
  padding-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 600; font-size: 15px;
  color: #fff;
}
.contact-mail svg { width: 20px; height: 20px; }
.contact-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form { padding: clamp(32px, 4vw, 52px); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block;
  font-size: 13.5px; font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.field .req, .field .opt {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  margin-left: 6px; vertical-align: 1px;
}
.field .req { color: #fff; background: var(--pink); }
.field .opt { color: var(--text-soft); background: var(--bg-light); border: 1px solid var(--line); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #aab0bd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: var(--pink); background: #fff5f9; }
.field .err { display: none; margin: 7px 0 0; font-size: 12.5px; color: var(--pink); font-weight: 600; }
.field.invalid .err { display: block; }
.contact-form .btn-grad { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-soft); text-align: center; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--text-dark); color: #cbd2de; padding: clamp(56px, 8vw, 80px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo .word { color: #fff; }
.footer .f-desc { margin: 18px 0 0; font-size: 14px; color: #9aa3b2; max-width: 26em; line-height: 1.8; }
.footer h4 { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer .f-contact span { font-size: 14px; color: #9aa3b2; transition: color .2s ease; }
.footer ul a:hover { color: #fff; }
.footer .f-contact { display: flex; flex-direction: column; gap: 11px; }
.footer .f-contact b { color: #fff; font-weight: 600; }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.12); display: grid; place-items: center; transition: background .2s ease; }
.footer-socials a:hover { background: rgba(255,255,255,0.08); }
.footer-socials a svg { width: 18px; height: 18px; fill: #cbd2de; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12.5px; color: #7c8696;
}
.footer-bottom .en { font-family: var(--font-en); letter-spacing: 0.05em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.shown { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .photo-grid { column-count: 3; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav > .btn { display: none; }
  .nav-links .mobile-cta { display: block; border-bottom: none; }
  .nav-links .mobile-cta .btn-grad { display: inline-flex; justify-content: center; width: 100%; margin-top: 14px; }
  .nav-toggle { display: flex; }

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-cards { height: clamp(320px, 78vw, 460px); max-width: 460px; margin: 8px auto 0; width: 100%; }

  .works-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .flow::before { display: none; }
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 320px; }
  .photo-grid { column-count: 2; }
  .media-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn, .hero-actions { width: 100%; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats { gap: 22px; }
}
