/* ============================================================
   EchoCrafts — pages.css
   Multi-page shared components
   ============================================================ */

/* ── Footer: centered column layout ── */
.footer-inner {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: clamp(36px,5vw,56px);
  padding-bottom: clamp(24px,3.5vw,40px);
}
.footer-nav ul {
  justify-content: center;
  flex-wrap: wrap;
}
.footer-copy {
  text-align: center;
  margin-top: 0;
}

/* ── Footer logo image ── */
a.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
a.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .2s;
}
a.footer-logo:hover img { opacity: 1; }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ── Hero CTA buttons (home) ── */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--red);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .12em;
  border: 1px solid var(--red);
  transition: background var(--tr), border-color var(--tr);
}
.btn-hero-primary:hover { background: var(--red-l); border-color: var(--red-l); }

/* ── Hero stats bar (home) ── */

/* ── Page hero (subpages) ── */
.page-hero {
  background: #eeeff2;
  padding: calc(var(--hd) + 72px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 44px,
    rgba(15,27,53,.025) 44px,
    rgba(15,27,53,.025) 45px
  );
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin-bottom: 24px;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.breadcrumb li {
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--text-m);
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 6px;
  opacity: .5;
}
.breadcrumb a {
  color: var(--text-m);
  text-decoration: none;
  transition: color .25s;
}
.breadcrumb a:hover { color: var(--text); }

.page-hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 900px;
}
.page-hero-lead {
  font-size: clamp(.9rem, 1.3vw, 1.05rem);
  color: var(--text-m);
  line-height: 2;
  max-width: 840px;
  margin-bottom: 36px;
}

/* ── Home: Mission teaser ── */

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 9px 18px;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.btn-link:hover { background: var(--primary); border-color: var(--primary); color: var(--text-i); }

/* ── Home: Services ── */
.home-services {
  background: var(--base-2);
  border-bottom: 1px solid var(--border);
}
.home-services-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,60px);
}
.home-services-head {
  margin-bottom: 48px;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-card-tag {
  font-size: .72rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--text-m);
  background: var(--base-2);
  letter-spacing: .04em;
}

/* ── Home: Mini cases (3-col) ── */
.home-cases {
  background: var(--base);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.home-cases-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.home-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.mini-case {
  background: var(--base-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mini-case-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--base-2);
}
.mini-case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-case-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.mini-case-cat {
  font-size: .66rem;
  letter-spacing: .12em;
  color: var(--text-m);
  text-transform: uppercase;
}
.mini-case-title {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: .03em;
}
.mini-case-amount {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 200;
  color: var(--red);
  letter-spacing: -.01em;
  line-height: 1;
}
.mini-case-desc {
  font-size: .78rem;
  color: var(--text-m);
  line-height: 1.8;
}
.mini-case { position: relative; }
.mini-case:hover { border-top-color: var(--primary); }
.mini-case:hover .mini-case-img img { transform: scale(1.04); }
.mini-case-img img { transition: transform .7s cubic-bezier(0.16,1,0.3,1); }
.mini-case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 9px 18px;
  margin-top: auto;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
}
.mini-case-link:hover { background: var(--primary); border-color: var(--primary); color: var(--text-i); }
.mini-case-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.home-cases-more {
  text-align: center;
  margin-top: 40px;
}

/* ── Home: Why EchoCrafts (dark section) ── */
.home-why {
  background: var(--base-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.home-why-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,60px);
  position: relative;
  z-index: 1;
}

/* ── Home Why: 3-col horizontal ── */
.home-why .why-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.home-why .why-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: none;
  border-right: 1px solid var(--border);
  padding: clamp(28px,4vw,52px) clamp(20px,3vw,40px);
  align-items: flex-start;
}
.home-why .why-step:last-child { border-right: none; }
.home-why .why-step-num { padding-top: 0; }
.home-why .why-step-text { max-width: none; }

/* ── Voice horizontal scroller (shared: home + CF page) ── */
.voice-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  margin-top: 52px;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--border);
}
.voice-scroller::-webkit-scrollbar { height: 3px; }
.voice-scroller::-webkit-scrollbar-track { background: var(--border); }
.voice-scroller::-webkit-scrollbar-thumb { background: var(--primary); }
.voice-scroller .cf-voice-card {
  flex: 0 0 clamp(300px, 38vw, 460px);
  scroll-snap-align: start;
}

