/* =============================================================
   Will Cahill — Portfolio Stylesheet
   Companion to index.html
   =============================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Custom Properties (Design Tokens)
   2.  Custom Fonts
   3.  Base Reset & Global Styles
   4.  Film Grain Overlay
   5.  Section Scaffolding
   6.  Sticky Scroll Sections
       NOTE: Negative margin-top values are calculated from
       background image pixel dimensions. Format is:
       calc(-[img height]px / [img width]px * 100vw)
       Update these if background images change dimensions.
   7.  Icon Navigation
   8.  Hero / Lead Section
   9.  Reel Frame (Demo Reel + Project Cards)
   10. Section Shared Styles
   11. About Section
   12. Skills & Education
   13. Work / Project Grid
   14. Timeline (Experience)
   15. Photography Galleries
   16. Contact Section
   17. Footer
   18. Fade-Up Animation
   19. Responsive — 1024px
   20. Responsive — 768px
   ============================================================= */

/* Page load fade-in */
body { opacity: 0; transition: opacity 0.6s ease; }
body.loaded { opacity: 1; }


/* ---------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   --------------------------------------------------------- */
:root {
  --cream: #F5F0E6;
  --sand: #D4B87A;
  --sand-light: #D9CBAF;
  --sand-dark: #A89878;
  --slate-blue: #3B5468;
  --steel-blue: #5A7D95;
  --sky-blue: #7CA0B8;
  --pale-blue: #A8C4D4;
  --deep-blue: #1E3344;
  --charcoal: #1C1917;
  --dark: #0F0E0D;
  --mid-gray: #6B635A;
  --light-gray: #9E958A;
  --chrome: #C4BCB0;
  --font-display: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}


/* ---------------------------------------------------------
   2. Custom Fonts
   --------------------------------------------------------- */
@font-face { font-family: 'Biro Script'; src: url('fonts/Biro_Script_reduced.ttf') format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Daniel';      src: url('fonts/daniel.ttf')              format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Scruf';       src: url('fonts/Scruf-Regular.ttf')       format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Inkfree';     src: url('fonts/Inkfree.ttf')             format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Velocette';   src: url('fonts/Velocette.ttf')           format('truetype'); font-weight: normal; font-style: normal; }


/* ---------------------------------------------------------
   3. Base Reset & Global Styles
   --------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--dark); color: var(--charcoal); font-family: var(--font-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }


/* ---------------------------------------------------------
   4. Film Grain Overlay
   --------------------------------------------------------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}


/* ---------------------------------------------------------
   5. Section Scaffolding
   --------------------------------------------------------- */
.section { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.section > * { position: relative; z-index: 1; }


/* ---------------------------------------------------------
   6. Sticky Scroll Sections
   NOTE: Negative margin-top values are calculated from
   background image pixel dimensions. Format is:
   calc(-[img height] / [img width] * 100vw)
   Update these if background images change dimensions.
   --------------------------------------------------------- */
.sticky-section { position: relative; }
.sticky-bg { position: sticky; top: 0; width: 100%; z-index: 0; overflow: hidden; }
.sticky-bg img { display: block; width: 100%; height: auto; }
.sticky-bg.fallback-cover { height: 100vh; }
.sticky-bg.fallback-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sticky-content { position: relative; z-index: 1; }

/* PortfolioPrepV2.webp: 1475 × 2000px */
#work .sticky-content { margin-top: calc(-2000 / 1475 * 100vw); }
#work .section-pad-heavy { padding-top: 16rem; }

/* ResumePrepV3.webp: 2000 × 1506px */
#experience .sticky-content { margin-top: calc(-1506 / 2000 * 100vw); }

/* PhotosPrepV3.webp: 1939 × 2000px */
#photos .sticky-content { margin-top: calc(-2000 / 1939 * 100vw); }


/* ---------------------------------------------------------
   7. Icon Navigation
   --------------------------------------------------------- */
.icon-nav-btn-wrap { position: fixed; top: 0; right: 0; z-index: 1001; padding: 1.25rem 1.75rem; mix-blend-mode: difference; pointer-events: none; }
.icon-nav-icons-wrap { position: fixed; top: 0; right: 0; z-index: 1000; padding: 1.25rem 1.75rem; pointer-events: none; display: flex; align-items: center; padding-right: calc(1.75rem + 59px + 0.75rem); }
.icon-nav-items { display: flex; align-items: center; gap: 0; flex-direction: row-reverse; transition: filter 0.4s ease; }
.icon-nav-items.open { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6)) drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.icon-nav-items .icon-nav-link { pointer-events: none; }
.icon-nav-items.open .icon-nav-link { pointer-events: auto; opacity: 1; transform: translateX(0); }
.icon-nav-link { display: flex; align-items: center; justify-content: center; width: 53px; height: 53px; position: relative; opacity: 0; transform: translateX(30px); transition: opacity 0.35s ease, transform 0.35s ease; cursor: pointer; text-decoration: none; }

