/* ================================================================
   Designs by Jenn — Main Stylesheet
   ================================================================

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────
    1.  FONTS
    2.  BASE RESET
    3.  CSS VARIABLES (colours, fonts)
    4.  BODY & BACKGROUND TEXTURE
    5.  NAVIGATION  ·  shared across all pages
    6.  FOOTER  ·  shared across all pages
    7.  BUTTONS  ·  .btn-primary  /  .btn-outline
    8.  UTILITY  ·  .label  /  .reveal animation
   ─────────────────────────────────────────────────────────────
    9.  HOME PAGE  ·  index.html
        — Nav override (transparent → orange on scroll)
        — Hero / animated headline
        — Bio section
        — Case studies grid
        — CTA banner
        — Footer illustration + bar
   10.  ABOUT PAGE  ·  about.html
        — Hero
        — Intro two-column
        — Body: photo panel + content blocks
        — "Get in touch" CTA strip
   11.  GALLERY PAGE  ·  portfolio.html
        — Hero
        — Masonry grid
        — Lightbox modal
   12.  CONTACT PAGE  ·  contact.html
        — Two-panel layout
        — Info list (left)
        — Contact form (right)
   13.  RESUME PAGE  ·  cv.html
        — Header: photo + name
        — Two-column layout
        — Skills list
        — Job entries
   ─────────────────────────────────────────────────────────────
   ================================================================ */


/* ================================================================
   1. FONTS
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Sofia+Sans+Condensed:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');


/* ================================================================
   2. BASE RESET
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }


/* ================================================================
   3. CSS VARIABLES
   ================================================================ */

:root {
  --orange:       #e2923a;   /* main brand orange */
  --orange-dark:  #c87a25;   /* hover / scrolled state */
  --page-bg:      #0d0b09;   /* near-black page background */
  --font-display: 'Sofia Sans Condensed', sans-serif;
  --font-body:    'Sofia Sans', sans-serif;
}


/* ================================================================
   4. BODY & BACKGROUND TEXTURE
   ================================================================ */

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed road-texture overlay — sits behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/road_background.webp') center top / cover;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* All page content sits above the texture */
main { padding-top: 52px; position: relative; z-index: 1; }


/* ================================================================
   5. NAVIGATION  ·  shared across all pages
   ================================================================ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: rgba(226,146,58,0.92);   /* orange bar — default for all pages */
  backdrop-filter: blur(8px);
  transition: background 300ms;
}
#nav.scrolled { background: rgba(200,116,20,0.97); }