/* ── Client voices ── */
.home-voice {
  background: #f9f7f4;
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.home-voice-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}

/* ── FAQ accordion ── */
.faq-section {
  background: var(--base);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.faq-section-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.faq-list {
  max-width: 800px;
  margin-top: 40px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: clamp(.88rem, 1.2vw, 1rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  text-align: left;
  gap: 16px;
  transition: color var(--tr);
}
.faq-btn:hover { color: var(--red); }
.faq-btn[aria-expanded="true"] { color: var(--primary); }
.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--tr), background var(--tr);
}
.faq-btn:hover .faq-icon,
.faq-btn[aria-expanded="true"] .faq-icon {
  border-color: var(--primary);
  background: var(--primary);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text-m);
  transition: transform .3s var(--ease), background .2s;
}
.faq-btn:hover .faq-icon::before,
.faq-btn:hover .faq-icon::after,
.faq-btn[aria-expanded="true"] .faq-icon::before,
.faq-btn[aria-expanded="true"] .faq-icon::after {
  background: #fff;
}
.faq-icon::before { width: 12px; height: 1px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1px; height: 12px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.faq-btn[aria-expanded="true"] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease);
}
.faq-answer-inner {
  padding: 0 4px 24px;
  font-size: .9rem;
  color: var(--text-m);
  line-height: 2;
}

/* ── Page CTA (dark section) ── */
.page-cta {
  background: var(--primary);
  padding: clamp(48px,6vw,80px) 0;
  border-top: 3px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.page-cta::before { display: none; }
.page-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 clamp(40px,6vw,80px);
  align-items: center;
}
.page-cta-title {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text-i);
  letter-spacing: .06em;
  line-height: 1.3;
  margin-bottom: 16px;
}
.page-cta-lead {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(.88rem, 1.2vw, 1rem);
  color: rgba(232,232,242,.5);
  line-height: 2;
  margin-bottom: 0;
  max-width: 640px;
}
.page-cta-btns {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--red);
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .12em;
  border: 1px solid var(--red);
  transition: background var(--tr), border-color var(--tr);
}
.btn-cta-primary:hover { background: var(--red-l); border-color: var(--red-l); }

/* ── Founder story (company page) ── */
.founder-section {
  background: var(--base-2);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.founder-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr);
  gap: clamp(40px,6vw,80px);
  align-items: start;
}
.founder-photo {
  position: relative;
}
.founder-photo-img {
  aspect-ratio: 3/4;
  background: var(--base);
  overflow: hidden;
  border: 1px solid var(--border);
}
.founder-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-profile {
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  padding: 28px;
  margin-top: 16px;
}
.founder-name {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.founder-role {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 16px;
}
.founder-bio {
  font-size: .85rem;
  color: var(--text-m);
  line-height: 1.95;
}
.founder-message-head {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.founder-message-head::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}
.founder-message-title {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: .06em;
  margin-bottom: 32px;
}
.founder-message-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-message-body p {
  font-size: .9rem;
  color: var(--text-m);
  line-height: 2;
}
.founder-message-highlight {
  font-size: .88rem;
  color: var(--primary);
  font-style: italic;
  line-height: 1.9;
  border-left: 2px solid var(--primary);
  padding-left: 20px;
  margin-top: 4px;
}

/* ── Why us (company page) ── */

/* ── AIO/SEO: Pain points ── */
.aio-pain {
  background: var(--base-2);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.aio-pain-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.aio-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.pain-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  padding: 28px;
}
.pain-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: .04em;
  line-height: 1.4;
}
.pain-card-text {
  font-size: .85rem;
  color: var(--text-m);
  line-height: 1.9;
}

