/* ==========================================================================
   Tamojit Nandi — Product Designer Portfolio
   Exact Figma Replica: Desktop - 27 (Page 2)
   ========================================================================== */

:root {
  /* Exact Figma Frame Colors & Tokens */
  --bg-canvas: #FAF7E5;              /* rgba(250, 247, 229, 1) */
  --bg-nav: #FDFCF6;                 /* rgba(253, 252, 246, 1) */
  --bg-nav-capsule: #F8F3D9;         /* rgba(248, 243, 217, 1) */
  --bg-nav-pill-active: #FFFFFF;     /* rgba(255, 255, 255, 1) */

  /* Typography Colors */
  --color-brand-orange: #F54600;     /* rgba(245, 70, 0, 1) */
  --color-text-greeting: #5C1A00;    /* rgba(92, 26, 0, 1) */
  --color-text-title: #5C1A00;       /* rgba(92, 26, 0, 1) */
  --color-text-nav: #3D1200;         /* rgba(61, 18, 0, 1) */
  --color-text-subtitle: #3D1100;    /* rgba(61, 17, 0, 1) */
  --color-text-headline: #330F00;    /* rgba(51, 15, 0, 1) */

  /* Divider Gradient */
  --hero-line-gradient: linear-gradient(90deg, #802500 0%, rgba(250, 247, 229, 0) 70%);

  /* Typography Families */
  --font-brand: 'Pixelify Sans', cursive, monospace;
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-nav: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-subtitle: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-case-study: 'Google Sans Flex', 'Google Sans', sans-serif;
  --font-card-title: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-canvas);
}

body {
  background-color: var(--bg-canvas);
  color: var(--color-text-headline);
  font-family: var(--font-nav);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

::selection {
  background: var(--color-brand-orange);
  color: #FFFFFF;
}

/* ==========================================================================
   Navigation Bar (Figma Node 91:64 - Nav Bar)
   Width: 1440px | Height: 84px | Padding: 20px 80px | Fill: #FDFCF6
   Figma Exact Drop Shadows:
   1) 0 1px 3px 1px rgba(82, 23, 0, 0.15)
   2) 0 1px 2px 0 rgba(82, 23, 0, 0.30)
   ========================================================================== */

.navbar-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--bg-nav);
  z-index: 1000;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px 1px rgba(82, 23, 0, 0.15), 0 1px 2px 0 rgba(82, 23, 0, 0.30);
}

.navbar-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Name in Pixelify Sans Bold 28px, Color #F54600 (Node 91:66) */
.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-brand-orange);
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Capsule Nav Buttons (Figma Node 91:79 - Buttons Wrapper)
   Height: 44px | Padding: 4px | Radius: 100px | Gap: 0px | Fill: #F8F3D9 */
.nav-capsule-wrapper {
  display: flex;
  align-items: center;
}

.nav-capsule {
  display: flex;
  align-items: center;
  background-color: var(--bg-nav-capsule);
  padding: 4px;
  border-radius: 100px;
  gap: 0;
}

/* Nav Item (Nodes 91:80, 82, 84, 86, 88 / 81:303, 305, 307, 309, 311)
   Height: 36px | Padding: 10px 20px | Radius: 100px | Font: Inter 13px */
.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  height: 36px;
  border-radius: 100px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-nav);
  text-decoration: none;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.nav-item.active {
  background-color: var(--bg-nav-pill-active);
  font-weight: 500;
  color: var(--color-text-nav);
}

/* ==========================================================================
   Hero Section (Figma Node 91:91 - Frame 1814107119)
   Width: 1440px | Padding: 190px 80px 190px 80px
   Inner Container: Frame 23 (Width: 791.05px, Height: 206.67px, Gap: 23.1px)
   ========================================================================== */

