/* ===================================
   Ben Hintz Portfolio — 2026
   =================================== */

/* --- Font Faces --- */
@font-face {
  font-family: 'Pontiac';
  src: url('../assets/fonts/pontiac regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pontiac';
  src: url('../assets/fonts/pontiac bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables --- */
:root {
  --bg-dark: #16120F;
  --bg-card: #16120F;
  --peach: #FFCBAB;
  --text-muted: #ADA6A3;
  --white: #ffffff;
  --border-subtle: rgba(255, 186, 145, 0.2);
  --font-body: 'Pontiac', sans-serif;
  --font-nav: 'Figtree', sans-serif;
}

/* --- Custom cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--peach);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  mix-blend-mode: difference;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* Grow on hover over interactive elements */
.cursor.is-hovering {
  width: 40px;
  height: 40px;
  background: rgba(255, 186, 147, 0.1);
}

/* Hide default cursor */
*, *::before, *::after {
  cursor: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #f5f5f5;
  color: var(--white);
  overflow: hidden;
}

/* ===================================
   Scroll Snap Container
   =================================== */

.scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.section {
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  width: calc(100% - 80px);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #efefef;
}

.section:first-child {
  margin-top: 40px;
  scroll-margin-top: 40px;
}

@media (max-width: 1024px) {
  .section {
    width: calc(100% - 40px);
  }
  .section:first-child {
    margin-top: 20px;
    scroll-margin-top: 20px;
  }
}

/* ===================================
   Navigation
   =================================== */

.nav {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border-radius: 48px;
  cursor: pointer;
  overflow: hidden;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 -4px 4px rgba(0, 0, 0, 0.2),
    inset 0 4px 4px rgba(255, 186, 145, 0.2);
}

.nav--anim {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.nav.is-open {
  width: 480px;
  cursor: default;
}

.nav__group {
  display: flex;
  gap: 40px;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease 0s, width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  pointer-events: none;
}

.nav.is-open .nav__group {
  opacity: 1;
  flex: 1;
  width: auto;
  transition: opacity 0.3s ease 0.2s, width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.nav__group--left {
  padding-right: 0;
}

.nav.is-open .nav__group--left {
  padding-right: 40px;
  justify-content: flex-end;
}

.nav__group--right {
  padding-left: 0;
}

.nav.is-open .nav__group--right {
  padding-left: 40px;
  justify-content: flex-start;
}

.nav__link {
  font-family: var(--font-nav);
  font-size: 16px;
  font-weight: 500;
  color: #AC9D94;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav__link:hover {
  color: var(--peach);
}

.nav__logo {
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-open .nav__logo {
  transform: rotate(90deg);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  height: 824px;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.hero__bg-left {
  flex: 1;
  background: var(--bg-dark);
}

.hero__bg-right {
  flex: 1;
  position: relative;
}

.hero__bg-right-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  max-width: 1026px;
  width: 100%;
  height: 100%;
  padding: 64px 24px 100px;
  box-sizing: border-box;
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  gap: 80px;
  justify-content: center;
  width: 100%;
  margin-bottom: 0;
}

.hero__eyebrow-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  color: var(--text-muted);
}

/* Wave Section — groups title columns */
.hero__wave-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130%;
  max-width: 1341px;
  position: relative;
}

/* Heading columns */
.hero__heading-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--white);
  flex: 1;
  min-width: 0;
}

.hero__heading-col--left {
  text-align: right;
  padding-right: 32px;
}

.hero__heading-col--right {
  text-align: left;
  padding-left: 32px;
}

/* Spacer between heading columns (where the wavy line sits in the bg) */
.hero__heading-spacer {
  width: 21px;
  flex-shrink: 0;
}

/* Subhead */
.hero__subhead {
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  max-width: 739px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.hero__subhead p {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-muted);
  text-align: center;
}

/* ===================================
   About Section
   =================================== */

.about {
  background: #16120F;
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-bottom: none;
}

/* About background divider — mirrors hero SVG technique */
.about__bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.about__bg-left {
  flex: 1;
}

.about__bg-right {
  flex: 1;
  position: relative;
}

.about__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about__grid {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Left panel — bio */
.about__left {
  flex: 1;
  background: #16120F;
  display: flex;
  flex-direction: column;
}

/* Right panel — portrait */
.about__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header bar */
.about__header {
  height: 64px;
}

.about__header--right {
  justify-content: space-between;
}

.about__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.about__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  color: var(--text-muted);
}

/* Bio text */
.about__bio {
  padding: 0 120px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__bio p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: #ACA794;
  margin-bottom: 0;
}

.about__bio p + p {
  margin-top: 14px;
}

.about__bio strong {
  font-weight: 700;
  color: var(--peach);
}

/* Portrait area */
/* Bio Image — portrait + timeline overlay */
.about__bio-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  position: relative;
  min-height: 0;
}

.about__portrait {
  position: relative;
  flex-shrink: 0;
}

.about__portrait-img {
  width: 312px;
  height: 443px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.about__timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-left: -24px;
  align-self: center;
}

.about__timeline-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about__timeline-company {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 24px;
}

.about__timeline-role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

.about__timeline-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--peach);
  text-decoration: none;
  line-height: 24px;
}

