/* ============================================================
   SKELETON STYLESHEET
   This is intentionally minimal — structure + readability only.
   Claude Code / design pass should own: type system, color palette,
   spacing scale, motion, imagery treatment, responsive polish.
   ============================================================ */

:root {
  /* Cotton Cloud / Glossy Cherry palette */
  --color-cotton-cloud: #94deff;
  --color-cotton-cloud-soft: #eaf9ff;
  --color-glossy-cherry: #ff277f;

  --color-bg: #ffffff;
  --color-text: #14181c;
  --color-text-muted: #5c6570;
  --color-accent: var(--color-glossy-cherry);
  --color-accent-soft: var(--color-cotton-cloud);
  --color-border: #d9eefa;
  --card-bg: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Inter", var(--font-base);

  --container-width: 1080px;
  --section-padding: 6rem 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; } /* safety net: nothing (carousels, orbits) can force horizontal scroll */

body {
  margin: 0;
  font-family: var(--font-heading);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

h1, h2, h3, h4,
.case-title, .metric-value,
.toolbox-category h3, .contact-headline {
  font-family: var(--font-heading);
  font-weight: 700;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-padding); }

.section:nth-of-type(odd) {
  background: var(--color-cotton-cloud);
  color: #14181c;
  --color-accent: var(--color-glossy-cherry);
  --color-accent-soft: rgba(255, 255, 255, 0.7);
  --color-text: #14181c;
  --color-text-muted: rgba(20, 24, 28, 0.65);
  --color-border: rgba(255, 39, 127, 0.35);
  --card-bg: rgba(255, 255, 255, 0.55);
}

.section:nth-of-type(even) {
  background: var(--color-glossy-cherry);
  color: #ffffff;
  --color-accent: var(--color-cotton-cloud);
  --color-accent-soft: rgba(255, 255, 255, 0.7);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.75);
  --color-border: rgba(148, 222, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.15);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2rem;
  max-width: 20ch;
  color: var(--color-accent);
}

/* wide enough to keep "Case Study - Molinard Parfums" on one line */
.section-title.case-studies-title {
  max-width: 40ch;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section-title.case-studies-title {
    white-space: normal;
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
}

.section-kicker {
  color: var(--color-text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

#ai-workflow .section-kicker {
  color: #fff;
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover { color: var(--color-text); }

.nav-cta {
  border: 1px solid var(--color-accent);
  color: var(--color-accent) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.btn-lang {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  color: var(--color-accent) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.btn-lang:hover,
.btn-lang:focus-visible {
  background: var(--color-accent);
  color: #fff !important;
}

/* ---------- HERO ---------- */
.hero { padding-top: 8rem; padding-bottom: 8rem; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }

.hero-kicker {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-glossy-cherry);
  margin: 0 0 1rem;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #fff;
  max-width: 55ch;
  margin: 0 auto 2rem;
}

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 2.5rem;
}

.pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-secondary { border: 2px solid var(--color-accent); color: var(--color-accent); }

/* ---------- PROCESS FLOW (Approach + AI Workflow) ---------- */
.process-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0;
  margin: 0 0 2.5rem;
}

.process-flow li.process-step {
  border: 2px solid var(--color-accent-soft);
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.process-flow li.process-step:not(:last-child)::after {
  content: "→";
  margin-left: 0.5rem;
  color: var(--color-text-muted);
}

/* Approach section: circular layout instead of a straight line.
   Business Goal sits at 12 o'clock; the 8 steps run clockwise
   around the circle with small arrows marking the direction,
   looping back from Iteration to Business Goal. Each <li> carries
   its position via an inline --angle custom property (0deg = top). */
#approach .process-flow {
  position: relative;
  width: min(88vw, 340px);
  height: min(88vw, 340px);
  margin: 2.5rem auto 4.5rem;
  list-style: none;
  padding: 0;
  counter-reset: step;
  --radius: min(36vw, 148px);
}

#approach .process-flow li.process-step {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.7rem;
  line-height: 1.15;
  /* rotate to the node's angle, push out along the (now-rotated) vertical
     axis, then rotate back so the label itself stays upright */
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle)));
  counter-increment: step;
  z-index: 1;
  animation: flow-glow 8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Business Goal → Consumer Insight → Creative Hypothesis → ... lights up
   in blue, one node at a time, looping through the whole sequence. */
@keyframes flow-glow {
  0% { background: var(--card-bg); color: var(--color-text); box-shadow: none; }
  5% { background: var(--color-cotton-cloud); color: #0b3a52; box-shadow: 0 0 0 8px rgba(148, 222, 255, 0.35); }
  10% { background: var(--card-bg); color: var(--color-text); box-shadow: none; }
  100% { background: var(--card-bg); color: var(--color-text); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  #approach .process-flow li.process-step { animation: none; }
}

#approach .process-flow li.process-step::after { content: none; }

/* small directional arrows between the nodes, following the ring clockwise */
#approach .process-flow li.flow-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  z-index: 1;
  /* rotate to the arrow's angle and push out — no counter-rotation,
     so the arrow itself points in the clockwise/tangent direction */
  transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius)));
}