/* Wordmark (SVG logo) */
.nav-wordmark svg { height: 26px; width: auto; fill: #3b1e05; }

/* Desktop links */
.nav-links-right {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #3b1e05;
  display: flex;
  align-items: center;
}
.nav-links-right a { text-decoration: none; color: inherit; transition: color 150ms; }
.nav-links-right a:hover { color: #fff; }
.nav-links-right a.active { color: #fff; }
.nav-sep { margin: 0 7px; opacity: 0.35; }

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #3b1e05; }

/* Mobile slide-down menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: rgba(13,11,9,0.97);
  padding: 24px 32px 36px;
  z-index: 299;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-mobile.open { transform: translateY(0); opacity: 1; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 150ms;
}
.nav-mobile a:hover { color: var(--orange); }
.nav-mobile a:last-child { border-bottom: none; }

/* Nav breakpoint */
@media (max-width: 860px) {
  .nav-links-right { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
}


/* ================================================================
   6. FOOTER  ·  shared across all pages
   ================================================================ */

footer {
  background: rgba(5,4,3,0.85);
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
footer span { font-size: 11px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }


/* ================================================================
   7. BUTTONS
   ================================================================ */

/* Filled orange button */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--orange);
  padding: 14px 32px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Ghost / outline button */
.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  background: transparent;
  padding: 12px 28px;
  border-radius: 3px;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 150ms;
}
.btn-outline:hover { border-color: #fff; color: #fff; }


/* ================================================================
   8. UTILITY
   ================================================================ */

/* Small all-caps orange label used above headings */
.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

/* Scroll-triggered fade-up animation — JS adds .visible */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }


/* ================================================================
   9. HOME PAGE  ·  index.html
   ================================================================ */

/* ── Nav override: transparent until user scrolls ─────────────── */
/* (scoped to .page-home so it doesn't affect other pages)        */

.page-home #nav {
  background: transparent;
  transition: background 350ms ease;
}
.page-home #nav.scrolled {
  background: rgba(226,146,58,0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.page-home .nav-wordmark svg { fill: #fff; transition: fill 350ms; }
.page-home #nav.scrolled .nav-wordmark svg { fill: #3b1e05; }
.page-home .nav-links-right { color: rgba(255,255,255,0.9); transition: color 350ms; }
.page-home #nav.scrolled .nav-links-right { color: #3b1e05; }
.page-home .nav-links-right a:hover { opacity: 0.7; }
.page-home .nav-hamburger span { background: #fff; transition: background 350ms; }
.page-home #nav.scrolled .nav-hamburger span { background: #3b1e05; }
.page-home .nav-mobile { border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ── Section stacking ─────────────────────────────────────────── */
.hero, .bio-section, .case-studies-section,
.cta-section, .footer-illustration, .footer-bar {
  position: relative;
  z-index: 1;
  background: transparent !important;
}
.footer-bar { background: rgba(5,4,3,0.85) !important; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh; /* prevents browser chrome from clipping bottom on mobile */
  min-height: 500px;
  background: var(--page-bg);
  /* Allow the hero illustration's box to visibly extend below this 100vh box
     into the bio-section. .hero is still 100vh in document layout (the
     illustration is position: absolute, which is out of flow), so this does
     not increase document height and does not create a page scroll bar. */
  overflow: visible;
}
/* The illustration's box extends 250px below the hero so the bottom of the
   SVG (road / rocks) renders into the top of the bio-section. We use a single
   `overflow: hidden` on this element (NOT overflow-x:hidden + overflow-y:visible
   which would force the y-axis to "auto" per CSS spec and render a scrollbar). */
.hero-illustration {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  bottom: -400px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
/* hero-img fills its (slightly-taller-than-hero) container with object-fit:
   cover, top-anchored. The 1.11 scale (from top) pushes the SVG's empty
   horizontal margins off the sides so the sky reaches the viewport edges. */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.11);
  transform-origin: center top;
}
.hero-text {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  padding: 0 4% 5vh;
  z-index: 10;
}
.road-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 10vw, 170px);
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  line-height: 0.9;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px);
  will-change: opacity, transform;
}
.road-line-1 { margin-left: 0;   animation: roadIn 700ms cubic-bezier(0.16,1,0.3,1)  300ms forwards; }
.road-line-2 { margin-left: 4%;  animation: roadIn 700ms cubic-bezier(0.16,1,0.3,1)  850ms forwards; }
.road-line-3 { margin-left: 8%;  animation: roadIn 700ms cubic-bezier(0.16,1,0.3,1) 1400ms forwards; }
@keyframes roadIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero bird animations are now driven by the SVGator JS player embedded in
   assets/header_bg.svg (loaded via <object> so the script can execute).
   The CSS-driven hero-birds overlay, clipPath, and wing-flap rules that
   used to live here have been removed since the SVG handles all of it. */


/* Reduced motion: keep the entrance text animation (one-time, brief),
   but disable looping decorative animations. Birds settle at sensible
   visible positions in the open sky so the scene isn't empty. */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-bird,
  .page-home .hero-bird-wing {
    animation: none !important;
  }
  .page-home .hero-bird { opacity: 0.85; }
  .page-home .hero-bird--1 { transform: translate(1100px, 320px); }
  .page-home .hero-bird--2 { transform: translate(1300px, 350px) scale(0.85); }
  .page-home .hero-bird--3 { transform: translate(1200px, 290px) scale(1.1); }
  .page-home .hero-bird--4 { transform: translate(1450px, 270px) scale(0.7); }
}

/* ── Bio ──────────────────────────────────────────────────────── */
.bio-section {
  padding: 72px 5% 88px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}
.bio-left { display: flex; flex-direction: column; }
.bio-copy {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
.bio-copy strong { color: #fff; font-weight: 700; }
.bio-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.bio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  transition: color 150ms, gap 150ms;
}
.bio-link:hover { color: #fff; gap: 12px; }
.bio-link svg { flex-shrink: 0; }
.bio-social { display: flex; gap: 12px; margin-top: 24px; }
.bio-tech-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 28px 0 8px; }
.bio-tech { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 0; align-items: center; background: rgba(226,146,58,0.3); border-radius: 10px; padding: 22px 24px; }
.bio-tech-icon img { height: clamp(24px, 3.4vw, 44px); width: auto; }
.bio-tech-icon { display: inline-flex; align-items: center; line-height: 0; opacity: 0.9; transition: opacity 150ms, transform 150ms; position: relative; }
.bio-tech-icon:hover { opacity: 1; transform: translateY(-2px); }
.bio-tech-icon::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: rgba(20,20,20,0.92); color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; padding: 4px 8px; border-radius: 5px; pointer-events: none; opacity: 0; transition: opacity 0ms; }
.bio-tech-icon:hover::after { opacity: 1; transition: opacity 0ms; }
.bio-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 9999px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  transition: background 150ms;
}
.bio-social-icon:hover { background: var(--orange-dark); }
.bio-portrait {
  border-radius: 9999px;
  overflow: hidden;
  width: min(100%, 380px);
  margin: 0 auto;
  flex-shrink: 0;
}
.bio-portrait img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; object-position: top; }

