/* =====================================================================
   DAVI LOPES // VIDEO EDITOR // STYLESHEET
   =====================================================================
   Quick edit map:
   - Colors, spacing, fonts ................ :root variables below
   - Section-by-section styles ............. grouped with header comments
   - Responsive breakpoints ................. bottom of file
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. RESET
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }
input, textarea, button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   2. DESIGN TOKENS
--------------------------------------------------------------------- */
:root {
  /* Colors */
  --background: #080808;
  --background-secondary: #111111;
  --background-elevated: #161616;
  --yellow: #FFD600;
  --yellow-dim: #FFD60022;
  --white: #F5F5F5;
  --gray: #9A9A9A;
  --gray-dim: #5A5A5A;
  --line: #232323;

  /* Typography */
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 10vw, 140px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 0.2s;
  --base: 0.4s;
  --slow: 0.7s;

  /* Elevation */
  --radius: 2px;
}

/* ---------------------------------------------------------------------
   3. BASE
--------------------------------------------------------------------- */
body {
  background: var(--background);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

::selection { background: var(--yellow); color: var(--background); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-dim); }

.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 999;
  background: var(--yellow); color: var(--background);
  padding: 10px 16px; font-weight: 600; font-size: 13px;
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.text-yellow { color: var(--yellow); }

/* Brazil-flag text fill: three hard-edged bands (green / the site's own
   yellow / blue), no blur or blend, so it reads as bold flat color like
   the rest of the site instead of a soft gradient. Falls back to a flat
   flag-yellow if the browser can't clip a gradient to text. */
.text-brazil { color: #FFDF00; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .text-brazil {
    background: linear-gradient(90deg,
      #00A651 0%, #00A651 33.33%,
      var(--yellow) 33.33%, var(--yellow) 66.66%,
      #1C6FD9 66.66%, #1C6FD9 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

section { position: relative; padding: var(--section-y) var(--gutter); }

.section-head { max-width: var(--container); margin: 0 auto clamp(32px, 5vw, 56px); }
.section-label {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--yellow); margin-bottom: 12px; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 56px); text-transform: uppercase;
}

