/* Cassis + Kankana — shared subpage styles (used across servicios/* + portafolio + nosotros) */

/* ── PAGE HERO (reused from servicios) ───── */
.page-hero {
  position: relative;
  padding: clamp(140px, 18vh, 220px) 28px clamp(80px, 10vh, 140px);
  overflow: hidden;
  min-height: 70vh;
}
.page-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero .curtain-left, .page-hero .curtain-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 18vw;
  max-width: 280px;
  background:
    linear-gradient(90deg, oklch(20% 0.08 260 / 0.5), transparent),
    repeating-linear-gradient(90deg,
      oklch(16% 0.06 260 / 0) 0,
      oklch(16% 0.06 260 / 0) 14px,
      oklch(12% 0.05 260 / 0.5) 28px,
      oklch(12% 0.05 260 / 0) 46px);
  mix-blend-mode: screen;
  opacity: 0.42;
}
.page-hero .curtain-left { left: 0; }
.page-hero .curtain-right { right: 0; transform: scaleX(-1); }
.page-hero .hero-spot {
  position: absolute;
  inset: -10% 0 auto 0;
  height: 60vh;
  background: radial-gradient(ellipse 60vw 40vh at 50% 0%, oklch(72% 0.10 75 / 0.16), transparent 65%);
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1080px;
}
.page-hero h1.display {
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  font-weight: 500;
  color: var(--paper);
  line-height: 1.02;
}
.page-hero h1.display em { color: var(--curtain-lit); }
.page-hero .lede { color: oklch(85% 0.03 80 / 0.85); max-width: 60ch; }
.page-hero .lede em { color: var(--brass); }
.page-hero .row .btn-ghost { color: var(--paper); }

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: oklch(85% 0.03 80 / 0.55);
}
.breadcrumb a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb span:not(:last-child) { opacity: 0.4; }
.breadcrumb span:last-child { color: var(--paper); }

/* ── TRIPLE GRID ──────────────────────────── */
.triple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .triple-grid { grid-template-columns: repeat(3, 1fr); }
}
.triple-grid.alt .card {
  background: var(--paper-warm);
  border-color: var(--paper-deep);
}

/* ── DISCIPLINES grid ─────────────────────── */
.disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: none;
}
.disc {
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 500;
  transition: background var(--t-med), color var(--t-med);
  cursor: default;
}
.disc:hover { background: var(--ink); color: var(--paper); }
.disc:hover .dn { color: var(--brass); }
.disc .dn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ash);
  font-weight: 500;
  opacity: 0.7;
}
.disc:nth-child(odd) span:last-child { font-style: italic; }

/* ── DIFF GRID ──────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid > article { border-right: 1px solid var(--line); padding-right: 32px; }
  .diff-grid > article:nth-child(2n) { border-right: none; padding-left: 32px; padding-right: 0; }
}
@media (min-width: 1080px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid > article { border-right: 1px solid var(--line); padding-right: 32px; padding-left: 32px; }
  .diff-grid > article:nth-child(3n+1) { padding-left: 0; }
  .diff-grid > article:nth-child(3n) { border-right: none; padding-right: 0; }
}
.diff-grid > article {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diff-grid h4.display { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

/* ── PROJECT GRID (sub) ──────────────────────── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
@media (min-width: 860px) {
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid.proj-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
.proj-grid--2 .project-card.span-full { grid-column: 1 / -1; }

/* ── TWO UP ──────────────────────────────── */
.two-up {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) {
  .two-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; }
}

/* ── ICON-LESS FORMATS (cards with mono num) ─────────── */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.format-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-med);
}
.format-card:hover { border-color: var(--ink); }
.format-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--curtain);
}
.format-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

/* ── on-dark variants ────────────────────── */
.on-dark .card {
  background: var(--ink-soft);
  border-color: var(--line-on-dark);
  color: var(--paper);
}
.on-dark .card .muted { color: oklch(85% 0.03 80 / 0.6); }
.on-dark .diff-grid { border-color: var(--line-on-dark); }
.on-dark .diff-grid > article { border-color: var(--line-on-dark); color: var(--paper); }

/* ── PROJECT CARD (clone of home) ────────── */
.project-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.project-card .project-img {
  position: relative;
  aspect-ratio: 16/10;
  max-height: 260px;
  overflow: hidden;
  contain: paint;
  background: var(--ink);
  border-radius: 4px;
}
.project-img image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
  border-radius: 4px;
}
.project-card .project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card .pill { align-self: flex-start; }
.project-card .display {
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
}

