/* =============================================
   SUB PAGE — shared layout for service / org pages
   (human-orchestration, jibun-quest, acsc, haiia,
    digitechquest, /haiia/book)
   ============================================= */

/* ---- HERO ---- */
.sub-hero {
  background: var(--navy-deep);
  color: white;
  padding: 140px clamp(24px, 6vw, 80px) clamp(64px, 9vw, 110px);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(217,163,75,0.10), transparent 65%);
  pointer-events: none;
}
.sub-hero .sub-label {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
  position: relative;
}
.sub-hero h1 {
  font-family: var(--font-display-jp);
  font-size: clamp(34px, 5.8vw, 64px);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
  line-height: 1.3;
  margin-bottom: 18px;
  position: relative;
}
html[lang="en"] .sub-hero h1 {
  font-family: var(--font-display-en);
  font-style: italic;
  font-weight: 500;
}
.sub-hero .sub-tagline {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--gold-bright);
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}

/* ---- SECTION ---- */
.sub-section {
  padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 80px);
  max-width: 960px;
  margin: 0 auto;
}
.sub-section + .sub-section {
  padding-top: 0;
}
.sub-section .section-label {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
  font-weight: 600;
}
.sub-section h2 {
  font-family: var(--font-display-jp);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  line-height: 1.45;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
html[lang="en"] .sub-section h2 {
  font-family: var(--font-display-en);
  font-style: italic;
  font-weight: 500;
}
.sub-section h3 {
  font-family: var(--font-display-jp);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.sub-section p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--ink-soft);
  line-height: 2.0;
  margin-bottom: 1.4em;
}
.sub-section p:last-child { margin-bottom: 0; }
.sub-section strong { color: var(--navy-deep); font-weight: 700; }
.sub-section em { color: var(--ink); font-style: italic; }

.sub-section .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2.0;
  color: var(--ink);
  margin-bottom: 1.6em;
}

.sub-section--tint {
  background: var(--bg-subtle);
  max-width: none;
  padding-left: clamp(24px, 6vw, 80px);
  padding-right: clamp(24px, 6vw, 80px);
}
.sub-section--tint > .inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ---- CARDS / PHASE LIST ---- */
.phase-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
  margin-top: clamp(20px, 3vw, 32px);
}
@media (max-width: 720px) {
  .phase-list { grid-template-columns: 1fr; }
}
.phase-card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase-card .phase-num {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.1vw, 12px);
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}
.phase-card h3 {
  margin: 0;
  font-size: clamp(17px, 1.9vw, 22px);
}
.phase-card p {
  margin: 0;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ---- INFO LIST (bullets) ---- */
.sub-section ul.info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sub-section ul.info-list li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.9;
  color: var(--ink-soft);
}
.sub-section ul.info-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 12px; height: 1px;
  background: var(--gold);
}
.sub-section ul.info-list li strong {
  color: var(--navy-deep);
  font-weight: 700;
}

/* ---- PYRAMID (HAiiA 3 layers) ---- */
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: clamp(24px, 3.5vw, 40px) 0;
}
.pyramid-row {
  background: white;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 36px);
  width: 100%;
  max-width: 720px;
}
.pyramid-row .pr-tier {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.1vw, 12px);
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pyramid-row h3 {
  font-size: clamp(17px, 1.9vw, 22px);
  margin-bottom: 6px;
}
.pyramid-row p {
  font-size: clamp(13px, 1.3vw, 15px);
  margin-bottom: 0;
  line-height: 1.9;
}
.pyramid-row.top { max-width: 540px; }
.pyramid-row.mid { max-width: 640px; }
.pyramid-row.bottom { max-width: 740px; }

/* ---- NOTE BOX ---- */
.note-box {
  margin-top: clamp(24px, 3.5vw, 40px);
  padding: clamp(20px, 2.6vw, 28px) clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-dim);
  background: var(--bg-card);
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.9;
  color: var(--ink-soft);
}
.note-box strong { color: var(--navy-deep); }

