/* === LOCO_REACH × juri-portfolio inspired === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #2E2E2E;
  background: #FBFAF6;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
  position: relative;
}
/* Japanese phrase-aware line breaking — prevents mid-word splits */
p, h1, h2, h3, h4, summary, li {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* watercolor dots */
.dots { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.dot {
  position: absolute; width: 110px; height: 110px; border-radius: 50%;
  opacity: .45;
  /* gradient itself fakes the soft blur — no expensive filter */
}
.dot-blue   { background: radial-gradient(circle, rgba(188,217,245,.85) 0%, rgba(188,217,245,.25) 40%, transparent 70%); }
.dot-yellow { background: radial-gradient(circle, rgba(246,230,176,.85) 0%, rgba(246,230,176,.25) 40%, transparent 70%); }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: rgba(251, 250, 246, 0.85);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(251, 250, 246, 0.92);
  padding: 14px 48px;
  box-shadow: 0 8px 24px -16px rgba(20,40,80,.18);
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2.0rem; letter-spacing: .12em;
  color: #1B2A4E;
}
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 1.3rem; }
.nav nav a { color: #2E2E2E; transition: opacity .2s; }
.nav nav a:hover { opacity: .55; }
.nav-cta {
  background: #C8453A;
  color: #FBFAF6 !important;
  border: 1px solid #C8453A;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 500;
  letter-spacing: .08em;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.nav-cta:hover {
  background: transparent;
  color: #C8453A !important;
  border-color: #C8453A;
  opacity: 1 !important;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  z-index: 1;
}
.hero-photo {
  position: absolute;
  top: 80px; right: 80px; bottom: 60px; left: 80px;
  background:
    linear-gradient(180deg, rgba(251,250,246,0) 65%, rgba(251,250,246,.35) 100%),
    url('photos/hero.png') center/cover no-repeat;
  border-radius: 2px;
  box-shadow: 0 30px 80px -40px rgba(20,40,80,.28);
  overflow: hidden;
  will-change: transform;
}
.hero-photo::after {
  /* subtle film grain via gradient noise */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(20,40,80,.08) 100%);
  pointer-events: none;
}
.hero-vertical {
  position: absolute;
  top: 140px; right: 110px;
  writing-mode: vertical-rl;
  font-size: 1.2rem; line-height: 2.6;
  color: #2E3E58;
  letter-spacing: .25em;
  z-index: 3;
  font-weight: 500;
}
.hero-logo {
  position: absolute;
  z-index: 4;
  top: 22%;
  left: 12%;
  font-family: "Klee One", "Noto Sans JP", serif;
  font-weight: 600;
  font-size: clamp(4.4rem, 7.5vw, 9rem);
  line-height: 1.1;
  color: #1B2A4E;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(255,255,255,.4);
  -webkit-text-stroke: 0.6px #1B2A4E;
}
.hero-logo .line1, .hero-logo .line2 {
  display: block;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.hero-logo .line2 {
  margin-top: 10px;
  margin-left: 38px;
  transform: rotate(-2deg);
}
.hero-logo .gold {
  color: #C8453A;
  -webkit-text-stroke: 0.6px #C8453A;
}
.hero-en {
  display: block;
  margin-top: 28px;
  margin-left: 6px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: .25em;
  color: #1B2A4E;
  transform: none;
  font-weight: 500;
  border-top: 1px solid #1B2A4E;
  padding-top: 8px;
  width: fit-content;
}
.hero-mascot {
  position: absolute;
  right: 100px; bottom: 80px;
  z-index: 5;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(251, 250, 246, 0.88);
  border-radius: 50%;
  box-shadow: 0 8px 24px -12px rgba(20,40,80,.25);
}
.hero-mascot svg { display: block; }
.scroll-cue {
  position: absolute;
  left: 110px; bottom: 30px;
  z-index: 5;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: .3em;
  color: #4A4A4A;
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue span {
  display: inline-block;
  width: 60px; height: 1px;
  background: #4A4A4A;
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: left center;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(.2); }
  50% { transform: scaleX(1); }
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: 140px 64px;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
}
.section-head {
  text-align: center;
  margin-bottom: 80px;
}
.section-head .rule {
  display: block;
  width: 64px; height: 1px;
  background: #1B2A4E;
  margin: 0 auto 28px;
}
.section-head h2 {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: #1B2A4E;
}
.section-head .section-en {
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: .3em;
  color: #B89968;
}

/* === SERVICE LIST === */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
  border-bottom: 1px solid #E5E0D6;
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse { direction: rtl; }
.service-row.reverse > * { direction: ltr; }

.service-thumb {
  aspect-ratio: 4/3;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(20,40,80,.25);
}
.service-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 2.4s cubic-bezier(.22,1,.36,1);
}
.service-row:hover .service-thumb img { transform: scale(1.06); }

.service-tag {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: .25em;
  color: #B89968;
  margin-bottom: 14px;
}
.service-body h3 {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #1B2A4E;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.service-body p {
  font-size: 1.45rem;
  color: #444;
  margin-bottom: 22px;
}
.more {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: .2em;
  color: #1B2A4E;
  border-bottom: 1px solid #1B2A4E;
  padding-bottom: 4px;
  transition: padding .25s, color .25s;
}
.more:hover { padding-right: 12px; color: #B89968; border-color: #B89968; }

/* === ABOUT === */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-photo {
  aspect-ratio: 3/4;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(20,40,80,.22);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-lead {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.6;
  color: #1B2A4E;
  margin-bottom: 28px;
  letter-spacing: .04em;
}
.about-text p {
  font-size: 1.45rem;
  color: #444;
  margin-bottom: 18px;
}
.about-sign {
  margin-top: 24px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #B89968;
  letter-spacing: .2em;
}

/* === INDUSTRY === */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.ind {
  text-align: center;
  padding: 24px 10px 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 24px -16px rgba(20,40,80,.15);
  transition: transform .9s cubic-bezier(.22,1,.36,1), box-shadow .9s cubic-bezier(.22,1,.36,1);
}
.ind:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(20,40,80,.25);
}
.ind img {
  width: 96px; height: 96px; object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}
.ind p {
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: #2E2E2E;
}

/* === FLOW === */
.flow {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}
.flow li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #E5E0D6;
  align-items: start;
}
.flow li:last-child { border-bottom: none; }
.step {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 2.4rem;
  letter-spacing: .1em;
  color: #B89968;
}
.flow h4 {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #1B2A4E;
  margin-bottom: 6px;
}
.flow p {
  font-size: 1.4rem;
  color: #555;
}

/* === CONTACT (arched) === */
.contact {
  position: relative;
  margin-top: 80px;
  padding: 180px 32px 140px;
  text-align: center;
  background: linear-gradient(180deg, #FBFAF6 0%, #E9F1F8 35%, #CFE3F3 100%);
  overflow: hidden;
}
.contact-arch {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 240px;
  background: #FBFAF6;
  border-radius: 50%;
}
.contact-inner { position: relative; z-index: 1; }
.contact-lead {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 1.7rem;
  color: #1B2A4E;
  margin-bottom: 22px;
}
.contact-title {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(6rem, 12vw, 14rem);
  font-weight: 400;
  letter-spacing: .15em;
  color: #1B2A4E;
  line-height: 1;
  margin-bottom: 48px;
  opacity: .92;
}
.contact-btn {
  display: inline-block;
  padding: 18px 44px;
  background: #1B2A4E;
  color: #fff;
  border-radius: 999px;
  font-size: 1.4rem;
  letter-spacing: .12em;
  transition: transform .25s, background .25s;
}
.contact-btn:hover { background: #B89968; transform: translateY(-2px); }

/* === FOOTER === */
.footer {
  background: #1B2A4E;
  color: #E9F1F8;
  padding: 36px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  letter-spacing: .12em;
}
.footer-tag {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: #B89968;
}

/* === PORTFOLIO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.pf-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .9s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.pf-card[data-coming="true"] { cursor: default; pointer-events: none; }
.pf-card:hover { transform: translateY(-4px); }
.pf-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 48px -32px rgba(20,40,80,.25);
  margin-bottom: 18px;
}
.pf-thumb-1 { background: linear-gradient(135deg, #DCE7F2 0%, #F2EBDD 100%); }
.pf-thumb-2 { background: linear-gradient(135deg, #F2DDE5 0%, #F1EAD9 100%); }
.pf-thumb-3 { background: linear-gradient(135deg, #E5EFE3 0%, #F4ECDB 100%); }
.pf-thumb-4 { background: linear-gradient(135deg, #DCEFE0 0%, #ECF4DC 100%); }
.pf-thumb-5 { background: linear-gradient(135deg, #E0E2EC 0%, #F1ECE2 100%); }
.pf-thumb-6 { background: linear-gradient(135deg, #ECDCE6 0%, #F1E8DC 100%); }
.pf-coming {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: .25em;
  color: rgba(27,42,78,.55);
}
.pf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pf-no {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: .25em;
  color: #B89968;
}
.pf-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: .15em;
  color: #888;
  border: 1px solid #E5E0D6;
  padding: 3px 10px;
  border-radius: 999px;
}
.pf-industry {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #1B2A4E;
  letter-spacing: .04em;
}
.pf-note {
  margin-top: 40px;
  text-align: center;
  font-size: 1.2rem;
  color: #888;
  letter-spacing: .06em;
}
@media (max-width: 820px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === PROBLEM === */
.problem-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
}
.problem-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid #E5E0D6;
  font-size: 1.55rem;
  color: #2E2E2E;
  letter-spacing: .04em;
}
.problem-list li:last-child { border-bottom: none; }
.problem-mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid #B89968;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #B89968;
  flex-shrink: 0;
}
.problem-bridge {
  text-align: center;
  margin-top: 56px;
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 1.8rem;
  color: #1B2A4E;
  letter-spacing: .06em;
}