/* ── AIO/SEO: Positioning matrix ── */
.aio-positioning {
  background: var(--base);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.aio-positioning-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.aio-matrix {
  border: 1px solid var(--border);
  background: var(--base);
  overflow: hidden;
}
.aio-matrix-head {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--primary);
  color: var(--text-i);
  font-size: .72rem;
  letter-spacing: .1em;
  font-weight: 500;
}
.aio-matrix-head div,
.aio-matrix-row div {
  padding: 14px 16px;
  border-right: 1px solid var(--border-d);
}
.aio-matrix-head div:last-child {
  border-right: none;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: .14em;
}
.aio-matrix-row div:last-child {
  border-right: none;
  background: rgba(191,31,40,.07);
  border-left: 2px solid rgba(191,31,40,.18);
}
.aio-matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
  font-size: .82rem;
}
.aio-matrix-row > div { border-right: 1px solid var(--border); color: var(--text-m); }
.aio-matrix-row > div:first-child { color: var(--text); font-weight: 400; }
.aio-matrix-row > div:last-child { font-weight: 600; }
.aio-check { color: var(--red); font-weight: 700; font-size: 1rem; }
.aio-dash { color: var(--border); }
.aio-matrix-row > div:last-child.aio-check { color: var(--red); font-size: 1.1rem; }
.aio-matrix-row > div:last-child.aio-dash { color: rgba(191,31,40,.2); }
.aio-pos-text { font-size: .9rem; color: var(--text-m); line-height: 2; margin-bottom: 24px; }
.aio-pos-title {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: .06em;
  line-height: 1.3;
}

/* ── AIO/SEO: Service cards ── */
.aio-services {
  background: var(--base-2);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.aio-services-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.aio-services-top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.aio-services-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.aio-svc-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 28px;
}
.aio-svc-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: .04em;
  line-height: 1.4;
}
.aio-svc-desc {
  font-size: .82rem;
  color: var(--text-m);
  line-height: 1.8;
  margin-bottom: 14px;
}
.aio-svc-list { list-style: none; }
.aio-svc-list li {
  font-size: .8rem;
  color: var(--text-m);
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}
.aio-svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  opacity: .5;
}

/* ── AIO/SEO: Flow steps ── */
.aio-flow {
  background: var(--base);
  border-bottom: 1px solid var(--border);
  padding: clamp(64px,9vw,120px) 0;
}
.aio-flow-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}

/* ── Mission page ── */

/* Top page: mission visual photo */
.mission-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* Mission page: full-width text layout (no visual panel) */

/* ── Company page mission brief ── */

/* ── Contact page standalone ── */

/* ── Seo voice grid (4-col) ── */

/* ============================================================
   SHARED SUBPAGE DESIGN ELEMENTS
   ============================================================ */

/* ── Page hero: image background support ── */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 30%;
  opacity: 1;
  display: block;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #eeeff2 0%,
    #eeeff2 22%,
    rgba(238,239,242,.75) 42%,
    rgba(238,239,242,.2) 62%,
    transparent 78%
  );
  pointer-events: none;
}
.page-hero--dark .page-hero-bg img { opacity: 1; }
.page-hero--dark .page-hero-bg::after {
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) 22%,
    rgba(15,27,53,.78) 42%,
    rgba(15,27,53,.2) 62%,
    transparent 78%
  );
}
.page-hero::after { z-index: 1; }
.page-hero-inner { z-index: 2; }

/* ── Image band (horizontal full-bleed strip) ── */
.img-band {
  height: clamp(160px, 24vw, 240px);
  overflow: hidden;
  position: relative;
  display: block;
  background: var(--primary);
}
.img-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .55;
  display: block;
  transition: transform 12s linear;
}
.img-band--tall { height: clamp(220px, 32vw, 240px); }
.img-band--caption {
  display: flex;
  align-items: flex-end;
}

/* ── Section dark (navy background) ── */

/* ── Split image-text layout (generic) ── */

/* ── Redesigned Why Us: full-image hover cards ── */

/* ── Founder section: content-width, message top / profile bottom ── */
.founder-section {
  background: #f9f7f4;
  border-bottom: 1px solid var(--border);
}
.founder-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,60px);
  display: flex;
  flex-direction: column;
  gap: clamp(48px,6vw,72px);
  grid-template-columns: none;
}
.founder-message { order: 0; padding: 0; }
.founder-photo {
  order: 1;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px,4vw,52px);
  align-items: start;
}
.founder-photo-img {
  aspect-ratio: 3/4;
  flex: none;
  min-height: auto;
  border: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.founder-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: .9;
}
.founder-profile {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  margin-top: 0;
  flex-shrink: 0;
  align-self: center;
}

