/* ============================================================
   ALWIN SK PORTFOLIO — style.css
   ============================================================ */

/* ── Custom Fonts ── */
@font-face {
  font-family: 'Framer Custom Display';
  src: url('assets/fonts/7F4U3COKLHQH4WUH3AXPC7N4UELEWJQN/JMWNCAGBH3TLANIVQPVABVAVNV5QERTH.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Framer Custom Body';
  src: url('assets/fonts/JRUTXNFPWLFGIEVSSEYOW7EP7TYM3V6A/UCDYLFFGLZRGCFY5GYDYM5LDB52BAR5M.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ── */
:root {
  --bg:           #080808;
  --accent:       #E11D48;
  --accent-glow:  rgba(225, 29, 72, 0.18);
  --accent-glow2: rgba(225, 29, 72, 0.35);
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.50);
  --text-dim:     rgba(255,255,255,0.28);
  --card-bg:      rgba(255,255,255,0.03);
  --card-border:  rgba(255,255,255,0.07);
  --card-hover:   rgba(255,255,255,0.12);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Framer Custom Body', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(225,29,72,0.3); color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

/* ── Section spacing ── */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; z-index: 1; overflow-x: hidden; width: 100%; }

/* ============================================================
   GLOBAL BACKGROUND GLOW
   ============================================================ */
.global-glow {
  position: fixed;
  bottom: -250px;
  left: -200px;
  width: clamp(500px, 60vw, 800px);
  height: clamp(500px, 60vw, 800px);
  background: radial-gradient(circle, rgba(225,29,72,0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem clamp(1.25rem, 5vw, 4rem);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img { width: 32px; height: 29px; flex-shrink: 0; }

.nav-logo span {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.09em;
  color: #fff;
}

/* ============================================================
   SHARED TYPOGRAPHY
   ============================================================ */
.section-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 2.2rem;
}

.badge-wrap { display: flex; justify-content: center; margin-bottom: 1rem; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  letter-spacing: 0.04em;
}

.badge-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.film-caps { letter-spacing: 0.06em; }

.section-sub {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 460px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 22px rgba(225,29,72,0.4);
}
.btn-primary:hover {
  background: #c5183f;
  box-shadow: 0 8px 32px rgba(225,29,72,0.55);
}

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.28);
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent) 0%, #c0153c 100%);
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(225,29,72,0.4);
  border: none;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225,29,72,0.55);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #000000;
  padding-top: 80px;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100vh - 80px);
  position: relative;
  z-index: 2;
}

.hero-left {
  max-width: 640px;
  z-index: 3;
}