/* === PLAN === */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.plan-card {
  position: relative;
  padding: 40px 28px 36px;
  background: #fff;
  border: 1px solid #E5E0D6;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform .9s cubic-bezier(.22,1,.36,1), box-shadow .9s cubic-bezier(.22,1,.36,1), border-color .4s ease;
}
.plan-card .plan-price { margin-top: auto; }
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(20,40,80,.20);
  border-color: #B89968;
}
.plan-card.featured {
  background: #1B2A4E;
  color: #FBFAF6;
  border-color: #1B2A4E;
}
.plan-card.featured .plan-name,
.plan-card.featured .plan-price { color: #FBFAF6; }
.plan-card.featured .plan-target { color: #B89968; }
.plan-card.featured .plan-features li { color: #DCE5F0; border-color: rgba(255,255,255,.12); }
.plan-ribbon {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: #B89968;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: .2em;
  padding: 6px 18px;
  border-radius: 999px;
}
.plan-name {
  font-family: "Klee One", "Noto Sans JP", serif;
  font-size: 2.0rem;
  font-weight: 600;
  color: #1B2A4E;
  margin-bottom: 6px;
  letter-spacing: .08em;
}
.plan-target {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: .15em;
  color: #B89968;
  margin-bottom: 24px;
}
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}
.plan-features li {
  font-size: 1.35rem;
  padding: 12px 0;
  border-bottom: 1px dashed #E5E0D6;
  color: #444;
}
.plan-features li:last-child { border-bottom: none; }
.plan-price {
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: #1B2A4E;
}
.plan-note {
  margin-top: 32px;
  text-align: center;
  font-size: 1.2rem;
  color: #777;
  letter-spacing: .06em;
  line-height: 2;
}
.plan-spot-link {
  margin-left: 6px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: .12em;
  color: #C8453A;
  border-bottom: 1px solid #C8453A;
  padding-bottom: 1px;
  transition: opacity .3s;
}
.plan-spot-link:hover { opacity: .7; }

/* === VOICE === */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}
.voice-card {
  padding: 32px 26px;
  background: #fff;
  border-radius: 6px;
  border-left: 2px solid #B89968;
  box-shadow: 0 12px 28px -16px rgba(20,40,80,.15);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
}
.voice-card:hover { transform: translateY(-4px); }
.voice-quote {
  font-size: 1.45rem;
  line-height: 1.9;
  color: #2E2E2E;
  margin-bottom: 18px;
}
.voice-attr {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: .15em;
  color: #B89968;
}
.voice-note {
  margin-top: 28px;
  text-align: center;
  font-size: 1.15rem;
  color: #888;
}

/* === FAQ === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-list details {
  border-bottom: 1px solid #E5E0D6;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 12px 24px 0;
  font-family: "Klee One", "Noto Sans JP", serif;
  font-weight: 600;
  font-size: 1.55rem;
  color: #1B2A4E;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: .04em;
  position: relative;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: #B89968; }
.faq-mark {
  position: relative;
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  background: #1B2A4E;
  transition: transform .3s ease;
}
.faq-mark::before {
  top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%);
}
.faq-mark::after {
  left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
}
details[open] .faq-mark::after { transform: translateX(-50%) scaleY(0); }
.faq-answer {
  padding: 0 12px 24px 0;
  font-size: 1.4rem;
  line-height: 1.9;
  color: #555;
  animation: faqOpen .4s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* === reveal animations === */
.fade,
.fade-left,
.fade-right {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(.22,1,.36,1);
  /* promote to GPU compositor layer to avoid jank */
  transform: translateZ(0);
  backface-visibility: hidden;
}
.fade.visible,
.fade-left.visible,
.fade-right.visible { opacity: 1; }

.fade-zoom img {
  opacity: 0;
  transition: opacity 2s cubic-bezier(.22,1,.36,1);
  transform: translateZ(0);
}
.fade-zoom.visible img { opacity: 1; }

/* hero entrance — fade only */
.hero-photo { animation: heroIn 2.6s cubic-bezier(.22,1,.36,1) both; }
@keyframes heroIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* logo character reveal — fade only, GPU promoted */
.hero-logo .char {
  display: inline-block;
  opacity: 0;
  animation: charIn 1.6s cubic-bezier(.22,1,.36,1) forwards;
  transform: translateZ(0);
  will-change: opacity;
}
.hero-logo, .hero-en, .hero-vertical {
  transform: translateZ(0);
  will-change: opacity;
}
@keyframes charIn {
  to { opacity: 1; }
}
.hero-en {
  opacity: 0;
  animation: enIn 1.6s cubic-bezier(.22,1,.36,1) 2.2s forwards;
}
@keyframes enIn { to { opacity: 1; } }

.hero-vertical {
  opacity: 0;
  animation: vIn 1.8s cubic-bezier(.22,1,.36,1) 2.4s forwards;
}
@keyframes vIn { to { opacity: 1; } }

/* mascot pulse */
.hero-mascot svg { animation: mascotPulse 3.6s ease-in-out infinite; }
@keyframes mascotPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(8deg); }
}

