/* Scoped to the TABASCO case study and its Work cover. */
.tabasco-case {
  --hot-ink: #140d0a;
  --hot-cream: #ffebbc;
  --hot-accent: #ff804f;
}

.tabasco-canvas { background: var(--hot-ink); color: var(--hot-cream); }
.tabasco-canvas a { color: inherit; }
.tabasco-canvas :is(h1, h2, figure, p) { margin: 0; }
.tabasco-canvas img { display: block; width: 100%; height: auto; }
.tabasco-shell { padding-inline: clamp(20px, 5vw, 84px); }
.tabasco-caption { font-size: .76rem; letter-spacing: .08em; }
.tabasco-case figcaption { margin-top: .9rem; color: #efc9ae; font-size: .86rem; }

.tabasco-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  min-height: 580px;
}
.tabasco-opening { padding: clamp(36px, 6vw, 100px) clamp(22px, 4vw, 68px); }
.tabasco-opening .tabasco-caption { color: var(--hot-accent); margin-bottom: clamp(24px, 4vw, 58px); }
.tabasco-opening h1 {
  font-size: clamp(3.45rem, 7.2vw, 8.8rem);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: .84;
}
.tabasco-opening h1 span { display: block; color: var(--hot-accent); }
.tabasco-opening .tabasco-intro { font-size: clamp(1rem, 1.6vw, 1.32rem); line-height: 1.55; margin-block: 1.6rem 1.3rem; max-width: 29ch; }
.tabasco-opening .tabasco-brand { color: #efc9ae; }
.tabasco-hero figure { background: #0d0907; }
.tabasco-hero img { max-height: 800px; width: 100%; object-fit: contain; }
.tabasco-case-block { padding-block: clamp(46px, 8vw, 124px); }
.tabasco-case-block h2 { font-size: clamp(2.25rem, 5.5vw, 5rem); letter-spacing: -.06em; line-height: .96; margin: .6rem 0 1.6rem; }
.tabasco-case-block .tabasco-caption { color: var(--hot-accent); }
.tabasco-packaging {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(18px, 5vw, 74px);
  align-items: start;
}
.tabasco-packaging .tabasco-detail { align-self: center; }
.tabasco-outdoor { background: #21120d; }
.tabasco-outdoor figure { width: 100%; }
.tabasco-social {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, .85fr);
  gap: clamp(24px, 7vw, 110px);
  align-items: center;
}
.tabasco-case .tabasco-back {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-block: 24px;
  border-top: 1px solid #614637;
}
.tabasco-case .tabasco-back a { text-decoration: underline; text-underline-offset: .22em; padding-block: 6px; }

.tabasco-work-cover { position: relative; display: block; background: #140d0a; color: #ffebbc; }
.tabasco-work-cover img { display: block; width: 100%; height: auto; }
.tabasco-work-cover .v3-cover-action { color: #ffebbc; background: #140d0a; }
.tabasco-work-cover:focus-visible { outline: 3px solid #a52416; outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tabasco-work-cover .v3-cover-action { transition: background-color 180ms ease, color 180ms ease; }
  .tabasco-work-cover:hover .v3-cover-action { background: #ffebbc; color: #140d0a; }
}
@media (max-width: 760px) {
  .tabasco-hero, .tabasco-social { grid-template-columns: minmax(0, 1fr); }
  .tabasco-hero { min-height: 0; }
  .tabasco-opening { padding: 34px 22px; }
  .tabasco-opening h1 { font-size: clamp(3.45rem, 12vw, 6.1rem); }
  .tabasco-opening .tabasco-caption { margin-bottom: 18px; }
  .tabasco-opening .tabasco-intro { margin-block: 1.15rem .8rem; }
  .tabasco-hero img { max-height: none; }
}
@media (max-width: 520px) {
  .tabasco-packaging { grid-template-columns: minmax(0, 1fr); }
  .tabasco-packaging .tabasco-detail { margin-top: 6px; }
  .tabasco-work-cover .v3-cover-action { position: static; display: block; }
}

.tabasco-social .tabasco-social-copy > p { max-width: 35ch; line-height: 1.55; }
.tabasco-social .tabasco-social-copy > p:not(.tabasco-caption) { color: #efc9ae; }
.tabasco-social .tabasco-motion { margin-block-start: 1.7rem; max-width: 294px; }
.tabasco-motion video { display: block; width: 100%; height: auto; background: #0d0907; }
@media (max-width: 760px) {
  .tabasco-social .tabasco-social-copy { display: contents; }
  .tabasco-social .tabasco-social-copy > :is(h2,p) { grid-column: 1; }
  .tabasco-social { gap: .85rem; }
  .tabasco-social h2 { margin-block: 0; }
  .tabasco-social > figure { margin-block-start: .65rem; }
  .tabasco-social .tabasco-motion { order: 1; margin-block-start: 1.4rem; }
}

@font-face {
  font-family: "Tabasco Display";
  src: url("/assets/portfolio-v3/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}
.tabasco-ads {
  --ad-red: #b51016;
  --ad-cream: #ffe7a8;
  background: #24110c;
}
.tabasco-type-panel {
  padding: clamp(42px, 8vw, 118px) clamp(16px, 4vw, 52px);
  text-align: center;
  background: var(--ad-red);
  color: var(--ad-cream);
}
.tabasco-type-panel .tabasco-caption { margin-bottom: clamp(21px, 3vw, 40px); }
.tabasco-type-panel h2,
.tabasco-case .tabasco-poster figcaption {
  font-family: "Tabasco Display", Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  line-height: .99;
  text-transform: uppercase;
  text-shadow: -.055em .07em 0 #30100b;
}
.tabasco-type-panel h2 {
  font-size: clamp(2.5rem, 8.6vw, 8.5rem);
  letter-spacing: .025em;
  text-shadow: -.038em .058em 0 #30100b;
}
.tabasco-type-panel h2 span { white-space: nowrap; }

.tabasco-case .tabasco-social { padding-bottom: clamp(32px, 5vw, 72px); }
.tabasco-case .tabasco-back {
  background: #21120d;
  padding-block: clamp(18px, 2.4vw, 36px);
}
.tabasco-case .site-footer > div:first-child > p { margin-block-start: 10px; }
.tabasco-ad-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.3vw, 20px);
  padding: clamp(8px, 1.3vw, 20px);
}
.tabasco-poster {
  position: relative;
  container-type: inline-size;
  background: var(--ad-red);
}
.tabasco-case .tabasco-poster figcaption {
  position: absolute;
  inset: 5% auto auto 7%;
  margin: 0;
  color: var(--ad-cream);
  font-size: clamp(1.75rem, 11cqw, 5.25rem);
}
@media (max-width: 700px) {
  .tabasco-ad-pair { grid-template-columns: minmax(0, 1fr); }
}