/* Stagger in */
.icon-nav-items.open .icon-nav-link:nth-child(1) { transition-delay: 0.06s; }
.icon-nav-items.open .icon-nav-link:nth-child(2) { transition-delay: 0.12s; }
.icon-nav-items.open .icon-nav-link:nth-child(3) { transition-delay: 0.18s; }
.icon-nav-items.open .icon-nav-link:nth-child(4) { transition-delay: 0.24s; }
.icon-nav-items.open .icon-nav-link:nth-child(5) { transition-delay: 0.30s; }

/* Stagger out */
.icon-nav-items:not(.open) .icon-nav-link:nth-child(5) { transition-delay: 0.04s; }
.icon-nav-items:not(.open) .icon-nav-link:nth-child(4) { transition-delay: 0.08s; }
.icon-nav-items:not(.open) .icon-nav-link:nth-child(3) { transition-delay: 0.12s; }
.icon-nav-items:not(.open) .icon-nav-link:nth-child(2) { transition-delay: 0.16s; }
.icon-nav-items:not(.open) .icon-nav-link:nth-child(1) { transition-delay: 0.20s; }

.icon-nav-link img { width: 31px; height: 31px; object-fit: contain; transition: transform 0.25s ease; }
.icon-nav-link:hover img { transform: scale(1.2); }
.icon-nav-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-family: 'Biro Script', cursive; font-size: 1.0rem; letter-spacing: 0.08em; text-transform: none; color: white; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; padding-top: 6px; }
.icon-nav-link:hover .icon-nav-label { opacity: 1; }
.menu-toggle { width: 59px; height: 59px; cursor: pointer; background: none; border: none; padding: 0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); margin-left: 0.75rem; pointer-events: auto; }
.menu-toggle.open { transform: rotate(90deg); }
.menu-toggle img { width: 45px; height: 45px; object-fit: contain; }


/* ---------------------------------------------------------
   8. Hero / Lead Section
   --------------------------------------------------------- */