.approach-text, .performance-text {
  max-width: 65ch;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.approach-text {
  color: #fff;
}

/* ---------- CASE STUDIES ---------- */
.case-study {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
}

.case-study:first-of-type { border-top: none; padding-top: 0; }

.case-header { margin-bottom: 2rem; }

.case-number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.case-tag {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

.case-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0.4rem 0 0.3rem;
}

.case-client { color: var(--color-text-muted); margin: 0; }

.case-block { margin-bottom: 2rem; }

.case-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.case-block-learnings {
  background: var(--card-bg);
  border-left: 3px solid var(--color-accent);
  padding: 1.2rem 1.5rem;
  border-radius: 4px;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.execution-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.media-placeholder {
  border: 1px dashed var(--color-accent-soft);
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* creative execution tags — same treatment as the industry tags, one row */
.execution-tags {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding: 0;
  margin: 0 0 1.5rem;
}

@media (max-width: 560px) {
  .execution-tags { grid-template-columns: repeat(2, 1fr); }
}

.execution-tags .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 2.5rem;
  line-height: 1.15;
  background: var(--color-glossy-cherry);
  color: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
}

/* scrolling asset carousel */
.asset-carousel {
  overflow: hidden;
}

.asset-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: carousel-scroll 28s linear infinite;
}

.asset-carousel:hover .asset-track {
  animation-play-state: paused;
}

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

@media (prefers-reduced-motion: reduce) {
  .asset-track { animation: none; }
  .asset-carousel { overflow-x: auto; }
}

.asset-track img {
  flex: 0 0 auto;
  height: 320px;
  width: auto;
  max-width: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-accent-soft);
}

.metrics-row {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.metric {
  flex: 1 1 0;
  min-width: 0;
}

.metric { display: flex; flex-direction: column; }
.metric-label { font-size: 0.75rem; color: var(--color-text-muted); }
.metric-value { font-size: 1.3rem; font-weight: 600; }

/* ---------- AI WORKFLOW ---------- */

/* keep the headline on one line from tablet up; wrap freely below that */
.section-title.ai-workflow-title {
  max-width: 30ch;
}

@media (min-width: 780px) {
  .section-title.ai-workflow-title {
    max-width: none;
    white-space: nowrap;
  }
}

/* ===== Generative AI toolkit — simple grid layout, same on every
   viewport. `display: contents` on the wrapper layers (.orbit,
   .orbit-spin, .tool-position, .tool-counter) removes their own box so
   each .tool becomes a direct grid child, without needing separate
   markup for desktop vs. mobile. No animation, no orbital positioning. */

.solar-system {
  width: 100%;
  max-width: 640px;
  margin: 3rem auto 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.solar-center {
  grid-column: 1 / -1;
  border-radius: 12px;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 1.1rem;
  margin: 0 0 0.35rem;
  text-align: center;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.solar-center span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.orbit, .orbit-spin, .tool-position, .tool-counter {
  display: contents;
}

.tool {
  width: auto;
  min-height: 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--color-accent-soft);
  background: var(--card-bg);
  border-radius: 10px;
  padding: 0.55rem 0.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: default;
}

/* mobile: 2 columns so labels stay comfortably readable */
@media (max-width: 640px) {
  .solar-system {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2rem 0 0;
  }
}

/* ---------- PERFORMANCE MINDSET ---------- */
.performance-indicators-intro {
  color: var(--color-text-muted);
  margin-top: 2rem;
}

.indicator-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
}

.indicator-list li {
  border: 1px solid var(--color-accent-soft);
  background: var(--card-bg);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- EXPERIENCE ---------- */
.logo-carousel {
  overflow: hidden;
  margin-top: 1rem;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: carousel-scroll 34s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-track img {
  flex: 0 0 auto;
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-carousel { overflow-x: auto; }
}

/* ---------- TOOLBOX ---------- */
.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.toolbox-category h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.toolbox-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toolbox-category li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- RESUME ---------- */
.resume-card {
  border: 2px solid var(--color-accent-soft);
  background: var(--card-bg);
  border-radius: 12px;
  padding: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- CONTACT ---------- */
.contact { text-align: center; }

.contact-headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 20ch;
  margin: 0 auto 2rem;
  color: var(--color-accent);
}

.contact-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
}

.contact-links a {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.2rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--color-border);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .nav-links { gap: 0.6rem; }
}

/* ---------- MOBILE OPTIMIZATION PASS ---------- */
@media (max-width: 640px) {
  :root { --section-padding: 3.25rem 1.25rem; }

  .container { padding: 0 1.25rem; }

  .hero { padding-top: 4.5rem; padding-bottom: 4rem; }
  .hero-headline { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .case-study { padding: 2.5rem 0; }
  .case-number { font-size: clamp(1.4rem, 6vw, 1.9rem); }

  /* shrink the Approach circle + nodes so nothing overflows the viewport */
  #approach .process-flow {
    width: min(82vw, 280px);
    height: min(82vw, 280px);
    --radius: min(30vw, 105px);
    margin: 2rem auto 3.5rem;
  }
  #approach .process-flow li.process-step {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    font-size: 0.62rem;
    padding: 0.35rem;
  }

  /* shorter carousel visuals so case studies don't get too tall */
  .asset-track img { height: 220px; max-width: 160px; }

  /* keep all 5 KPIs on one line even on small phones */
  .metrics-row { gap: 0.4rem; }
  .metric-label { font-size: 0.62rem; }
  .metric-value { font-size: 0.95rem; }

  .toolbox-grid { gap: 1.25rem; }

  .resume-card { padding: 1.75rem 1.25rem; }
  .resume-card .btn { width: 100%; text-align: center; }

  .contact-links {
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
  }
}
