/* ==========================================================================
   Mika Ritter — UX Writer & Content Designer Portfolio
   Structure inspired by annedougherty.com/portfolio/
   Header height reduced by 50% vs reference (~160px vs ~380px)
   Typography: Futura / Jost geometric sans-serif
   Color Palette: Brand Logo Colors of Google, Allrecipes, Nintendo & WildTangent
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Company Brand Logo Colors from Resume */
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;
  --allrecipes-orange: #F15A24;
  --nintendo-red: #E60012;
  --wildtangent-purple: #5B2D90;
  --wildtangent-gold: #D99B26;
  --traderjoes-red: #B81D13;

  /* Neutrals & Surfaces */
  --ink-900: #121012;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --surface-white: #FFFFFF;
  --surface-light: #F8FAFC;
  --surface-muted: #F1F5F9;
  --border-color: #E2E8F0;

  /* Futura Font Stack */
  --font-futura: 'Futura', 'Futura PT', 'Jost', 'Avenir Next', 'Century Gothic', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-futura);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-800);
  background-color: var(--surface-white);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. COMPACT SITE HEADER (Half the height of annedougherty.com/portfolio/)
   Reference site used .line-lg { margin-top: 120px } + 100px multi-line title (~380px high).
   Ours is sleek and compact (~165px total height) while preserving the exact structural DNA.
   ========================================================================== */

.brand-top-ribbon {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  height: 6px;
  width: 100%;
}
.brand-top-ribbon span:nth-child(1) { background: var(--google-blue); }
.brand-top-ribbon span:nth-child(2) { background: var(--google-red); }
.brand-top-ribbon span:nth-child(3) { background: var(--google-yellow); }
.brand-top-ribbon span:nth-child(4) { background: var(--google-green); }
.brand-top-ribbon span:nth-child(5) { background: var(--allrecipes-orange); }
.brand-top-ribbon span:nth-child(6) { background: var(--nintendo-red); }
.brand-top-ribbon span:nth-child(7) { background: var(--wildtangent-purple); }

.site-header {
  background: var(--ink-900);
  color: var(--surface-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(18, 16, 18, 0.16);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 12px;
}

/* Top Row: Navigation + Social/Contact Links */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.primary-menu a {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-futura);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.primary-menu a:hover,
.primary-menu a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--google-yellow);
}

.social-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.social-menu a:hover {
  background: var(--google-blue);
  color: #FFFFFF;
}

/* Second Row: Compact Branding & Slogan (Half-height vs Anne Dougherty's header) */
.header-branding-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 4px;
}

.branding-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Signature BoldGrid Resolve .line-lg accent bar, with compact top margin */
.line-lg {
  width: 140px;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--google-blue) 0%,
    var(--google-red) 25%,
    var(--allrecipes-orange) 50%,
    var(--nintendo-red) 75%,
    var(--wildtangent-purple) 100%
  );
  margin-top: 2px;
  margin-bottom: 2px;
}

.site-title {
  margin: 0;
  font-family: var(--font-futura);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.1;
}

.site-title a {
  color: #FFFFFF;
  text-decoration: none;
}

.site-title .title-divider {
  color: var(--allrecipes-orange);
  margin: 0 6px;
}

.site-title .title-role {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  letter-spacing: 4px;
}

.call-to-action .slogan {
  margin: 0;
  font-family: var(--font-futura);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--google-yellow);
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 14px;
  border-left: 3px solid var(--allrecipes-orange);
}

/* Signature Resolve 58.33% / 41.67% split bottom bar (scaled to 14px height) */
.header-split-bar {
  display: flex;
  width: 100%;
  height: 12px;
  background: var(--ink-900);
}
.background-clear {
  width: 58.333333%;
  background: var(--ink-900);
}
.background-accent {
  width: 41.666667%;
  background: linear-gradient(
    90deg,
    var(--google-blue) 0%,
    var(--google-red) 28%,
    var(--allrecipes-orange) 56%,
    var(--nintendo-red) 78%,
    var(--wildtangent-purple) 100%
  );
}

/* ==========================================================================
   2. MAIN CONTAINER & PAGE HEADERS (Matches annedougherty.com/portfolio/)
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.line-sm {
  width: 90px;
  height: 5px;
  background: var(--google-blue);
  margin-top: 28px;
  margin-bottom: 10px;
}

.entry-header {
  padding-bottom: 8px;
}

.entry-title {
  margin: 0;
  font-family: var(--font-futura);
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-900);
}

/* Intro Callout Box */
.intro-section {
  padding: 18px 0 28px;
  text-align: center;
}

.intro-box {
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 24px;
}

.intro-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-futura);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--google-blue);
}

.intro-box h3 {
  margin: 0 0 20px;
  font-family: var(--font-futura);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-700);
}

/* Company Brand Filter / Legend Pills */
.company-brand-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--font-futura);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface-muted);
  color: var(--ink-800);
}

