/* ==========================================================================
   Dianne Francisco — personal site B24
   Bang & Olufsen design language: Beo Black / Beo White foundation,
   burgundy kept as the signature colour. Simple, quiet headlines.
   Type: Archivo stands in for BeoSupreme (primary), Outfit for BeoLogue
   (warm, handcrafted — used selectively for moments of emphasis).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Three distinct warm colours, each with one job:
     maroon  = the signature accent (pipeline / revenue, eyebrows, dates, buttons)
     red     = the big statement band (Selected Work) and the ticker
     terracotta = the single warm/tan section (Skills), per the reference */
  --beo-black: #1A1A18;
  --paper: #FBF9F4;
  --white: #FFFFFF;

  --maroon: #6B2231;
  --maroon-deep: #551A26;
  --red: #9C2A20;
  --red-deep: #8A241C;
  --terracotta: #B4552F;

  --blush: #EFD9D8;
  --midnight: #2B2849;

  /* neutral creams: tan is reserved for the one terracotta section */
  --panel: #F3F0E8;
  --linen: #EDE8DD;
  --card: #FFFFFF;
  --taupe: #DCD3C6;
  --gray: #6B6660;
  --line: rgba(26, 26, 24, 0.16);
  --line-onDark: rgba(251, 249, 244, 0.18);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --accent: "Outfit", "Archivo", sans-serif;

  --radius: 6px;
  --radius-tile: 16px;
  --pad-section: clamp(4.5rem, 9vw, 7.5rem);
  --pad-side: clamp(1.25rem, 4vw, 3.5rem);
  --container: 1280px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--beo-black);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-side);
  padding-right: var(--pad-side);
  position: relative;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.kicker--wine { color: var(--maroon); }
.kicker--terra { color: var(--terracotta); }
.kicker--blush { color: var(--blush); }
.kicker--onWine { color: rgba(251, 249, 244, 0.85); }

/* ==========================================================================
   HEADLINES — simple, B&O sentence case, tight tracking
   ========================================================================== */
.hero__headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
}

.sec-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.contact__headline {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.contact__accent { color: var(--blush); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--pad-side);
  background: rgba(251, 249, 244, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { color: var(--beo-black); opacity: 0.72; transition: opacity 0.25s, color 0.25s; }
.nav__links a:hover { opacity: 1; color: var(--maroon); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--paper); overflow: clip; padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__eyebrow { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.hero__sub { margin-top: 1.6rem; font-size: 0.95rem; color: var(--gray); max-width: 27rem; }
.hero__ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 2rem; }
/* portrait sits over an offset taupe block, with padding around it */
.hero__media {
  position: relative;
  width: min(100%, 390px);
  justify-self: end;
  padding: clamp(1.5rem, 2.6vw, 2.4rem) 0 0 clamp(1.5rem, 2.6vw, 2.4rem);
}
.hero__media::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 82%;
  height: 84%;
  background: var(--taupe);
  z-index: 0;
}
.hero__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  filter: grayscale(1) contrast(1.05);
}
.hero__video {
  position: absolute;
  top: clamp(1.5rem, 2.6vw, 2.4rem);
  left: clamp(1.5rem, 2.6vw, 2.4rem);
  right: 0;
  bottom: 0;
  z-index: 2;
  width: auto; height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }
.hero__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}
.logo { flex: none; display: block; width: auto; filter: brightness(0); opacity: 0.78; }
.logo--peekpro { height: 20px; }
.logo--weee { height: 18px; }
.logo--twitter { height: 21px; }
.logo--tubemogul { height: 20px; }
.logo--adobe { height: 20px; }
.logo--kpmg { height: 21px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95em 1.9em;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--beo-black);
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn--wine { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.btn--wine:hover { background: var(--beo-black); border-color: var(--beo-black); }
.btn--line { background: transparent; color: var(--beo-black); }
.btn--line:hover { background: var(--beo-black); color: var(--paper); }
.btn--cream { background: var(--paper); border-color: var(--paper); color: var(--beo-black); font-size: clamp(0.62rem, 1.4vw, 0.76rem); }
.btn--cream:hover { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
  background: var(--maroon);
  color: var(--paper);
  overflow: clip;
  padding: 0.7rem 0;
  white-space: nowrap;
}
.ticker__track { display: inline-flex; will-change: transform; }
.ticker__seq { display: inline-flex; align-items: center; }
.ticker__seq span {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ticker__seq i { font-style: normal; opacity: 0.5; margin: 0 1.6rem; }

/* ==========================================================================
   ABOUT — sideways word, no photo
   ========================================================================== */
.about { display: grid; grid-template-columns: 1.12fr 0.88fr; }
.about__left { background: var(--beo-black); color: var(--paper); display: flex; }
.about__leftInner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3.5rem);
  margin-left: auto;
  width: 100%;
  max-width: calc(var(--container) * 0.56 + 2 * var(--pad-side));
}
/* width = the sideways word's line box. Safari sizes vertical text in an auto grid
   column as 0, which let the word sit on top of the intro text on iPhone */
