/* ===========================================================
   Deep Out — Service Page
   Brand system per DeepOut_ブランドガイド
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Antique+B1&family=Zen+Kaku+Gothic+Antique:wght@400;500;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
  /* Brand colors */
  --blue:      #19274F;
  --blue-deep: #131f3f;
  --gold:      #B49233;
  --cta:       #D9A313;
  --black:     #101111;
  --turquoise: #56C0CE;
  --white:     #F3F2EC;

  /* Tints derived from base palette */
  --cream-2:   #ece9df;   /* slightly deeper cream for panels */
  --cream-line:#ddd8c9;   /* hairlines on cream */
  --ink-60:    rgba(16,17,17,.62);
  --ink-45:    rgba(16,17,17,.45);
  --paper-on-blue: rgba(243,242,236,.74);
  --line-on-blue:  rgba(243,242,236,.16);

  /* Type */
  --jp-head: "Shippori Antique B1", serif;
  --jp-body: "Zen Kaku Gothic Antique", sans-serif;
  --en-head: "Libre Baskerville", serif;
  --en-body: "Source Sans 3", sans-serif;

  --maxw: 1180px;
  --gut: clamp(22px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--jp-body);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .01em;
}

img { max-width: 100%; display: block; }

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

section { position: relative; }

.section-pad   { padding-block: clamp(80px, 11vw, 150px); }
.section-pad-s { padding-block: clamp(60px, 8vw, 104px); }

.eyebrow {
  font-family: var(--en-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--gold);
}
.eyebrow.on-blue { color: var(--gold); }

/* Section headline — Japanese mincho-antique */
h1, h2, h3 { font-weight: 400; letter-spacing: .015em; }

.h-sec {
  font-family: var(--jp-head);
  font-size: clamp(28px, 4.1vw, 50px);
  line-height: 1.34;
  margin: 0;
  color: var(--blue);
  text-wrap: balance;
}
.h-sec .em { color: var(--gold); }

.lead {
  font-size: clamp(15.5px, 1.45vw, 18px);
  line-height: 2.05;
  color: var(--ink-60);
  max-width: 120ch;
  margin: 26px 0 0;
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,242,236,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand-lock { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-logo {
  height: 32px; width: auto; display: block; flex: none;
}
.brand-text { line-height: 1.12; }
.brand-text .jp-name {
  font-family: var(--jp-body); font-weight: 700;
  font-size: 17px; color: var(--blue); letter-spacing: .04em;
}
.brand-text .en-sub {
  font-family: var(--en-head); font-size: 10.5px;
  color: var(--gold); letter-spacing: .14em; margin-top: 3px; display: block;
}
/* dark header variant (on navy hero pages) */
.site-header.on-dark { background: rgba(19,31,63,.82); border-bottom-color: var(--line-on-blue); }
.site-header.on-dark .brand-text .jp-name { color: var(--white); }
.site-header.on-dark .nav a { color: var(--white); }
.site-header.on-dark .nav .nav-cta { background: var(--cta); color: var(--blue); }
.site-header.on-dark .nav .nav-cta:hover { background: #c79212; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav a {
  font-family: var(--jp-body); font-size: 14px; font-weight: 700;
  color: var(--blue); text-decoration: none; letter-spacing: .04em;
  opacity: .8; transition: opacity .2s;
}
.nav a:hover { opacity: 1; }
.nav .nav-cta {
  font-family: var(--jp-body); font-weight: 500;
  background: var(--blue); color: var(--white);
  padding: 10px 20px; border-radius: 999px; opacity: 1;
  font-size: 13.5px; letter-spacing: .05em;
  transition: background .2s, transform .2s;
}
.nav .nav-cta:hover { background: var(--blue-deep); transform: translateY(-1px); }
.nav .nav-link { display: none; }
@media (min-width: 880px) { .nav .nav-link { display: inline; } }

/* ===========================================================
   HERO  (Section 1 intro)
   =========================================================== */
.hero { padding-block: clamp(72px, 9vw, 132px) clamp(60px, 8vw, 110px); overflow: hidden; }
.hero .kicker {
  font-family: var(--en-head); font-style: italic;
  color: var(--gold); font-size: clamp(15px,1.6vw,19px);
  margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--jp-head);
  font-size: clamp(33px, 5.6vw, 76px);
  line-height: 1.28;
  color: var(--blue);
  margin: 0;
  letter-spacing: .005em;
  text-wrap: balance;
}
.hero h1 .q { color: var(--gold); }
.hero .sub {
  font-size: clamp(16px, 1.7vw, 20px);
  color: var(--ink-60);
  margin: 34px 0 0;
  max-width: 100ch;
  line-height: 2;
}
.hero-scroll {
  margin-top: clamp(48px, 7vw, 86px);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--en-body); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-45);
}
.hero-scroll .bar { width: 54px; height: 1px; background: var(--ink-45); position: relative; overflow: hidden; }
.hero-scroll .bar::after {
  content:""; position:absolute; inset:0; width:40%; background: var(--gold);
  animation: slide 2.6s ease-in-out infinite;
}
@keyframes slide { 0%{transform:translateX(-110%)} 60%,100%{transform:translateX(290%)} }