.hero-section {
  width: 100%;
  background-color: var(--bg-canvas);
  padding: 190px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  width: 791.05px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

/* Product Designer Text Wrapper (Figma Node 270:143 / Frame 23)
   Exact original gaps: Title gap: 23.1px, Line gap below: 12px, Greeting gap below: 8.4px */
.hero-text-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Greeting (Figma Node 91:9)
   Font: Bricolage Grotesque Light, 36.75px, Color #5C1A00 | Gap below: 8.4px */
.hero-greeting-wrapper {
  margin: 0;
  margin-bottom: 8.4px;
}

.hero-greeting {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 36.75px;
  color: var(--color-text-greeting);
  line-height: 1.2;
}

/* Main Title (Figma Node 91:10 - Frame 20)
   Font: Bricolage Grotesque Light, 54.6px, Line-height: 76.23px, Color: #5C1A00 | Gap below: 23.1px */
.hero-title-wrapper {
  width: 100%;
  margin-bottom: 23.1px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 54.6px;
  line-height: 76.23px;
  letter-spacing: -0.004em;
  color: var(--color-text-title);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 18.9px;
  row-gap: 8.4px;
}

.title-prefix, .title-suffix {
  display: inline-block;
  white-space: nowrap;
}

/* Inlined Brand Logos (Figma Node 91:12 - Frame 19)
   Padding-top: 9.24px | Gap: 27.72px */
.hero-logos-inline {
  display: inline-flex;
  align-items: center;
  gap: 27.72px;
  padding-top: 9.24px;
  vertical-align: middle;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  display: block;
  object-fit: contain;
}

.icon-figma {
  width: 26.18px;
  height: 39.27px;
}

.icon-antigravity {
  width: 39.27px;
  height: 39.27px;
}

.icon-gemini {
  width: 39.27px;
  height: 39.27px;
}

.icon-cursor {
  width: 34.37px;
  height: 39.27px;
}

/* Divider Line (Figma Node 91:48 - Line 2)
   Width: 791.05px | Gradient: #802500 0% -> #FAF7E5 70% | Gap below: 12px */
.hero-divider-line {
  width: 100%;
  height: 1px;
  background: var(--hero-line-gradient);
  margin-top: 0;
  margin-bottom: 12px;
}

/* Subtitle (Figma Node 91:49)
   Font: Segoe UI Regular, 16px, Line-height: 30px, Letter-spacing: 1.5%, Color: #3D1100 */
.hero-subtitle-wrapper {
  width: 100%;
}

.hero-subtitle {
  font-family: var(--font-subtitle);
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.015em;
  color: var(--color-text-subtitle);
}

/* CTA Button (Figma Node 270:234 - Frame 1814107156 & 270:233 - Frame 1814107155)
   Outer Pill: Width: 196px | Height: 55px | Padding: 6px | Radius: 100px | Fill: #F7F1D4
   Inner Pill: Width: 184px | Height: 43px | Padding: 12px 28px | Radius: 100px | Fill: #FFFFFF
   Text: Inter SemiBold 16px | Color: #330F00 */
.hero-cta-wrapper {
  display: inline-flex;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 100px;
  background-color: #F7F1D4;
  text-decoration: none;
  transition: background-color 0.2s ease;
  user-select: none;
}

.hero-cta-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 100px;
  background-color: #FFFFFF;
  font-family: var(--font-nav, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-headline, #330F00);
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-cta-btn:hover {
  background-color: #F2E8BE;
}

.hero-cta-btn:hover .hero-cta-btn-inner {
  color: var(--color-brand-orange);
}

/* ==========================================================================
   Section Title Wrapper (Figma Node 103:101 - Frame 1814107120)
   Width: 1440px | Height: 86px | Padding: 20px 80px 20px 80px
   ========================================================================== */

.section-title-wrapper {
  width: 100%;
  background-color: var(--bg-canvas);
}

.section-title-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 40px 32px;
  display: flex;
  align-items: center;
}

/* Heading: "Design work" (Figma Node 103:100)
   Font: Google Sans Flex Bold, 36px, Line-height: 46px, Letter-spacing: 1%, Color: #330F00 */
.section-heading-title {
  font-family: var(--font-case-study);
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
}

/* ==========================================================================
   Case Study Section (Figma Node 91:50 - Frame 1814107038)
   Width: 1440px | Height: 430px | Padding: 40px 80px 40px 80px | Gap: 48px
   ========================================================================== */

.case-study-section {
  width: 100%;
  background-color: var(--bg-canvas);
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.case-study-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.case-study-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Left Content Column (Figma Frame 1814107041)
   Width: 496px | Gap: 24px */
.case-study-content {
  width: 496px;
  max-width: 496px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Headline (Figma Node 91:52 & Node 252:215) */
.case-study-headline {
  font-family: var(--font-card-title, 'Segoe UI', sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 49px;
  letter-spacing: -0.01em;
  color: #471500;
}

.case-study-pace-headline {
  font-family: var(--font-card-title, 'Segoe UI', sans-serif);
  font-size: 40px;
  font-weight: 700;
  line-height: 49px;
  letter-spacing: -0.01em;
  color: #471500;
}

.highlight-orange {
  color: var(--color-brand-orange);
}

/* Description (Figma Node 91:53)
   Font: Google Sans Flex Regular, 16px, Line-height: 25px, Letter-spacing: 1%, Color: #330F00 */
.case-study-description {
  font-family: var(--font-case-study);
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
}

/* Content Column Width (Figma Frame 1814107041) */
.case-study-content-pace {
  width: 496px;
  max-width: 496px;
}

/* Right Video / Showcase (Figma Node 91:93)
   Fill Container (flex: 1) | Height: 555px | Aspect-ratio: 1360 / 906 */
.case-study-video-wrapper,
.case-study-image-wrapper {
  flex: 1;
  width: 100%;
  height: 555px;
  aspect-ratio: 1360 / 906;
  border-radius: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  line-height: 0;
  font-size: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-video,
.case-study-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.case-study-iframe {
  width: 100%;
  aspect-ratio: 1360 / 906;
  max-height: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  display: block;
  background-color: #FFFFFF;
  pointer-events: none !important;
  user-select: none;
  overscroll-behavior: contain;
}

.case-study-iframe-shield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: pan-y;
}

/* ==========================================================================
   Pace Showcase Card Media Column (Home Page)
   Fill Container (flex: 1) matching the motion video card width | Height: 555px
   Screen sizes, logos, and gaps locked strictly to horizontal width coordinate space
   ========================================================================== */

.case-study-pace-media {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 555px;
  aspect-ratio: 1360 / 906;
  border-radius: 0;
  overflow: hidden;
  background-color: #FFFFFF;
  line-height: 0;
  font-size: 0;
  position: relative;
}

.case-study-pace-media .pace-showcase-frame {
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  overflow: hidden;
  position: relative;
  display: block;
  user-select: none;
  container-type: inline-size;
}

/* Pace Brand Lockup */
.pace-brand-lockup {
  position: absolute;
  left: 3.75%;    /* 48px / 1280px */
  top: 6.4%;      /* 48px / 750px */
  width: 14.0625%; /* 180px / 1280px */
  z-index: 10;
  pointer-events: none;
}

.case-study-pace-media .pace-brand-lockup {
  top: 32px;
}

.pace-lockup-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Mockup Items (258px x 574px in 1280 x 750 coordinate space) */
.pace-mockup-item {
  position: absolute;
  width: 20.15625%; /* 258px / 1280px */
  height: 76.5333%; /* 574px / 750px */
  border-radius: clamp(10px, 2.5cqw, 32px);
  overflow: hidden;
  background-color: #FFFFFF;
  z-index: 1;

  /* Force dedicated hardware composite layer & high refresh rate */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  contain: layout paint;
  animation: paceMockupWave 6.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.case-study-pace-media .pace-mockup-item {
  width: 20.15625%;
  height: auto;
  aspect-ratio: 258 / 574;
}

/* Screen 1: Splash (Phase: 180° Crest) */
.pace-mockup-splash {
  left: 7.34375%;  /* 94px / 1280px */
  top: 24%;        /* 180px / 750px */
  animation-delay: -3.3s;
}

.case-study-pace-media .pace-mockup-splash {
  top: 136px;
}

/* Screen 2: Task Eisenhower Matrix (Phase: 120°) */
.pace-mockup-task {
  left: 29.0625%;  /* 372px / 1280px */
  top: 18.667%;    /* 140px / 750px */
  animation-delay: -2.2s;
}

.case-study-pace-media .pace-mockup-task {
  top: 109px;
}

/* Screen 3: Pomodoro Timer (Phase: 60°) */
.pace-mockup-pomo {
  left: 50.78125%; /* 650px / 1280px */
  top: 13.867%;    /* 104px / 750px */
  animation-delay: -1.1s;
}

.case-study-pace-media .pace-mockup-pomo {
  top: 85px;
}

/* Screen 4: Home Notes (Phase: 0° Trough) */
.pace-mockup-home {
  left: 72.5%;     /* 928px / 1280px */
  top: 19.733%;    /* 148px / 750px */
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.12);
  animation-delay: 0s;
}

.case-study-pace-media .pace-mockup-home {
  top: 114px;
}

/* Continuous Soft Wave Animation */
@keyframes paceMockupWave {
  0%, 100% {
    transform: translate3d(0, 10px, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pace-mockup-item {
    animation: none;
  }
}

.pace-mockup-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  background-color: #FFFFFF;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* Circular Blur & Vignette Overlay */
.pace-showcase-blur-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: radial-gradient(ellipse 58% 50% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.45) 76%, black 90%);
  -webkit-mask-image: radial-gradient(ellipse 58% 50% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.45) 76%, black 90%);
}

.pace-showcase-blur-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, #E6F4E9 0%, rgba(230, 244, 233, 0.9) 6%, rgba(230, 244, 233, 0.35) 11%, rgba(230, 244, 233, 0) 16%),
    linear-gradient(to right, #E6F4E9 0%, rgba(230, 244, 233, 0.9) 5%, rgba(230, 244, 233, 0.35) 10%, rgba(230, 244, 233, 0) 18%),
    linear-gradient(to left, #E6F4E9 0%, rgba(230, 244, 233, 0.9) 5%, rgba(230, 244, 233, 0.35) 10%, rgba(230, 244, 233, 0) 18%),
    radial-gradient(ellipse 58% 52% at 50% 45%, rgba(230, 244, 233, 0) 54%, rgba(230, 244, 233, 0.45) 72%, #E6F4E9 88%, #E6F4E9 100%);
  pointer-events: none;
}

.pace-showcase-blur-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #E6F4E9 0%, rgba(230, 244, 233, 0.9) 7%, rgba(230, 244, 233, 0.35) 15%, rgba(230, 244, 233, 0) 24%);
  pointer-events: none;
}

/* ==========================================================================
   About Me & Contact Section (Figma Desktop - 33 / Nodes 151:2, 151:50, 157:75, 159:77)
   ========================================================================== */

.about-section {
  width: 100%;
  background-color: var(--bg-canvas);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* About Content Block (Figma Node 151:50 - Frame 1814107120)
   Padding: Top 132px, Bottom 124px, Left/Right 80px | Gap: 40px */
.about-content-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 132px 80px 124px;
  gap: 40px;
}

/* Heading "About me" (Node 151:51)
   Font: Google Sans Flex Bold 32px, Line Height 42px, Letter Spacing 1%, Color #330F00 */
.about-heading {
  font-family: var(--font-case-study);
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
  text-align: center;
  margin: 0;
}

/* Paragraphs Container (Node 151:71)
   Width: 900px, Max-Width: 918px, Centered
   Font: Google Sans Flex Regular 18px, Line Height 29px, Letter Spacing 1.7%, Color #330F00
   Paragraph Spacing: 20px */
.about-text-content {
  width: 900px;
  max-width: 100%;
}

.about-text-content p {
  font-family: var(--font-case-study);
  font-size: 18px;
  font-weight: 400;
  line-height: 29px;
  letter-spacing: 0.017em;
  color: var(--color-text-headline);
  text-align: left;
  margin: 0 0 20px 0;
}

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

/* Contact Information Block (Figma Nodes 157:75 & 159:77) */
.about-contact-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 120px;
}

/* Heading "Contact informations" (Node 157:76)
   Padding: 32px 80px | Font: Google Sans Flex Bold 26px, Line Height Auto/Normal, Letter Spacing 1% */
.contact-heading {
  font-family: var(--font-case-study);
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
  text-align: center;
  padding: 32px 80px;
  margin: 0;
}

/* Cards Wrapper (Node 159:77)
   Padding: 36px 80px | Gap: 24px */
.contact-cards-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 80px;
  flex-wrap: wrap;
}

/* Contact Card (Nodes 159:82, 159:91, 159:99)
   Width: 185px | Height: 71px | Padding: 24px 36px | Gap: 16px
   Background: #FDFCF6 | Radius: 12px */
.contact-card {
  width: 185px;
  height: 71px;
  padding: 24px 36px;
  background-color: var(--bg-nav);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

.contact-card:hover {
  background-color: #FFFFFF;
}

.contact-card:active {
  background-color: #F5EED3;
}

.contact-card-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon img {
  display: block;
  max-width: 20px;
  max-height: 20px;
  width: auto;
  height: auto;
}

/* Contact Card Label (Nodes 159:78, 159:92, 159:100)
   Font: Google Sans Flex Regular 18px, Line Height Normal/Auto, Letter Spacing 1%, Color #330F00 */
.contact-card-label {
  font-family: var(--font-case-study);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
  white-space: nowrap;
}

/* ==========================================================================
   Resume Page Styles
   ========================================================================== */

.resume-main {
  flex: 1;
  width: 100%;
}

.resume-section {
  width: 100%;
  background-color: var(--bg-canvas);
  padding: 132px 40px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.resume-title-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-heading {
  font-family: var(--font-case-study);
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.01em;
  color: var(--color-text-headline);
  text-align: center;
  margin: 0;
}

/* Sized to fit the entire single-page PDF cleanly without cutting off content */
.resume-viewer-card {
  width: 100%;
  max-width: 820px;
  height: 1180px;
  min-height: 1180px;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(51, 15, 0, 0.06);
  border: 1px solid rgba(51, 15, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.resume-pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background-color: #FFFFFF;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-wrapper {
  width: 100%;
  background-color: var(--bg-canvas);
  padding: 100px 0 40px 0;
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 80px 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(92, 26, 0, 0.08);
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand-text {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brand-orange);
}

.footer-copyright {
  font-family: var(--font-nav);
  font-size: 13px;
  color: rgba(61, 18, 0, 0.6);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-greeting);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 100px;
  background: #FFFFFF;
  border: 1px solid rgba(92, 26, 0, 0.1);
  transition: all 0.2s ease;
}

.back-to-top-btn:hover {
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1360px) {
  .navbar-container,
  .section-title-container,
  .footer-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .case-study-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1280px) {
  .case-study-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .case-study-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .case-study-content,
  .case-study-content-pace {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: unset;
  }

  .case-study-headline,
  .case-study-pace-headline {
    font-size: 40px;
    line-height: 49px;
  }

  .desktop-br {
    display: none;
  }

  .case-study-video-wrapper,
  .case-study-image-wrapper,
  .case-study-pace-media {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Reset fixed desktop pixel top offsets to proportional percentages on small screens */
  .case-study-pace-media .pace-brand-lockup {
    top: 6.4%;
  }

  .case-study-pace-media .pace-mockup-splash {
    top: 24%;
  }

  .case-study-pace-media .pace-mockup-task {
    top: 18.667%;
  }

  .case-study-pace-media .pace-mockup-pomo {
    top: 13.867%;
  }

  .case-study-pace-media .pace-mockup-home {
    top: 19.733%;
  }

  .about-content-block {
    padding: 120px 40px 100px;
  }
}

@media (max-width: 768px) {
  .navbar-container,
  .hero-section,
  .section-title-container,
  .footer-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .case-study-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-heading-title {
    font-size: 28px;
    line-height: 36px;
  }

  .hero-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .hero-title {
    font-size: 34px;
    line-height: 48px;
  }

  .case-study-headline,
  .case-study-pace-headline {
    font-size: 32px;
    line-height: 44px;
  }

  .nav-capsule {
    gap: 0;
  }

  .nav-item {
    padding: 8px 16px;
    font-size: 12px;
  }

  .footer-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .about-content-block {
    padding: 80px 24px 60px;
    gap: 28px;
  }

  .about-heading {
    font-size: 28px;
    line-height: 38px;
  }

  .contact-heading {
    font-size: 24px;
    padding: 24px 24px;
  }

  .contact-cards-container {
    padding: 20px 24px;
    gap: 16px;
  }

  .about-contact-block {
    padding-bottom: 60px;
  }

  .resume-section {
    padding: 36px 20px 60px;
  }

  .resume-viewer-card {
    height: 1080px;
    min-height: 900px;
    max-height: none;
    aspect-ratio: unset;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 22px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 40px;
  }

  .hero-logos-inline {
    gap: 14px;
  }

  .brand-icon {
    height: 28px;
  }

  .case-study-headline,
  .case-study-pace-headline {
    font-size: 26px;
    line-height: 36px;
  }

  .nav-capsule-wrapper {
    display: none;
  }

  .about-content-block {
    padding: 60px 16px 40px;
  }

  .about-heading {
    font-size: 24px;
    line-height: 32px;
  }

  .contact-heading {
    font-size: 22px;
    line-height: 28px;
  }

  .about-text-content p {
    font-size: 16px;
    line-height: 26px;
  }

  .contact-cards-container {
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
  }

  .contact-card {
    width: 100%;
    max-width: 280px;
  }

  .resume-section {
    padding: 32px 16px 60px;
  }

  .resume-viewer-card {
    height: 720px;
    min-height: 580px;
    border-radius: 12px;
  }
}
