/* ==========================================================================
   Zeke Zalinski Portfolio — Full Design System
   Built from site-spec-v1.md (2026-06-25)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* --------------------------------------------------------------------------
   FONT NOTE: Aller font files could not be downloaded automatically
   (Font Squirrel blocked by network proxy). Falling back to system
   sans-serif until fonts are manually installed.
   
   TO INSTALL ALLER:
   1. Download from https://www.fontsquirrel.com/fonts/Aller
   2. Unzip and place these files in the /fonts/ folder:
        fonts/AllerDisplay.woff2  (and .woff)
        fonts/Aller_Bd.woff2      (and .woff)
        fonts/Aller_BdIt.woff2    (and .woff)
        fonts/Aller_Rg.woff2      (and .woff)
        fonts/Aller_It.woff2      (and .woff)
        fonts/Aller_Lt.woff2      (and .woff)
        fonts/Aller_LtIt.woff2    (and .woff)
   3. The @font-face declarations below are ready — just add the files.
   -------------------------------------------------------------------------- */

/* @font-face declarations — using TTF files (installed 2026-06-25) */
@font-face {
  font-family: 'AllerDisplay';
  src: url('../fonts/AllerDisplay.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_Bd.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_BdIt.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_Rg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_It.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_Lt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aller';
  src: url('../fonts/Aller_LtIt.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Colors */
  --color-orange:     #C4673A;
  --color-blue:       #6B8FA3;
  --color-text:       #1A1A1A;
  --color-text-light: #6B6B6B;
  --color-bg:         #FFFFFF;
  --color-bg-gray:    #F2F2F0;
  --color-border:     #E0E0DC;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-base:    'Aller', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing (8px base unit) */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-7:  56px;
  --space-8:  64px;
  --space-10: 80px;

  /* Layout */
  --container-max:     1100px;
  --container-padding: 24px;

  /* Nav */
  --nav-height: 79px;
}

/* ==========================================================================
   CSS RESET / BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: #F4F5F6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-orange);
}

ul {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY SCALE (mobile-first)
   ========================================================================== */

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* EXPERIMENTAL — hero headline reveal animation, 2026-07-08.
   Borrowed the mechanics from adrianmuntean.com's homepage: each
   actual rendered line of the headline sits in a clipped mask and
   slides up into place on load, staggered slightly per line, instead
   of just appearing. The .reveal-line / .reveal-line-inner wrapper
   spans are generated at runtime by main.js (see the hero headline
   section there) since the headline text wraps differently at every
   breakpoint — there's no fixed set of lines to hand-author in the
   HTML. To fully undo: delete this CSS block and the matching
   "Homepage: hero headline line-reveal" block in main.js. */
.reveal-line {
  display: block;
  overflow: clip;
  padding-block: 0.12em;
  margin-block: -0.12em;
}

.reveal-line-inner {
  display: block;
  transform: translateY(118%);
  animation: hero-line-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) 0s 1 normal forwards;
}

@keyframes hero-line-in {
  100% {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line-inner {
    animation: none;
    transform: none;
  }
}

.hero-greeting {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: var(--space-4);
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text);
  margin-top: 10px;
  margin-bottom: var(--space-5);
}

.hero-closer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
  margin-top: var(--space-5);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: 80px;
  }

  .hero-headline {
    font-size: 104px;
  }

  .hero-greeting {
    font-size: 64px;
  }

  .hero-tagline {
    font-size: 38px;
  }
}

@media (min-width: 1024px) {
  h1, .h1 {
    font-size: 56px;
  }
}

h2, .h2 {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--color-text);
}

h3, .h3 {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--color-text);
}

p {
  font-size: 16px;
  line-height: 1.6;
}