/* ---------- Argument block (Section 1 body) ---------- */
.argument { background: var(--cream-2); }
.arg-flow {
  display: flex; flex-direction: column; gap: 30px;
}
.arg-point { position: relative; padding-left: 30px; }
.arg-point::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 9px; height: 9px; background: var(--gold); border-radius: 2px;
  transform: rotate(45deg);
}
.arg-point p { margin: 0; font-size: 16px; line-height: 1.95; color: var(--black); }
.arg-point .big {
  font-family: var(--jp-head); color: var(--blue);
  font-size: clamp(19px, 2.2vw, 25px); line-height: 1.6; margin-bottom: 4px;
}

.arg-body { margin-top: 10px; position: relative; padding-left: 30px; }
.arg-body::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold); opacity: .4;
}
.arg-body p { font-size: 16px; line-height: 2.05; color: var(--ink-60); margin: 0 0 20px; }
.arg-body p:last-child { margin-bottom: 0; }
.arg-body strong { color: var(--black); font-weight: 700; }

/* Philosophy pull-quote */
.creed {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--blue);
  color: var(--white);
  border-radius: 4px;
  padding: clamp(40px, 5vw, 68px) clamp(30px, 5vw, 76px);
  position: relative;
  overflow: hidden;
}
.creed::before {
  content: "“";
  position: absolute; top: -26px; left: 26px;
  font-family: var(--en-head); font-size: 180px; color: var(--gold);
  opacity: .22; line-height: 1;
}
.creed .label {
  font-family: var(--en-body); font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 22px;
}
.creed p {
  font-family: var(--jp-head);
  font-size: clamp(20px, 2.6vw, 31px);
  line-height: 1.78; margin: 0; position: relative; text-wrap: balance;
}
.creed p .u { color: var(--turquoise); }
.creed .sign {
  margin-top: 28px; font-family: var(--jp-body); font-size: 14.5px;
  color: var(--paper-on-blue); letter-spacing: .03em;
}

/* ===========================================================
   SECTION 2 — 4 phases
   =========================================================== */
.phases .head-row {
  margin-bottom: clamp(50px, 6vw, 78px);
}

.phase-track {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
  counter-reset: ph;
}
@media (min-width: 760px){ .phase-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .phase-track { grid-template-columns: repeat(5, 1fr); gap: 14px; } }

.phase {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 6px;
  padding: 30px 26px 32px;
  position: relative;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.phase:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(25,39,79,.4); border-color: var(--gold); }
.phase .pnum {
  font-family: var(--en-head); font-size: 13px; letter-spacing: .2em;
  color: var(--gold); margin-bottom: 18px; display: flex; align-items: center; gap: 10px;
}
.phase .pnum b { font-weight: 700; }
.phase .pnum::after { content:""; flex:1; height:1px; background: var(--cream-line); }
.phase h3 {
  font-family: var(--jp-head); color: var(--blue);
  font-size: 19px; line-height: 1.5; margin: 0 0 14px;
}
.phase .pdesc { font-size: 14px; line-height: 1.85; color: var(--ink-60); margin: 0 0 20px; }
.phase ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.phase li {
  font-size: 13px; line-height: 1.6; color: var(--black);
  padding-left: 18px; position: relative;
}
.phase li::before {
  content:""; position:absolute; left:0; top: 8px;
  width: 6px; height: 6px; border: 1.5px solid var(--gold); border-radius: 50%;
}
.phase-note {
  margin-top: clamp(34px, 4vw, 50px);
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 15px; line-height: 1.9; color: var(--ink-60);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
  max-width: 78ch;
}
.phase-note .tag {
  font-family: var(--en-body); font-weight: 600; font-size: 12px; letter-spacing: .16em;
  color: var(--gold); text-transform: uppercase; white-space: nowrap; padding-top: 4px;
}