/* ---- LINK ROW ---- */
.sub-section a.inline {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,163,75,0.4);
  transition: color 0.2s, border-color 0.2s;
}
.sub-section a.inline:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ---- CTA ROW ---- */
.sub-cta {
  background: var(--navy-darker);
  color: white;
  padding: clamp(70px, 10vw, 120px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.sub-cta h2 {
  font-family: var(--font-display-jp);
  font-size: clamp(22px, 3.4vw, 36px);
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
  line-height: 1.5;
}
.sub-cta p {
  color: rgba(255,255,255,0.7);
  font-size: clamp(14px, 1.4vw, 16px);
  margin-bottom: clamp(24px, 4vw, 36px);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}
.sub-cta .cta-btn {
  display: inline-block;
  font-family: var(--font-display-en);
  font-size: clamp(13px, 1.3vw, 14px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  padding: clamp(16px, 2.2vw, 22px) clamp(32px, 5vw, 50px);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.sub-cta .cta-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217,163,75,0.25);
}
.sub-cta .cta-btn + .cta-btn {
  margin-left: 12px;
}
.sub-cta .cta-btn.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.sub-cta .cta-btn.secondary:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ---- THINKING ARTICLE PAGE (stub) ---- */
.t-article-hero {
  background: var(--navy-deep);
  color: white;
  padding: 140px clamp(24px, 6vw, 80px) clamp(56px, 8vw, 96px);
  text-align: center;
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
.t-article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(217,163,75,0.10), transparent 65%);
  pointer-events: none;
}
.t-article-hero .t-label {
  font-family: var(--font-display-en);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 600;
  position: relative;
}
.t-article-hero h1 {
  font-family: var(--font-display-jp);
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: white;
  line-height: 1.45;
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.t-article-hero .t-subtitle {
  margin-top: 16px;
  font-family: var(--font-display-en);
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  font-style: italic;
  position: relative;
}

.t-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) clamp(24px, 6vw, 60px);
}
.t-article-body p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2.0;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}
.t-article-body strong { color: var(--navy-deep); font-weight: 700; }
.t-article-body em { color: var(--ink); font-style: italic; }

.t-article-wip {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3vw, 36px);
  border: 1px dashed var(--gold-dim);
  background: var(--bg-subtle);
  text-align: center;
  font-size: clamp(13px, 1.3vw, 15px);
  color: var(--ink-soft);
  line-height: 1.9;
}
.t-article-wip strong { color: var(--gold-dim); }

.t-article-back {
  display: block;
  width: max-content;
  margin: 0 auto clamp(40px, 6vw, 60px);
  font-family: var(--font-display-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(217,163,75,0.4);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.t-article-back:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* /thinking grid: writing-now state */
.t-card.writing {
  background: white;
  border-style: solid;
  border-color: var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.t-card.writing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-dim);
}
.t-card.writing:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(30,58,95,0.08);
  border-color: var(--gold-dim);
}
.t-card.writing .t-status { color: var(--gold-dim); }
.t-card.writing h3 { color: var(--navy-deep); }
.t-card.writing .t-arrow {
  display: inline-block;
  color: var(--gold-dim);
}

/* =============================================
   Human Orchestration — 4-phase grid (Design / Launch / Empower / Accompany)
   ============================================= */
.ho-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  max-width: 820px;
  margin: clamp(20px, 3vw, 32px) auto clamp(40px, 5vw, 60px);
  padding: 0 clamp(20px, 4vw, 30px);
}
@media (max-width: 640px) {
  .ho-phase-grid { grid-template-columns: 1fr; }
}
.ho-phase-card {
  background: white;
  border: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 32px);
  position: relative;
}
.ho-phase-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  opacity: 0.85;
}
.ho-phase-num {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}
.ho-phase-card h3 {
  font-family: var(--font-display-jp);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.ho-phase-card p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
}


/* =============================================
   DigitechQuest — first-view YouTube embed
   ============================================= */
.dq-video-section {
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 60px) clamp(40px, 5vw, 70px);
}
.dq-video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(30, 58, 95, 0.12);
  overflow: hidden;
}
.dq-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.dq-video-caption {
  max-width: 960px;
  margin: clamp(12px, 1.5vw, 18px) auto 0;
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

/* Fallback for browsers without aspect-ratio (mostly older Safari) */
@supports not (aspect-ratio: 16 / 9) {
  .dq-video-wrap { padding-top: 56.25%; height: 0; }
}

/* =============================================
   DigitechQuest — Past Editions cards
   ============================================= */
.dq-past-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: clamp(28px, 4vw, 40px);
}
@media (max-width: 760px) {
  .dq-past-grid { grid-template-columns: 1fr; }
}
.dq-past-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
}
.dq-past-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--gold);
  opacity: 0.85;
}
.dq-past-tag {
  font-family: var(--font-display-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.dq-past-card h3 {
  font-family: var(--font-display-en);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 4px;
}
.dq-past-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(8px, 1vw, 12px);
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.7;
  color: var(--ink-soft);
}
.dq-past-card ul li {
  padding-left: 14px;
  position: relative;
}
.dq-past-card ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-dim);
}
.dq-past-card ul li strong { color: var(--navy-deep); }
.dq-past-link {
  align-self: flex-start;
  margin-top: clamp(10px, 1.5vw, 18px);
  font-family: var(--font-display-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  font-weight: 600;
  transition: color 0.3s, border-color 0.3s;
}
.dq-past-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.dq-past-note {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(12px, 1.3vw, 14px);
  line-height: 1.95;
  color: var(--ink-muted);
  max-width: 820px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