/* ── Case Studies grid ────────────────────────────────────────── */
.case-studies-section { padding: 0 5% 100px; }
.case-studies-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 48px 0 56px;
  line-height: 1;
}
.case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.case-row:last-child { border-bottom: none; margin-bottom: 0; }
.case-image {
  display: block;
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 16/10;
  text-decoration: none;
}
.case-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.case-row:hover .case-image img { transform: scale(1.03); }
.case-body { padding: 8px 0; }
.case-number {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.case-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: #fff;
  margin-bottom: 6px;
}
.case-tagline {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.case-bold-line {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  line-height: 1.3;
}
.case-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 22px;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  transition: gap 150ms;
}
.case-link:hover { gap: 14px; }

/* ── CTA banner ───────────────────────────────────────────────── */
.cta-section {
  padding: 40px 5% 64px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}
.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 52px;
}
.cta-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgb(48,39,0);
  background: var(--orange);
  padding: 16px 52px;
  border-radius: 9999px;
  transition: background 150ms, transform 150ms;
}
.cta-btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.cta-moon { opacity: 0.45; flex-shrink: 0; }

/* ── Footer illustration + bar ────────────────────────────────── */
.footer-illustration { width: 100%; display: block; line-height: 0; }
.footer-illustration img { width: 100%; display: block; }
.footer-bar {
  background: #050403;
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bar span { font-size: 11px; color: rgba(255,255,255,0.22); letter-spacing: 0.06em; }

/* ── Home responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .bio-section { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .bio-portrait { margin: 0 auto; width: 180px; }
  .case-row { grid-template-columns: 1fr; gap: 28px; }
  .cta-heading { font-size: clamp(60px, 14vw, 120px); }
  /* Mobile: keep desktop's space-between distribution (so the gaps between
     icons are proportional to desktop) with slightly tighter container padding,
     and let the icons shrink to fit the narrower viewport. */
  .bio-tech { flex-wrap: nowrap; padding: 16px 18px; justify-content: space-between; }
  .bio-tech-icon img { height: clamp(14px, 4.2vw, 44px); width: auto; }
}