/* ===========================================================
   SECTION 3 — features (navy)
   =========================================================== */
.features { background: var(--blue); color: var(--white); overflow: hidden; }
.features .h-sec { color: var(--white); }
.features .h-sec .em { color: var(--gold); }
.features .lead { color: var(--paper-on-blue); }
.features .eyebrow { color: var(--gold); }

.feat-grid {
  margin-top: clamp(50px, 6vw, 80px);
  display: grid; gap: 1px;
  background: var(--line-on-blue);
  border: 1px solid var(--line-on-blue);
  border-radius: 8px; overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 940px){ .feat-grid { grid-template-columns: repeat(3, 1fr); } }

.feat {
  background: var(--blue);
  padding: clamp(30px, 3.4vw, 46px) clamp(26px, 2.8vw, 40px);
  display: flex; flex-direction: column;
  transition: background .25s;
}
.feat:hover { background: var(--blue-deep); }
.feat .fno {
  font-family: var(--en-head); font-style: italic;
  color: var(--gold); font-size: 15px; margin-bottom: 22px;
}
.feat .ftag {
  display: inline-block; font-family: var(--en-body); font-weight: 600;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--turquoise); margin-bottom: 14px;
}
.feat h3 {
  font-family: var(--jp-head); color: var(--white);
  font-size: 21px; line-height: 1.5; margin: 0 0 16px;
}
.feat p { font-size: 14px; line-height: 1.92; color: var(--paper-on-blue); margin: 0; }
.feat .flink {
  margin-top: 22px; font-family: var(--jp-body); font-size: 13.5px;
  color: var(--gold); text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
}
.feat .flink::after { content: "↗"; font-family: var(--en-body); }
.feat .flink:hover { text-decoration: underline; }

/* ACMM mini diagram */
.acmm {
  margin-top: 26px; display: flex; align-items: flex-end; gap: 7px; height: 92px;
}
.acmm .step {
  flex: 1; background: linear-gradient(180deg, rgba(86,192,206,.32), rgba(86,192,206,.07));
  border: 1px solid var(--line-on-blue); border-bottom: none;
  border-radius: 4px 4px 0 0; position: relative;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 7px;
}
.acmm .step span { font-family: var(--en-head); font-size: 11px; color: var(--turquoise); }
.acmm .step:nth-child(1){ height: 30%; }
.acmm .step:nth-child(2){ height: 48%; }
.acmm .step:nth-child(3){ height: 66%; }
.acmm .step:nth-child(4){ height: 84%; }
.acmm .step:nth-child(5){ height: 100%; background: linear-gradient(180deg, rgba(217,163,19,.5), rgba(217,163,19,.12)); }
.acmm .step:nth-child(5) span { color: var(--gold); }
.acmm-axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--jp-body); font-size: 11px; color: var(--paper-on-blue);
}

/* ===========================================================
   SECTION 4 — trainings
   =========================================================== */
.trainings .steps-flow {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  margin: 24px 0 clamp(46px,5vw,66px);
  font-family: var(--jp-head); color: var(--blue);
  font-size: clamp(17px, 2vw, 22px);
}
.trainings .steps-flow .sp { color: var(--gold); }
.trainings .steps-flow .arw { color: var(--cream-line); font-family: var(--en-body); }

.train-grid {
  display: grid; gap: 20px; grid-template-columns: 1fr;
}
@media (min-width: 680px){ .train-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px){ .train-grid { grid-template-columns: repeat(4,1fr); } }

.train {
  background: var(--white); border: 1px solid var(--cream-line);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.train:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(25,39,79,.45); }
