/* ============================================================
   YOUBE · BRAND MANUAL 2026
   Dual-voice system styles (Bold + Atelier)
   ============================================================ */

:root {
  /* —— Color tokens —— */
  --iris:       #7F6CFF;
  --iris-deep:  #5B4CD8;
  --iris-soft:  #C8C0FF;
  --iris-paper: #EFEAFF;
  --iris-tint:  #F6F3FF;

  --onyx:       #1C1B22;
  --onyx-soft:  #3A3845;

  --linen:      #FAF8F3;
  --linen-deep: #F2EDE2;
  --sand:       #E9E3D5;
  --petal:      #FFF6FA;

  --bolt:       #F4FF4D;

  --ink:        #1C1B22;
  --ink-soft:   #4F4D58;
  --ink-faint:  #8C8995;
  --rule:       rgba(28,27,34,0.08);
  --rule-strong: rgba(28,27,34,0.16);

  --success: #00D670;
  --warning: #FFDA00;
  --danger:  #FF3A3A;
  --info:    #2D8CFF;

  /* —— Type —— */
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* —— Easing —— */
  --ease: cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--linen);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ============================================================
   LAYOUT — spreads & rails
   ============================================================ */

.book { max-width: 1400px; margin: 0 auto; }

.spread {
  padding: 88px 80px;
  position: relative;
}
.spread--narrow { padding: 88px 120px; }
.spread--xl { padding: 120px 80px; }

.spread + .spread {
  border-top: 1px solid var(--rule);
}

.spread--linen   { background: var(--linen); }
.spread--linen-deep { background: var(--linen-deep); }
.spread--petal   { background: var(--petal); }
.spread--onyx    { background: var(--onyx); color: #fff; }
.spread--iris    { background: var(--iris); color: #fff; }
.spread--sand    { background: var(--sand); }

.spread__chapter {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.spread--onyx .spread__chapter,
.spread--iris .spread__chapter { color: rgba(255,255,255,0.6); }
.spread__chapter .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--iris);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}
.spread--iris .spread__chapter .num {
  background: #fff; color: var(--iris-deep);
}

.spread__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.spread--onyx .spread__title,
.spread--iris .spread__title { color: #fff; }

.spread__title em { font-style: italic; color: var(--iris); }
.spread--onyx .spread__title em { color: var(--iris); }
.spread--iris .spread__title em { color: var(--bolt); }

.spread__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 56px;
  font-weight: 400;
}
.spread--onyx .spread__lede,
.spread--iris .spread__lede { color: rgba(255,255,255,0.78); }

/* eyebrow */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--iris-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--iris);
}

/* ============================================================
   COVER
   ============================================================ */
.cover {
  min-height: 88vh;
  padding: 64px 80px 80px;
  background: var(--onyx);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cover__nav {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 2;
}
.cover__brand { display: flex; align-items: center; gap: 12px; }
.cover__brand img { height: 28px; }
.cover__brand img.wm { filter: brightness(0) invert(1); }
.cover__nav-meta {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cover__body { margin-top: auto; position: relative; z-index: 2; max-width: 16ch; }
.cover__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(80px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 0;
  color: #fff;
}
.cover__title em {
  font-style: normal; color: var(--iris);
}
.cover__tagline {
  margin-top: 32px;
  display: flex; align-items: center; gap: 16px;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  max-width: 360px;
}
.cover__tagline .dash { width: 32px; height: 1px; background: rgba(255,255,255,0.4); flex: 0 0 auto; }

.cover__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.16);
  position: relative; z-index: 2;
}
.cover__meta-cell {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.cover__meta-cell strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 2px;
}

/* The big iris flood */
.cover__bleed {
  position: absolute;
  right: -10%; bottom: -20%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--iris) 0%, var(--iris-deep) 60%, transparent 75%);
  opacity: 0.55;
  filter: blur(6px);
  pointer-events: none;
}

