/* Dark-mode-only token values, lifted directly from the main site's
   src/styles/tokens.css :root[data-theme='dark'] block, extended with
   the additional values used in Carlo's Figma redesign (text/subtle,
   text/dim, border/dim, the #171717 image-well fill, and the lilac
   link accent). Font weight note: the Figma file uses both
   Sequel100Black-75 and -85, this repo only ships the -65 weight, so
   everything maps to that single file for now (per Carlo, "run with
   65 for now, update later"). */
:root {
  --color-bg: #212121;
  --color-surface: #2d2d2d;
  --color-sunken: #1c1c1c;
  --color-text: #f4f1ef;
  --color-text-subtle: rgba(215, 212, 210, 0.9);
  --color-text-dim: rgba(215, 212, 210, 0.65);
  --color-border: #f4f5f840;
  --color-border-dim: rgba(244, 241, 239, 0.25);
  --color-well: #171717;
  --accent-azure: #1487ff;
  --accent-lilac: #cdabfe;

  --font-display: 'Sequel100Black-65', sans-serif;
  --font-sans: 'Switzer', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --ease-reveal: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-base: 200ms;

  --slide-w: 1920px;
  --slide-h: 1080px;
}

@font-face {
  font-family: 'Sequel100Black-65';
  src: url('/fonts/Sequel100Black-65.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('/fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
}

#viewport {
  position: fixed;
  inset: 0;
  background: #000;
}

#stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--slide-w);
  height: var(--slide-h);
  background: var(--color-bg);
  transform-origin: center center;
  /* transform is set inline by deck.js (translate + scale combined) */
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  font-family: var(--font-sans);
}

.slide.is-active {
  display: block;
}

/* Shared footer: wordmark / showcase label / copyright / page number,
   identical 8-col grid on every slide. */
.footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 56px 56px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0 24px;
  align-items: center;
}

.footer__wordmark {
  grid-column: 1 / span 4;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  color: var(--color-text);
  margin: 0;
}

.footer__meta {
  grid-column: 5 / span 2;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-subtle);
  margin: 0;
}

.footer__copyright {
  grid-column: 7;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-subtle);
  margin: 0;
}

.footer__page {
  grid-column: 8;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--color-text);
  text-align: right;
  margin: 0;
}

/* Shared top title bar */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar h1 {
  flex: 1 1 0;
  min-width: 0;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.64px;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
}

.topbar--lg h1 {
  font-size: 64px;
  letter-spacing: -1.28px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 8px 22px 8px 20px;
  border-radius: 98px;
  background: #292929;
  font-size: 16px;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}

/* Content area: everything between the topbar and footer */
.content {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 271px;
  bottom: 240px;
}

/* Image wells: flat fill blocks standing in for real visuals, caption
   sits below as plain text, not inside the well. */
.well-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  height: 100%;
  min-width: 0;
}

.well {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--color-well);
  overflow: hidden;
}

.well img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.well img.is-cropped {
  position: absolute;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: unset;
}

.well-row--nested {
  flex-direction: column;
}

.caption-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.caption {
  flex: 1 1 0;
  font-size: 11px;
  line-height: 1.1;
  color: var(--color-text-subtle);
  margin: 0;
}

/* S1 — cover */
.slide--cover {
  background: var(--color-bg);
}

.slide--cover .cover-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide--cover .cover-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide--cover .cover-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(115, 115, 115, 0) 39%, #393939);
  mix-blend-mode: multiply;
}

.slide--cover .cover-grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0 24px;
  align-items: end;
  padding: 0 56px;
}

.slide--cover .cover-bio {
  grid-column: 1 / 4;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

.slide--cover .cover-name {
  grid-column: 5 / 9;
  text-align: right;
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 0.95;
  letter-spacing: -4px;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

/* S2 — index */
.index-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: absolute;
  left: calc(50% + 12px);
  top: 135px;
  width: 892px;
}

.index-section__title {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--color-text);
  margin: 0 0 16px;
}

.index-section__title span {
  color: var(--color-text-subtle);
}