.train .train-top {
  background: var(--blue); color: var(--white);
  padding: 22px 24px 20px; position: relative;
  min-height: 140px;
}
.train:nth-child(2) .train-top { background: #1d2e5c; }
.train:nth-child(3) .train-top { background: #233566; }
.train:nth-child(4) .train-top { background: #2a3d70; }
.train .tstep {
  font-family: var(--jp-head); color: var(--gold); font-size: 15px;
  letter-spacing: .14em; margin-bottom: 8px;
}
.train .tname { font-family: var(--jp-head); font-size: 19px; line-height: 1.4; }
.train .tno {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--en-head); font-style: italic; font-size: 26px;
  color: rgba(217,163,19,.5);
}
.train .train-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.train .train-body p { font-size: 13.5px; line-height: 1.85; color: var(--ink-60); margin: 0 0 20px; }
.train .meta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cream-line); padding-top: 16px; }
.train .meta div { display: flex; gap: 10px; font-size: 12.5px; }
.train .meta dt { color: var(--ink-45); font-family: var(--en-body); font-weight: 600; letter-spacing: .04em; min-width: 56px; }
.train .meta dd { margin: 0; color: var(--black); }

/* ===========================================================
   SECTION 5 — cases
   =========================================================== */
.cases { background: var(--cream-2); }
.case-table {
  margin-top: clamp(40px,5vw,60px);
  border: 1px solid var(--cream-line); border-radius: 8px; overflow: hidden;
  background: var(--white);
}
.case-row {
  display: grid; grid-template-columns: 1.1fr .9fr 1fr 2fr;
  border-bottom: 1px solid var(--cream-line);
}
.case-row:last-child { border-bottom: none; }
.case-row.is-head {
  background: var(--blue); color: var(--white);
}
.case-row.is-head .cell {
  font-family: var(--en-body); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.cell { padding: 20px 22px; font-size: 14px; line-height: 1.7; border-right: 1px solid var(--cream-line); }
.cell:last-child { border-right: none; }
.case-row.is-head .cell { border-right-color: var(--line-on-blue); }
.cell .ind { font-family: var(--jp-head); color: var(--blue); font-size: 16px; }
.cell .ph { color: var(--ink-45); }
.cases .foot-note {
  margin-top: 20px; font-size: 13px; color: var(--ink-45);
  display: flex; align-items: center; gap: 10px;
}
.cases .foot-note::before { content:""; width:6px; height:6px; background: var(--turquoise); border-radius:50%; }
@media (max-width: 720px){
  .case-row { grid-template-columns: 1fr 1fr; }
  .case-row.is-head { display: none; }
  .cell { border-right: none; border-bottom: 1px solid var(--cream-line); }
  .cell::before { content: attr(data-label); display:block; font-size:11px; letter-spacing:.1em; color: var(--gold); text-transform: uppercase; margin-bottom: 4px; font-family: var(--en-body); font-weight:600; }
}

/* ===========================================================
   SECTION 6 — CTA (navy, card-like)
   =========================================================== */
.cta { background: var(--blue); color: var(--white); text-align: center; overflow: hidden; }
.cta .creed-line {
  font-family: var(--jp-head); color: var(--gold);
  font-size: clamp(24px, 3.6vw, 44px); margin: 0 0 8px; letter-spacing: .04em;
}
.cta .h-sec { color: var(--white); margin-top: clamp(34px,4vw,48px); }
.cta .lead { color: var(--paper-on-blue); margin-inline: auto; text-align: center; }
.cta .hr-gold { width: 64px; height: 2px; background: var(--gold); margin: 0 auto; }
.cta-actions { margin-top: clamp(34px,4vw,46px); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.btn-mail {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cta); color: var(--blue);
  font-family: var(--jp-body); font-weight: 700; font-size: 16px;
  padding: 17px 38px; border-radius: 999px; text-decoration: none;
  letter-spacing: .03em;
  box-shadow: 0 14px 34px -12px rgba(217,163,19,.6);
  transition: transform .2s, box-shadow .2s;
}
.btn-mail:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -12px rgba(217,163,19,.7); }
.btn-mail .addr { font-family: var(--en-body); font-weight: 600; }
.cta .free {
  font-size: 13.5px; color: var(--paper-on-blue); letter-spacing: .03em;
}
.cta .free b { color: var(--turquoise); font-weight: 600; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--blue-deep); color: var(--paper-on-blue); }
.site-footer .wrap { padding-block: clamp(44px, 5vw, 64px); }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-brand .en { font-family: var(--en-head); font-weight: 700; font-size: 22px; color: var(--gold); }
.foot-brand .tag { font-family: var(--jp-body); font-size: 13px; color: var(--paper-on-blue); margin-top: 10px; max-width: 30ch; line-height: 1.8; }
.foot-col h4 { font-family: var(--en-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--turquoise); margin: 0 0 16px; font-weight: 600; }
.foot-col a, .foot-col p { display: block; color: var(--paper-on-blue); text-decoration: none; font-size: 13.5px; margin: 0 0 10px; line-height: 1.7; }
.foot-col a:hover { color: var(--white); }
.foot-bottom {
  border-top: 1px solid var(--line-on-blue); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: rgba(243,242,236,.5);
}
.foot-bottom .en { font-family: var(--en-body); letter-spacing: .04em; }