#lead { background-image: url('images/backgrounds/LeadPrepV3.webp'); background-color: black; background-size: 100% auto; background-position: center top; min-height: 100vh; }
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 8rem 3rem 3rem; overflow: visible; }
.hero-inner { max-width: 1100px; width: 100%; overflow: visible; }
.hero-video-row { display: flex; justify-content: center; margin-bottom: 3rem; padding: 0 8%; }
.hero-reel { width: 100%; max-width: 900px; }
.hero-socials { display: flex; justify-content: flex-end; gap: 1.25rem; padding-top: 0.75rem; }
.hero-socials a { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.45); transition: color 0.3s ease; }
.hero-socials a:hover { color: var(--cream); }
.hero-socials svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.hero-bottom-left { text-align: left; max-width: 600px; overflow: visible; margin-top: -5rem; }
.hero-name { font-family: var(--font-display); font-size: clamp(4rem,10vw,8rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 1rem; white-space: nowrap; overflow: visible; padding-bottom: 0.35em; }
.hero-name .last { color: var(--sky-blue); }
.hero-name .char-w      { font-family: 'Daniel',   cursive; font-size: 0.75em; }
.hero-name .char-il     { font-family: 'Scruf',    cursive; font-size: 0.5em; }
.hero-name .char-l2     { font-family: 'Inkfree',  cursive; font-size: 0.5em; }
.hero-name .char-cahill { font-family: 'Velocette', cursive; font-size: 1.25em; padding-left: 0.15em; display: inline-block; position: relative; }
.hero-tagline { font-family: 'Biro Script', cursive; font-size: 0.145em; font-weight: 300; line-height: 1.4; color: rgba(255,255,255,0.55); white-space: nowrap; font-style: normal; position: absolute; bottom: -1em; right: 3.5em; }


/* ---------------------------------------------------------
   9. Reel Frame (Demo Reel + Project Cards share these)
   --------------------------------------------------------- */
.reel-frame { background: rgba(0,0,0,0.6); border-radius: 4px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; cursor: pointer; box-shadow: 0 30px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(90,125,149,0.2); opacity: 0.45; transition: opacity 0.4s ease; }
.reel-frame:hover, .reel-frame.playing { opacity: 1; }
.reel-frame::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 1px,rgba(255,255,255,0.015) 1px,rgba(255,255,255,0.015) 2px); z-index: 1; pointer-events: none; }
.reel-play { width: 72px; height: 72px; border: 2px solid rgba(255,255,255,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; transition: all 0.35s ease; }
.reel-frame:hover .reel-play { border-color: var(--sky-blue); transform: scale(1.08); background: rgba(90,125,149,0.2); }
.reel-play svg { width: 24px; height: 24px; fill: white; margin-left: 3px; }
.embed-note { position: absolute; bottom: 0.75rem; right: 0.75rem; font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); z-index: 2; }


/* ---------------------------------------------------------
   10. Section Shared Styles
   --------------------------------------------------------- */
.section-pad-heavy { padding: 10rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--steel-blue); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--steel-blue); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 400; line-height: 1.15; margin-bottom: 1rem; }
.section-title em { font-family: 'Biro Script', cursive; font-style: normal; color: var(--steel-blue); }
.dark-text { color: var(--cream); }
.dark-text .section-label { color: var(--sky-blue); }
.dark-text .section-title { color: var(--cream); }
.dark-text .section-title em { color: var(--sky-blue); }


/* ---------------------------------------------------------
   11. About Section
   --------------------------------------------------------- */
#about { background-image: url('images/backgrounds/AboutPrepV3.webp'); background-color: black; background-size: 100% auto; background-position: center top; }
#about .section-pad-heavy { padding-top: 6rem; padding-bottom: 2rem; }
/* Left half of image is compositional — text pushed to right half */
#about .section-inner { max-width: none; padding-left: calc(50vw - 3rem); padding-right: 1.8rem; }
#about::before { content: ''; position: absolute; inset: 0; background: rgba(15,14,13,0.0); z-index: 0; pointer-events: none; }
.about-layout { display: flex; justify-content: flex-start; margin-top: 0; }
.about-content-right { max-width: none; width: 100%; padding-right: 0; }
.about-text p { font-size: 1.02rem; line-height: 1.8; color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; }


/* ---------------------------------------------------------
   12. Skills & Education
   --------------------------------------------------------- */
.skills-heading { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sky-blue); margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-top: 1rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.skill-tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.9rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; color: var(--sand); background: rgba(255,255,255,0.04); transition: all 0.25s; }
.skill-tag:hover { border-color: var(--sky-blue); color: var(--cream); }
.education-block { padding: 1.5rem; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); border-left: 3px solid var(--steel-blue); }
.edu-degree { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.25rem; color: var(--cream); }
.edu-school { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--sand); margin-bottom: 0.15rem; }
.edu-note { font-family: 'Biro Script', cursive; font-size: 0.85rem; color: var(--sand); font-style: normal; margin-bottom: 1rem; }
.edu-sub { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--sand); margin-bottom: 0.5rem; }
.skills-edu-row { display: flex; gap: 3rem; align-items: flex-start; }
.skills-edu-row .education-block { flex: 0 0 45%; min-width: 0; }
.skills-col { flex: 1 1 0; min-width: 0; }
.about-skills-full { padding: 0 3rem 14rem; }


/* ---------------------------------------------------------
   13. Work / Project Grid
   --------------------------------------------------------- */