/* ================================================================
   10. ABOUT PAGE  ·  about.html
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  background: url('assets/design-action.webp') 44% 30% / 125% auto no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5% 64px;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,11,9,0.72) 0%, rgba(13,11,9,0.1) 55%);
  pointer-events: none;
}
.about-hero .label { margin-bottom: 14px; display: block; position: relative; z-index: 1; }
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  z-index: 1;
}
.about-hero h1 em { font-style: normal; color: #fff; }

/* ── Intro two-column ─────────────────────────────────────────── */
.about-intro {
  padding: 64px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  max-width: 1300px;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 28px;
}
.about-quote { border-left: 3px solid var(--orange); padding-left: 24px; margin-top: 24px; }
.about-quote p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.75; }
.about-quote span { font-weight: 700; color: #fff; }
.about-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.about-meta-copy { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* ── Body hero image ──────────────────────────────────────────── */
.about-body-hero {
  overflow: hidden;
  border-radius: 3px;
  margin: 0 5% 48px;
  max-width: 1300px;
  aspect-ratio: 16/9;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.about-body-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 46% 40%;
  transform: scale(1.4);
  transform-origin: 40% 40%;
}

/* ── Body: sticky photo panel + content ───────────────────────── */
.about-body { padding: 64px 0 96px; }
.about-body-inner { display: grid; grid-template-columns: 280px 1fr; gap: 64px; max-width: 1300px; padding: 0 5%; }
.about-photo-panel { position: sticky; top: 64px; align-self: start; }

/* Fast facts list */
.about-fast-facts {
  border-left: 3px solid var(--orange);
  padding-left: 20px;
  margin-bottom: 32px;
}
.about-fast-facts ul { list-style: none; }
.about-fast-facts li {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.about-fast-facts li:last-child { border-bottom: none; }

/* Tools & superpowers block */
.about-superpowers h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.about-superpowers p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.75; }
.about-block { margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.about-block:last-child { border-bottom: none; }
.about-note {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.about-subheading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.about-para { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 16px; max-width: 600px; }
.about-story-media { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: start; }
.about-inline-photo { overflow: hidden; border-radius: 3px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.about-inline-photo img { width: 100%; display: block; object-fit: cover; }
.about-photo-stack { display: flex; flex-direction: column; gap: 12px; }
.about-cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.about-cover-grid figure { overflow: hidden; border-radius: 2px; box-shadow: 0 3px 12px rgba(0,0,0,0.45); }
.about-cover-grid figure img { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; }
.about-full-photo { margin-top: 28px; overflow: hidden; border-radius: 3px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.about-full-photo img { width: 100%; display: block; }
.about-cta-box {
  background: rgba(226,146,58,0.1);
  padding: 48px;
  border-radius: 3px;
  border: 1px solid rgba(226,146,58,0.2);
}

/* ── "Get in touch" CTA strip ─────────────────────────────────── */
.about-contact { padding: 96px 5%; text-align: center; }
.about-contact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}
.about-contact h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 40px;
}
.about-contact .cta-row { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── About responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-hero {
    margin-top: -52px;        /* snap image flush with the fixed nav */
    min-height: 0;
    padding: 0;
    justify-content: flex-start;
    background-size: cover;
    background-position: center 30%;
  }
  .about-hero::before {
    content: '';
    display: block;
    width: 100%;
    height: calc(52px + 56vw); /* nav height + visible image area */
  }
  .about-hero::after {
    display: none;             /* remove gradient on mobile */
  }
  .about-hero h1 {
    background: #0d0b09;
    padding: 28px 5% 36px;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
  }
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-body-hero { margin: 0 5% 36px; }
  .about-body-inner { grid-template-columns: 1fr; padding: 0 5%; }
  .about-photo-panel { position: static; }
  .about-story-media { grid-template-columns: 1fr; }
  .about-cta-box { padding: 32px 24px; }
}


/* ================================================================
   11. GALLERY PAGE  ·  portfolio.html
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.gallery-hero { padding: 72px 5% 56px; }
.gallery-hero .label { margin-bottom: 14px; display: block; }
.gallery-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.gallery-hero p { font-size: 16px; color: rgba(255,255,255,0.55); max-width: 520px; line-height: 1.7; }

/* ── Masonry grid ─────────────────────────────────────────────── */
.gallery-section { padding: 0 3% 96px; }
.gallery-masonry { columns: 3; column-gap: 12px; }
.pf-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
}
.pf-item img { width: 100%; display: block; transition: transform 400ms ease; }
.pf-item:hover img { transform: scale(1.04); }
.pf-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,11,9,0);
  transition: background 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-item:hover .pf-item-overlay { background: rgba(13,11,9,0.4); }
@media (min-width: 861px) {
  .pf-pair {
    display: flex;
    gap: 12px;
    break-inside: avoid;
    margin-bottom: 12px;
  }
  .pf-pair .pf-item { flex: 1; min-width: 0; margin-bottom: 0; }
}
.pf-item-overlay svg { opacity: 0; transform: scale(0.8); transition: all 300ms ease; color: #fff; }
.pf-item:hover .pf-item-overlay svg { opacity: 1; transform: scale(1); }
.pf-item-caption {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 10px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  background: linear-gradient(rgba(13,11,9,0.72), transparent);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}
.pf-item:hover .pf-item-caption { opacity: 1; transform: translateY(0); }

/* ── Lightbox modal ───────────────────────────────────────────── */
#pf-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,4,3,0.96);
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
#pf-modal.open { display: flex; }
#pf-modal-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; cursor: default; }
#pf-modal-close {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 36px;
  color: rgba(255,255,255,0.5);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 150ms;
}
#pf-modal-close:hover { color: #fff; }

/* Figma prototype modal */
#pf-modal-frame {
  display: none;
  width: min(92vw, 1400px);
  height: 85vh;
  border: none;
  border-radius: 4px;
  cursor: default;
  background: #111;
}
#pf-modal.figma-open { padding: 56px 24px 24px; }
#pf-modal.figma-open #pf-modal-img { display: none; }
#pf-modal.figma-open #pf-modal-frame { display: block; }

/* Website link button — shown below image when has-link class is present */
#pf-modal-link {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  background: var(--orange);
  padding: 14px 36px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
}
#pf-modal-link:hover { background: var(--orange-dark); transform: translateY(-2px); }
#pf-modal.has-link { flex-direction: column; gap: 20px; }
#pf-modal.has-link #pf-modal-img { max-height: 78vh; }
#pf-modal.has-link #pf-modal-link { display: inline-block; }