/* ===========================================================
   HOME — hero
   =========================================================== */
.home-hero {
  background: var(--blue); color: var(--white);
  position: relative; overflow: hidden;
  padding-block: clamp(120px, 17vh, 220px) clamp(96px, 14vh, 170px);
}
/* faint oversized brand glyph watermark */
.home-hero .glyph {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  width: clamp(340px, 44vw, 680px); height: auto; opacity: .07;
  pointer-events: none; user-select: none;
}
.home-hero .wrap { position: relative; z-index: 2; }
.home-hero .eyebrow { color: var(--gold); }
.home-hero h1 {
  font-family: var(--jp-head);
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.22; color: var(--gold); margin: 0;
  letter-spacing: .02em; text-wrap: balance;
}
.home-hero .sub {
  font-size: clamp(15.5px, 1.7vw, 19px); line-height: 2.05;
  color: var(--paper-on-blue); margin: clamp(26px,3vw,38px) 0 0;
  max-width: 52ch;
}
.home-hero .actions { margin-top: clamp(34px, 4vw, 50px); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--cta); color: var(--blue);
  font-family: var(--jp-body); font-weight: 700; font-size: 16px;
  padding: 16px 34px; border-radius: 999px; text-decoration: none;
  letter-spacing: .03em; box-shadow: 0 14px 34px -14px rgba(217,163,19,.6);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(217,163,19,.7); }
.btn-primary .arr { font-family: var(--en-body); font-weight: 600; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); font-family: var(--jp-body); font-size: 15px;
  text-decoration: none; letter-spacing: .03em; opacity: .85;
  border-bottom: 1px solid var(--line-on-blue); padding-bottom: 3px;
  transition: opacity .2s, border-color .2s;
}
.btn-ghost:hover { opacity: 1; border-color: var(--gold); }

/* ===========================================================
   HOME — service overview cards
   =========================================================== */
.svc .head-row {
  display: grid; gap: 20px; grid-template-columns: 1fr; align-items: end;
  margin-bottom: clamp(44px, 5vw, 64px);
}
@media (min-width: 860px){ .svc .head-row { grid-template-columns: 1fr auto; } }
.svc .more-link {
  font-family: var(--jp-body); font-size: 15px; color: var(--blue);
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px; white-space: nowrap;
  transition: gap .2s;
}
.svc .more-link:hover { gap: 14px; }
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px){ .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--white); border: 1px solid var(--cream-line);
  border-radius: 6px; padding: 34px 30px 36px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(25,39,79,.45); border-color: var(--gold); }
.svc-card .num {
  font-family: var(--en-head); font-style: italic; font-size: 30px;
  color: var(--gold); line-height: 1; margin-bottom: 22px;
}
.svc-card h3 { font-family: var(--jp-head); color: var(--blue); font-size: 23px; margin: 0 0 16px; }
.svc-card p { font-size: 14.5px; line-height: 1.95; color: var(--ink-60); margin: 0; }

/* ===========================================================
   HOME — company
   =========================================================== */
.company { background: var(--cream-2); }
.company .grid { display: grid; gap: clamp(34px, 5vw, 70px); grid-template-columns: 1fr; }
@media (min-width: 880px){ .company .grid { grid-template-columns: 1fr 1fr; } }
.company-desc p { font-size: 16px; line-height: 2.05; color: var(--ink-60); margin: 0 0 22px; }
.company-desc p:last-child { margin-bottom: 0; }
.company-desc strong { color: var(--black); font-weight: 700; }
.company-desc a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.info-table {
  background: var(--white); border: 1px solid var(--cream-line);
  border-radius: 8px; overflow: hidden; align-self: start;
}
.info-row { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--cream-line); }
.info-row:last-child { border-bottom: none; }
.info-row dt {
  padding: 18px 18px; font-family: var(--jp-body); font-weight: 700;
  font-size: 13px; color: var(--blue); background: rgba(25,39,79,.04);
  border-right: 1px solid var(--cream-line); letter-spacing: .04em;
}
.info-row dd { margin: 0; padding: 18px 20px; font-size: 14px; line-height: 1.8; color: var(--black); }