/* dot drift */
.dot { animation: dotDrift 14s ease-in-out infinite; }
.dot:nth-child(2) { animation-duration: 18s; animation-delay: -3s; }
.dot:nth-child(3) { animation-duration: 22s; animation-delay: -6s; }
.dot:nth-child(4) { animation-duration: 16s; animation-delay: -2s; }
.dot:nth-child(5) { animation-duration: 20s; animation-delay: -8s; }
.dot:nth-child(6) { animation-duration: 24s; animation-delay: -4s; }
.dot:nth-child(7) { animation-duration: 17s; animation-delay: -10s; }
@keyframes dotDrift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -15px); }
  50% { transform: translate(-10px, 20px); }
  75% { transform: translate(-25px, -10px); }
}

/* nav slide-in */
.nav { animation: navIn .8s ease both; }
@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA pulse */
.contact-btn { animation: ctaBreath 4s ease-in-out infinite; }
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27,42,78,.35); }
  50%      { box-shadow: 0 0 0 14px rgba(27,42,78,0); }
}

/* section rule grow */
.section-head .rule {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.8s cubic-bezier(.22,1,.36,1);
}
.section.visible .section-head .rule { transform: scaleX(1); }

/* service stagger */
.service-row { transition-delay: 0s; }
.service-row:nth-child(1) { transition-delay: .05s; }
.service-row:nth-child(2) { transition-delay: .15s; }
.service-row:nth-child(3) { transition-delay: .25s; }
.service-row:nth-child(4) { transition-delay: .35s; }