.caption,
.label {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.accent {
  color: var(--color-orange);
}

/* Desktop type scale */
@media (min-width: 1024px) {
  .hero-closer {
    font-size: 26px;
  }

  h2, .h2 {
    font-size: 32px;
  }

  p {
    font-size: 18px;
  }

  .hero-headline {
    font-size: 124px;
  }

  .hero-greeting {
    font-size: 80px;
  }

  .hero-tagline {
    font-size: 42px;
  }
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 55px; /* 48px + 15% */
  width: auto;
}

/* Hamburger toggle — visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Hamburger → X when open */
.site-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links — hidden on mobile by default */
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
  z-index: 99;
}

.site-nav.nav-open .nav-links {
  display: flex;
}

.nav-links li a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--container-padding);
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
  min-height: 44px;
}

.nav-links li a:hover {
  color: var(--color-orange);
}

.nav-links li a.active {
  background-color: var(--color-text);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 4px;
}

/* Tablet+ — horizontal nav, hide hamburger */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    border-bottom: none;
    padding: 0;
    gap: var(--space-3);
    align-items: stretch;
    align-self: stretch; /* stretch to full nav height so active item can fill edge-to-edge */
  }

  .nav-links li {
    display: flex;
    align-items: center;
  }

  .nav-links li a {
    padding: 0;
    min-height: auto;
    font-size: 18px;
  }

  .nav-links li a.active {
    align-self: stretch;
    margin: 0;
    padding: 0 14px;
    border-radius: 0; /* sharp rectangle, full nav height */
    display: flex;
    align-items: center;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* ==========================================================================
   FOOTER / CONTACT BAND
   ========================================================================== */

.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .site-footer {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

.footer-cta {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .footer-cta {
    font-size: 18px;
    margin-bottom: var(--space-5);
  }
}

.footer-columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    gap: var(--space-6);
    justify-content: space-between;
  }

  .footer-col:last-child {
    align-items: flex-end;
    text-align: right;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-label {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

/* ==========================================================================
   ICON BUTTONS (circular orange)
   ========================================================================== */

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: white;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  opacity: 0.85;
  transform: scale(1.05);
  color: white;
}

.icon-btn--dark {
  background-color: var(--color-text);
}

.icon-btn--orange {
  background-color: var(--color-orange);
}

.icon-row {
  display: flex;
  gap: var(--space-1);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

main {
  flex: 1;
}

/* ==========================================================================
   PLACEHOLDER / DEV NOTES
   ========================================================================== */

.placeholder-note {
  background-color: #f5f5f5;
  border: 1px dashed #b0b0b0;
  border-radius: 4px;
  padding: var(--space-2) var(--space-2);
  color: #555;
  font-size: 14px;
  margin-top: var(--space-2);
}

/* ==========================================================================
   CONTENT SECTION — shared border-top + padding for Work, Stories, etc.
   Matches the about-section / timeline-entry rhythm.
   ========================================================================== */

.content-section {
  padding: calc(var(--space-5) + 20px) 0;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   WORK CARD GRID — work.html category index
   ========================================================================== */

.work-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: calc(var(--space-5) + 20px) 0;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .work-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .work-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card — full clickable block */
.work-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 20px 20px 20px 20px;
  text-decoration: none;
  color: var(--color-text);
  /* Default: soft diffuse shadow */
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  /* Hover: tighter, darker shadow */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.work-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.work-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.work-card-body img {
  width: 55%;
  height: auto;
  display: block;
}

.work-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.work-card-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 120px;
  height: 42px;
  border-radius: 21px;
  background-color: var(--color-orange);
  padding: 0 18px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.work-card:hover .work-card-btn {
  opacity: 0.88;
}

/* ==========================================================================
   STORY CARD GRID — stories.html index (3-col, matches Work page)
   ========================================================================== */

.story-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: calc(var(--space-5) + 20px) 0;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .story-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .story-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Only one real story published so far — cap width so the single card
   doesn't sit awkwardly in a 3-wide row with empty space beside it.
   Remove this modifier class from stories.html once Story 2 goes live. */
.story-card-grid--single {
  grid-template-columns: minmax(0, 400px);
}

/* Story card overrides — tighter, content-driven height */
.story-card {
  padding: 16px 20px 20px 16px;
  min-height: auto;
}

.story-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #E0E0DC;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.story-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.story-card .work-card-footer {
  margin-top: 20px;
}

/* Placeholder card — muted button, not clickable */
.story-card--placeholder {
  cursor: default;
}

.story-card--placeholder .work-card-btn {
  opacity: 0.4;
}

/* Legacy card classes — kept for stories.html */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-3);
  background-color: var(--color-bg);
}

.card h2 {
  margin-bottom: var(--space-1);
}

.card p {
  color: var(--color-text-light);
  font-size: 15px;
}

.card a {
  color: var(--color-orange);
  font-weight: 700;
}

.card a:hover {
  text-decoration: underline;
  color: var(--color-orange);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */

.timeline-entry {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: calc(var(--space-5) + 20px) 0;
  border-top: 1px solid var(--color-border);
}

/* max-width on timeline content is handled by the .timeline-content container (650px) */

/* first timeline entry intentionally inherits the same 60px padding as subsequent entries */

@media (min-width: 768px) {
  .timeline-entry {
    flex-direction: row;
    gap: var(--space-8);
    align-items: flex-start;
  }

  .timeline-logo {
    flex-shrink: 0;
    width: 230px;
    text-align: right;
  }

  .timeline-content {
    flex: 1;
    max-width: 650px;
  }
}

@media (min-width: 1024px) {
  .timeline-logo {
    width: 270px;
  }
}

/* ==========================================================================
   IMAGE GRID (work pages)
   ========================================================================== */

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

.image-cell {
  background-color: var(--color-bg-gray);
  border-radius: 8px;
  overflow: hidden;
}

.image-cell img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}

.image-cell:hover img {
  opacity: 0.9;
}

/* 4-column square variant — used on Application UXD, same grid pattern
   as the About page's 4-image hero. Add "image-grid--square4" alongside
   "image-grid" to opt a page's grid into this treatment. */
.image-grid--square4 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .image-grid--square4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .image-grid--square4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.image-grid--square4 .image-cell {
  aspect-ratio: 1 / 1;
}

.image-grid--square4 .image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* ==========================================================================
   PAGE-LEVEL PADDING (replaces old "main" padding)
   ========================================================================== */

.page-content {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .page-content {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
}

/* ==========================================================================
   Experience page
   ========================================================================== */

/* Page header — shared section at the top of inner pages */
.page-header {
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
  text-align: left;
}

@media (min-width: 1024px) {
  .page-header {
    padding-top: var(--space-8);
    padding-bottom: var(--space-5);
  }
}

/* Title + dates row inside each timeline entry */
.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .timeline-meta {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0;
  }
}

.timeline-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-orange);
  line-height: 1.3;
}