/* ===========================================================
   HOME — team
   =========================================================== */
.team-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: clamp(44px,5vw,64px); }
@media (min-width: 760px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }
.member {
  background: var(--white); border: 1px solid var(--cream-line);
  border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 150px 1fr;
  padding: 16px;
  gap: 16px;
}
@media (max-width: 520px){ .member { grid-template-columns: 1fr; } }
.member .photo { background: #e8f0f2; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
@media (max-width: 520px){ .member .photo { aspect-ratio: 16/10; } }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member .info { padding: 26px 28px; display: flex; flex-direction: column; }
.member .role {
  font-family: var(--en-body); font-weight: 600; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.member .mname {
  font-family: var(--jp-head); color: var(--blue); font-size: 24px; margin: 0 0 14px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.member .mname .title { font-family: var(--jp-body); font-size: 13px; color: var(--ink-45); font-weight: 400; }
.member .bio { font-size: 13.5px; line-height: 1.9; color: var(--black); margin: 0; }

/* CTA — soft variant for home contact */
.cta.soft .h-sec { margin-top: 0; }

/* ===========================================================
   PRIVACY PAGE
   =========================================================== */
.privacy-body { max-width: 72ch; margin-top: clamp(34px, 4vw, 50px); }
.privacy-body h2 {
  font-family: var(--jp-head); color: var(--blue);
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5;
  margin: clamp(40px, 5vw, 56px) 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}
.privacy-body h3 {
  font-family: var(--jp-body); font-weight: 700; color: var(--blue);
  font-size: 17px; margin: 28px 0 10px;
}
.privacy-body p { font-size: 15px; line-height: 2; color: var(--ink-60); margin: 0 0 16px; }
.privacy-body ul { list-style: none; padding: 0; margin: 0 0 20px; }
.privacy-body li {
  font-size: 15px; line-height: 1.9; color: var(--ink-60);
  padding-left: 20px; position: relative; margin-bottom: 6px;
}
.privacy-body li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px; border: 1.5px solid var(--gold); border-radius: 50%;
}
.privacy-body a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.privacy-body strong { color: var(--black); font-weight: 700; }
.privacy-contact {
  background: var(--cream-2); border-radius: 6px;
  padding: 24px 28px; margin: 24px 0;
}
.privacy-contact h3 { margin-top: 0; }

/* ===========================================================
   ZOHO CRM WEBFORM — brand-integrated overrides
   =========================================================== */
.zoho-form-wrap {
  max-width: 600px;
  margin: clamp(34px, 4vw, 50px) auto 0;
  text-align: left;
}

/* Override Zoho's own resets — scope everything inside the wrapper */
#crmWebToEntityForm.zcwf_lblLeft {
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background: transparent !important;
  color: var(--black) !important;
  font-family: var(--jp-body) !important;
}
#crmWebToEntityForm.zcwf_lblLeft * {
  box-sizing: border-box;
}
#crmWebToEntityForm {
  text-align: left;
}

/* Row spacing */
#crmWebToEntityForm .zcwf_row {
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Labels — stacked layout */
#crmWebToEntityForm .zcwf_col_lab {
  width: 100% !important;
  float: none !important;
  margin: 0 0 6px;
  padding: 0;
}
#crmWebToEntityForm .zcwf_col_lab label {
  font-family: var(--jp-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .03em;
}
#crmWebToEntityForm .zcwf_col_lab label span[style*="color:red"] {
  color: var(--turquoise) !important;
  margin-left: 4px;
}

/* Fields — full width */
#crmWebToEntityForm .zcwf_col_fld {
  width: 100% !important;
  float: none !important;
  padding: 0;
  margin: 0;
}
#crmWebToEntityForm .zcwf_col_fld input[type="text"],
#crmWebToEntityForm .zcwf_col_fld input[type="password"],
#crmWebToEntityForm .zcwf_col_fld textarea,
#crmWebToEntityForm .zcwf_col_fld_slt {
  width: 100% !important;
  float: none !important;
  font-family: var(--jp-body) !important;
  font-size: 15px !important;
  line-height: 1.6;
  color: var(--black) !important;
  background: var(--white) !important;
  border: 1px solid var(--cream-line) !important;
  border-radius: 4px !important;
  padding: 12px 14px !important;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