/* ind stagger */
.ind { transition-delay: 0s; }
.ind:nth-child(1) { transition-delay: .04s; }
.ind:nth-child(2) { transition-delay: .12s; }
.ind:nth-child(3) { transition-delay: .20s; }
.ind:nth-child(4) { transition-delay: .28s; }
.ind:nth-child(5) { transition-delay: .36s; }
.ind:nth-child(6) { transition-delay: .44s; }
.ind:nth-child(7) { transition-delay: .52s; }
.ind:nth-child(8) { transition-delay: .60s; }

/* flow stagger */
.flow li:nth-child(1) { transition-delay: .05s; }
.flow li:nth-child(2) { transition-delay: .18s; }
.flow li:nth-child(3) { transition-delay: .31s; }
.flow li:nth-child(4) { transition-delay: .44s; }
.flow li:nth-child(5) { transition-delay: .57s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* === MOBILE === */
@media (max-width: 820px) {
  .nav { padding: 16px 20px; }
  .nav nav { gap: 14px; font-size: 1.15rem; }
  .nav-cta { padding: 6px 12px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-photo {
    position: relative;
    top: 0; right: 0; bottom: 0;
    width: 100%;
    aspect-ratio: 3/4;
    margin-bottom: 32px;
    order: -1;
  }
  .hero-vertical { display: none; }
  .hero-logo { font-size: clamp(3.6rem, 12vw, 6rem); }
  .hero-logo .line2 { margin-left: 18px; }
  .hero-mascot { right: 16px; bottom: 16px; }
  .scroll-cue { display: none; }

  .section { padding: 90px 24px; }
  .service-row, .service-row.reverse, .about-body {
    grid-template-columns: 1fr;
    gap: 28px;
    direction: ltr;
  }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { flex-direction: column; gap: 8px; padding: 24px; }
  .contact { padding: 120px 20px 90px; }
  .plan-grid, .voice-grid { grid-template-columns: 1fr; }
  .problem-list li { font-size: 1.4rem; }
  .nav nav a:not(.nav-cta) { display: none; }
  .nav nav .nav-cta { display: inline-block; }
}

/* ============================================================
   ANIMATIONS — gentle, fade-only, editorial tone
   ============================================================ */

/* Reset prior heavy effects: hero text appears immediately, photo fades */
.hero-logo .char,
.hero-logo,
.hero-en,
.hero-vertical { opacity: 1; animation: none; }

.hero-photo {
  opacity: 0;
  animation: heroFadeIn 1.6s cubic-bezier(.22,1,.36,1) .1s forwards;
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}

/* Scroll-triggered reveal: pure opacity, no slide */
.reveal {
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(.22,1,.36,1);
  transform: translateZ(0);
}
.reveal.visible { opacity: 1; }

/* Section rule grows on reveal */
.section-head .rule {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(.22,1,.36,1);
}
.section.visible .section-head .rule,
.reveal.visible .section-head .rule { transform: scaleX(1); }

/* Card hover lifts — subtle, single property */
.plan-card,
.voice-card,
.pf-card,
.ind,
.service-row { transition: transform .7s cubic-bezier(.22,1,.36,1), box-shadow .7s cubic-bezier(.22,1,.36,1); }
.plan-card:hover,
.voice-card:hover,
.ind:hover { transform: translateY(-3px); }
.pf-card[data-coming="false"]:hover { transform: translateY(-3px); }

.service-thumb img,
.pf-thumb img {
  transition: transform 1.6s cubic-bezier(.22,1,.36,1);
}
.service-row:hover .service-thumb img { transform: scale(1.03); }

/* Nav scroll-state already animated via transition declared earlier */

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; }
  .section-head .rule { transform: scaleX(1) !important; }
}