/* ============================================================
   DUAL MODE — split layout
   ============================================================ */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 80px -30px rgba(28,27,34,0.18);
}
.duo__panel {
  padding: 56px 48px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.duo__panel--bold {
  background: var(--onyx);
  color: #fff;
}
.duo__panel--bold::after {
  content: '';
  position: absolute;
  right: -120px; top: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: var(--iris);
  opacity: 0.4;
  filter: blur(0);
}
.duo__panel--atelier {
  background: var(--linen);
}
.duo__label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.duo__panel--bold .duo__label { color: rgba(255,255,255,0.6); }
.duo__panel--atelier .duo__label { color: var(--ink-faint); }
.duo__label .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.duo__panel--bold .duo__label .dot { background: var(--iris); }
.duo__panel--atelier .duo__label .dot { background: var(--iris); }

.duo__name {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 16px 0 12px;
  position: relative; z-index: 1;
}
.duo__panel--bold .duo__name {
  font-size: 64px;
  line-height: 0.88;
  color: #fff;
}
.duo__panel--atelier .duo__name {
  font-size: 52px;
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.duo__panel--atelier .duo__name strong { font-weight: 600; }

.duo__desc {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  position: relative; z-index: 1;
  max-width: 32ch;
}
.duo__panel--bold .duo__desc { color: rgba(255,255,255,0.78); }
.duo__panel--atelier .duo__desc { color: var(--ink-soft); }

.duo__when {
  margin-top: auto;
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
}
.duo__panel--atelier .duo__when { border-top-color: var(--rule-strong); }
.duo__when h5 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 10px;
}
.duo__panel--bold .duo__when h5 { color: rgba(255,255,255,0.5); }
.duo__panel--atelier .duo__when h5 { color: var(--ink-faint); }
.duo__when ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}
.duo__panel--bold .duo__when ul { color: rgba(255,255,255,0.85); }
.duo__panel--atelier .duo__when ul { color: var(--ink-soft); }
.duo__when li::before {
  content: '·  ';
  color: var(--iris);
  font-weight: 700;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  padding: 36px 32px 32px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--rule);
}
.pillar__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--iris);
  margin-bottom: 14px;
}
.pillar__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  color: var(--ink);
}
.pillar__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   LOGO
   ============================================================ */
.logo-rail {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 20px;
}
.logo-tile {
  border-radius: 16px;
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  min-height: 220px;
}
.logo-tile__label {
  position: absolute; top: 18px; left: 20px;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.logo-tile--iris { background: var(--iris); }
.logo-tile--iris .logo-tile__label { color: rgba(255,255,255,0.7); }
.logo-tile--iris img { filter: brightness(0) invert(1); max-height: 88px; }

.logo-tile--onyx { background: var(--onyx); }
.logo-tile--onyx .logo-tile__label { color: rgba(255,255,255,0.7); }
.logo-tile--onyx img { filter: brightness(0) invert(1); max-height: 88px; }

.logo-tile--linen { background: var(--linen); border: 1px solid var(--rule); }
.logo-tile--linen .logo-tile__label { color: var(--ink-faint); }
.logo-tile--linen img { max-height: 88px; }

/* logo clearspace diagram */
.clearspace {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 40px;
  margin-top: 32px;
}
.clearspace__diagram {
  position: relative;
  padding: 32px;
  border: 1.5px dashed var(--iris);
  border-radius: 8px;
  background: var(--iris-tint);
  display: flex; align-items: center; justify-content: center;
}
.clearspace__diagram img { height: 32px; }
.clearspace__diagram::before,
.clearspace__diagram::after {
  position: absolute;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--iris-deep);
  font-weight: 600;
}
.clearspace__diagram::before { content: '× 1'; top: 6px; left: 50%; transform: translateX(-50%); }
.clearspace__diagram::after  { content: '× 1'; bottom: 6px; left: 50%; transform: translateX(-50%); }
.clearspace__copy h4 {
  margin: 0 0 8px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.clearspace__copy p {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft);
}