.index-section__rows {
  display: flex;
  flex-direction: column;
  padding-left: 62px;
}

.index-row {
  display: flex;
  gap: 24px;
  padding: 12px 0 6px;
  border-bottom: 1px solid var(--color-border-dim);
  font-size: 18px;
  color: var(--color-text-subtle);
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.index-row:hover {
  color: var(--color-text);
}

.index-row span:first-child {
  flex: 1 1 0;
}

.index-row span:last-child {
  flex: 1 1 0;
  text-align: right;
}

.index-section__title--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.index-section__title--link:hover {
  opacity: 0.7;
}

/* S3 — about me */
.about-photos {
  position: absolute;
  left: 56px;
  top: 223px;
  width: 1350px;
  height: 532px;
  display: flex;
  gap: 24px;
}

.about-photos .well {
  flex: 1 1 0;
}

.about-bio {
  position: absolute;
  left: 75%;
  transform: translateX(-10px);
  top: 584px;
  width: 434px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
}

.about-bio p {
  margin: 0 0 20px;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-captions {
  position: absolute;
  left: 56px;
  top: 771px;
  width: 286px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-subtle);
}

.about-captions p {
  margin: 0;
}

/* S4 — career timeline */
.career-line {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 543px;
  height: 0;
  border-top: 1px dashed var(--color-border-dim);
}

.career-year {
  position: absolute;
  top: 498px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.36px;
  color: #fff;
  margin: 0;
}

.era-tick-mark {
  position: absolute;
  top: 532px;
  width: 24px;
  height: 45px;
}

.era-tick-mark__stem {
  transform-box: fill-box;
  transform-origin: top;
}

.career-era {
  position: absolute;
  top: 594px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.career-era h3 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--color-text);
  margin: 0;
  white-space: nowrap;
}

.career-era p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text-subtle);
  margin: 0;
}

.career-era--future h3,
.career-era--future p {
  color: var(--color-text-dim);
}

/* Covers the TBD column as it nears the stage edge, matching Figma's
   gradient overlay approach (more reliable cross-browser than masking
   the text itself). */
.career-fade {
  position: absolute;
  left: 1710px;
  top: 432px;
  width: 210px;
  height: 359px;
  background: linear-gradient(to left, var(--color-bg) 27.429%, transparent 123.94%);
  pointer-events: none;
}

.career-stepper {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 276px;
  display: flex;
  height: 75px;
}

.career-stepper__step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  border: 1px solid var(--color-border-dim);
  font-size: 18px;
  color: var(--color-text-subtle);
}

.career-stepper__step--active {
  color: var(--color-text);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1.2px);
  background-size: 13px 13px;
  background-position: 50% 50%;
  background-repeat: repeat;
  background-blend-mode: overlay;
  text-shadow: 0 0 18px var(--color-bg), 0 0 18px var(--color-bg), 0 0 18px var(--color-bg);
}

/* S5 — values */
.values-grid {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 500px;
  display: flex;
  gap: 47px;
}

.value-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.value-card h3 {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.72px;
  color: var(--color-text);
  margin: 0;
  min-height: 130px;
}

.value-card p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-subtle);
  margin: 0;
}

