/* ==================== Circé page styles ==================== */
/* Inherits design tokens from styles.css (vars on :root) */

/* ---------- Circé brand block (iooikos + Circé wordmark) ---------- */
.circe-brand {
  display: inline-flex; align-items: center; gap: 14px;
  white-space: nowrap;
}
.cb-logo {
  height: 36px; width: auto; display: block;
  image-rendering: -webkit-optimize-contrast;
}
:root[data-mode="dark"] .cb-light { display: none; }
:root[data-mode="light"] .cb-dark { display: none; }
.cb-sep {
  font-family: var(--display);
  color: var(--line-2);
  font-size: 22px; font-weight: 300;
  margin: 0 2px;
}
.cb-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-feature-settings: "ss01";
}

.cb-sm .cb-logo { height: 32px; }
.cb-sm .cb-name { font-size: 22px; }
.cb-sm .cb-sep { font-size: 18px; }

.cb-lg {
  display: flex; width: fit-content;
  margin-top: 16px;
  margin-bottom: 40px;
}
.cb-lg .cb-logo { height: 56px; }
.cb-lg .cb-name { font-size: 52px; letter-spacing: -0.02em; }
.cb-lg .cb-sep { font-size: 36px; }

.c-hero {
  position: relative;
  padding: 80px 32px 100px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.c-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.c-hero-l { min-width: 0; }
.c-hero-r {
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.c-portrait {
  position: relative;
  margin: 0;
  width: 100%; max-width: 520px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.5),
    0 0 0 1px color-mix(in oklab, var(--accent) 12%, transparent);
}
.c-portrait img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.c-portrait:hover img { transform: scale(1.03); }
.c-portrait figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg);
  background: linear-gradient(to top, rgba(10,9,8,0.85), rgba(10,9,8,0));
  backdrop-filter: blur(6px);
}
.cp-l { color: var(--accent); font-weight: 600; }
.cp-r { color: var(--fg-2); }
.c-back {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px;
  color: var(--fg-3); margin-bottom: 32px;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: color .15s ease;
}
.c-back:hover { color: var(--accent); }

.c-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
.c-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}

.c-hero-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(56px, 10vw, 152px);
  line-height: 0.94; letter-spacing: -0.05em;
  margin: 0 0 40px; text-wrap: balance;
}
.c-hero-title .line { display: block; }
.c-hero-title .line-accent {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.03em;
}
.c-hero-lede {
  font-size: 19px; line-height: 1.5; color: var(--fg-2);
  max-width: 62ch; margin: 0 0 40px;
  text-wrap: pretty;
}
.c-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.c-section {
  padding: 120px 32px;
  max-width: var(--max); margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.c-section-paper {
  background: var(--bg-2);
  max-width: none;
  margin: 0;
}
.c-section-paper > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.c-section-num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 24px;
}
.c-section-num.light { color: #0a0908; }
.c-section .section-h,
.c-section-paper .section-h { margin-bottom: 48px; }
.c-lede {
  font-size: 18px; line-height: 1.55; color: var(--fg-2);
  max-width: 64ch; margin: 0;
  text-wrap: pretty;
}

/* ---------- 01 problem cards ---------- */
.c-problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.c-problem {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
}
.c-problem:last-child { border-right: 0; }
.c-problem-n {
  font-family: var(--serif); font-style: italic; font-size: 56px;
  color: var(--accent); line-height: 0.9; opacity: 0.85;
}
.c-problem h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 24px; letter-spacing: -0.025em; line-height: 1.15;
  margin: 0;
}
.c-problem p {
  margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.6;
}

/* ---------- 03 différence ---------- */
.c-diff-claim {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: -0.04em; line-height: 1.02;
  margin: 0 0 32px; text-wrap: balance;
  max-width: 18ch;
}
.c-promise {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--fg-3);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.c-deliver {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}