.about__word { font-size: clamp(2.6rem, 5.4vw, 4.6rem); width: 0.9em; }
.about__word span {
  display: block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--display);
  font-weight: 500;
  font-size: 1em;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--paper);
}
.about__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.about__para {
  margin-top: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: rgba(251, 249, 244, 0.76);
  max-width: 34rem;
}
.about__bar {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-onDark);
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(251, 249, 244, 0.55);
  max-width: 34rem;
}
.about__bar strong { font-family: var(--accent); font-weight: 500; color: var(--blush); }

.about__right { background: var(--panel); display: flex; align-items: center; }
.glance {
  width: 100%;
  max-width: calc(var(--container) * 0.44);
  margin-right: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
}
.glance__row {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
  line-height: 1.5;
}
.glance__row:last-child { border-bottom: 0; }
.glance__icon { width: 26px; height: 26px; flex: none; color: var(--terracotta); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding: var(--pad-section) 0; overflow: clip; }
.section--panel { background: var(--panel); }
.section--dark { background: var(--beo-black); color: var(--paper); }

.sec-head { margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); }
.sec-head .kicker { display: block; margin-bottom: 1rem; }
.sec-note { margin-top: 1.1rem; }
.hint--touch { display: none; }
@media (hover: none) {
  .hint--hover { display: none; }
  .hint--touch { display: inline; }
}
.sec-head--onDark .sec-note { color: rgba(251, 249, 244, 0.5); }
.section--dark .sec-title { color: var(--paper); }

/* ==========================================================================
   EXPERIENCE — connected logo grid
   ========================================================================== */
.journey { background: var(--linen); }
.xgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.7rem, 1.3vw, 1.05rem);
  perspective: 1800px;
}
.xcell {
  position: relative;
  background: transparent;
  outline: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.xcell:hover,
.xcell:focus-visible { transform: translateY(-6px); }
.xcell__inner {
  position: relative;
  width: 100%;
  min-height: 315px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.xcell:focus-visible .xcell__inner,
.xcell.is-flipped .xcell__inner { transform: rotateY(180deg); }
/* touch screens keep :hover stuck after a tap, which stopped a second tap from flipping back */
@media (hover: hover) {
  .xcell:hover .xcell__inner { transform: rotateY(180deg); }
}
.xcell__front,
.xcell__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.2rem;
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(25, 24, 23, 0.05),
    0 14px 30px -22px rgba(25, 24, 23, 0.42);
  transition: box-shadow 0.5s ease;
}
.xcell:hover .xcell__front,
.xcell:hover .xcell__back,
.xcell:focus-visible .xcell__front,
.xcell:focus-visible .xcell__back {
  box-shadow:
    0 2px 5px rgba(25, 24, 23, 0.07),
    0 28px 50px -24px rgba(25, 24, 23, 0.5);
}
/* centred stack; the fixed logo band + reserved role height keep every
   cell the same content height, so centring still lines them all up */
.xcell__front {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--card);
  color: var(--beo-black);
  border: 1.5px solid var(--terracotta);
}
/* fixed-height logo band keeps logos optically centred and the
   years + roles on a shared line across all five cells */