/* ---------------------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--yellow); color: var(--background); }
.btn-primary:hover { background: var(--white); }

.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-small { padding: 10px 18px; font-size: 12px; }
.btn-large { padding: 20px 38px; font-size: 15px; }

/* ---------------------------------------------------------------------
   5. DECORATIVE BACKGROUND GRID
--------------------------------------------------------------------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

.frame-marks { position: absolute; inset: 0; pointer-events: none; }
.frame-marks .corner { position: absolute; width: 16px; height: 16px; border: 1.5px solid var(--yellow); opacity: 0.8; }
.frame-marks .tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.frame-marks .tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.frame-marks .bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.frame-marks .br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--yellow);
  display: inline-block; flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--yellow-dim); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px transparent; }
}

/* ---------------------------------------------------------------------
   6. CUSTOM CURSOR (desktop only)
--------------------------------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity var(--fast) var(--ease);
}
.has-custom-cursor .cursor { opacity: 1; }
.has-custom-cursor { cursor: none; }
.has-custom-cursor a, .has-custom-cursor button { cursor: none; }

.cursor-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--yellow);
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.cursor-label {
  position: absolute; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--background); background: var(--yellow);
  padding: 6px 10px; border-radius: 20px; white-space: nowrap;
  opacity: 0; transform: scale(0.7); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-label .cursor-label { opacity: 1; transform: scale(1); }
.cursor.is-link .cursor-dot { transform: scale(2.2); }

/* ---------------------------------------------------------------------
   7. NAVBAR
--------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px var(--gutter);
  transition: background var(--base) var(--ease), padding var(--base) var(--ease), border-color var(--base) var(--ease), backdrop-filter var(--base) var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  padding-top: 14px; padding-bottom: 14px;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.navbar-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar-logo {
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  letter-spacing: 0.02em;
}
.navbar-logo .dot { color: var(--yellow); }

.navbar-nav { display: flex; align-items: center; gap: 36px; }
.navbar-nav a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--gray);
  transition: color var(--fast) var(--ease);
}
.navbar-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--yellow); transition: width var(--fast) var(--ease);
}
.navbar-nav a:hover { color: var(--white); }
.navbar-nav a:hover::after { width: 100%; }

.navbar-actions { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: flex; align-items: center; gap: 5px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.05em; color: var(--gray);
}
.lang-option { transition: color var(--fast) var(--ease); padding: 2px; }
.lang-option.is-active { color: var(--yellow); }
.lang-sep { color: var(--line); }

.navbar-cta { display: inline-flex; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 6px 0; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--white); transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   8. MOBILE MENU
--------------------------------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--background);
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: var(--gutter);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility var(--base);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu-nav a { font-family: var(--font-heading); font-size: clamp(32px, 9vw, 48px); font-weight: 600; text-transform: uppercase; }
.mobile-menu-cta { align-self: flex-start; }
.mobile-menu-footer { position: absolute; bottom: var(--gutter); left: var(--gutter); font-family: var(--font-mono); font-size: 12px; color: var(--gray); }

/* ---------------------------------------------------------------------
   9. HERO
--------------------------------------------------------------------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 60px; overflow: hidden;
}
.hero-lines { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-line {
  position: absolute; left: -10%; width: 120%; height: 1px; background: var(--line);
  transform-origin: left center; animation: hero-line-move 18s linear infinite;
}
.hero-line:nth-child(1) { top: 22%; animation-duration: 22s; }
.hero-line:nth-child(2) { top: 55%; animation-duration: 30s; animation-direction: reverse; }
.hero-line:nth-child(3) { top: 82%; animation-duration: 26s; }
@keyframes hero-line-move {
  0% { transform: translateX(-4%) scaleX(0.9); opacity: 0.3; }
  50% { transform: translateX(4%) scaleX(1); opacity: 0.6; }
  100% { transform: translateX(-4%) scaleX(0.9); opacity: 0.3; }
}

.hero-inner { max-width: var(--container); width: 100%; margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--yellow); margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(40px, 8.2vw, 104px); text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .reveal-mask { display: inline-block; will-change: transform; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }

.hero-availability {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--gray);
  letter-spacing: 0.03em;
}

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-dim);
}
.hero-timecode { color: var(--yellow); letter-spacing: 0.05em; }
.hero-scroll-text { writing-mode: vertical-rl; letter-spacing: 0.1em; }
.hero-scroll-arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------------------------------------------------------------------
   11. SELECTED WORK
--------------------------------------------------------------------- */
.work { padding-top: clamp(32px, 5vw, 56px); }

.work-filters {
  position: relative; z-index: 5;
  max-width: var(--container); margin: 0 auto clamp(32px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}

.select-filter { position: relative; }

.select-filter-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--white);
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.select-filter-btn:hover { border-color: var(--gray); }
.select-filter.is-open .select-filter-btn { border-color: var(--yellow); color: var(--yellow); }

.select-filter-label { color: var(--gray-dim); text-transform: uppercase; }
.select-filter-caret { flex-shrink: 0; transition: transform var(--fast) var(--ease); }
.select-filter.is-open .select-filter-caret { transform: rotate(180deg); }

.select-filter-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 200px;
  background: var(--background-elevated); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.select-filter-menu[hidden] { display: none; }

.select-filter-option {
  padding: 9px 12px; border-radius: var(--radius); text-align: left; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--gray);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.select-filter-option:hover { background: var(--background-secondary); color: var(--white); }
.select-filter-option.is-active { color: var(--yellow); background: var(--yellow-dim); }

.filter-clear {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--gray-dim);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--fast) var(--ease);
}
.filter-clear:hover { color: var(--yellow); }

.work-groups {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(48px, 7vw, 80px);
}
.work-group.is-hidden { display: none; }

.work-group-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.work-group-label {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--yellow);
  text-transform: uppercase; white-space: nowrap;
}
.work-group-line { flex: 1; height: 1px; background: var(--line); }