/* ---------- 03 différence — kinetic horizontal banner ---------- */
.kt-stage {
  position: relative;
  margin: 32px -32px 48px;
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg-2) 50%, transparent);
}
.kt-row {
  position: relative;
  white-space: nowrap;
  display: flex;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.kt-track {
  display: inline-flex;
  gap: 36px;
  will-change: transform;
}
.kt-track-l { animation: kt-scroll-l 28s linear infinite; }
.kt-track-r { animation: kt-scroll-r 32s linear infinite; }

@keyframes kt-scroll-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes kt-scroll-r {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.kt-item {
  display: inline-flex; align-items: baseline; gap: 16px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 6.5vw, 96px);
  letter-spacing: -0.04em; line-height: 1;
}
.kt-text { color: var(--fg); }

.kt-strike {
  position: relative;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--fg-3);
  padding: 0 4px;
}
.kt-strike-word {
  position: relative; display: inline-block;
}
.kt-strike-line {
  position: absolute; left: -6px; right: -6px;
  top: 56%;
  height: 4px;
  background: var(--warn, #ff5c1f);
  transform-origin: left center;
  transform: scaleX(0);
  animation: kt-strike 4.6s ease-in-out infinite;
  box-shadow: 0 0 12px color-mix(in oklab, var(--warn, #ff5c1f) 60%, transparent);
}
@keyframes kt-strike {
  0%, 12% { transform: scaleX(0); }
  35%, 65% { transform: scaleX(1); }
  88%, 100% { transform: scaleX(0); }
}

.kt-deliver {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  position: relative;
  animation: kt-pulse 4.6s ease-in-out infinite;
  text-shadow: 0 0 32px color-mix(in oklab, var(--accent) 35%, transparent);
}
@keyframes kt-pulse {
  0%, 30% { opacity: 0.55; transform: translateY(2px); }
  55%, 75% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0.55; transform: translateY(2px); }
}

.kt-sep {
  color: var(--accent);
  font-family: var(--serif); font-style: italic;
  margin: 0 12px;
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .kt-track-l, .kt-track-r { animation: none; }
  .kt-strike-line { transform: scaleX(1); animation: none; }
  .kt-deliver { animation: none; opacity: 1; transform: none; }
}

/* ---------- 04 souveraineté pillars ---------- */
.c-pillar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.c-pillar {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.c-pillar:nth-child(3n) { border-right: 0; }
.c-pillar:nth-last-child(-n+3) { border-bottom: 0; }
.c-pillar:hover { background: color-mix(in oklab, var(--bg-2) 60%, transparent); }
.c-pillar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.c-pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent);
}
.c-pillar-icon svg { width: 22px; height: 22px; }
.c-pillar-n {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.08em;
}
.c-pillar h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; letter-spacing: -0.025em; line-height: 1.15;
  margin: 0;
}
.c-pillar p {
  margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.55;
}

/* ---------- 05 use cases ---------- */
.c-uc { border-top: 1px solid var(--line-2); }
.c-uc-row {
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.c-uc-persona {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.025em; line-height: 1.1;
  color: var(--fg);
}
.c-uc-persona em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.c-uc-task {
  font-size: 14.5px; line-height: 1.55;
  color: var(--fg-2);
}
.c-uc-task strong {
  display: block;
  font-family: var(--display); font-weight: 500;
  font-size: 17px; color: var(--fg);
  letter-spacing: -0.02em; margin-bottom: 6px;
}

/* ---------- 06 hardware ---------- */
.c-hw-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.c-hw {
  padding: 36px 32px;
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--bg-2) 70%, transparent);
  display: flex; flex-direction: column; gap: 16px;
}
.c-hw-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.c-hw h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 26px; letter-spacing: -0.025em; line-height: 1.15;
  margin: 0;
}
.c-hw h3 em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  color: var(--accent);
}
.c-hw p {
  margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.6;
}

/* ---------- 07 steps ---------- */
.c-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.c-step {
  padding: 28px 24px 32px;
  border-right: 1px solid var(--line);
  position: relative;
}
.c-step:last-child { border-right: 0; }
.c-step-num {
  font-family: var(--serif); font-style: italic; font-size: 48px;
  color: var(--accent); line-height: 0.9; opacity: 0.85;
  margin-bottom: 24px;
}
.c-step-d {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--fg-3); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.c-step h4 {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px;
}
.c-step p {
  margin: 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.55;
}

/* ---------- CTA final ---------- */
.c-cta {
  background: var(--accent);
  color: #0a0908;
  padding: 120px 32px;
  position: relative; overflow: hidden;
}
.c-cta-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.c-cta-h {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 24px; max-width: 22ch;
  color: #0a0908; text-wrap: balance;
}
.c-cta-h em { color: #0a0908; }
.c-cta-lede {
  font-size: 18px; line-height: 1.5; color: #0a0908;
  max-width: 50ch; margin: 0 0 48px; text-wrap: pretty;
}
.c-cta-row {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  align-items: stretch;
}
.c-cta-card {
  border: 1px solid #0a0908;
  background: color-mix(in oklab, var(--accent) 80%, #0a0908);
}
.c-cta-card .card-row { border-bottom-color: #0a090822; }
.c-cta-card .card-row span:first-child { color: #0a090888; }
.c-cta-card a, .c-cta-card span { color: #0a0908; }
.c-cta-actions { display: flex; flex-direction: column; gap: 12px; }
.c-cta .btn-primary { background: #0a0908; color: var(--accent); border-color: #0a0908; }
.c-cta .btn-primary:hover { box-shadow: 0 8px 24px -8px rgba(0,0,0,0.45); }
.c-cta .btn-ghost { color: #0a0908; border-color: #0a090844; }
.c-cta .btn-ghost:hover { border-color: #0a0908; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .c-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .c-hero-r { order: -1; }
  .c-portrait { max-width: 360px; }
  .c-problem-grid { grid-template-columns: 1fr; }
  .c-problem { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-pillar-grid { grid-template-columns: 1fr; }
  .c-pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-pillar:nth-child(3n) { border-right: 0; }
  .c-pillar:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .c-pillar:last-child { border-bottom: 0; }
  .c-uc-row { grid-template-columns: 1fr; gap: 16px; }
  .c-hw-grid { grid-template-columns: 1fr; }
  .c-steps { grid-template-columns: 1fr 1fr; }
  .c-step { border-bottom: 1px solid var(--line); }
  .c-cta-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .c-steps { grid-template-columns: 1fr; }
  .c-step { border-right: 0; }
}