.work-intro { font-size: 1.02rem; line-height: 1.75; color: var(--mid-gray); margin-bottom: 4rem; }
.project-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.project-card { position: relative; }
.project-video { aspect-ratio: 16/9; background: var(--dark); border-radius: 3px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; margin-bottom: 1.2rem; cursor: pointer; transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease; opacity: 0.45; }
.project-card:hover .project-video { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,0.2); opacity: 1; }
.project-video.playing { opacity: 1; }
.project-video::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 1px,rgba(255,255,255,0.015) 1px,rgba(255,255,255,0.015) 2px); z-index: 1; pointer-events: none; }
.project-video .reel-play { width: 54px; height: 54px; opacity: 0.65; transition: all 0.3s; }
.project-card:hover .project-video .reel-play { opacity: 1; border-color: var(--sky-blue); background: rgba(90,125,149,0.15); }
.project-video .reel-play svg { width: 18px; height: 18px; }
.project-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.2rem; }
.project-type { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel-blue); }
.project-year { font-family: var(--font-mono); font-size: 0.58rem; color: var(--steel-blue); flex-shrink: 0; }
.project-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--charcoal); }
.project-roles { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-blue); margin-bottom: 0.3rem; }
.project-desc { font-size: 0.88rem; line-height: 1.65; color: var(--charcoal); }
.project-card::after { display: none; }

/* Faded column dividers behind the grid */
.project-grid-2col { position: relative; }
.project-grid-2col::before,
.project-grid-2col::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(255,255,255,0.7);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, transparent 5%, black 11%, black 92%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, transparent 5%, black 11%, black 92%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 12%, black 88%, transparent 100%);
  mask-composite: intersect;
}
.project-grid-2col::before { left: -6%;  width: calc(50% - 1.25rem + 9%); }
.project-grid-2col::after  { right: -6%; width: calc(50% - 1.25rem + 9%); }
.project-card > * { position: relative; z-index: 1; }


/* ---------------------------------------------------------
   14. Timeline (Experience)
   --------------------------------------------------------- */
.timeline { margin-top: 3rem; position: relative; padding-left: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--sand); }
.timeline-item { padding-bottom: 2.75rem; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -2rem; top: 6px; width: 9px; height: 9px; background: var(--slate-blue); border-radius: 50%; transform: translateX(-4px); box-shadow: 0 0 0 3px rgba(59,84,104,0.12); }
.timeline-year    { font-family: var(--font-mono);    font-size: 0.62rem; letter-spacing: 0.15em; color: var(--charcoal); margin-bottom: 0.4rem; }
.timeline-role    { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400;       color: var(--charcoal); margin-bottom: 0.2rem; }
.timeline-company { font-family: var(--font-mono);    font-size: 0.65rem; letter-spacing: 0.1em;  color: var(--charcoal); margin-bottom: 0.65rem; }
.timeline-desc    { font-size: 0.88rem; line-height: 1.7; color: var(--charcoal); max-width: 520px; }


/* ---------------------------------------------------------
   15. Photography Galleries
   --------------------------------------------------------- */
.gallery-segment { margin-bottom: 6rem; }
.gallery-segment:last-child { margin-bottom: 0; }
.gallery-segment-label { font-family: 'Biro Script', cursive; font-size: 2rem; font-weight: 400; color: var(--charcoal); margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(59,84,104,0.15); }
#photos .section-label { justify-content: flex-end; }
#photos { margin-top: -2px; }
#photos .section-label::before { order: 2; }
#photos .gallery-segment-label { text-align: right; }
 
/* Viewer: indicator column + main image + arrows */
.gallery-viewer { display: flex; gap: 1rem; height: 520px; }
 