.work-group-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.work-group-grid--short { grid-template-columns: repeat(auto-fill, minmax(200px, 260px)); }
.work-group-grid--short .project-thumbnail { aspect-ratio: 9/16; }
.work-group-grid--long { grid-template-columns: repeat(auto-fill, minmax(320px, 460px)); }
.work-group-grid--long .project-thumbnail { aspect-ratio: 16/9; }

.project-card { transition: opacity var(--base) var(--ease), transform var(--base) var(--ease); }
.project-card.is-hidden { display: none; }

.project-thumbnail {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--background-secondary);
  border: 1px solid var(--line); margin-bottom: 14px; border-radius: var(--radius);
}
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease), filter var(--slow) var(--ease); }
.project-card:hover .project-thumbnail img { transform: scale(1.06); filter: brightness(0.6); }
.project-thumbnail::after {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--yellow);
  opacity: 0; transition: opacity var(--fast) var(--ease);
}
.project-card:hover .project-thumbnail::after { opacity: 1; }

.project-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.7);
  width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); color: var(--background);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.project-card:hover .project-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-info h3 { font-size: 16px; font-weight: 600; }
.project-info .project-category {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 11px; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px;
}

.work-empty { text-align: center; color: var(--gray); font-family: var(--font-mono); font-size: 13px; padding: 40px 0; }

/* ---------------------------------------------------------------------
   12. MARQUEE
--------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden; display: flex; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 20px; flex-shrink: 0;
  animation: marquee-scroll 32s linear infinite;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(18px, 2.4vw, 28px);
  text-transform: uppercase; color: var(--gray); padding-right: 20px;
}
.marquee-track .dot-sep { color: var(--yellow); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* ---------------------------------------------------------------------
   13. ABOUT
--------------------------------------------------------------------- */
.about-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start;
}

.about-lead {
  color: var(--white); font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.4;
}

.about-secondary {
  border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px);
}
.about-secondary p { color: var(--gray); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; margin-bottom: 24px; }

.about-resume { display: flex; flex-wrap: wrap; gap: 24px; }
.resume-link {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--gray);
  letter-spacing: 0.03em; padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.resume-link:hover { color: var(--yellow); border-color: var(--yellow); }

.resume-flag {
  flex-shrink: 0; border-radius: 2px; opacity: 0.85;
  transition: opacity var(--fast) var(--ease);
}
.resume-link:hover .resume-flag { opacity: 1; }

/* ---------------------------------------------------------------------
   14. SKILLS
--------------------------------------------------------------------- */
.skills-tools { max-width: var(--container); margin: 0 auto 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.tool-tag {
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; color: var(--gray);
}
.tool-tag-primary { border-color: var(--yellow); color: var(--yellow); }

.skills-list {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line);
}
.skill-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 4px;
  border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500;
  transition: color var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}
.skill-item:hover { color: var(--yellow); padding-left: 10px; }
.skill-index { font-family: var(--font-mono); font-size: 12px; color: var(--gray-dim); }

/* ---------------------------------------------------------------------
   15. SERVICES
--------------------------------------------------------------------- */
.services-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.service-card {
  background: var(--background); padding: 32px 24px; transition: background var(--fast) var(--ease);
}
.service-card:hover { background: var(--background-secondary); }
.service-index { font-family: var(--font-mono); color: var(--yellow); font-size: 13px; }
.service-card h3 { font-size: 18px; margin: 18px 0 10px; text-transform: uppercase; }
.service-card p { color: var(--gray); font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------------------
   16. CONTACT
--------------------------------------------------------------------- */
.contact-inner { max-width: var(--container); margin: 0 auto; text-align: left; }
.contact-title { font-size: clamp(38px, 7vw, 84px); text-transform: uppercase; margin: 18px 0 22px; }
.contact-sub { color: var(--gray); font-size: 16px; margin-bottom: 44px; }

.contact-links {
  display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); margin-bottom: 44px;
}
.contact-link {
  flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px;
  padding: 24px 6px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  transition: background var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}