/* Figma item overlay — play icon badge */
.pf-item--figma .pf-item-overlay { flex-direction: column; gap: 6px; }
.pf-figma-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(4px);
  transition: all 300ms ease;
}
.pf-item--figma:hover .pf-figma-badge { opacity: 1; transform: translateY(0); }

/* ── Gallery responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery-masonry { columns: 2; column-gap: 8px; }
  .pf-item { margin-bottom: 8px; }
}
@media (max-width: 500px) { .gallery-masonry { columns: 1; } }


/* ================================================================
   12. CONTACT PAGE  ·  contact.html
   ================================================================ */

/* ── Two-panel layout ─────────────────────────────────────────── */
.contact-wrap {
  min-height: calc(100vh - 52px);   /* fills viewport below nav */
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left: info panel ─────────────────────────────────────────── */
.contact-panel {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.contact-panel .label { margin-bottom: 20px; display: block; }
.contact-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}
.contact-panel h1 em { font-style: normal; color: var(--orange); }
.contact-panel > p { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 380px; margin-bottom: 48px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 3px;
  background: rgba(226,146,58,0.1);
  border: 1px solid rgba(226,146,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}
.contact-info-value { font-size: 14px; font-weight: 600; color: #fff; }
.contact-info-value a { color: #fff; text-decoration: none; transition: color 150ms; }
.contact-info-value a:hover { color: var(--orange); }

/* ── Right: form panel ────────────────────────────────────────── */
.contact-form-wrap {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
}
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
}
.form-sub { font-size: 14px; color: rgba(255,255,255,0.4); margin-bottom: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 200ms, background 200ms;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); background: rgba(226,146,58,0.06); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: #1a1410; color: #fff; }
.form-submit {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: var(--orange);
  border: none;
  border-radius: 3px;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  margin-top: 4px;
}
.form-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 48px 0; }
.form-success.show { display: block; }
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(226,146,58,0.1);
  border: 2px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--orange);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.form-success p { font-size: 15px; color: rgba(255,255,255,0.5); }

/* ── Contact responsive ───────────────────────────────────────── */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-panel, .contact-form-wrap { padding: 56px 24px; }
  .form-row { grid-template-columns: 1fr; }
}


/* ================================================================
   13. RESUME PAGE  ·  cv.html
   ================================================================ */

.cv-wrap { max-width: 1100px; margin: 0 auto; padding: 72px 5% 96px; }

/* ── Header: photo + name + contact info ──────────────────────── */
.cv-header {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
  padding-bottom: 0;
}
.cv-photo { width: 160px; height: 160px; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.4); flex-shrink: 0; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cv-header-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}
.cv-tagline { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.cv-bio { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.75; max-width: 540px; margin-bottom: 24px; }
.cv-contact-info { display: flex; flex-wrap: wrap; gap: 20px; }
.cv-contact-info a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 150ms;
}
.cv-contact-info a:hover { color: var(--orange); }

/* ── Two-column layout: sidebar + main ────────────────────────── */
.cv-columns { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.cv-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.cv-sidebar-section { margin-bottom: 48px; }

/* ── Skills list ──────────────────────────────────────────────── */
.skills-list { list-style: none; display: flex; flex-direction: column; }
.skills-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skills-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Job / education entries ──────────────────────────────────── */
.cv-job { margin-bottom: 40px; padding-bottom: 0; }
.cv-job:last-child { margin-bottom: 0; }
.cv-job h3 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: #fff; margin-bottom: 2px; }
.cv-company { font-size: 14px; font-weight: 600; color: var(--orange); margin-bottom: 2px; }
.cv-date { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.cv-job p { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.82); line-height: 1.75; margin-bottom: 6px; }

/* ── Resume responsive ────────────────────────────────────────── */
@media (max-width: 860px) {
  .cv-header { grid-template-columns: 1fr; gap: 24px; }
  .cv-columns { grid-template-columns: 1fr; gap: 40px; }
}