.timeline-title::after {
  content: " / ";
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text);
}

.timeline-dates {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text);
}

/* Logo images — constrain and contain within their column */
.timeline-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Z mark is square/icon-style — cap it smaller than the other logos */
.timeline-logo img[src*="z-mark"] {
  max-width: 80px;
}

/* ==========================================================================
   TOOLS ICONS SECTION — bottom of Experience page
   ========================================================================== */

.tools-icons {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.tools-icons .section-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 var(--space-5) 0;
}

.tools-icons .footer-cta {
  margin-bottom: var(--space-4);
}

.tools-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.tools-icon-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

/* Mobile: logo sits above content at 120px wide, left-aligned */
.timeline-logo {
  max-width: 120px;
}

/* Tablet+: logo column is already 120px wide (set in base),
   grows to 180px on 1024px+ (set in base). Vertically center the logo. */
@media (min-width: 768px) {
  .timeline-entry {
    align-items: center;
  }

  .timeline-logo {
    max-width: 100%; /* fill the fixed-width column set by the base rule */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* right-align logo toward content */
  }
}

/* Timeline body copy — match About page font sizing, line-height, and paragraph gap */
.timeline-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .timeline-content p {
    font-size: 17px;
  }
}

/* Bulleted list inside timeline entries */
.timeline-bullets {
  list-style: disc;
  padding-left: var(--space-3);
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.timeline-bullets li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .timeline-bullets li {
    font-size: 17px;
  }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* ── Hero band: headline left, photo right ─────────────────────── */

.about-hero-band {
  padding-top: var(--space-7);
  padding-bottom: var(--space-6);
}

.about-hero-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .about-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-8);
  }
}