.hero-headline {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  color: #ffffff;
}
.hl { display: block; }
@media (min-width: 901px) {
  .hl { white-space: nowrap; }
}
.hl-red { color: #E11D48; }

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.hero-roles .sep { color: rgba(255,255,255,0.4); font-weight: 400; font-size: 0.9rem; }

.hero-body {
  font-size: clamp(0.88rem, 1.1vw, 0.98rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  max-width: 480px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 1rem; align-items: center; }

/* Buttons matching reference */
.btn-primary {
  background: linear-gradient(180deg, #E11D48 0%, #BE123C 100%);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f42552 0%, #d01442 100%);
  box-shadow: 0 0 35px rgba(225, 29, 72, 0.65);
}

.btn-outline {
  background: rgba(20, 20, 20, 0.6);
  color: rgba(255,255,255,0.9);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(35, 35, 35, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Portrait — Grid-aligned hand-in-hand with text, elevated top head */
.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  margin-top: -18rem;
}

.hero-img {
  width: 100%;
  max-width: 660px;
  height: auto;
  object-fit: cover;
  display: block;
  /* Seamless left-edge and bottom-edge blending */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 94%), linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%), linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
  mask-composite: intersect;
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-section {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem;
}

.process-card {
  background: #0f0f11;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 1.6rem 1.2rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225,29,72,0.35);
  box-shadow: 0 10px 36px rgba(225,29,72,0.12);
}

.pc-icon { margin-bottom: 1.2rem; display: flex; align-items: center; }

.process-card h3 {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.process-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* ============================================================
   TOOLS SECTION — Infinite Marquee + Fixed Rating Badge
   ============================================================ */
.tools-section {
  padding-top: 1.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.tools-section .container {
  margin-bottom: 0;
}

.tools-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.tools-marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-mask {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.5rem 0;
  /* Fades smoothly starting right at the edge of the Discover card */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 85%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marqueeScroll 22s linear infinite;
}

.marquee-set {
  display: flex;
  align-items: center;
  padding-right: 3rem;
}

.skills-img {
  height: clamp(175px, 25vw, 300px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.5));
}

.tools-rating-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding-left: 0.5rem;
  z-index: 2;
}

.stars-row {
  display: flex;
  gap: 0.2rem;
  color: #E11D48;
  font-size: 1.15rem;
  line-height: 1;
}

.rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   MOTION GALLERY — Horizontal Desktop Cards + Video Hover
   ============================================================ */
.gallery-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.motion-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.gallery-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 2.5rem;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.gallery-card:nth-child(even) {
  grid-template-columns: 1fr 1.35fr;
}
.gallery-card:nth-child(even) .mac-window {
  order: 2;
}

.gallery-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Mac window frame */
.mac-window {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.mac-dots {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.mac-content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  overflow: hidden;
}
.mac-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
  position: relative;
  z-index: 1;
}

.gallery-card:hover .mac-content img {
  transform: scale(1.03);
}

.gallery-video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-card:hover .gallery-video-preview {
  opacity: 1;
}

/* Gallery card info side */
.gallery-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.gallery-card-info h3 {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.gallery-card-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.card-btn {
  align-self: flex-start;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.card-caption {
  padding: 1.1rem 1.2rem;
  background: rgba(8,8,8,0.96);
}
.card-caption h3 {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.card-caption p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   FILM CREDITS MARQUEE
   ============================================================ */
.film-section { overflow: hidden; }
.film-section .container { margin-bottom: 2rem; }

.film-marquee-mask {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.film-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: filmMarqueeScroll 38s linear infinite;
}

.film-marquee-set {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.film-card {
  width: clamp(260px, 24vw, 320px);
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.film-card:hover {
  transform: scale(1.04) translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
.film-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

@keyframes filmMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   WHO I AM — About Section
   ============================================================ */
.about-section {}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: flex-start;
  margin-top: 3rem;
}

/* Viewfinder frame */
.vf-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.vf-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.rec-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  z-index: 3;
}

.rec-dot-sm {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: recPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

/* About content */
.about-name {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #ffffff;
}
.about-content-col p {
  font-size: 0.925rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.trade-heading {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1.1rem;
}

.trade-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trade-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.trade-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.trade-wide { grid-column: 1 / -1; }

.trade-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trade-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trade-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trade-name {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.trade-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
}

/* ============================================================
   CONTACT SECTION — Full Viewport Fit
   ============================================================ */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 3rem;
  scroll-margin-top: 80px;
  position: relative;
  z-index: 1;
}

.contact-section .container {
  width: 100%;
}

.contact-heading {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.contact-form {
  max-width: 520px;
  margin: 1.8rem auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 0.45rem 0;
  font-family: inherit;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
  outline: none;
  transition: border-color 0.3s, color 0.3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
  color: #fff;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group select option { background: #111; color: #fff; }
.form-group textarea { resize: none; min-height: 75px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.5rem; }
.sel-chevron {
  position: absolute; right: 0; bottom: 0.65rem;
  color: rgba(255,255,255,0.38); pointer-events: none;
}

.form-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent) 0%, #c0153c 100%);
  color: #fff;
  width: auto;
  min-width: 240px;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(225,29,72,0.4);
  border: none;
}

.social-row { display: flex; gap: 0.75rem; }

.soc-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  transition: color 0.3s, background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.soc-icon:hover {
  color: #fff;
  background: rgba(225,29,72,0.14);
  border-color: rgba(225,29,72,0.3);
  transform: translateY(-3px);
}

/* ============================================================
   LIGHTBOX MODAL — Vertical & Horizontal Responsive Fit
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lb-inner, .lb-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lb-close {
  position: absolute;
  top: -2.8rem;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.4rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  z-index: 10;
  line-height: 1;
}
.lb-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

#lbVideo {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.95);
  background: #000;
  outline: none;
}

/* ============================================================
   SHOWREEL PAGE (shared styles)
   ============================================================ */
.sr-page { padding-top: 100px; }

.sr-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.sr-title {
  font-family: 'Framer Custom Display', 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
  line-height: 1.05;
}
.sr-title span { color: var(--accent); }

.sr-sub {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Category tabs */
.sr-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 3rem;
}

.sr-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.sr-tab:hover { color: #fff; border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.sr-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(225,29,72,0.38);
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.video-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.video-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.3s;
}
.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.15);
}
.video-item.hidden { display: none; }

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.video-thumb-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.25s;
}
.video-item:hover .play-overlay { background: rgba(0,0,0,0.18); }

.play-btn {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(225,29,72,0.9);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(225,29,72,0.5);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.video-item:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(225,29,72,0.65);
}

.video-meta {
  padding: 0.85rem 1rem;
}
.video-cat {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: block;
}
.video-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Global Overflow Protection */
  html, body { overflow-x: hidden; }

  /* Hero Mobile — 100vh Fit */
  .hero {
    min-height: 100vh;
    padding-top: 55px;
    padding-bottom: 1.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 1.2rem;
    min-height: auto;
    width: 100%;
  }
  .hero-right {
    display: flex;
    justify-content: center;
    order: -1;
    width: 100%;
    margin-top: -5.5rem;
    position: relative;
    z-index: 1;
  }
  .hero-img {
    width: 100%;
    max-width: 420px;
    height: 380px;
    object-fit: cover;
    object-position: center 72%;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 90%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 90%);
  }
  .hero-left {
    order: 2;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -3.8rem;
    position: relative;
    z-index: 2;
  }
  .hero-headline {
    font-size: clamp(2rem, 7.5vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.8rem;
    color: #ffffff;
  }
  .hero-roles {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    gap: 0.25rem 0.4rem;
    margin-bottom: 0.8rem;
    color: rgba(255,255,255,0.85);
  }
  .hero-body {
    font-size: 0.84rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    max-width: 100%;
    color: rgba(255,255,255,0.7);
  }
  .hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.6rem;
  }
  .btn-primary, .btn-outline {
    width: auto;
    flex: 1;
    min-width: 130px;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  /* Process Cards Mobile */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .process-card {
    padding: 1.2rem 1rem;
  }
  .process-card h3 {
    font-size: 1.1rem;
  }

  /* Tools Section Mobile */
  .tools-row-wrap {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .skills-img {
    height: clamp(75px, 16vw, 110px);
  }
  .tools-rating-badge {
    padding-left: 0;
  }

  /* Motion Gallery Mobile */
  .motion-grid {
    gap: 1.5rem;
  }
  .gallery-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .gallery-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .gallery-card:nth-child(even) .mac-window {
    order: 0;
  }

  /* Film Credits Marquee Mobile */
  .film-marquee-mask {
    max-width: 100%;
  }
  .film-card {
    width: clamp(180px, 45vw, 240px);
  }

  /* About Grid Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-portrait-col {
    max-width: 380px;
    margin: 0 auto;
  }
  .trade-grid {
    grid-template-columns: 1fr;
  }
  .trade-wide {
    grid-column: 1;
  }

  /* Contact Mobile */
  .contact-section {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 4rem;
  }
  .contact-form {
    max-width: 100%;
    padding: 0;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .btn-submit {
    width: 100%;
  }

  /* Showreel Page Mobile */
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — Extra Small Phones (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .sr-tabs { gap: 0.4rem; }
  .sr-tab { padding: 0.4rem 0.9rem; font-size: 0.78rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