/* ── AIO Pain: light with card thumbnails ── */
.aio-pain { background: #fff; }
.pain-card {
  border-top: none;
  border-left: 3px solid var(--primary);
  padding: 0;
  overflow: hidden;
}
.pain-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.pain-card-body { padding: 24px 28px 28px; }

/* ── AIO Services: icon-based cards ── */
.aio-svc-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-top: none;
  border-left: 3px solid var(--primary);
  padding: 32px 28px;
}
.aio-svc-card::before { display: none; }
.aio-svc-card-body { padding: 0; }
.aio-services-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15,27,53,.06);
  border: 1px solid rgba(15,27,53,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.aio-services-icon svg {
  width: 22px;
  height: 22px;
}
.aio-svc-title { color: var(--text) !important; }

/* ── CF what-circles: horizontal 3-col ── */
.cf-what-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-direction: unset;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.cf-circle {
  display: flex;
  flex-direction: column;
  border-bottom: none;
  border-right: 1px solid var(--border);
}
.cf-circle:last-child { border-right: none; }
.cf-circle-ring {
  border-right: none;
  border-bottom: 1px solid var(--border);
  padding: clamp(24px,3vw,40px);
}
.cf-circle p {
  padding: clamp(20px,2.5vw,32px);
}

/* ── CF Voice: 4-card 2×2 grid (light) ── */
.cf-voice {
  background: #f9f7f4;
  padding: clamp(64px,9vw,120px) 0;
}
.cf-voice-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}

.cf-voice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  padding: clamp(28px,4vw,44px) clamp(24px,3.5vw,40px);
  display: flex;
  flex-direction: column;
  margin: 0;
}
.cf-voice-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cf-voice-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--base-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--text-m);
}
.cf-voice-avatar svg { width: 28px; height: 28px; }
.cf-voice-tag {
  display: inline-block;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(191,31,40,.3);
  padding: 4px 12px;
  align-self: flex-start;
}
.cf-voice-text {
  font-size: clamp(.86rem, 1.1vw, .92rem);
  color: var(--text-m);
  line-height: 2;
  flex: 1;
  margin-bottom: 20px;
}
.cf-voice-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.cf-voice-from {
  font-style: normal;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
}
.cf-voice-attr {
  font-size: .72rem;
  color: var(--text-m);
  letter-spacing: .06em;
  line-height: 1.6;
}

/* ── Company: brand statement section ── */
.company-statement {
  background: var(--primary);
  overflow: hidden;
  position: relative;
}
.company-statement-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.company-statement-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .08;
  display: block;
}
.company-statement-inner {
  position: relative;
  z-index: 1;
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(40px,5.5vw,72px) clamp(20px,5vw,60px);
  text-align: center;
}
.company-statement-kanji {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 200;
  color: rgba(255,255,255,.04);
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: clamp(20px,3vw,36px);
  display: block;
}
.company-statement-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  font-weight: 200;
  color: var(--text-i);
  line-height: 1.65;
  letter-spacing: .08em;
  max-width: 700px;
  margin: 0 auto 28px;
}
.company-statement-lead {
  font-size: .9rem;
  color: rgba(232,232,242,.45);
  letter-spacing: .1em;
  line-height: 2;
}

/* ── About company table: refined ── */
.about-company-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,60px);
}
.about-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}
.about-table tr {
  border-bottom: 1px solid var(--border);
}
.about-table th {
  width: clamp(100px,18%,160px);
  padding: 20px 24px 20px 0;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--text-m);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.about-table td {
  padding: 20px 0 20px 24px;
  font-size: .92rem;
  color: var(--text);
  line-height: 1.8;
  border-left: 1px solid var(--border);
}

/* ── Contact: split layout ── */

.contact-split-form {
  padding: clamp(48px,7vw,96px) clamp(32px,5vw,72px);
  overflow-y: auto;
}
.contact-full {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 clamp(20px,5vw,60px);
}
.contact-split-form--full {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) 0;
  overflow-y: visible;
}

/* ============================================================
   HOME REDESIGN — Japandi Editorial
   ============================================================ */

/* ── Services: full-width editorial split ── */
.home-services { background: var(--base); }
.home-services-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: clamp(64px,9vw,120px) clamp(20px,5vw,60px) 0;
}

.svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.svc-item {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 420px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.svc-item:last-child { border-bottom: none; }
.svc-item--rev { grid-template-columns: 45fr 55fr; }
.svc-item--rev .svc-item-media { order: 2; }
.svc-item--rev .svc-item-body  { order: 1; }

.svc-item-media {
  position: relative;
  overflow: hidden;
}
.svc-item-media img {
  width: 100%;
  height: 100%;
  display: block;
}

.svc-item-body {
  padding: clamp(36px,5vw,64px) clamp(28px,4.5vw,60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  background: var(--base);
  border-left: 1px solid var(--border);
}
.svc-item--rev .svc-item-body { border-left: none; border-right: 1px solid var(--border); }
.svc-item-title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: .04em;
  line-height: 1.45;
}
.svc-item-text {
  font-size: .88rem;
  color: var(--text-m);
  line-height: 2;
}
.svc-item { position: relative; }
.svc-item:hover .svc-item-media img { transform: scale(1.03); }
.svc-item-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 9px 18px;
  align-self: flex-start;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  margin-top: 4px;
}
.svc-item-link:hover { background: var(--primary); border-color: var(--primary); color: var(--text-i); }
.svc-item-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ── Why EchoCrafts: numbered rows (Japandi minimal) ── */
.why-steps {
  list-style: none;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}
.why-step {
  display: grid;
  grid-template-columns: clamp(64px,8vw,100px) 1fr;
  gap: 0 clamp(24px,4vw,52px);
  padding: clamp(28px,4vw,48px) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.why-step-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 200;
  color: var(--red);
  opacity: .4;
  letter-spacing: -.02em;
  line-height: 1;
  padding-top: 6px;
}
.why-step-title {
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .07em;
  margin-bottom: 14px;
  line-height: 1.4;
}
.why-step-text {
  font-size: .86rem;
  color: var(--text-m);
  line-height: 2;
  max-width: 520px;
}

/* ── Home voices: refined open layout ── */

/* ── AIO/SEO: Vertical timeline flow ── */
.aio-timeline {
  list-style: none;
  max-width: 720px;
  margin: 56px auto 0;
}
.aio-tl-step {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0 28px;
}
.aio-tl-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.aio-tl-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.aio-tl-connector {
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: linear-gradient(to bottom, rgba(191,31,40,.5), rgba(191,31,40,.06));
  margin: 6px 0 0;
}
.aio-tl-step:last-child .aio-tl-connector { display: none; }
.aio-tl-body {
  padding-top: 12px;
  padding-bottom: clamp(28px,4vw,48px);
}
.aio-tl-step:last-child .aio-tl-body { padding-bottom: 0; }
.aio-tl-title {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  margin-bottom: 10px;
  line-height: 1.4;
}
.aio-tl-text {
  font-size: .86rem;
  color: var(--text-m);
  line-height: 2;
}

/* ── FAQ: full content width ── */
.faq-list { max-width: 100%; }

/* ── Section background image (depth layer) ── */
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .05;
}
.section-bg--04 img { opacity: .04; }
.section-bg--06 img { opacity: .06; }

/* ── Depth: section bg stacking ── */
.home-voice,
.cf-results,
.cf-flow,
.cf-voice,
.aio-positioning,
.aio-services,
.aio-flow,
.faq-section {
  position: relative;
  overflow: hidden;
}
.home-voice .home-voice-inner,
.cf-results .cf-results-inner,
.cf-flow .cf-flow-inner,
.cf-voice .cf-voice-inner,
.aio-positioning .aio-positioning-inner,
.aio-services .aio-services-inner,
.aio-flow .aio-flow-inner,
.faq-section .faq-section-inner {
  position: relative;
  z-index: 1;
}

/* ── Home voice: 2-column grid (not horizontal scroll) ── */
.home-voice .voice-scroller {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-x: visible;
  scroll-snap-type: none;
  gap: 24px;
  padding-bottom: 0;
}
.home-voice .voice-scroller .cf-voice-card {
  flex: none;
  width: auto;
}

/* ── CF voice scroller: arrow navigation ── */
.voice-scroller-wrap { position: relative; }
.voice-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.voice-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--base);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  flex-shrink: 0;
}
.voice-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-i);
}
.voice-nav-btn svg { pointer-events: none; }