/* Left: headline + subhead */
.about-hero-text {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .about-hero-text {
    flex: 0 0 280px;
    padding-top: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .about-hero-text {
    flex: 0 0 320px;
  }
}

.about-headline {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 38px;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.about-subhead {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* Right: rotating photo in a card */
.about-hero-photo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.about-photo-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-gray);
}

.about-hero-images {
  position: relative;
  width: 100%;
  height: 300px;
}

@media (min-width: 480px) {
  .about-hero-images {
    height: 380px;
  }
}

@media (min-width: 768px) {
  .about-hero-images {
    height: 420px;
  }
}

.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.about-hero-img.active {
  opacity: 1;
}

/* Dots below card */
.about-hero-dots {
  display: flex;
  gap: var(--space-1);
}

.about-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  transition: background-color 0.3s ease;
}

.about-dot.active {
  background-color: var(--color-text);
}

/* ── Content sections: title left, copy right ──────────────────── */

.about-sections {
  padding-bottom: var(--space-8);
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: calc(var(--space-5) + 20px) 0;
  border-top: 1px solid var(--color-border);
}

.about-section--last {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .about-section {
    flex-direction: row;
    gap: var(--space-8);
    align-items: flex-start;
  }
}

.about-section-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-orange);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about-section-title {
    width: 230px;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .about-section-title {
    width: 270px;
  }
}

.about-section-body {
  flex: 1;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-section-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .about-section-body p {
    font-size: 17px;
  }
}

/* Closing tagline inside last section */
.about-closing-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-text);
  padding-top: var(--space-2);
}

/* Location + Instagram row */
.about-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 480px) {
  .about-meta {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
}

.about-location {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.about-instagram {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-orange);
  text-decoration: none;
}

.about-instagram:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ABOUT PAGE — new components (image grid, accordion, page subhead)
   ========================================================================== */

/* Subhead below h1 in page-header */
.page-subhead {
  font-family: var(--font-base);
  font-weight: 300;
  font-size: 18px;
  color: var(--color-orange);
  line-height: 1.4;
  margin-top: var(--space-2);
}

/* ── 4-image grid ──────────────────────────────────────────────── */

.about-image-grid {
  padding-bottom: var(--space-6);
}

.about-image-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Tablet: 2-column grid */
@media (max-width: 1023px) and (min-width: 600px) {
  .about-image-grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column, hide first 3 images */
@media (max-width: 599px) {
  .about-image-grid-inner {
    grid-template-columns: 1fr;
  }
  .about-img-hide-mobile {
    display: none;
  }
}

.about-image-frame {
  background-color: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 16px 20px 20px 16px;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.07);
}

.about-image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px;
}

/* ── First section: always-open, no border-top ─────────────────── */

.about-section--first {
  border-top: none;
  padding-top: var(--space-5);
}

/* ── Accordion ─────────────────────────────────────────────────── */

.about-accordion {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-3);
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-4) 0;
  text-align: left;
  gap: var(--space-4);
}


.accordion-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

/* Below the tablet breakpoint the title has no fixed column width to
   spill past, so a long one-liner (e.g. "Thoughts on Leadership.")
   pushes the arrow button off screen. Let it wrap on phones only. */
@media (max-width: 767px) {
  .accordion-item-title {
    white-space: normal;
  }
}