/* ===================================
   Timeline Section
   =================================== */

.timeline {
  background: #16120F;
  border: 1px solid var(--border-subtle);
  border-top: none;
}

/* Timeline background — matches hero/about divider alignment */
.timeline__bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.timeline__bg-left {
  flex: 1;
}

.timeline__bg-right {
  flex: 1;
  position: relative;
}

.timeline__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Timeline grid */
.timeline__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  padding: 0;
}

/* Each row */
.timeline__row {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* Left and right columns */
.timeline__left {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 34px;
}

.timeline__right {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: 34px;
}

/* Diamond marker — aligned with company name on the divider */
.timeline__marker {
  position: absolute;
  left: calc(50% + 5px);
  top: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Entry block (company + role) */
.timeline__entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__entry--left {
  text-align: right;
}

.timeline__entry--right {
  text-align: left;
}

/* Company name */
.timeline__company {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  color: var(--peach);
}

/* Role */
.timeline__role {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--white);
}

/* Date */
.timeline__date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.08em;
  color: #ADA6A3;
}

.timeline__date--left {
  text-align: right;
}

/* ===================================
   Work Sections — Free Scroll
   =================================== */

/* Per-project accent colors */
[data-accent="sequoia"]  { --accent: #01B574; --card-bg: linear-gradient(135deg, rgba(20,32,26,0.74), rgba(20,32,26,0.5)); --btn-bg: #14201A; --section-bg: #FBF7F0; --section-text: #16120F; }
[data-accent="lilly"]    { --accent: #d52b1e; --card-bg: none; --btn-bg: #333333; --section-bg: #d52b1e; --section-text: #ffffff; --card-accent: #ffffff; --card-accent-dark: #333333; --metric-stroke: #d5d5d5; --metric-label: #d52b1e; --metric-value: #333333; }
[data-accent="goldstar"] { --accent: #FEC200; --card-bg: none; --btn-bg: #272001; --section-bg: #ffffff; --section-text: #16120f; --card-accent: #010101; --card-accent-dark: #444444; --metric-stroke: #444444; --metric-label: #727066; --metric-value: #ffffff; }
[data-accent="lava"]     { --accent: #7A81E0; --card-bg: none; --btn-bg: #181929; --section-bg: #1e1a38; --section-text: #ffffff; --card-accent: #0e102b; --card-accent-dark: #3a3d5c; --metric-stroke: #3a3d5c; --metric-label: #717176; --metric-value: #ffffff; }
[data-accent="stellar"]  { --accent: #7045F4; --card-bg: none; --btn-bg: #1A1629; --section-bg: #060214; --section-text: #ffffff; --card-accent: #181331; --card-accent-dark: #272045; --metric-stroke: #272045; --metric-label: #727066; --metric-value: #ffffff; }
[data-accent="algolia"]  { --accent: #6575E2; --card-bg: linear-gradient(135deg, rgba(25,27,43,0.74), rgba(25,27,43,0.5)); --btn-bg: #191B2B; }

.work {
  background: var(--section-bg, #141715);
  border: 1px solid var(--border-subtle);
  border-top: none;
  display: flex;
  flex-direction: column;
}

/* Work sections — standard height, max-width centered */
.work {
  min-height: 1574px;
  max-width: 1440px;
}

/* Light-background work sections */
[data-accent="sequoia"].work {
  border-color: transparent;
}
[data-accent="sequoia"] .work__carousel-slide {
  object-fit: cover;
}

/* Lilly — red bg, white card */
[data-accent="lilly"].work {
  border-color: transparent;
}
[data-accent="lilly"] .work__counter,
[data-accent="lilly"] .work__label {
  color: var(--section-text);
}
[data-accent="lilly"] .work__header-icon {
  color: var(--section-text);
}
[data-accent="lilly"] .work__card {
  background: var(--card-accent, #ffffff);
}
[data-accent="lilly"] .work__card-metric {
  border-color: var(--metric-stroke, #d5d5d5);
}
[data-accent="lilly"] .work__card-metric-label {
  color: var(--metric-label, #d52b1e);
}
[data-accent="lilly"] .work__card-metric-value {
  color: var(--metric-value, #333333);
}
[data-accent="lilly"] .work__card-cta {
  background: var(--card-accent-dark, #333333);
}
[data-accent="lilly"] .work__body-inner {
  border: none;
}
[data-accent="lilly"] .work__carousel {
  background: #fbf7f0;
}
[data-accent="lilly"] .work__footer-title h3,
[data-accent="lilly"] .work__footer-desc p {
  color: var(--section-text);
}
[data-accent="lilly"] .work__carousel-dot::after {
  background: #ffffff;
}
[data-accent="lilly"] .work__carousel-dot--active::after {
  background: #16120f;
}
/* Lilly — left-aligned (default) */
[data-accent="lilly"] .work__carousel-slide {
  object-fit: cover;
}

/* LAVA — dark purple bg, dark card with texture */
[data-accent="lava"] .work__card {
  background: var(--card-accent, #0e102b);
  position: relative;
  overflow: hidden;
}
[data-accent="lava"] .work__card-texture {
  position: absolute;
  top: 0;
  left: -170px;
  width: 855px;
  height: 481px;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
}
[data-accent="lava"] .work__card-metric {
  border-color: var(--metric-stroke, #3a3d5c);
}
[data-accent="lava"] .work__card-metric-label {
  color: var(--metric-label, #717176);
}
[data-accent="lava"] .work__card-metric-value {
  color: var(--metric-value, #ffffff);
}
[data-accent="lava"] .work__card-cta {
  background: var(--card-accent-dark, #3a3d5c);
}
[data-accent="lava"] .work__body-inner {
  border: none;
}
[data-accent="lava"] .work__carousel {
  background: #272524;
}
[data-accent="lava"] .work__carousel-slide {
  object-fit: cover;
}
[data-accent="lava"] .work__footer-title h3,
[data-accent="lava"] .work__footer-desc p {
  color: var(--section-text);
}

/* Goldstar — light bg, black card, right-aligned */
[data-accent="goldstar"].work {
  border-color: #efefef;
}
[data-accent="goldstar"] .work__card {
  background: var(--card-accent, #010101);
  position: relative;
  overflow: hidden;
}
[data-accent="goldstar"] .work__card-flower {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scaleY(-1);
  width: 688px;
  height: 688px;
  object-fit: contain;
  opacity: 0.85;
  pointer-events: none;
}
[data-accent="goldstar"] .work__card-metric {
  border-color: var(--metric-stroke, #444444);
}
[data-accent="goldstar"] .work__card-metric-label {
  color: var(--metric-label, #727066);
}
[data-accent="goldstar"] .work__card-metric-value {
  color: var(--metric-value, #ffffff);
}
[data-accent="goldstar"] .work__card-cta {
  background: var(--card-accent-dark, #444444);
}
[data-accent="goldstar"] .work__body-inner {
  border: none;
}
[data-accent="goldstar"] .work__carousel {
  background: #f6f6f6;
}
[data-accent="goldstar"] .work__carousel-slide {
  object-fit: cover;
}
[data-accent="goldstar"] .work__carousel-dot::after {
  background: var(--section-text);
}
/* Goldstar — left-aligned (default) */

/* Stellar — dark purple bg, dark card with concert photo */
[data-accent="stellar"] .work__card {
  background: var(--card-accent, #181331);
  position: relative;
  overflow: hidden;
}
[data-accent="stellar"] .work__card-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 485px;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
}
[data-accent="stellar"] .work__card-metric {
  border-color: var(--metric-stroke, #272045);
}
[data-accent="stellar"] .work__card-metric-label {
  color: var(--metric-label, #727066);
}
[data-accent="stellar"] .work__card-metric-value {
  color: var(--metric-value, #ffffff);
}
[data-accent="stellar"] .work__card-cta {
  background: var(--card-accent-dark, #272045);
}
[data-accent="stellar"] .work__body-inner {
  border: none;
}
[data-accent="stellar"] .work__carousel {
  background: #272524;
}
[data-accent="stellar"] .work__carousel-slide {
  object-fit: cover;
}
[data-accent="stellar"] .work__footer-title h3,
[data-accent="stellar"] .work__footer-desc p {
  color: var(--section-text);
}
/* Stellar is left-aligned (default), no desktop override needed */

/* Header */
.work__header {
  position: relative;
  z-index: 2;
  display: flex;
  height: 64px;
  flex-shrink: 0;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.work__header-left,
.work__header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 40px 0;
}

.work__counter,
.work__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  color: var(--text-muted);
}

.work__header-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* Body — hero + card side by side, ~81% width left-aligned */
.work__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 76px 0 0;
  margin-left: 64px;
  width: calc(81% - 64px);
  max-width: 1100px;
  min-height: 0;
}

.work__body-inner {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  /* Maintain hero aspect ratio: 1100w / 567h from Figma */
  aspect-ratio: 1100 / 567;
  width: 100%;
}

/* Carousel — left ~72% */
.work__carousel {
  flex: 0 0 72%;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.work__carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.work__carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work__carousel-slide--active {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Carousel controls */
.work__carousel-controls {
  padding: 12px 0 0;
  flex-shrink: 0;
}

.work__carousel-dots {
  display: flex;
  gap: 12px;
}

.work__carousel-dot {
  width: 48px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.work__carousel-dot::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--section-text, #16120F);
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.work__carousel-dot--active::after {
  opacity: 1;
}

/* Project card — right ~28% */
.work__card {
  flex: 0 0 28%;
  background: var(--card-accent, #00A071);
  border-radius: 0 8px 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

[data-accent="sequoia"] .work__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.work__card-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
  min-height: 0;
}

.work__card-logo {
  max-width: 40%;
  max-height: 30%;
  height: auto;
  object-fit: contain;
}

[data-accent="sequoia"] .work__card-logo,
[data-accent="goldstar"] .work__card-logo {
  max-width: 58%;
  max-height: 45%;
}

[data-accent="stellar"] .work__card-logo {
  max-width: 54%;
  max-height: 42%;
}

.work__card-metrics {
  display: flex;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: var(--card-accent, #14201A);
}

.work__card-metric {
  flex: 1;
  border: 1px solid var(--card-accent-dark, #05855F);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.work__card-metric + .work__card-metric {
  margin-left: -1px;
}

.work__card-metric:first-child {
  border-left: none;
}

.work__card-metric:last-child {
  border-right: none;
}

.work__card-metric-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #055840;
  line-height: 1;
}

.work__card-metric-value {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}

.work__card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  background: var(--card-accent-dark, #05855F);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.work__card-cta:hover {
  opacity: 0.85;
}

/* Footer — title + description, spans hero width only */
.work__footer {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  padding: 18px 0 48px;
  margin-left: 64px;
  width: calc((81% - 64px) * 0.72);
  max-width: 795px;
  flex-shrink: 0;
}

.work__footer-title {
  flex: 0 0 50%;
}

.work__footer-title h3 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--section-text, var(--white));
  margin: 0;
}

.work__footer-desc {
  flex: 1;
}

.work__footer-desc p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--section-text, var(--white));
  opacity: 0.75;
  margin: 0;
}

/* Showcase — bottom image area with tagline + URL */
.work__showcase {
  position: relative;
  z-index: 2;
  margin-left: 196px;
  margin-right: 64px;
  margin-top: 64px;
  padding-bottom: 72px;
}

.work__showcase-images {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
}

.work__showcase-img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 550 / 567;
  display: block;
}

.work__showcase-images .work__showcase-img:only-child {
  aspect-ratio: 1100 / 567;
}

.work__showcase-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  gap: 16px;
}

.work__showcase-tagline,
.work__showcase-url {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--section-text, var(--white));
  opacity: 0.6;
}

.work__showcase-url {
  text-align: right;
}

/* --- Work section: Tablet / Mobile (≤1024px) — stacked layout --- */
@media (max-width: 1024px) {
  .work {
    height: auto;
    min-height: 813px;
  }

  .work__header-left {
    display: none;
  }

  .work__header-right {
    flex: 1;
    padding: 24px 24px 0;
    flex-direction: row-reverse;
  }

  .work__counter {
    font-variant-numeric: tabular-nums;
  }

  .work__body {
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
    padding-top: 48px;
  }

  .work__body-inner {
    flex-direction: column;
    aspect-ratio: auto;
  }

  .work__carousel {
    flex: none;
    aspect-ratio: 4 / 3;
    max-height: 500px;
  }

  .work__card {
    flex: none;
    border-radius: 0;
  }

  .work__card-brand {
    padding: 24px;
    min-height: 80px;
    max-height: 120px;
  }

  .work__card-logo {
    max-height: 24px;
  }

  [data-accent="sequoia"] .work__card-logo {
    max-height: 20px;
  }

  [data-accent="lilly"] .work__card-logo {
    max-height: 36px;
  }

  [data-accent="goldstar"] .work__card-logo,
  [data-accent="stellar"] .work__card-logo {
    max-height: 22px;
  }

  .work__card-metric {
    padding: 12px 16px;
  }

  .work__card-metric-value {
    font-size: 18px;
  }

  .work__carousel-controls {
    padding: 12px 0 0;
  }

  .work__footer {
    margin-left: 24px;
    margin-right: 24px;
    width: auto;
    flex-direction: column;
    gap: 16px;
  }

  .work__footer-title {
    flex: none;
  }

  .work__footer-title h3 {
    font-size: 28px;
  }

  [data-accent="goldstar"] .work__card-flower {
    width: 400px;
    height: 400px;
    opacity: 0.08;
  }

  [data-accent="stellar"] .work__card-bg {
    width: 100%;
    height: 100%;
    opacity: 0.3;
  }

  /* Showcase — tablet responsive */
  .work__showcase {
    margin-left: 24px;
    margin-right: 24px;
    padding-bottom: 64px;
  }

  .work__showcase-images {
    border-radius: 6px;
  }

  .work__showcase-meta {
    padding-top: 10px;
  }

  .work__showcase-tagline,
  .work__showcase-url {
    font-size: 12px;
  }
}

/* ===================================
   Article Section
   =================================== */

.articles {
  background: #171514;
  display: flex;
  align-items: stretch;
  border: none;
  margin-top: -1px;
}

.articles__bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.articles__bg-left {
  flex: 1;
  background: #171514;
}

.articles__bg-right {
  flex: 1;
  position: relative;
}

.articles__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.articles__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 40px 0;
  gap: 80px;
}

.articles__header-left,
.articles__header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: space-between;
}

.articles__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  color: var(--text-muted);
}

/* Article Cards — horizontal scroll */
.articles__cards {
  display: flex;
  gap: 24px;
  padding: 40px 64px;
  overflow-x: auto;
  flex: 1;
  align-items: stretch;
  scrollbar-width: none;
}


.articles__cards::-webkit-scrollbar {
  display: none;
}

.articles__card {
  flex: 0 0 350px;
  height: 100%;
  min-height: 567px;
  background: #171514;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.articles__card-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 24px 0;
  position: relative;
  z-index: 1;
}

.articles__card-logo-img {
  height: 24px;
  width: auto;
  opacity: 0.7;
}

/* Decorative pattern background — unique per card */
.articles__card-pattern {
  position: absolute;
  inset: 0;
  background-size: 150px auto;
  background-repeat: repeat;
  background-position: center;
  opacity: 0.1;
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.articles__card-pattern--1 {
  background-image: url('../assets/images/pattern-1.png');
}
.articles__card-pattern--2 {
  background-image: url('../assets/images/pattern-2.png');
}
.articles__card-pattern--3 {
  background-image: url('../assets/images/pattern-3.png');
}
.articles__card-pattern--4 {
  background-image: url('../assets/images/pattern-4.png');
}

.articles__card-content {
  padding: 0 24px 40px;
  position: relative;
  z-index: 1;
}

.articles__card-title {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 48px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.articles__card-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--peach);
  line-height: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Article card cascade animation */
.articles .articles__card.reveal:nth-child(1) { --delay: 0.1s; }
.articles .articles__card.reveal:nth-child(2) { --delay: 0.2s; }
.articles .articles__card.reveal:nth-child(3) { --delay: 0.3s; }
.articles .articles__card.reveal:nth-child(4) { --delay: 0.4s; }

/* ===================================
   Contact Section
   =================================== */

.contact {
  background: #171514;
  border: none;
}

.contact__bg {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.contact__bg-left {
  flex: 1;
}

.contact__bg-right {
  flex: 1;
  position: relative;
}

.contact__bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
}

.contact__left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact__right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact__header {
  width: 100%;
}

.contact__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 40px 40px 0 40px;
}

.contact__icon {
  display: flex;
  align-items: center;
}

.contact__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 24px;
  color: var(--text-muted);
}

.contact__heading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 64px 0 40px;
}

.contact__heading h2 {
  font-family: var(--font-body);
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 96px;
  color: var(--white);
  text-align: right;
  margin: 0;
}

.contact__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.contact__link {
  font-family: var(--font-body);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 64px;
  color: var(--peach);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.contact__link:hover {
  opacity: 0.7;
}

/* Contact reveal animation delays */
.contact .contact__header.reveal              { --delay: 0.1s; }
.contact .contact__heading.reveal             { --delay: 0.25s; }
.contact .contact__header--right.reveal       { --delay: 0.15s; }
.contact .contact__links.reveal               { --delay: 0.35s; }

/* ===================================
   Section Entry Animations — Clip Reveal
   =================================== */

/* Single keyframe: slide up from below clip boundary */
@keyframes revealUp {
  from {
    transform: translateY(30%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal wrapper — clips children, content slides up into view */
.reveal {
  overflow: hidden;
  --delay: 0s;
}

.reveal > * {
  transform: translateY(100%);
  opacity: 0;
}

/* Shared animation timing — smooth deceleration, no bounce */
.is-visible .reveal > * {
  animation: revealUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay) forwards;
}

/* Fade elements (images, icons, markers) */
.anim-fade {
  --delay: 0s;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay);
}

.is-visible .anim-fade {
  opacity: 1;
}

/* --- Hero stagger --- */
.hero .hero__eyebrow.reveal   { --delay: 0.15s; }
.hero .hero__wave-section.reveal { --delay: 0.3s; }
.hero .hero__subhead.reveal   { --delay: 0.5s; }

/* --- About stagger --- */
.about .about__header.reveal   { --delay: 0.1s; }
.about .about__bio.reveal     { --delay: 0.25s; }
.about .about__bio-image.reveal { --delay: 0.35s; }
.about .about__header--right.reveal { --delay: 0.15s; }

/* --- Timeline entries cascade --- */
.about .about__timeline-entry.reveal:nth-child(1) { --delay: 0.4s; }
.about .about__timeline-entry.reveal:nth-child(2) { --delay: 0.5s; }
.about .about__timeline-entry.reveal:nth-child(3) { --delay: 0.6s; }
.about .about__timeline-entry.reveal:nth-child(4) { --delay: 0.7s; }
.about .about__timeline-entry.reveal:nth-child(5) { --delay: 0.8s; }
.about .about__timeline-entry.reveal:nth-child(6) { --delay: 0.9s; }
.about .about__timeline-link-wrap.reveal { --delay: 1.0s; }

/* --- Work section load-in animations --- */

/* Keyframes */
@keyframes unmask-ltr {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes content-reveal {
  from {
    transform: scale(1.06);
    filter: blur(10px);
  }
  to {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial hidden states */
.work .work__carousel {
  clip-path: inset(0 100% 0 0);
}

.work .work__carousel-track {
  transform: scale(1.06);
  filter: blur(10px);
}

.work .work__card {
  clip-path: inset(0 100% 0 0);
}

.work .work__card-logo {
  transform: scale(1.06);
  filter: blur(10px);
}

.work .work__carousel-controls {
  opacity: 0;
  transform: translateY(20px);
}

.work .work__footer {
  opacity: 0;
  transform: translateY(20px);
}

.work .work__showcase-images {
  clip-path: inset(0 100% 0 0);
}

.work .work__showcase-img {
  transform: scale(1.06);
  filter: blur(10px);
}

.work .work__showcase-meta {
  opacity: 0;
  transform: translateY(20px);
}

/* Animated states — triggered by is-visible */
.work.is-visible .work__carousel {
  animation: unmask-ltr 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0s forwards;
}

.work.is-visible .work__carousel-track {
  animation: content-reveal 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.4s forwards;
}

.work.is-visible .work__card {
  animation: unmask-ltr 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.work.is-visible .work__card-logo {
  animation: content-reveal 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.55s forwards;
}

.work.is-visible .work__carousel-controls {
  animation: rise-fade 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0s forwards;
}

.work.is-visible .work__footer {
  animation: rise-fade 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0.1s forwards;
}

.work.is-visible .work__showcase-images,
.work__showcase.is-visible .work__showcase-images {
  animation: unmask-ltr 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0s forwards;
}

.work.is-visible .work__showcase-img,
.work__showcase.is-visible .work__showcase-img {
  animation: content-reveal 0.7s cubic-bezier(0.33, 1, 0.68, 1) 0.4s forwards;
}

.work.is-visible .work__showcase-meta,
.work__showcase.is-visible .work__showcase-meta {
  animation: rise-fade 0.5s cubic-bezier(0.33, 1, 0.68, 1) 0s forwards;
}

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

@media (max-width: 1024px) {

  .about {
    height: auto;
    overflow: visible;
  }

  .about__bg {
    display: none;
  }

  .about__grid {
    flex-direction: column;
    min-height: auto;
  }

  .about__left,
  .about__right {
    flex: none;
  }

  .about__left {
    background: #16120F;
  }

  .about__right {
    background: linear-gradient(135deg, #1F1F1F 0%, #171514 100%);
    position: relative;
  }

  .about__bio {
    padding: 32px 60px 60px;
  }

  .about__bio-image {
    padding: 24px 24px;
  }
}

@media (max-width: 768px) {
  .nav.is-open {
    width: calc(100% - 24px);
  }

  .nav__link {
    font-size: 13px;
  }

  .nav__group {
    gap: 12px;
  }

  .nav.is-open .nav__group--left {
    padding-right: 16px;
  }

  .nav.is-open .nav__group--right {
    padding-left: 16px;
  }

  .hero__wave-section {
    width: 110%;
    height: 200px;
  }

  .hero__heading-col {
    font-size: clamp(36px, 5vw, 60px);
  }

  .hero__heading-col--left {
    padding-right: 28px;
  }

  .hero__heading-col--right {
    padding-left: 28px;
  }

  .hero__heading-spacer {
    width: 40px;
  }

  .hero__eyebrow {
    gap: 32px;
    justify-content: center;
    padding-right: 0;
  }

  .hero__content {
    gap: 16px;
  }

  .hero__subhead {
    max-width: 100%;
    margin-top: 16px;
    padding: 16px 20px;
  }

  .hero__subhead p {
    font-size: 14px;
    line-height: 20px;
  }

  .nav__links {
    padding: 0 24px;
    gap: 20px;
  }

  .nav__group {
    gap: 20px;
  }

  .nav__link {
    font-size: 14px;
  }

  /* Articles — 2x2 grid on tablet */
  .articles {
    height: auto;
    overflow: visible;
    padding: 0 0 40px;
  }

  .articles__header {
    padding: 40px 24px 0;
  }

  .articles__header-right {
    justify-content: flex-end;
  }

  .articles__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
    padding: 32px 24px 24px;
    gap: 24px;
  }

  .articles__card {
    flex: none;
    height: auto;
    min-height: 188px;
    border-radius: 8px;
  }

  .articles__card-logo-img {
    height: 20px;
  }

  .articles__card-logos {
    padding: 20px 12px 0;
  }

  .articles__card-content {
    padding: 0 12px 20px;
  }

  .articles__card-title {
    font-size: 20px;
    line-height: 24px;
    margin: 0 0 4px;
  }

  .articles__card-subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  /* Showcase — mobile spacing */
  .work__showcase {
    margin-top: 12px;
    padding-bottom: 48px;
  }

  /* Contact — stacked mobile layout */
  .contact {
    overflow: visible;
  }

  .contact__bg {
    display: none;
  }

  .contact__grid {
    flex-direction: column;
  }

  .contact__left {
    flex: 1;
    position: relative;
    justify-content: center;
  }

  .contact__header-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px 40px 0 40px;
  }

  .contact__heading {
    justify-content: flex-start;
    align-items: center;
    padding: 40px 40px 0;
  }

  .contact__heading h2 {
    font-size: 56px;
    line-height: 1.1;
    text-align: left;
  }

  .contact__right {
    flex: 1;
    border-top: 1px solid rgba(255, 186, 145, 0.15);
    background: linear-gradient(to bottom, #1e1917 0%, #171514 40%);
  }

  .contact__header--right .contact__header-inner {
    display: none;
  }

  .contact__links {
    justify-content: center;
    padding: 0 40px;
  }

  .contact__link {
    font-size: 28px;
    line-height: 42px;
  }

  .about__bio {
    padding: 24px 40px 40px;
  }

  .about__portrait-placeholder {
    width: 260px;
    height: 346px;
  }

  .about__portrait-img {
    width: 180px;
    height: 255px;
  }

  .about__bio-image {
    padding: 24px 24px 64px;
  }

  .about__timeline-list {
    margin-left: -12px;
    gap: 16px;
    padding-right: 16px;
  }

  .about__timeline-company {
    font-size: 13px;
    line-height: 1.3;
  }

  .about__timeline-role {
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .section {
    width: calc(100% - 32px);
  }

  .section:first-child {
    margin-top: 16px;
  }

  .hero {
    height: 100svh;
  }

  .hero__content {
    padding-bottom: 64px;
  }

  .hero__wave-section {
    width: 105%;
    height: auto;
    margin-top: -8px;
    padding-bottom: 16px;
  }

  .hero__heading-col {
    font-size: clamp(28px, 8.5vw, 36px);
    line-height: 1.33;
  }

  .hero__heading-col--left {
    text-align: right;
    padding-right: 0;
  }

  .hero__heading-col--right {
    text-align: left;
    padding-left: 0;
  }

  .hero__heading-spacer {
    width: 15vw;
    max-width: 64px;
  }

  .hero__eyebrow {
    gap: 15vw;
  }

  .about__bio {
    padding: 24px 24px 32px;
  }

  /* Articles — stack vertically on small mobile */
  .articles__cards {
    grid-template-columns: 1fr;
  }
}