/* ── steps adjustments ──────────────────── */
.steps.cols-6 .step { min-height: 160px; }
.steps.cols-6 .step .num { font-size: 32px; }
.on-dark .step { background: var(--ink); }
.on-dark .step:hover { background: var(--ink-soft); }

/* ── PROJECT LIST (typographic) ───── */
.proj-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-c, var(--line));
}
.proj-list li {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-c, var(--line));
  align-items: baseline;
}
.proj-list .numeral {
  color: var(--curtain);
  font-size: 1.4rem;
}
.proj-list .proj-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
}
.proj-list .proj-name em { color: var(--curtain); font-weight: 500; }
.proj-list .proj-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0.7;
}
@media (max-width: 720px) {
  .proj-list li { grid-template-columns: 40px 1fr; gap: 12px; }
  .proj-list .proj-meta { grid-column: 2; opacity: 0.5; }
}


/* ── IMAGE SLOT placeholder treatment ─────────────── */
.srv-img, .project-img, .g-img, .team-portrait,
.image-card, .placeholder-tile {
  background:
    repeating-linear-gradient(135deg,
      oklch(95% 0.018 80 / 0.05) 0,
      oklch(95% 0.018 80 / 0.05) 1px,
      transparent 1px,
      transparent 9px),
    linear-gradient(160deg, oklch(24% 0.04 260) 0%, oklch(16% 0.03 260) 100%) !important;
}
.srv-img > image-slot,
.project-img > image-slot,
.g-img > image-slot,
.team-portrait > image-slot {
  color: oklch(95% 0.018 80 / 0.85) !important;
  font-family: var(--mono) !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.srv-img::before, .project-img::before, .g-img::before, .team-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, oklch(72% 0.10 75 / 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure carousel overlays the placeholder ::before */
.g-img > .carousel,
.project-img > .carousel {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── DISPLAY title rhythm in cards ─────────────────── */
.srv-tile .display + p,
.project-card .display + p,
.g-card .display + p,
.card .display + p {
  margin-top: 6px;
}
.display { padding-bottom: 0.04em; }


/* ── CTA BAND & CONTACT STRIP ─────────────────────── */
.cta-band {
  background: var(--curtain);
  color: var(--paper);
  padding-block: clamp(80px, 12vh, 140px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid oklch(95% 0.018 80 / 0.15);
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 160px;
  background: radial-gradient(ellipse at 50% 0%, oklch(76% 0.09 70 / 0.28), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, oklch(13% 0.012 30 / 0.4), transparent);
  pointer-events: none;
  z-index: 1;
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-inner .eyebrow {
  justify-content: center;
  color: var(--brass);
  font-family: var(--mono);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}
.cta-inner .cta-h,
.cta-h {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  font-weight: 400;
  margin-block: 16px 20px;
  letter-spacing: -0.01em;
  color: var(--paper);
  text-wrap: balance;
}
.cta-inner .cta-h em,
.cta-h em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.cta-band .lede {
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 56ch;
  margin-inline: auto;
}
.cta-band .row {
  gap: 16px;
  margin-top: 36px;
  justify-content: center;
}
.cta-band .btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid oklch(95% 0.018 80 / 0.2);
  box-shadow: 0 8px 24px oklch(13% 0.012 30 / 0.35);
}
.cta-band .btn-ink:hover {
  background: var(--ink-soft);
  border-color: var(--brass);
  transform: translateY(-2px);
}
.cta-band .btn-ghost {
  background: oklch(95% 0.018 80 / 0.08);
  border-color: oklch(95% 0.018 80 / 0.35);
  color: var(--paper);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-band .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}
.cta-contact-strip {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px 20px !important;
  margin-top: 36px !important;
  padding-top: 24px !important;
  border-top: 1px solid oklch(95% 0.018 80 / 0.18) !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
.cta-contact-strip a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--paper) !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: oklch(13% 0.012 30 / 0.3) !important;
  border: 1px solid oklch(95% 0.018 80 / 0.18) !important;
  transition: all var(--t-fast) !important;
  line-height: 1 !important;
}
.cta-contact-strip a:hover {
  background: oklch(95% 0.018 80 / 0.18) !important;
  border-color: var(--brass) !important;
  color: var(--brass) !important;
  transform: translateY(-1px) !important;
}
.cta-contact-strip svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
  fill: currentColor !important;
}
.cta-contact-strip .cta-loc {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  opacity: 0.65 !important;
  color: var(--paper) !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
}
.cta-contact-strip .cta-loc svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
}