.accordion-arrow {
  flex-shrink: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-trigger:hover .accordion-arrow {
  opacity: 0.88;
}

/* Body: hidden by default using max-height animation */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-body.is-open {
  max-height: 1200px;
}

.accordion-body-inner {
  padding-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 650px;
}

.accordion-body-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .accordion-body-inner p {
    font-size: 17px;
  }
  /* On tablet+, indent body to align with right column */
  .accordion-body-inner {
    margin-left: calc(230px + var(--space-8));
  }
  .accordion-trigger {
    padding: var(--space-5) 0;
  }
  .accordion-item-title {
    width: 230px;
    flex-shrink: 0;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .accordion-body-inner {
    margin-left: calc(270px + var(--space-8));
  }
  .accordion-item-title {
    width: 270px;
    font-size: 26px;
  }
}

/* Origin & Arc — first section, converted from static to collapsible.
   Scoped overrides (not edits to the shared rules above) so only this
   section gets tighter padding; Thoughts on Leadership / Evolving on AI / Life
   keep their original spacing. */
.about-section-first {
  border-bottom: none;
}

.about-section-first .accordion-trigger {
  padding: 22px 0;
}

.about-section-first .accordion-body-inner {
  padding-bottom: 30px;
}

@media (min-width: 768px) {
  .about-section-first .accordion-trigger {
    padding: 30px 0;
  }
}

/* ==========================================================================
   WORK SUB-PAGES — project card hybrid layout
   ========================================================================== */

/* Project title — orange, reuses timeline-title weight/size without the separator */
.work-project-title {
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.work-project-name {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-orange);
}

.work-project-meta {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 20px;
  color: var(--color-text);
}

.work-project-desc {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .work-project-desc {
    font-size: 17px;
  }
}

/* Images beyond the first 3 — hidden until expanded */
.image-cell.more-img {
  display: none;
}

.content-section.is-expanded .image-cell.more-img {
  display: block;
}

/* Phone-width only: trim to the first 2 thumbnails per project so the
   page doesn't turn into an endless scroll. Tablet and desktop are
   unaffected — this class only hides anything below 600px. */
@media (max-width: 599px) {
  .image-cell.mobile-more-img {
    display: none;
  }

  .content-section.is-expanded .image-cell.mobile-more-img {
    display: block;
  }
}

/* Some projects only need a More button on phone-width screens — there's
   nothing extra to reveal once the grid opens up to 2+ columns. */
@media (min-width: 600px) {
  .project-more-btn--mobile-only {
    display: none;
  }
}

/* More / Less toggle button */
.project-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-orange);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 15px;
  padding: 0;
  margin-top: var(--space-2);
}

.project-more-btn:hover {
  text-decoration: underline;
  color: var(--color-orange);
}

.project-more-btn .more-icon {
  transition: transform 0.2s ease;
}

.content-section.is-expanded .project-more-btn .more-icon {
  transform: rotate(180deg);
}

/* Empty image cell — holds shape until real images are dropped in */
.image-cell--empty {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-cell--empty-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.6);
}

.lightbox-nav[disabled] {
  display: none;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 900px) {
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

/* Pointer cursor on clickable image cells */
.image-cell img {
  cursor: pointer;
}

/* ==========================================================================
   STORY / CASE STUDY PAGES
   ========================================================================== */

/* Chapter heading — orange, bold, sits above body copy */
.story-chapter-title {
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 22px;
  color: var(--color-orange);
  line-height: 1.25;
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .story-chapter-title {
    font-size: 26px;
  }
}

/* Body copy wrapper — caps line length for readability */
.story-body {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.story-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .story-body p {
    font-size: 17px;
  }
}

/* Story image grid — 16/9 aspect cells, 2-col default, 3-col on wide */
.story-image-grid {
  margin-top: 0;
}

.story-image-grid .image-cell--empty {
  aspect-ratio: 16 / 9;
}