/* dont card */
.dont-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dont {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
}
.dont__demo {
  background: var(--iris);
  border-radius: 8px;
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.dont__demo .x {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.dont__demo img { max-width: 80%; max-height: 60%; }
.dont__caption {
  font-size: 13px; line-height: 1.4; color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   COLOR
   ============================================================ */
.color-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.color-row:first-of-type { border-top: 0; padding-top: 0; }
.color-row__label h4 {
  margin: 0 0 4px;
  font-family: var(--sans); font-weight: 700;
  font-size: 17px; letter-spacing: -0.015em;
}
.color-row__label p {
  margin: 0; font-size: 13px; color: var(--ink-faint); line-height: 1.5;
}
.swatch-rail {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}
.sw {
  aspect-ratio: 1;
  border-radius: 10px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.sw--light { color: rgba(28,27,34,0.7); }
.sw small { font-size: 10px; opacity: 0.55; display: block; margin-bottom: 2px; font-family: var(--sans); font-weight: 600; }

.semantic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sem {
  border-radius: 14px;
  padding: 24px;
  color: #fff;
  min-height: 140px;
  display: flex; flex-direction: column; gap: 6px;
}
.sem h5 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.sem code { font-family: var(--mono); font-size: 11px; opacity: 0.85; font-weight: 500; }
.sem p { margin: auto 0 0; font-size: 12px; line-height: 1.4; opacity: 0.9; }

/* core 4-palette grid (the hero) */
.core-colors {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.core {
  border-radius: 18px;
  padding: 28px;
  min-height: 220px;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.core--iris { background: var(--iris); color: #fff; }
.core--onyx { background: var(--onyx); color: #fff; }
.core--linen { background: var(--linen); color: var(--ink); border: 1px solid var(--rule); }
.core--bolt  { background: var(--bolt); color: var(--ink); }
.core h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 24px; letter-spacing: -0.025em;
  margin: 0;
}
.core p {
  font-size: 12px; line-height: 1.45;
  margin: 6px 0 0;
  opacity: 0.78;
  max-width: 22ch;
}
.core .vals {
  font-family: var(--mono); font-size: 11px; line-height: 1.55;
  opacity: 0.8;
}
.core .role {
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 14px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.type-stack {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
.type-stack__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px 32px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
}
.type-stack__row:first-child { border-top: 0; }
.type-stack__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.7;
}
.type-stack__meta strong {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.t-display-bold { font-size: 96px; font-weight: 800; line-height: 0.92; letter-spacing: -0.045em; color: var(--ink); }
.t-h1-bold      { font-size: 64px; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; color: var(--ink); }
.t-h2           { font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.t-h3           { font-size: 32px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.t-h4           { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.t-light-xl     { font-size: 56px; font-weight: 300; line-height: 1.0;  letter-spacing: -0.025em; color: var(--ink); }
.t-light-xl strong { font-weight: 600; }
.t-body-lg      { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.t-body         { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.t-small        { font-size: 13px; line-height: 1.45; color: var(--ink-faint); }
.t-caps         { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--iris-deep); }

/* type pairing visual */
.type-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 40px;
}
.type-mode {
  border-radius: 18px;
  padding: 36px;
  min-height: 280px;
}
.type-mode--bold {
  background: var(--onyx);
  color: #fff;
}
.type-mode--atelier {
  background: var(--linen);
  border: 1px solid var(--rule);
}
.type-mode__label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 18px;
}
.type-mode--bold .type-mode__label { color: rgba(255,255,255,0.55); }
.type-mode--atelier .type-mode__label { color: var(--ink-faint); }
.type-mode__sample {
  font-weight: 800;
  font-size: 64px;
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.type-mode--atelier .type-mode__sample {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.0;
}
.type-mode--atelier .type-mode__sample strong { font-weight: 600; }

.type-mode__meta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0.7;
}

/* ============================================================
   PHOTOGRAPHY
   ============================================================ */
.photo-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
.photo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--linen-deep);
  display: flex;
  flex-direction: column;
}
.photo-card__frame {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
/* film-grain overlay used on all photo placeholders for editorial feel */
.photo-card__frame::after,
.photo-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.photo-card__meta {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}
.photo-card__meta .mode {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
}
.photo-card__meta .mode.bold { color: var(--iris-deep); }
.photo-card__meta .mode.atelier { color: var(--ink-faint); }
.photo-card__meta .desc {
  color: var(--ink-soft);
  font-weight: 500;
}

/* Portrait — Bold mode placeholder: colored field + soft silhouette */
.portrait-card .photo-card__frame { background: var(--iris); }
.portrait-card--onyx .photo-card__frame { background: var(--onyx); }
.portrait-card .silhouette {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 75%; height: 95%;
}
.portrait-card .silhouette circle { fill: rgba(28, 27, 34, 0.55); }
.portrait-card .silhouette ellipse { fill: rgba(28, 27, 34, 0.55); }
.portrait-card--onyx .silhouette circle,
.portrait-card--onyx .silhouette ellipse { fill: rgba(127, 108, 255, 0.7); }
/* rim light */
.portrait-card .photo-card__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.35), transparent 45%),
    radial-gradient(ellipse at 30% 80%, rgba(0,0,0,0.35), transparent 60%);
  z-index: 1;
}

/* Still life — Atelier mode placeholder: warm field + abstract objects */
.stilllife-card .photo-card__frame {
  background: linear-gradient(160deg, #f0e6d2 0%, #e3d6bd 100%);
}
.stilllife-card .objects {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 0 18%;
  padding-bottom: 22%;
}
.stilllife-card .obj {
  background: var(--onyx);
  border-radius: 1.5px;
  position: relative;
}
.stilllife-card .obj--brush  { width: 4px; height: 56%; background: #2A2832; transform: rotate(-3deg); }
.stilllife-card .obj--jar    { width: 38px; height: 34%; background: var(--iris); border-radius: 2px 2px 6px 6px; }
.stilllife-card .obj--bottle { width: 22px; height: 44%; background: #c9a86a; border-radius: 2px 2px 4px 4px; }
.stilllife-card .obj--brush2 { width: 4px; height: 48%; background: #2A2832; transform: rotate(4deg); }
.stilllife-card .obj--ring   { width: 30px; height: 30px; border: 3px solid var(--iris-deep); border-radius: 50%; background: transparent; align-self: center; margin-bottom: 12%; }
/* soft top light */
.stilllife-card .photo-card__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,0.7), transparent 55%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.12) 100%);
  z-index: 1;
}
/* soft cast shadow */
.stilllife-card .shadow {
  position: absolute;
  bottom: 16%;
  left: 22%; right: 22%;
  height: 14px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.22), transparent 70%);
  z-index: 0;
}

/* Hand-at-work — Atelier secondary placeholder */
.hand-card .photo-card__frame {
  background: linear-gradient(160deg, #ead8c0 0%, #d6b893 60%, #c19a73 100%);
}
.hand-card .hand-shape {
  position: absolute;
  bottom: -5%;
  left: 10%;
  right: 10%;
  height: 75%;
  background: linear-gradient(160deg, #b88560 0%, #8e5b3a 100%);
  border-radius: 30% 50% 10% 20% / 40% 50% 20% 25%;
  box-shadow: 0 -8px 20px rgba(0,0,0,0.08);
}
.hand-card .accent {
  position: absolute;
  top: 40%;
  left: 45%;
  width: 16px; height: 16px;
  background: var(--iris);
  border-radius: 50%;
  z-index: 2;
}

/* Principles — shared cards */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}
.principle {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 28px 30px;
}
.principle__num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--iris);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.principle h5 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.principle p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Photo-mode breakdown row */
.photo-mode {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 24px;
}
.photo-mode--inverse {
  grid-template-columns: 1fr 1.5fr;
  background: var(--onyx);
  border-color: var(--onyx);
  color: #fff;
}
.photo-mode--inverse .photo-mode__copy h3 { color: #fff; }
.photo-mode--inverse .photo-mode__copy li { color: rgba(255,255,255,0.82); border-color: rgba(255,255,255,0.12); }
.photo-mode--inverse .photo-mode__copy li strong { color: #fff; }
.photo-mode--inverse .photo-mode__copy .label-bar { color: rgba(255,255,255,0.55); }

.photo-mode__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
}
.photo-thumb__caption {
  position: absolute;
  left: 8px; bottom: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 2;
}
.photo-thumb__caption--dark {
  color: rgba(28,27,34,0.65);
  text-shadow: none;
}

/* Mini portrait / stilllife / hand variants for the row */
.thumb-portrait { background: var(--iris); }
.thumb-portrait--onyx { background: var(--onyx); }
.thumb-portrait--soft { background: linear-gradient(180deg, var(--iris-deep), #2E2380); }
.thumb-portrait .sil {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 75%; height: 95%;
}
.thumb-portrait .sil circle,
.thumb-portrait .sil ellipse { fill: rgba(28, 27, 34, 0.45); }
.thumb-portrait--onyx .sil circle,
.thumb-portrait--onyx .sil ellipse { fill: rgba(127, 108, 255, 0.6); }
.thumb-portrait--soft .sil circle,
.thumb-portrait--soft .sil ellipse { fill: rgba(244,255,77,0.55); }

.thumb-still { background: linear-gradient(160deg, #f0e6d2, #e0cdaa); position: relative; }
.thumb-still .mini {
  position: absolute;
  bottom: 26%;
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 5px;
}
.thumb-still .mini .m { background: var(--onyx); }
.thumb-still .mini .m--a { width: 2px; height: 38px; }
.thumb-still .mini .m--b { width: 12px; height: 24px; background: var(--iris); border-radius: 1.5px 1.5px 3px 3px; }
.thumb-still .mini .m--c { width: 8px; height: 30px; background: #c9a86a; border-radius: 1.5px 1.5px 3px 3px; }
.thumb-still .mini .m--d { width: 2px; height: 32px; transform: rotate(4deg); }

.thumb-hand { background: linear-gradient(160deg, #ead8c0, #c19a73); position: relative; }
.thumb-hand::before {
  content: '';
  position: absolute;
  bottom: -10%; left: 5%; right: 5%; height: 80%;
  background: linear-gradient(160deg, #b88560, #8e5b3a);
  border-radius: 30% 50% 10% 20% / 40% 50% 20% 25%;
}
.thumb-hand::after { content: ''; position: absolute; top: 38%; left: 45%; width: 12px; height: 12px; background: var(--iris); border-radius: 50%; }

.thumb-detail { background: var(--iris); }
.thumb-detail::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3), transparent 50%);
}

/* Photo mode copy column */
.photo-mode__copy { display: flex; flex-direction: column; }
.photo-mode__copy .label-bar {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--iris-deep);
  margin-bottom: 12px;
}
.photo-mode__copy h3 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
.photo-mode__copy ul {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.photo-mode__copy li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.photo-mode__copy li:first-child { border-top: 0; padding-top: 4px; }
.photo-mode__copy li strong {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

/* Post-production card */
.postpro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.postpro__card {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--rule);
  background: #fff;
}
.postpro__card h5 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--iris-deep);
}
.postpro__card h6 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.postpro__values {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.postpro__values strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   APPLICATIONS — devices
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.app-tile {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #fff;
}
.app-tile__label {
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
}
.app-tile__label .pill {
  background: var(--ink); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10px; letter-spacing: 0.14em;
}
.app-tile__label .pill--atelier {
  background: var(--linen-deep); color: var(--iris-deep);
}

/* —— Landing recipe (Bold hero) —— */
.land-bold {
  background: var(--onyx);
  color: #fff;
  padding: 28px 36px 36px;
  position: relative;
  overflow: hidden;
}
.land-bold::after {
  content: ''; position: absolute;
  right: -80px; bottom: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--iris);
  opacity: 0.4;
  filter: blur(2px);
}
.land-bold__nav { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.land-bold__nav-brand { display: flex; align-items: center; gap: 10px; }
.land-bold__nav-brand img { height: 18px; filter: brightness(0) invert(1); }
.land-bold__nav-brand span { font-weight: 800; letter-spacing: -0.02em; font-size: 15px; }
.land-bold__nav-links { display: flex; gap: 18px; font-size: 11px; font-weight: 600; opacity: 0.7; }
.land-bold__cta {
  background: #fff; color: var(--iris-deep);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
}
.land-bold__title {
  font-weight: 800;
  font-size: 64px;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: 32px 0 16px;
  position: relative; z-index: 1;
}
.land-bold__title em { font-style: normal; color: var(--iris); }
.land-bold__sub {
  font-size: 14px;
  opacity: 0.78;
  max-width: 40ch;
  margin: 0 0 20px;
  position: relative; z-index: 1;
}
.land-bold__actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.land-bold__btn {
  background: var(--iris); color: #fff;
  padding: 10px 20px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
}
.land-bold__btn--ghost { background: transparent; border: 1px solid rgba(255,255,255,0.3); }

.land-bold__stats {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; gap: 32px; position: relative; z-index: 1;
}
.land-bold__stat strong {
  display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.land-bold__stat span {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55; font-weight: 600;
}

/* —— Landing recipe (Atelier) —— */
.land-ate {
  background: var(--linen);
  padding: 28px 36px 36px;
}
.land-ate__nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; }
.land-ate__nav img { height: 16px; }
.land-ate__nav-links { display: flex; gap: 20px; font-size: 11px; color: var(--ink-faint); font-weight: 500; }
.land-ate__nav-cta {
  font-size: 11px; font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--iris);
  padding-bottom: 2px;
}
.land-ate__body {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  align-items: center;
  padding-top: 24px;
}
.land-ate__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--iris); margin-bottom: 14px; }
.land-ate__caps {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.land-ate__title {
  font-size: 44px; font-weight: 300; line-height: 0.95; letter-spacing: -0.025em;
  margin: 0;
}
.land-ate__title strong { font-weight: 600; }
.land-ate__sub {
  margin: 14px 0 22px;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
}
.land-ate__actions { display: flex; align-items: center; gap: 18px; }
.land-ate__primary {
  font-size: 12px; font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--iris);
  padding-bottom: 2px;
}
.land-ate__secondary {
  font-size: 12px; font-weight: 500; color: var(--ink-faint);
}
.land-ate__visual {
  aspect-ratio: 4/5;
  background: var(--sand);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.land-ate__visual::after {
  content: '';
  position: absolute; top: 12px; left: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--iris);
}
.placeholder-img {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(28,27,34,0.04) 6px, rgba(28,27,34,0.04) 7px);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* —— Social posts —— */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.post {
  aspect-ratio: 1;
  border-radius: 12px;
  padding: 24px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
}
.post__brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; }
.post__brand img { height: 14px; }
.post__pos { font-family: var(--mono); font-size: 9px; opacity: 0.5; }

/* bold social */
.post--bold {
  background: var(--iris);
  color: #fff;
}
.post--bold .post__brand img { filter: brightness(0) invert(1); }
.post--bold-dark {
  background: var(--onyx);
  color: #fff;
}
.post--bold-dark .post__brand img { filter: brightness(0) invert(1); }
.post--bold-dark::after {
  content: 'Y';
  position: absolute;
  font-weight: 800; font-size: 220px; line-height: 0.8;
  color: var(--iris);
  right: -20px; top: -30px;
  opacity: 1;
}
.post__bold-title {
  font-weight: 800; font-size: 30px; line-height: 0.9; letter-spacing: -0.04em;
  position: relative; z-index: 1;
}
.post__bold-foot {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.75;
  position: relative; z-index: 1;
}

/* atelier social */
.post--atelier {
  background: var(--linen);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.post--petal {
  background: var(--petal);
  color: var(--ink);
}
.post__atelier-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--iris);
}
.post__atelier-title {
  font-weight: 300; font-size: 24px; line-height: 1.0; letter-spacing: -0.025em;
}
.post__atelier-title strong { font-weight: 600; }

/* —— Papelaria / brindes —— */
.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.paper {
  aspect-ratio: 4/3;
  border-radius: 8px;
  position: relative;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.paper--atelier {
  background: var(--linen);
  border: 1px solid var(--rule);
}
.paper--onyx {
  background: var(--onyx); color: #fff;
}
.paper--onyx::after {
  content: ''; position: absolute; right: -40px; bottom: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--iris); opacity: 0.7;
}
.paper--iris {
  background: var(--iris); color: #fff;
}
.paper__top { display: flex; align-items: center; gap: 8px; }
.paper__top img { height: 14px; }
.paper__top span { font-weight: 700; font-size: 14px; letter-spacing: -0.02em; }
.paper--onyx .paper__top img { filter: brightness(0) invert(1); }
.paper--iris .paper__top img { filter: brightness(0) invert(1); }

.paper--atelier .paper__body { font-size: 11px; color: var(--ink-soft); line-height: 1.55; }
.paper--atelier .paper__body strong { color: var(--ink); font-weight: 600; }
.paper--atelier .paper__body .accent { color: var(--iris-deep); }

.paper--onyx .paper__body {
  font-weight: 800; font-size: 26px; line-height: 0.88;
  letter-spacing: -0.04em;
  position: relative; z-index: 1;
}
.paper--onyx .paper__body em { font-style: normal; color: var(--iris); }

.paper--iris .paper__body {
  font-weight: 800; font-size: 26px; line-height: 0.88;
  letter-spacing: -0.04em;
}
.paper--iris .paper__body em { font-style: normal; color: var(--bolt); }

.paper__tag {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.55;
}

/* ============================================================
   VOICE & TONE
   ============================================================ */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.voice-card {
  padding: 32px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--rule);
}
.voice-card h4 {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 16px;
}
.voice-card--bold h4 { color: var(--iris-deep); }
.voice-card--atelier h4 { color: var(--ink-faint); }
.voice-card .ex {
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.voice-card--bold .ex {
  background: var(--onyx); color: #fff;
  font-weight: 800; letter-spacing: -0.025em;
  font-size: 22px;
  line-height: 1.0;
}
.voice-card--bold .ex em { color: var(--iris); font-style: normal; }
.voice-card--atelier .ex {
  background: var(--linen); color: var(--ink);
  font-weight: 400;
}
.voice-card--atelier .ex strong { font-weight: 600; }
.voice-card .meta {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   RULES (when to use which)
   ============================================================ */
.rule-table {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
}
.rule-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.rule-table__row:first-child { border-top: 0; background: var(--linen-deep); }
.rule-table__row:first-child > div {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.rule-table__row > div {
  padding: 18px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.rule-table__row > div + div {
  border-left: 1px solid var(--rule);
}
.rule-table__row > div:first-child {
  font-weight: 600; color: var(--ink);
}
.rule-table__row > div.bold-cell {
  background: var(--onyx); color: #fff;
  font-weight: 600;
}
.rule-table__row > div.bold-cell em { color: var(--iris); font-style: normal; }
.rule-table__row > div.atelier-cell {
  background: #fff; color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.colophon {
  padding: 64px 80px;
  background: var(--onyx);
  color: rgba(255,255,255,0.7);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.colophon__brand img { height: 22px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.colophon__brand p { font-size: 13px; line-height: 1.55; max-width: 30ch; }
.colophon h5 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 14px;
}
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li {
  padding: 4px 0;
  font-size: 13px;
}
.colophon li strong { color: #fff; font-weight: 600; }

/* utility */
.stack-2 > * + * { margin-top: 8px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-6 > * + * { margin-top: 24px; }
.stack-8 > * + * { margin-top: 32px; }

/* responsive cap */
@media (max-width: 1080px) {
  .spread { padding: 56px 32px; }
  .cover { padding: 32px 32px 56px; }
  .colophon { padding: 40px 32px; grid-template-columns: 1fr; }
  .duo, .type-modes, .voice-grid, .apps-grid { grid-template-columns: 1fr; }
  .pillars, .logo-rail, .core-colors, .dont-grid, .semantic-grid, .social-grid, .paper-grid { grid-template-columns: repeat(2, 1fr); }
  .swatch-rail { grid-template-columns: repeat(5, 1fr); }
  .color-row, .clearspace { grid-template-columns: 1fr; }
  .land-ate__body, .land-bold__nav { grid-template-columns: 1fr; gap: 18px; }
}