/* ── Contact page: dark hero ── */
.page-hero--dark {
  background: var(--primary);
}
.page-hero--dark .page-hero-title { color: var(--text-i); }
.page-hero--dark .page-hero-lead { color: rgba(232,232,242,.55); }
.page-hero--dark .breadcrumb li { color: rgba(232,232,242,.3); }
.page-hero--dark .breadcrumb a { color: rgba(232,232,242,.35); }
.page-hero--dark .breadcrumb a:hover { color: rgba(232,232,242,.7); }
.page-hero--dark .breadcrumb li[aria-current="page"] { color: rgba(232,232,242,.6); }
.page-hero--dark::after {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 44px,
    rgba(255,255,255,.02) 44px,
    rgba(255,255,255,.02) 45px
  );
}

/* ============================================================
   Responsive — pages.css
   ============================================================ */

/* Tablet landscape ≤1024px */
@media (max-width: 1024px) {

  .home-cases-grid { grid-template-columns: repeat(2, 1fr); }

  .founder-photo { grid-template-columns: 200px 1fr; }
  .aio-services-top-grid { grid-template-columns: repeat(3, 1fr); }
  .aio-services-bot-grid { grid-template-columns: repeat(2, 1fr); }
  .aio-pain-grid { grid-template-columns: repeat(3, 1fr); }

  /* editorial services */
  .svc-item { grid-template-columns: 1fr 1fr; min-height: 360px; }
  .svc-item--rev { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait ≤768px */
@media (max-width: 768px) {

  .contact-split-form { padding: clamp(32px,5vw,48px) clamp(20px,5vw,40px); }

  .home-cases-grid { grid-template-columns: 1fr; }

  .home-why .why-steps { grid-template-columns: 1fr; }
  .home-why .why-step { border-right: none; border-bottom: 1px solid var(--border); }
  .home-why .why-step:last-child { border-bottom: none; }
  .voice-scroller .cf-voice-card { flex: 0 0 clamp(280px, 82vw, 400px); }

  .founder-photo { grid-template-columns: 1fr; }
  .founder-photo-img { aspect-ratio: 16/9; }
  .home-voice .voice-scroller { grid-template-columns: 1fr; }
  .aio-pain-grid { grid-template-columns: 1fr; }
  .aio-services-top-grid { grid-template-columns: 1fr; }
  .aio-services-bot-grid { grid-template-columns: 1fr; }

  .page-cta-inner { grid-template-columns: 1fr; }
  .page-cta-btns { grid-column: 1; grid-row: auto; flex-direction: column; align-items: flex-start; margin-top: 32px; }
  .page-cta-lead { margin-bottom: 0; }
  .btn-cta-primary { width: 100%; max-width: 340px; justify-content: center; }
  .hero-cta { flex-direction: column; }
  .btn-hero-primary { width: 100%; max-width: 340px; justify-content: center; }
  /* editorial services */
  .svc-item,
  .svc-item--rev { grid-template-columns: 1fr; grid-template-rows: 260px auto; }
  .svc-item--rev .svc-item-media { order: 0; }
  .svc-item--rev .svc-item-body  { order: 0; border-right: none; border-left: none; border-top: 1px solid var(--border); }
  .svc-item-body { border-left: none; border-top: 1px solid var(--border); }
  /* cf what circles */
  .cf-what-circles { grid-template-columns: 1fr; }
  .cf-circle { border-right: none; border-bottom: 1px solid var(--border); }
  .cf-circle:last-child { border-bottom: none; }
  /* why steps */
  .why-step { grid-template-columns: 56px 1fr; gap: 0 16px; }
  /* home voice */

  /* aio timeline */
  .aio-timeline { margin: 40px 0 0; }
  .aio-tl-step { grid-template-columns: 56px 1fr; gap: 0 20px; }
  .aio-tl-dot { width: 44px; height: 44px; }
}

/* Smartphone ≤480px */
@media (max-width: 480px) {
  .page-hero-bg img { object-position: center 30%; }
  .page-hero-bg::after {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      #eeeff2 80%
    );
  }
  .page-hero--dark .page-hero-bg::after {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      var(--primary) 80%
    );
  }
  .page-hero-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .home-cases-grid { grid-template-columns: 1fr; }

  .svc-item { grid-template-rows: 200px auto; }
  .why-step { grid-template-columns: 48px 1fr; gap: 0 12px; }
}
