/* === BASE STYLES === */
:root {
    --paper-bg: #f5f5f0;
    --card-bg: #ffffff;
    --text-dark: #2a2a2a;
    --text-gray: #5a5a5a;
    --accent: #4a7c9e;
    --accent-light: #6b9ec4;
    --border: #d0d0c8;
    --shadow: rgba(0, 0, 0, 0.08);
    --highlight: #ffd166;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--paper-bg);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
    padding-bottom: 60px;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

.links-hint {
  font-style: italic;
  text-decoration: line-through;
}

/* Handwritten elements use Caveat */
h1, h2, h3, .hero-title, .section-title, .question {
    font-family: 'Caveat', cursive;
    font-weight: 700;
}

/* === CONTAINER CARDS === */
.container {
    max-width: 820px;
    margin: 0 auto 40px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px var(--shadow);
    border: 1px solid var(--border);
}

/* === NOTICE CARD === */
.notice-card {
    max-width: 820px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
    padding: 20px 30px;
    border-radius: 12px;
    border: 2px solid #ffd166;
    box-shadow: 0 2px 8px rgba(255, 209, 102, 0.2);
}

.notice-card p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin: 0;
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 60px 40px;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 7rem);
    margin-bottom: 10px;
    line-height: 1;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--accent);
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--text-gray);
}

.highlight {
    background: linear-gradient(120deg, var(--highlight) 0%, var(--highlight) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 85%;
    font-weight: 600;
    color: var(--text-dark);
}

.tagline {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 20px;
}

/* === SECTION TITLES === */
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 30px;
    text-align: center;
    color: var(--accent);
    line-height: 1.2;
}

.section-intro {
    text-align: center;
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === ABOUT SECTION === */
.about-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.about-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--accent);
}

.answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* === PROJECT CARDS === */
.project-card {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-left-color: var(--accent-light);
    box-shadow: 0 4px 16px var(--shadow);
    transform: translateX(4px);
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
    color: var(--text-dark);
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
}

  /* === TIMELINE CONTAINER === */
  .timeline-section {
    position: relative;
    padding: 40px;
  }
 
  /* Vertical spine */
  .timeline-spine {
    position: absolute;
    left: 50%;
    top: 80px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light), transparent);
    transform: translateX(-50%);
    opacity: 0.35;
  }
 
  /* === INDIVIDUAL ENTRY === */
  .timeline-entries {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
 
  .tl-entry {
    display: grid;
    grid-template-columns: 1fr 48px 1fr;
    align-items: start;
    margin-bottom: 48px;
    cursor: pointer;
  }
 
  /* Left entries: content left, dot center, empty right */
  .tl-entry.left .tl-content { grid-column: 1; grid-row: 1; }
  .tl-entry.left .tl-dot    { grid-column: 2; grid-row: 1; }
  .tl-entry.left .tl-empty  { grid-column: 3; grid-row: 1; }
 
  /* Right entries: empty left, dot center, content right */
  .tl-entry.right .tl-empty   { grid-column: 1; grid-row: 1; }
  .tl-entry.right .tl-dot     { grid-column: 2; grid-row: 1; }
  .tl-entry.right .tl-content { grid-column: 3; grid-row: 1; }
 
  /* === DOT === */
  .tl-dot {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14px;
    position: relative;
    z-index: 2;
  }
 
  .tl-dot-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 3px solid var(--accent);
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(74, 124, 158, 0.3);
  }
 
  .tl-entry:hover .tl-dot-inner,
  .tl-entry.active .tl-dot-inner {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(74, 124, 158, 0.2);
    transform: scale(1.2);
  }
 
  /* === CONTENT CARD === */
  .tl-content {
    padding: 4px 16px;
  }
 
  .tl-card {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    transition: all 0.3s ease;
    position: relative;
  }
 
  .tl-entry.left .tl-card {
    border-right: 4px solid var(--accent);
  }
 
  .tl-entry.right .tl-card {
    border-left: 4px solid var(--accent);
  }
 
  .tl-entry:hover .tl-card,
  .tl-entry.active .tl-card {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
  }
 
  /* Year badge */
  .tl-year {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(74, 124, 158, 0.08);
    border: 1px solid rgba(74, 124, 158, 0.2);
    border-radius: 999px;
    padding: 2px 10px;
    display: inline-block;
    margin-bottom: 10px;
  }
 
  .tl-title {
    font-family: 'Caveat', cursive;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.2;
  }
 
  .tl-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-gray);
    margin-bottom: 14px;
  }
 
  /* Tech tags */
  .tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
  }
 
  .tl-tag {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(74, 124, 158, 0.08);
    border: 1px solid rgba(74, 124, 158, 0.18);
    color: var(--accent);
    letter-spacing: 0.03em;
  }
 
  /* Visit link */
  .tl-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: none !important;
    transition: gap 0.2s ease, color 0.2s ease;
  }
 
  .tl-link:hover {
    color: var(--accent-light);
    gap: 8px;
  }
 
  .tl-link::after {
    content: '→';
    font-size: 14px;
  }
 
  /* === EXPANDED PANEL === */
  .tl-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
  }
 
  .tl-entry.active .tl-expand {
    max-height: 400px;
    opacity: 1;
  }
 
  .tl-expand-inner {
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
  }
 
  .tl-expand-inner p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
  }
 
  /* === COLOR ACCENT PER PROJECT === */
  .tl-entry[data-project="lava"] .tl-dot-inner { border-color: #e07b39; }
  .tl-entry[data-project="lava"]:hover .tl-dot-inner,
  .tl-entry[data-project="lava"].active .tl-dot-inner { background: #e07b39; box-shadow: 0 0 0 6px rgba(224,123,57,0.2); }
  .tl-entry[data-project="lava"] .tl-card { border-color: var(--border); }
  .tl-entry[data-project="lava"].left .tl-card { border-right-color: #e07b39; }
  .tl-entry[data-project="lava"] .tl-year { color: #e07b39; background: rgba(224,123,57,0.08); border-color: rgba(224,123,57,0.2); }
  .tl-entry[data-project="lava"] .tl-tag { color: #e07b39; background: rgba(224,123,57,0.07); border-color: rgba(224,123,57,0.18); }
  .tl-entry[data-project="lava"] .tl-link { color: #e07b39; }
 
  .tl-entry[data-project="weather"] .tl-dot-inner { border-color: #00b4e6; }
  .tl-entry[data-project="weather"]:hover .tl-dot-inner,
  .tl-entry[data-project="weather"].active .tl-dot-inner { background: #00b4e6; box-shadow: 0 0 0 6px rgba(0,180,230,0.2); }
  .tl-entry[data-project="weather"].right .tl-card { border-left-color: #00b4e6; }
  .tl-entry[data-project="weather"] .tl-year { color: #00b4e6; background: rgba(0,180,230,0.08); border-color: rgba(0,180,230,0.2); }
  .tl-entry[data-project="weather"] .tl-tag { color: #00b4e6; background: rgba(0,180,230,0.07); border-color: rgba(0,180,230,0.18); }
  .tl-entry[data-project="weather"] .tl-link { color: #00b4e6; }
 
  .tl-entry[data-project="mc"] .tl-dot-inner { border-color: #7c6ad6; }
  .tl-entry[data-project="mc"]:hover .tl-dot-inner,
  .tl-entry[data-project="mc"].active .tl-dot-inner { background: #7c6ad6; box-shadow: 0 0 0 6px rgba(124,106,214,0.2); }
  .tl-entry[data-project="mc"].left .tl-card { border-right-color: #7c6ad6; }
  .tl-entry[data-project="mc"] .tl-year { color: #7c6ad6; background: rgba(124,106,214,0.08); border-color: rgba(124,106,214,0.2); }
  .tl-entry[data-project="mc"] .tl-tag { color: #7c6ad6; background: rgba(124,106,214,0.07); border-color: rgba(124,106,214,0.18); }
  .tl-entry[data-project="mc"] .tl-link { color: #7c6ad6; }
 
  .tl-entry[data-project="wdw"] .tl-dot-inner { border-color: #2ecc71; }
  .tl-entry[data-project="wdw"]:hover .tl-dot-inner,
  .tl-entry[data-project="wdw"].active .tl-dot-inner { background: #2ecc71; box-shadow: 0 0 0 6px rgba(46,204,113,0.2); }
  .tl-entry[data-project="wdw"].right .tl-card { border-left-color: #2ecc71; }
  .tl-entry[data-project="wdw"] .tl-year { color: #2ecc71; background: rgba(46,204,113,0.08); border-color: rgba(46,204,113,0.2); }
  .tl-entry[data-project="wdw"] .tl-tag { color: #2ecc71; background: rgba(46,204,113,0.07); border-color: rgba(46,204,113,0.18); }
  .tl-entry[data-project="wdw"] .tl-link { color: #2ecc71; }

  .tl-entry[data-project="church"] .tl-dot-inner { border-color: #64433d; }
  .tl-entry[data-project="church"]:hover .tl-dot-inner,
  .tl-entry[data-project="church"].active .tl-dot-inner { background: #64433d; box-shadow: 0 0 0 6px rgba(100,67,61,0.2); }
  .tl-entry[data-project="church"].left .tl-card { border-right-color: #64433d; }
  .tl-entry[data-project="church"] .tl-year { color: #64433d; background: rgba(100,67,61,0.08); border-color: rgba(100,67,61,0.2); }
  .tl-entry[data-project="church"] .tl-tag { color: #64433d; background: rgba(100,67,61,0.07); border-color: rgba(100,67,61,0.18); }
  .tl-entry[data-project="church"] .tl-link { color: #64433d; }
 
  /* === RESPONSIVE: stack on mobile (handled at 768px above) === */


/* === TOOLS SECTION === */
.tools-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tool-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.tool-category h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.tool-category ul {
    list-style: none;
    padding: 0;
}

.tool-category li {
    font-size: 15px;
    color: var(--text-gray);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.tool-category li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* === PHILOSOPHY SECTION === */
.philosophy {
    background: linear-gradient(135deg, #e8f4f8 0%, #ffffff 100%);
    border-left: 4px solid var(--accent);
}

.philosophy-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.philosophy-quote {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.2rem, 5vw, 3rem);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.philosophy-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === MARQUEE TESTIMONIALS === */
.marquee {
    --gap: 20px;
    --duration: 40s;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    margin: 40px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    will-change: transform;
}

.review {
    font-family: 'Inter', sans-serif;
    flex: 0 0 auto;
    min-width: 320px;
    max-width: 480px;
    padding: 20px 24px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 2px 8px var(--shadow);
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-gray);
}

.review strong {
    color: var(--accent);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        transform: none !important;
    }
}

/* === WHAT'S NEXT SECTION === */
.next-intro {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.goals {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid var(--accent);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.goals h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.goals-list {
    list-style: none;
    padding: 0;
}

.goals-list li {
    font-size: 16px;
    color: var(--text-gray);
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.goals-list li:last-child {
    border-bottom: none;
}

.goals-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.closing {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-top: 30px;
    font-style: italic;
}

/* === LINKS === */
a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* === FOOTER === */
footer {
    max-width: 820px;
    margin: 60px auto 0;
    padding: 30px 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-text {
    font-size: 15px;
    color: var(--text-gray);
}

.footer-note {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 28px 20px;
        margin-bottom: 24px;
    }

    .hero {
        padding: 36px 20px;
    }

    .notice-card {
        padding: 16px 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .review {
        min-width: 260px;
        max-width: 360px;
    }

    /* Collapse timeline to single column at 768px */
    .timeline-spine {
        left: 20px;
    }

    .tl-entry {
        grid-template-columns: 40px 1fr;
    }

    .tl-entry.left .tl-content,
    .tl-entry.right .tl-content  { grid-column: 2; grid-row: 1; }
    .tl-entry.left .tl-dot,
    .tl-entry.right .tl-dot      { grid-column: 1; grid-row: 1; }
    .tl-entry.left .tl-empty,
    .tl-entry.right .tl-empty    { display: none; }

    .tl-entry.left .tl-card,
    .tl-entry.right .tl-card  { border-right: 1px solid var(--border); border-left: 4px solid; }

    /* Re-apply per-project accent colors for left border on mobile */
    .tl-entry[data-project="lava"] .tl-card      { border-left-color: #e07b39; }
    .tl-entry[data-project="weather"] .tl-card   { border-left-color: #00b4e6; }
    .tl-entry[data-project="mc"] .tl-card        { border-left-color: #7c6ad6; }
    .tl-entry[data-project="wdw"] .tl-card       { border-left-color: #2ecc71; }
    .tl-entry[data-project="church"] .tl-card    { border-left-color: #64433d; }

    .tl-dot { padding-top: 16px; justify-content: flex-end; padding-right: 8px; }
}

/* === iPad 4th Gen — portrait (768×1024) and landscape (1024×768) === */
@media only screen
    and (min-device-width: 768px)
    and (max-device-width: 1024px)
    and (-webkit-min-device-pixel-ratio: 2) {

    .container {
        max-width: 720px;
    }

    .section-title {
        font-size: 3rem;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Prevent marquee from causing horizontal overflow */
    .marquee {
        max-width: 100vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 25px 16px;
    }

    .hero-description {
        font-size: 16px;
    }

    .project-card {
        padding: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .marquee {
        display: none;
    }

    .notice-card {
        display: none;
    }

    a {
        color: var(--text-dark);
        border-bottom: 1px solid var(--text-dark);
    }
}

/* === CREATIVE SECTION === */
.creative-block {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.creative-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.creative-block-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--accent);
    margin-bottom: 8px;
}

.creative-block-desc {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.gallery-grid-inline {
    columns: 3;
    column-gap: 12px;
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .gallery-grid-inline { columns: 2; }
}

@media (max-width: 400px) {
    .gallery-grid-inline { columns: 1; }
}

.music-tracks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.track-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    padding: 18px 22px;
}

.track-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
}

.track-title {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.track-meta {
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-gray);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

.track-desc {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-gray);
    margin-top: 10px;
}

.prints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.print-placeholder {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
}

.print-img-slot {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0eb 0%, #e8e8e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
}

.print-label {
    padding: 10px 14px;
    color: var(--text-gray);
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
}

.business-card {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 24px;
}

.business-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.business-tag {
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(74, 124, 158, 0.08);
    border: 1px solid rgba(74, 124, 158, 0.18);
    color: var(--accent);
}

/* === FRIENDS PHOTO STRIP === */
.friends-section {
    padding-bottom: 28px;
}

.friends-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 8px 0 14px;
    /* hide scrollbar but keep scrollable */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.friends-strip::-webkit-scrollbar {
    display: none;
}

.friends-strip img {
    height: 220px;
    width: auto;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    scroll-snap-align: start;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.friends-strip img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.friends-hint {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
    opacity: 0.7;
    margin-top: 4px;
}

/* === GALLERY PAGE SPECIFIC === */
        .gallery-hero {
            text-align: center;
            padding: 50px 40px 30px;
        }

        .gallery-hero h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            color: var(--accent);
            line-height: 1;
            margin-bottom: 12px;
        }

        .gallery-hero p {
            font-size: 17px;
            color: var(--text-gray);
            max-width: 540px;
            margin: 0 auto 20px;
            line-height: 1.7;
        }

        .back-link {
            display: inline-block;
            font-family: 'Caveat', cursive;
            font-size: 1.4rem;
            color: var(--accent);
            border: 2px solid var(--accent);
            padding: 8px 22px;
            border-radius: 999px;
            transition: all 0.25s ease;
            border-bottom: 2px solid var(--accent) !important;
            text-decoration: none;
        }

        .back-link:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        /* === MASONRY GALLERY === */
        .gallery-grid {
            max-width: 820px;
            margin: 0 auto 60px;
            padding: 0 20px;
            columns: 3;
            column-gap: 16px;
        }

        .gallery-item {
            break-inside: avoid;
            margin-bottom: 16px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 2px 10px var(--shadow);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: var(--card-bg);
        }

        .gallery-item:hover {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 0 8px 24px rgba(0,0,0,0.13);
        }

        .gallery-item img {
            width: 100%;
            display: block;
            object-fit: cover;
            transition: opacity 0.3s ease;
        }

        .gallery-item img:hover {
            opacity: 0.92;
        }

        /* === LIGHTBOX === */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(10, 10, 10, 0.92);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
            backdrop-filter: blur(6px);
        }

        .lightbox.active {
            display: flex;
        }

        .lightbox img {
            max-width: 90vw;
            max-height: 88vh;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        }

        .lightbox-close {
            position: fixed;
            top: 20px;
            right: 28px;
            font-size: 2.4rem;
            color: white;
            cursor: pointer;
            font-family: 'Caveat', cursive;
            opacity: 0.8;
            transition: opacity 0.2s;
            line-height: 1;
        }

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

        .lightbox-nav {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            font-size: 2.5rem;
            color: white;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
            padding: 10px;
            user-select: none;
            font-family: 'Caveat', cursive;
        }

        .lightbox-nav:hover { opacity: 1; }
        .lightbox-prev { left: 16px; }
        .lightbox-next { right: 16px; }

        /* === CAPTION AREA === */
        .gallery-note {
            text-align: center;
            font-size: 14px;
            color: var(--text-gray);
            margin-top: -30px;
            margin-bottom: 40px;
            font-style: italic;
        }

        /* === RESPONSIVE === */
        @media (max-width: 640px) {
            .gallery-grid {
                columns: 2;
            }
        }

        @media (max-width: 400px) {
            .gallery-grid {
                columns: 1;
            }
        }