.contact-link:last-child { border-right: none; }
.contact-link:hover { background: var(--background-secondary); padding-left: 16px; }
.contact-link.is-disabled { opacity: 0.4; pointer-events: none; }
.contact-link-label { font-family: var(--font-mono); font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-link-value { font-size: 16px; font-weight: 500; }

/* ---------------------------------------------------------------------
   17. FOOTER
--------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 48px var(--gutter) 32px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; }
.footer-role { font-family: var(--font-mono); font-size: 12px; color: var(--gray); }
.footer-location { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--gray); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--gray); transition: color var(--fast) var(--ease); }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-dim);
}

/* ---------------------------------------------------------------------
   18. MODAL
--------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 4vw; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,6,6,0.9); backdrop-filter: blur(8px); opacity: 0; transition: opacity var(--base) var(--ease); }
.modal.is-open .modal-backdrop { opacity: 1; }

.modal-panel {
  position: relative; z-index: 2; width: 100%; max-width: 1100px; max-height: 92vh; overflow-y: auto;
  background: var(--background-secondary); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), max-width var(--base) var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: translateY(0) scale(1); }

/* Square screen: for short-form / portrait video content. Video sits in a
   square box on the left, project info fills the remaining space on the right. */
.modal-panel.is-vertical { max-width: 760px; display: grid; grid-template-columns: 44% 1fr; align-items: start; }
.modal-panel.is-vertical .modal-video-wrap { width: 100%; aspect-ratio: 1/1; }
.modal-panel.is-vertical .modal-info { min-width: 0; }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(8,8,8,0.6);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.modal-close:hover { background: var(--yellow); color: var(--background); border-color: var(--yellow); }

.modal-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }

.modal-info { padding: clamp(20px, 3vw, 40px); }
.modal-eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--yellow); letter-spacing: 0.1em; }
.modal-category { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--gray); margin: 6px 0 14px; text-transform: uppercase; }
.modal-info h3 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; margin-bottom: 14px; }
.modal-info p { color: var(--gray); font-size: 15px; max-width: 640px; margin-bottom: 26px; }

.modal-tools-label { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.modal-tools-list { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-tools-list span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 12px; color: var(--gray); }

/* ---------------------------------------------------------------------
   19. SCROLL REVEAL ANIMATIONS
--------------------------------------------------------------------- */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-scale { opacity: 0; transform: scale(0.97); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

.reveal-line .reveal-mask { transform: translateY(110%); transition: transform 0.9s var(--ease); }
.reveal-line.is-visible .reveal-mask { transform: translateY(0); }

.work-group-grid .project-card:nth-child(2) { transition-delay: 0.06s; }
.work-group-grid .project-card:nth-child(3) { transition-delay: 0.12s; }
.work-group-grid .project-card:nth-child(4) { transition-delay: 0.02s; }
.work-group-grid .project-card:nth-child(5) { transition-delay: 0.08s; }
.work-group-grid .project-card:nth-child(6) { transition-delay: 0.14s; }

.services-grid .service-card:nth-child(2) { transition-delay: 0.06s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.18s; }

/* Filter transitions: cards fade/scale in or out when the Type/Category
   filters change, instead of popping in and out instantly. Same specificity
   as .reveal-up.is-visible, placed after it so these win while active. */
.project-card.is-filtering-out { opacity: 0; transform: scale(0.94); transition-delay: 0s; pointer-events: none; }
.project-card.is-filtering-in { opacity: 0; transform: scale(0.94); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-scale, .reveal-line .reveal-mask { opacity: 1 !important; transform: none !important; }
  .project-card.is-filtering-out, .project-card.is-filtering-in { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------------
   20. RESPONSIVE
--------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-secondary { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-list { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .navbar-nav { display: none; }
  .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .lang-toggle { margin-right: 4px; }

  .footer-inner { grid-template-columns: 1fr; text-align: left; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .hero-scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --section-y: 64px; }
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(36px, 12vw, 56px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }

  .select-filter, .select-filter-btn { flex: 1 1 auto; }
  .select-filter-menu { left: 0; right: 0; min-width: 0; }

  .modal-panel.is-vertical { grid-template-columns: 1fr; max-width: 420px; }

  .services-grid { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; }
  .contact-link { border-right: none; }

  .bg-grid { background-size: 40px 40px; }
}

@media (hover: none) and (pointer: coarse) {
  .cursor { display: none; }
}