/* Indicator dots column — narrow, just small squares */
.gallery-thumbs {
  width: 28px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 0;
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
 
/* Each indicator square */
.gallery-thumb {
  width: 28px;
  height: 28px;
  aspect-ratio: 1;
  flex-shrink: 0;
  background: var(--slate-blue);
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.gallery-thumb:hover { background: var(--sand-light); }
.gallery-thumb.active { background: var(--sand); }

/* Hide the number labels inside squares */
.gallery-thumb-placeholder { display: none; }
 
/* Main image area — relative so arrows can sit inside */
.gallery-main {
  flex: 1;
  background: transparent;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
 
/* Arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.gallery-arrow:hover { transform: translateY(-50%) scale(1.3); }
.gallery-arrow svg { width: 28px; height: 28px; stroke: var(--charcoal); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow-prev { left: 0.5rem; }
.gallery-arrow-next { right: 0.5rem; }
 
/* Responsive */
@media (max-width: 1024px) {
  .gallery-viewer { height: 420px; }
}
@media (max-width: 768px) {
  .gallery-viewer { flex-direction: column; height: auto; }
  .gallery-thumbs { width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; height: 28px; padding-bottom: 0; gap: 6px; }
  .gallery-thumb { width: 28px; height: 28px; flex-shrink: 0; }
  .gallery-main { min-height: 280px; }
}


/* ---------------------------------------------------------
   16. Contact Section
   Background switched to .png — sharper edges on this image.
   ContactPrepV2.png: 1410 × 2000px
   --------------------------------------------------------- */
#contact { background-image: url('images/backgrounds/ContactPrepV2.png'); background-color: transparent; background-size: 100% auto; background-position: center top; background-repeat: no-repeat; min-height: calc(2000 / 1410 * 100vw); z-index: 2; position: relative; margin-top: calc(-95 / 2000 * 100vw); }
.contact-full { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10rem 3rem; }
.contact-centered { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 500px; width: 100%; }
.contact-headline { font-family: 'Biro Script', cursive; font-size: clamp(2.07rem,4vw,3.22rem); font-weight: 400; line-height: 1.2; margin-bottom: 0.5rem; white-space: nowrap; }
.contact-headline .line-blue   { color: #ffffff; display: block; }
.contact-headline .line-spacer { display: block; height: 8em; }
.contact-headline .line-sand   { font-family: 'Biro Script', cursive; color: var(--sand); display: block; font-style: normal; }
.contact-links-center { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; margin-top: 2.5rem; }
.contact-link { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--charcoal); text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); transition: all 0.3s; }
.contact-link:hover { color: var(--steel-blue); }
.contact-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }


/* ---------------------------------------------------------
   17. Footer
   --------------------------------------------------------- */
footer { position: relative; z-index: 10; background: var(--dark); color: rgba(255,255,255,0.35); padding: 2.5rem 3rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; }
footer a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--sky-blue); }
.footer-links { display: flex; gap: 2rem; }


/* ---------------------------------------------------------
   18. Fade-Up Animation
   --------------------------------------------------------- */
.fade-up { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.hidden  { opacity: 0; transform: translateY(28px); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }


/* ---------------------------------------------------------
   19. Responsive — 1024px
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .section-pad-heavy { padding: 8rem 2rem; }
  .hero { padding: 4rem 2rem 3rem; }
}


/* ---------------------------------------------------------
   20. Responsive — 768px
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .icon-nav { padding: 1rem 1rem; }
  .menu-toggle img { width: 39px; height: 39px; }
  .icon-nav-link img { width: 25px; height: 25px; }
  .icon-nav-link { width: 45px; height: 45px; }
  .section-pad-heavy { padding: 7rem 1.5rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-name { white-space: normal; }
  .hero-video-row { padding: 0; }
  #about::before { background: rgba(15,14,13,0.6); }
  .about-layout { justify-content: stretch; }
  .about-content-right { max-width: 100%; }
  .skills-edu-row { flex-direction: column; }
  .skills-edu-row .education-block { width: 100%; }
  .about-skills-full { padding: 0 1.5rem 2rem; }
  #about .section-inner { padding-left: 0; padding-right: 0; }
  .project-grid-2col { grid-template-columns: 1fr; }
  .gallery-viewer { flex-direction: column; height: auto; }
  .gallery-thumbs { width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; height: 80px; padding-right: 0; padding-bottom: 0.5rem; }
  .contact-full { min-height: 100vh; padding: 7rem 1.5rem; }
  .contact-headline { white-space: normal; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