.xcell__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
}
.xcell__mark { display: block; height: 28px; width: auto; filter: brightness(0); opacity: 0.9; }
.xcell__mark--weee { height: 25px; }
.xcell__mark--twitter { height: 26px; }
.xcell__mark--kpmg { height: 26px; }
.xcell__logo--duo { flex-direction: column; gap: 0.65rem; }
.xcell__logo--duo .xcell__mark { height: 19px; }
.xcell__years { margin-top: 1rem; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--terracotta); }
.xcell__role {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 18ch;
  min-height: 2.7em;
}
.xcell__back {
  background: var(--terracotta);
  color: var(--paper);
  border: 1.5px solid var(--terracotta);
  transform: rotateY(180deg);
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  padding: 1.35rem 1.05rem;
}
.xcell__story {
  margin-top: 0.85rem;
  font-size: 0.71rem;
  line-height: 1.55;
  color: rgba(251, 249, 244, 0.85);
}
.xcell__back .kicker--blush { color: rgba(251, 249, 244, 0.9); }
.xladder { margin-top: 0.9rem; display: grid; gap: 0.7rem; padding-left: 0.9rem; border-left: 1px solid rgba(251, 249, 244, 0.35); }
.xladder li { position: relative; font-size: 0.77rem; line-height: 1.4; color: rgba(251, 249, 244, 0.8); }
.xladder li::before {
  content: "";
  position: absolute;
  left: -1.11rem;
  top: 0.85em;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: var(--terracotta);
}
.xladder .kicker { display: block; font-size: 0.52rem; color: rgba(251, 249, 244, 0.6); margin-bottom: 0.1rem; }
.xladder__now { font-family: var(--accent); font-weight: 500; font-size: 0.95rem; color: var(--paper); }
.xladder__now::before { background: var(--paper); border-color: var(--paper); }
.xcell__note {
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(251, 249, 244, 0.35);
  align-self: stretch;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--paper);
}

/* ==========================================================================
   SELECTED WORK
   ========================================================================== */
.work { background: var(--maroon); color: var(--paper); }
.work .sec-title { color: var(--paper); }
.cases { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.1rem, 2.2vw, 1.9rem); }
.case { border-top: 2px solid rgba(251, 249, 244, 0.55); padding-top: 1.3rem; }
/* fixed logo band so every stat number starts on the same line */
.case__logo {
  display: flex;
  align-items: center;
  height: 34px;
  margin-bottom: 1.2rem;
}
.case__mark {
  display: block;
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.case__mark--weee { height: 18px; }
.case__mark--twitter { height: 19px; }
.case__logo--duo { gap: 0.7rem; }
.case__logo--duo .case__mark { height: 17px; }
.case__idx { color: var(--blush); }
.case__num {
  margin-top: 0;
  font-family: var(--accent);
  font-weight: 500;
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.case__num small { font-size: 0.34em; font-weight: 400; margin-left: 0.08em; }
.case__unit { margin-top: 0.5rem; color: var(--blush); }
.case__title {
  margin-top: 0.9rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper);
  min-height: 2.6em;
}
.case__line { margin-top: 0.6rem; font-size: 0.74rem; line-height: 1.6; color: rgba(251, 249, 244, 0.72); }

/* ==========================================================================
   PROOF OF WORK
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 165px;
  gap: 0.8rem;
}
.b-tile { position: relative; overflow: hidden; background: #0F0E0D; cursor: pointer; border-radius: 12px; }
.b-tile--2x2 { grid-column: span 2; grid-row: span 2; }
.b-tile--2x1 { grid-column: span 2; }
.b-tile--1x2 { grid-row: span 2; }
.b-tile img, .b-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
  filter: saturate(0.15) contrast(1.03);
}
.b-tile img { object-fit: cover; object-position: top; }
.b-tile video { object-fit: contain; }
.b-tile--fit img { object-fit: contain; object-position: center; }
.b-tile--center img { object-position: center; }
.b-tile:hover img, .b-tile:hover video { filter: saturate(1); transform: scale(1.03); }
.b-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2rem 0.9rem 0.75rem;
  background: linear-gradient(to top, rgba(15, 14, 13, 0.92), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.b-tile:hover figcaption { opacity: 1; transform: translateY(0); }
.b-tile figcaption .kicker { color: var(--blush); display: block; margin-bottom: 0.15rem; font-size: 0.55rem; }
.b-tile figcaption strong {
  color: var(--paper);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.35;
  display: block;
}
.b-tile__link { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.b-tile__link:focus-visible { outline: 2px solid var(--paper); outline-offset: -4px; }
.b-badge {
  position: absolute;
  top: 0.65rem; right: 0.65rem;
  z-index: 2;
  color: var(--paper);
  background: rgba(15, 14, 13, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 249, 244, 0.25);
  padding: 0.35em 0.8em;
  font-size: 0.53rem;
  border-radius: 999px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 14, 13, 0.97);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox__content { max-width: min(94vw, 1400px); max-height: 78vh; display: flex; }
.lightbox__yt {
  width: min(92vw, 1180px);
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 10px;
}
.lightbox__content img, .lightbox__content video {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox__caption { margin-top: 1.1rem; color: rgba(251, 249, 244, 0.7); text-align: center; }
.lightbox__close { position: absolute; top: 1.25rem; right: var(--pad-side); color: var(--paper); opacity: 0.8; }
.lightbox__close:hover { opacity: 1; }

/* ==========================================================================
   SKILLS — burgundy band
   ========================================================================== */
.skills { background: var(--paper); color: var(--beo-black); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.skills__grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.skills__head .kicker { display: block; margin-bottom: 1rem; }
.skills__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--beo-black);
}
.skills__rows { display: grid; gap: 1.3rem; }
.skills__row {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}
.skills .kicker--onWine { color: var(--maroon); }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 999px;
  padding: 0.55em 1.1em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { background: var(--beo-black); border-color: var(--beo-black); color: var(--paper); }