#crmWebToEntityForm .zcwf_col_fld input[type="text"]:focus,
#crmWebToEntityForm .zcwf_col_fld textarea:focus,
#crmWebToEntityForm .zcwf_col_fld_slt:focus {
  outline: none;
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(180,146,51,.18);
}
#crmWebToEntityForm .zcwf_col_fld textarea {
  min-height: 120px;
}

/* Checkbox row */
#crmWebToEntityForm .zcwf_ckbox {
  float: none !important;
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  accent-color: var(--gold);
  vertical-align: top;
  cursor: pointer;
}
#crmWebToEntityForm .zcwf_row:has(.zcwf_ckbox) .zcwf_col_fld {
  display: flex;
  align-items: flex-start;
}
#crmWebToEntityForm .zcwf_privacy_txt {
  color: var(--paper-on-blue) !important;
  font-size: 13px !important;
}

/* Privacy link under checkbox */
.zoho-privacy-note {
  font-size: 12.5px;
  color: var(--paper-on-blue);
  margin-top: 6px;
}
.zoho-privacy-note a {
  color: var(--turquoise);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
#crmWebToEntityForm .zcwf_button,
#crmWebToEntityForm .formsubmit.zcwf_button {
  font-family: var(--jp-body) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  letter-spacing: .04em;
  padding: 14px 36px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap;
}
#crmWebToEntityForm .formsubmit.zcwf_button {
  background: var(--cta) !important;
  color: var(--blue) !important;
  border: none !important;
  box-shadow: 0 14px 34px -12px rgba(217,163,19,.6);
}
#crmWebToEntityForm .formsubmit.zcwf_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -12px rgba(217,163,19,.7) !important;
}
#crmWebToEntityForm .formsubmit.zcwf_button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
#crmWebToEntityForm input[type="reset"].zcwf_button {
  background: transparent !important;
  color: var(--paper-on-blue) !important;
  border: 1px solid var(--line-on-blue) !important;
  margin-left: 12px;
}
#crmWebToEntityForm input[type="reset"].zcwf_button:hover {
  border-color: var(--paper-on-blue) !important;
  color: var(--white) !important;
}

/* Help column — hide empty ones */
#crmWebToEntityForm .zcwf_col_help:empty {
  display: none;
}

/* Title — hide Zoho's own title (we use the section heading) */
#crmWebToEntityForm .zcwf_title {
  display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
  .zoho-form-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  #crmWebToEntityForm .zcwf_col_fld input[type="text"],
  #crmWebToEntityForm .zcwf_col_fld textarea,
  #crmWebToEntityForm .zcwf_col_fld_slt {
    font-size: 16px !important; /* prevent iOS zoom */
  }
}

/* ===========================================================
   INSIGHTS PAGE
   =========================================================== */
.insights-hero {
  background: var(--blue);
  color: var(--white);
}
.insights-hero .h-sec { color: var(--white); }
.insights-hero .lead { color: var(--paper-on-blue); }
.insights-hero .eyebrow { color: var(--gold); }
.insights-hero .eyebrow::before { background: var(--gold); }

.insights-grid {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}
.insight-badge {
  font-family: var(--en-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.insight-title {
  font-family: var(--jp-head);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.5;
  color: var(--blue);
  margin: 0 0 16px;
}
.insight-desc {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-60);
  margin: 0 0 20px;
  flex: 1;
}
.insight-meta {
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--cream-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.insight-meta div {
  display: flex;
  gap: 6px;
  font-size: 13px;
}
.insight-meta dt {
  font-weight: 700;
  color: var(--blue);
}
.insight-meta dd {
  margin: 0;
  color: var(--ink-60);
}
.insight-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--jp-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  background: var(--blue);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}
.insight-dl:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}
.insight-dl::after {
  content: "↗";
  font-size: 13px;
}

/* Inline WP link — used inside phase-note / train sections */
.wp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 1px;
  transition: color .2s;
}
.wp-link:hover { color: var(--gold); }
.wp-link::after { content: "→"; font-size: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll .bar::after { animation: none; }
}