.is-placeholder,
.value-card p.is-placeholder {
  color: var(--color-signal, #ff7b4c);
  font-style: italic;
}

/* S6 — three tools */
.tools-grid {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 410px;
  display: flex;
  gap: 174px;
}

.tool-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool-card__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.tool-card__label {
  font-size: 18px;
  color: var(--color-text-subtle);
  margin: 0;
}

.tool-card__desc {
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin: 0;
  color: var(--color-text);
}

.tool-card__desc .dim {
  color: var(--color-text-subtle);
}

/* Case study intro template (S7, S12, S16) */
.case-intro {
  position: absolute;
  inset: 0;
}

.case-intro__image {
  position: absolute;
  left: 0;
  top: 0;
  width: 916px;
  height: 1080px;
  background: var(--color-well);
  overflow: hidden;
}

.case-intro__image img.is-cropped {
  position: absolute;
  max-width: none;
  object-fit: unset;
}

.case-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-intro__client {
  position: absolute;
  left: calc(50% + 12px);
  top: 56px;
  font-family: var(--font-display);
  font-size: 48px;
  color: #fff;
  margin: 0;
}

.case-intro__body {
  position: absolute;
  left: calc(50% + 12px);
  top: 409px;
  width: 892px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.case-intro__tag {
  font-size: 18px;
  color: var(--color-text-subtle);
  margin: 0;
}

.case-intro__desc {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.48px;
  color: var(--color-text);
  margin: 0;
}

.case-intro__desc p {
  margin: 0 0 12px;
}

.case-intro__desc p:last-child {
  margin-bottom: 0;
}

.case-intro__desc .reason-label {
  font-style: italic;
  color: var(--color-text-subtle);
}

.case-intro__desc.is-placeholder {
  color: var(--color-signal, #ff7b4c);
  font-style: italic;
}

.case-intro__meta {
  display: flex;
  flex-direction: column;
  font-size: 18px;
}

.case-intro__meta-row {
  display: flex;
  gap: 24px;
  padding: 8px 0;
  border-top: 1px solid var(--color-border-dim);
}

.case-intro__meta-row:first-child {
  border-top: none;
}

.case-intro__meta-row span:first-child {
  flex: 1 1 0;
  color: var(--color-text-subtle);
}

.case-intro__meta-row span:last-child {
  flex: 1 1 0;
  text-align: right;
  color: var(--color-text);
}

/* S13 — Commercial Cards design sprint */
.sprint-quote {
  position: absolute;
  left: 1199px;
  top: 313px;
  width: 668px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

.sprint-quote em {
  font-style: italic;
}

.sprint-row {
  position: absolute;
  left: 56px;
  right: 56px;
  top: 518px;
  height: 254px;
  display: flex;
}

.sprint-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 80px;
  padding: 24px;
  border: 1px solid var(--color-border-dim);
}

.sprint-card__day {
  font-size: 18px;
  color: var(--color-text-subtle);
  margin: 0;
}

.sprint-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sprint-card__body h3 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--color-text);
  margin: 0;
}

.sprint-card__body p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--color-text-subtle);
  margin: 0;
}

/* S16 — Commercial Cards foundations (dashboard) */
.foundations-title {
  position: absolute;
  left: 972px;
  top: 56px;
  width: 892px;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.64px;
  color: var(--color-text);
  margin: 0;
}

/* S17 — Salesforce demo collage */
.demo-collage {
  position: absolute;
  inset: 0;
}

.demo-collage img {
  position: absolute;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* S18 — close */
.slide--close .cover-name {
  position: absolute;
  left: 56px;
  top: 766px;
  font-family: var(--font-display);
  font-size: 228px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

/* Presenter notes: hidden by default, toggled with "N" */
.slide__notes {
  display: none;
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 140px;
  padding: 16px 28px;
  background: rgba(20, 135, 255, 0.08);
  border: 1px solid var(--accent-azure);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
  z-index: 5;
}

.slide__notes::before {
  content: 'LANDS';
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent-azure);
  margin-bottom: 6px;
}

body.notes-visible .slide.is-active .slide__notes {
  display: block;
}

/* Controls */
#controls {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 18px;
  background: rgba(45, 45, 45, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  z-index: 10;
}

#controls button {
  all: unset;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
  font-size: 18px;
  transition: background var(--duration-base) var(--ease-reveal);
}

#controls button:hover {
  background: rgba(255, 255, 255, 0.12);
}

#controls button:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

#counter {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-subtle);
  min-width: 64px;
  text-align: center;
}

#notes-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-subtle);
  z-index: 10;
}

#notes-hint kbd {
  border: 1px solid var(--color-border-dim);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
}

/* Lightbox: click any content image to view it full size */
.well img,
.about-photos img,
.case-intro__image img,
.demo-collage img {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 64px;
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
  all: unset;
  position: fixed;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1;
  transition: background var(--duration-base) var(--ease-reveal);
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