/* ==========================================================================
   EDUCATION
   ========================================================================== */
.education-sec { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.education__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.education__row:last-child { border-bottom: 1px solid var(--line); }
.education__row h4 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; }

/* ==========================================================================
   BEHIND THE CAREER
   ========================================================================== */
.strip { padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--paper); }
.strip .sec-head { margin-bottom: 1.75rem; }
.strip__viewport { overflow: clip; white-space: nowrap; }
.strip__track { display: inline-flex; will-change: transform; }
.strip__seq { display: inline-flex; align-items: flex-start; gap: clamp(1rem, 2vw, 1.5rem); padding-right: clamp(1rem, 2vw, 1.5rem); }
.polaroid {
  flex: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.6rem 0.75rem;
  width: clamp(230px, 22vw, 300px);
}
.polaroid img {
  width: 100%;
  border-radius: 7px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: filter 0.45s;
}
.polaroid:hover img { filter: grayscale(0) contrast(1); }
.polaroid figcaption { margin-top: 0.65rem; font-size: 0.53rem; letter-spacing: 0.15em; white-space: normal; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding-bottom: 2.25rem; }
.contact__links {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact__linkedin { color: var(--paper); opacity: 0.8; transition: opacity 0.25s; }
.contact__linkedin:hover { opacity: 1; }
.footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-onDark);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer .kicker { color: rgba(251, 249, 244, 0.5); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1120px) {
  .xgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__leftInner { max-width: none; margin: 0; }
  .glance { max-width: none; margin: 0; }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .skills__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; width: min(100%, 340px); }
}
@media (max-width: 980px) {
  .bento { grid-auto-rows: 150px; } /* stays 4 columns: the tile spans only fill a 4- or 2-column grid without gaps */
}
@media (max-width: 900px) {
  .nav__name { letter-spacing: 0.14em; font-size: 0.85rem; }
  .about__leftInner { grid-template-columns: auto 1fr; gap: 1.25rem; }
  .about__word { font-size: clamp(4rem, 17vw, 7rem); }
  .skills__row { grid-template-columns: 1fr; gap: 0.6rem; padding-top: 1.1rem; }
}
@media (max-width: 700px) {
  .xgrid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 135px; gap: 0.55rem; grid-auto-flow: dense; }
  .b-tile figcaption { opacity: 1; transform: none; }
  .b-tile img, .b-tile video { filter: saturate(0.9); }
  .hero__logos { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 1.4rem 0.75rem; }
  .hero__logos .logo:nth-child(3n+1) { justify-self: start; }
  .hero__logos .logo:nth-child(3n+2) { justify-self: center; }
  .hero__logos .logo:nth-child(3n) { justify-self: end; }
  .nav { flex-direction: column; gap: 0.5rem; padding-bottom: 0.75rem; }
  .nav__links { gap: 1rem; }
  .nav__links a { font-size: 0.57rem; }
  .xgrid { grid-template-columns: 1fr; }
  .xcell__inner { min-height: 235px; }
}

/* ==========================================================================
   MOTION SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .b-tile img, .b-tile video, .xcell__inner, .polaroid img { transition: none; }
  .hero__video { display: none; }
}