.brand-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.brand-pill:hover,
.brand-pill.active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-pill[data-filter="all"].active {
  background: var(--ink-900);
  color: #FFFFFF;
}
.brand-pill[data-filter="google"] { border-color: rgba(66, 133, 244, 0.35); }
.brand-pill[data-filter="google"].active,
.brand-pill[data-filter="google"]:hover {
  background: var(--google-blue);
  color: #FFFFFF;
}
.brand-pill[data-filter="allrecipes"] { border-color: rgba(241, 90, 36, 0.35); }
.brand-pill[data-filter="allrecipes"].active,
.brand-pill[data-filter="allrecipes"]:hover {
  background: var(--allrecipes-orange);
  color: #FFFFFF;
}
.brand-pill[data-filter="nintendo"] { border-color: rgba(230, 0, 18, 0.35); }
.brand-pill[data-filter="nintendo"].active,
.brand-pill[data-filter="nintendo"]:hover {
  background: var(--nintendo-red);
  color: #FFFFFF;
}
.brand-pill[data-filter="wildtangent"] { border-color: rgba(91, 45, 144, 0.35); }
.brand-pill[data-filter="wildtangent"].active,
.brand-pill[data-filter="wildtangent"]:hover {
  background: var(--wildtangent-purple);
  color: #FFFFFF;
}

/* ==========================================================================
   3. PORTFOLIO 3-COLUMN GRID BANDS (Matches annedougherty.com/portfolio/)
   Each band uses a company-inspired background tint; each card has a square
   360x360-proportioned visual on top and a 35px-padded content box below.
   ========================================================================== */

.portfolio-band {
  padding: 48px 0 64px;
  border-top: 4px solid transparent;
}

.portfolio-band.band-google-primary {
  background: linear-gradient(180deg, #EBF3FE 0%, #E0ECFC 100%);
  border-top-color: var(--google-blue);
}

.portfolio-band.band-google-secondary {
  background: linear-gradient(180deg, #FEF6E7 0%, #FDEFD8 100%);
  border-top-color: var(--google-red);
}

.portfolio-band.band-pre-google {
  background: linear-gradient(180deg, #FFF1EB 0%, #F5EFEA 50%, #EFEBF7 100%);
  border-top-color: var(--allrecipes-orange);
}

.band-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(18, 16, 18, 0.1);
}

.band-title {
  margin: 0;
  font-family: var(--font-futura);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 12px;
}

.band-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-600);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

/* Square Thumbnail Container (matches 360x360 square images on Anne's site) */
.card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid rgba(18, 16, 18, 0.12);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(18, 16, 18, 0.08);
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}

.card-thumb-wrap.contain-img img {
  object-fit: contain;
  padding: 12px;
  background: #FFFFFF;
}

.portfolio-card:hover .card-thumb-wrap img {
  transform: scale(1.03);
}

.card-company-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  font-family: var(--font-futura);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #FFFFFF;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.badge-google-red { background: var(--google-red); }
.badge-google-blue { background: var(--google-blue); }
.badge-google-green { background: var(--google-green); }
.badge-google-yellow { background: #D97706; }
.badge-allrecipes { background: var(--allrecipes-orange); }
.badge-nintendo { background: var(--nintendo-red); }
.badge-wildtangent { background: var(--wildtangent-purple); }

/* Padded Box Below Image (padding: 35px just like Anne Dougherty's .bg-box) */
.card-bg-box {
  background: #FFFFFF;
  padding: 32px 32px 34px;
  margin-top: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--google-blue);
  box-shadow: 0 8px 24px rgba(18, 16, 18, 0.07);
}

.card-bg-box.border-google-red { border-top-color: var(--google-red); }
.card-bg-box.border-google-blue { border-top-color: var(--google-blue); }
.card-bg-box.border-google-green { border-top-color: var(--google-green); }
.card-bg-box.border-google-yellow { border-top-color: var(--google-yellow); }
.card-bg-box.border-allrecipes { border-top-color: var(--allrecipes-orange); }
.card-bg-box.border-nintendo { border-top-color: var(--nintendo-red); }
.card-bg-box.border-wildtangent { border-top-color: var(--wildtangent-purple); }

.akd-portfolio-title {
  margin: 0 0 18px;
  font-family: var(--font-futura);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.25;
}

.akd-portfolio-title a {
  color: var(--ink-900);
  text-decoration: none;
  cursor: pointer;
}

.akd-portfolio-title a:hover {
  color: var(--google-blue);
  text-decoration: underline;
}

.card-meta-block {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-800);
}

.card-meta-block strong {
  display: block;
  font-family: var(--font-futura);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-900);
  margin-bottom: 2px;
}

.akd-home-link {
  margin-top: auto;
  padding-top: 14px;
  margin-bottom: 0;
  border-top: 1px solid var(--border-color);
}

.akd-home-link a {
  color: #00608A;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-block;
}

.akd-home-link a:hover {
  color: var(--allrecipes-orange);
}

/* ==========================================================================
   4. CASE STUDY DEEP-DIVE VIEW & OTHER PAGES
   ========================================================================== */

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-study-banner {
  padding: 36px 0 32px;
  color: #FFFFFF;
  position: relative;
}

.case-study-banner .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 16px;
  border-radius: 4px;
  font-family: var(--font-futura);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 18px;
  transition: background 0.2s;
}

.case-study-banner .back-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.case-study-banner h1 {
  margin: 0 0 10px;
  font-family: var(--font-futura);
  font-size: 38px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.15;
}

.case-study-banner .case-subtitle {
  margin: 0;
  font-size: 19px;
  opacity: 0.94;
  max-width: 840px;
}

.case-meta-strip {
  background: var(--ink-900);
  color: #FFFFFF;
  padding: 18px 0;
  border-bottom: 4px solid var(--google-yellow);
}

.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-meta-item span {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--google-yellow);
  font-weight: 700;
}

.case-meta-item strong {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.case-body {
  padding: 44px 0 64px;
}

.case-section {
  margin-bottom: 48px;
}

.case-section h2 {
  font-family: var(--font-futura);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink-900);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--border-color);
}

.case-section h3 {
  font-family: var(--font-futura);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-800);
  margin: 24px 0 10px;
}

.case-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.case-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.artifact-card {
  background: var(--surface-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(18, 16, 18, 0.06);
}

.artifact-card img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  background: #FFFFFF;
}

.artifact-caption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-700);
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
}

.artifact-caption strong {
  color: var(--ink-900);
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.8px;
}

.impact-callout {
  border-left: 6px solid var(--google-blue);
  background: var(--surface-light);
  padding: 22px 28px;
  margin: 24px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-900);
}

/* Style Guide Tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.guide-table th {
  background: var(--ink-900);
  color: #FFFFFF;
  font-family: var(--font-futura);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  padding: 14px 18px;
  text-align: left;
}

.guide-table td {
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  vertical-align: top;
  font-size: 15px;
}

.do-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #DCFCE7;
  color: #166534;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.dont-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #FEE2E2;
  color: #991B1B;
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Buttons (BoldGrid Resolve style) */
.button-primary {
  display: inline-block;
  background: var(--google-blue);
  color: #FFFFFF !important;
  font-family: var(--font-futura);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 11px 28px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-primary:hover {
  background: var(--allrecipes-orange);
  transform: translateY(-1px);
}

.button-secondary {
  display: inline-block;
  background: var(--ink-900);
  color: #FFFFFF !important;
  font-family: var(--font-futura);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 10px 22px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-secondary:hover {
  background: var(--wildtangent-purple);
}

/* Case Study Footer Navigation */
.case-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
  border-top: 2px solid var(--border-color);
  margin-top: 40px;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.92);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
}

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

.lightbox-Overlay-inner {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #FFFFFF;
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

/* Site Footer */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 48px;
  border-top: 6px solid var(--allrecipes-orange);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-menu a {
  color: #FFFFFF;
  text-transform: uppercase;
  font-family: var(--font-futura);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  cursor: pointer;
}

.footer-menu a:hover {
  color: var(--google-yellow);
  text-decoration: underline;
}

/* ==========================================================================
   5. INTERACTIVE IMAGE CAROUSEL & FLOATING BACK-TO-TOP BUTTON
   ========================================================================== */

.carousel-container {
  background: var(--ink-900);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(18, 16, 18, 0.18);
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-title {
  margin: 0;
  font-family: var(--font-futura);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--google-yellow);
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-futura);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--google-blue);
  border-color: var(--google-blue);
}

.carousel-counter {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  min-width: 64px;
  text-align: center;
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: center;
  animation: fadeIn 0.22s ease;
}

.carousel-slide-img-wrap {
  background: #FFFFFF;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 520px;
}

.carousel-slide-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}

.carousel-slide-info h4 {
  margin: 0 0 10px;
  font-family: var(--font-futura);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #FFFFFF;
}

.carousel-slide-info p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: var(--google-yellow);
  transform: scale(1.25);
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background: var(--ink-900);
  color: #FFFFFF;
  border: 2px solid var(--allrecipes-orange);
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-futura);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--allrecipes-orange);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-two-col,
  .case-three-col,
  .carousel-slide.active {
    grid-template-columns: 1fr;
  }
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .site-title {
    font-size: 22px;
    letter-spacing: 3px;
  }
  .site-title .title-role {
    font-size: 18px;
    display: block;
    margin-top: 2px;
  }
  .site-title .title-divider {
    display: none;
  }
  .intro-box h2 {
    font-size: 28px;
  }
  .case-meta-grid {
    grid-template-columns: 1fr;
  }
}
