/* ========================================
   UZI MEDIA - WEBSITE STYLES
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES & VARIABLES
   ======================================== */

:root {
  /* Viewport Units - Capped for consistency */
  --vhc: min(100vh, 1080px); /* Capped viewport height (desktop) */
  --u: calc(var(--vhc) / 100); /* 1% of capped viewport height */
  --vwc: min(100vw, 480px); /* Capped viewport width (mobile) */
  --v: calc(var(--vwc) / 100); /* 1% of capped viewport width */

  /* Typography Stack */
  --ui-font: Arial, Helvetica, sans-serif;
  --copy-font: bulletin-typewriter-mn, "Courier New", Courier, monospace;
  --felt-font: felt-tip-roman, sans-serif;
  --din-font: din-2014, Arial, Helvetica, sans-serif;

  /* Color Palette */
  --ink: #000;
  --paper: #eee;
  --accent: #a00000;
}

/* ========================================
   GLOBAL STYLES & RESET
   ======================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ui-font);
  height: 100vh;
  width: calc(1058 * var(--u));
  max-width: 11430px;
  margin: 0;
  padding: 0;
  background-image: url(images/Uzi_dots.png);
  background-repeat: repeat;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 2000px;
}

/* Force scrollbars to be visible */
html {
  overflow-x: auto;
  overflow-y: hidden;
}

/* ========================================
   LAYOUT CONTAINERS & STRUCTURE
   ======================================== */

/* Main Canvas Containers */
.canvas,
.innercanvas {
  position: absolute;
  border: none;
  margin: 0;
  padding: 0;
  width: calc(1058 * var(--u));
  min-width: 1200px; /* Ensure minimum width that will trigger scrollbar */
  background-color: transparent;
}

.canvas {
  top: 0;
  left: 0;
  max-width: 11430px;
  height: 100%;
}

.innercanvas {
  display: flex;
  top: 50%;
  left: calc(8.3 * var(--u));
  transform: translateY(-50%);
  height: max(100px, 100vh);
  max-height: 1080px;
}

/* Background Media Container */
.media-bg {
  position: absolute;
  display: inherit;
  top: 0;
  left: calc(660 * var(--u));
  width: calc(398 * var(--u));
  height: 100%;
  max-height: 1080px;
  background-image: url(images/media-bg.svg);
  background-size: cover;
  z-index: -1;
  overflow: visible;
}

.canvas,
.innercanvas,
.media-bg {
  pointer-events: none; /* Disable pointer events for background elements */
}

.services::before,
.services::after,
.projects::before,
.projects::after,
.whoarewe::before,
.whoarewe::after,
.companies::before,
.companies::after {
  pointer-events: none; /* Disable pointer events for pseudo-layers */
}

.services,
.projects,
.whoarewe,
.companies {
  touch-action: pan-y; /* Allow vertical scrolling */
}

/* ========================================
   NAVIGATION SYSTEM
   ======================================== */

/* Main Navigation Bar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  align-content: end;
  width: calc(8.3 * var(--u));
  height: 100%;
  background-color: var(--ink);
  z-index: 12000;
  /* outline: 2px solid rgba(0,200,255,.6); */
}

/* Menu Container */
#menu-container {
  width: 100%;
  text-align: center;
  padding-bottom: calc(1.9 * var(--u));
}

.menu-icon {
  width: calc(4.6 * var(--u));
  height: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  pointer-events: auto;
}

/* Popup Menu Styles */
.popup-menu {
  width: calc(22.2 * var(--u));
  display: none;
  position: absolute;
  bottom: calc(0.9 * var(--u));
  left: calc(8.4 * var(--u));
  background-color: var(--ink);
  padding: calc(0.9 * var(--u)) calc(1.4 * var(--u));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 12010;
  pointer-events: auto;
  /* outline: 2px solid rgba(0,255,120,.6); */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-menu.show {
  display: block;
  opacity: 1;
}

.popup-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popup-menu li {
  margin-bottom: calc(1.9 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
}

.popup-menu li:hover {
  background-color: #333;
}

.popup-menu li:last-child {
  margin-bottom: 0;
}

.popup-menu a {
  text-decoration: none;
  color: var(--paper);
}

/* ========================================
   INTERACTIVE ELEMENTS & POPUPS
   ======================================== */

/* Popup Trigger Links */
#multiple-media-link,
#transmedia-link,
#medium-link {
  position: relative;
}

/* Popup Containers */
.multiple-media-popup,
.transmedia-popup,
.medium-popup {
  width: calc(27.8 * var(--u));
  max-width: 300px;
  display: none;
  position: absolute;
  background-color: var(--ink);
  padding: calc(1.4 * var(--u));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 3100;
  pointer-events: auto;
  border: 1px solid #333;
}

/* Popup Positioning */
.multiple-media-popup {
  top: calc(14 * var(--u));
  left: calc(10 * var(--u));
}

.transmedia-popup {
  top: calc(13 * var(--u));
  left: calc(3 * var(--u));
}

.medium-popup {
  top: calc(-17 * var(--u));
  left: calc(3 * var(--u));
}

/* Popup Content Styling */
.multiple-media-popup span,
.transmedia-popup span,
.medium-popup span {
  margin: 0;
  padding: 0;
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  color: var(--paper);
  line-height: 1.3;
  display: block;
}

/* Popup Hover States */
#multiple-media-link:hover + .multiple-media-popup,
.multiple-media-popup:hover {
  display: block;
}

#transmedia-link:hover + .transmedia-popup,
.transmedia-popup:hover {
  display: block;
}

#medium-link:hover + .medium-popup,
.medium-popup:hover {
  display: block;
}

/* ========================================
   SHARED LINK STYLES
   ======================================== */

.home-copy a,
.quote a,
.quote02 a {
  color: var(--ink);
  text-decoration: none;
  pointer-events: auto;
}

.home-copy a:hover,
.quote a:hover,
.quote02 a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ========================================
   PAGE SECTIONS
   ======================================== */

/* ----------------------------------------
   HOME PAGE
   ---------------------------------------- */
.home {
  width: 180vh;
  max-width: 1980px;
}

/* Logo Section */
.logo-container {
  padding-top: calc(3.7 * var(--u));
  padding-left: calc(3.7 * var(--u));
}

.logo {
  width: 13.3vh;
  height: auto;
  max-width: 144px;
}

/* Projector & Beam Section */
.proj-beam {
  display: flex;
}

.projector {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-56%);
  left: calc(17.8 * var(--u));
  z-index: 50;
}

.projector-icon {
  width: 46.3vh;
  height: auto;
  max-width: 500px;
}

.beam {
  width: auto;
  height: 90vh;
  max-height: 972px;
  position: absolute;
  display: flex;
  top: 49%;
  transform: translateY(-50%);
  left: calc(52 * var(--u));
}

.beam-icon {
  width: auto;
  height: 100%;
}

.frame01 {
  position: absolute;
  display: flex;
  top: 50%;
  transform: translateY(-50%);
  left: calc(72 * var(--u));
  z-index: 20;
}

.frame01-icon {
  width: 46.3vh;
  height: auto;
  max-width: 500px;
}

/* Home Page Content */
.home-copy {
  width: 55vh;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(74 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  line-height: 120%;
  pointer-events: auto;
}

.home-copy a {
  pointer-events: auto;
}

.link01 {
  width: 22vh;
  max-width: 245px;
  position: absolute;
  display: flex;
  top: calc(55.5 * var(--u));
  transform: translateY(-50%);
  left: calc(82.5 * var(--u));
}

/* Home Page Decorative Elements */
.tape01 {
  height: 10.3vh;
  width: 65.1vh;
  max-height: 111px;
  max-width: 703px;
  position: absolute;
  display: flex;
  top: calc(85 * var(--u));
  transform: translateY(-50%);
  left: calc(90 * var(--u));
  background-image: url(images/tape01.png);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
}

.tape01 p {
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.arrow01 {
  position: absolute;
  display: flex;
  height: 5.6vh;
  max-height: 61px;
  top: calc(91 * var(--u));
  left: calc(154 * var(--u));
  transform: translateY(-50%);
}

/* ----------------------------------------
   START PAGE
   ---------------------------------------- */

.start {
  display: flex;
  position: relative;
  top: 0;
  width: 180vh;
  height: 100vh;
  max-height: 1080px;
  max-width: 1900px;
  background-image: url(images/U-bg.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

/* Start Page Visual Elements */
.TV {
  position: relative;
  display: flex;
  top: 47%;
  left: calc(48 * var(--u));
  transform: translateY(-50%);
  height: 43vh;
  max-height: 467px;
}

.cassette {
  position: relative;
  display: flex;
  top: 52%;
  left: calc(65 * var(--u));
  transform: translateY(-50%);
  height: 27.5vh;
  max-height: 297px;
}

/* Start Page Content */
.start-copy {
  width: 55vh;
  position: absolute;
  display: flex;
  top: 60%;
  transform: translateY(-50%);
  left: calc(22 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

.tape02 {
  height: 12vh;
  width: 80vh;
  max-height: 128px;
  max-width: 820px;
  position: absolute;
  display: flex;
  top: min(81%, 864px);
  left: calc(33 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  overflow: hidden;
  pointer-events: auto;
}

.quote {
  position: absolute;
  display: flex;
  height: 20vh;
  width: 53vh;
  max-height: 218px;
  max-width: 575px;
  top: calc(10 * var(--u));
  left: calc(80 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.matthew {
  width: 55vh;
  position: absolute;
  display: flex;
  top: 22%;
  transform: translateY(-50%);
  left: calc(122 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

.ask {
  width: 55vh;
  position: absolute;
  top: 87%;
  transform: translateY(-50%);
  left: calc(127 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

/* ----------------------------------------
   SERVICES PAGE
   ---------------------------------------- */

.services {
  display: flex;
  position: relative;
  top: 0;
  width: 203.5vh;
  height: 100vh;
  max-height: 1080px;
  max-width: 2193px;
  background-image: url(images/ZI-bg.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

/* Services Page Visual Elements */
.camera {
  position: relative;
  display: flex;
  top: 40%;
  left: calc(6 * var(--u));
  transform: translateY(-50%);
  height: 52vh;
  max-height: 560px;
}

.typewriter {
  position: relative;
  display: flex;
  top: 21%;
  left: calc(65 * var(--u));
  transform: translateY(-50%);
  height: 33vh;
  max-height: 356px;
}

.computer {
  position: relative;
  display: flex;
  top: 75%;
  left: calc(44.5 * var(--u));
  transform: translateY(-50%);
  height: 49vh;
  max-height: 520px;
}

/* Services Page Content */
.quote02 {
  position: absolute;
  display: flex;
  height: 13vh;
  width: 64vh;
  max-height: 141px;
  max-width: 693px;
  top: calc(71 * var(--u));
  left: calc(23.5 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.marshall {
  width: 55vh;
  position: absolute;
  display: flex;
  top: 82%;
  transform: translateY(-50%);
  left: calc(76 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

.core {
  width: 55vh;
  text-align: center;
  position: absolute;
  display: flex;
  top: 47%;
  transform: translateY(-50%);
  left: calc(72.5 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

.layers {
  width: 55vh;
  position: absolute;
  display: flex;
  top: 28%;
  transform: translateY(-50%);
  left: calc(86 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

.titleserv {
  position: absolute;
  display: flex;
  height: 13vh;
  width: 64vh;
  max-height: 141px;
  top: calc(38.5 * var(--u));
  left: calc(118 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.servlist {
  width: 55vh;
  position: absolute;
  display: flex;
  top: 67%;
  transform: translateY(-50%);
  left: calc(116 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.9vh, 32px);
  line-height: 1.3;
  max-width: 470px;
  z-index: 30;
  pointer-events: auto;
}

/* ----------------------------------------
   PROJECTS PAGE
   ---------------------------------------- */

.projects {
  display: flex;
  position: relative;
  top: 0;
  width: 154vh;
  height: 100vh;
  max-height: 1080px;
  max-width: 1620px;
  z-index: -1;
}

/* Projects Page Header */
.tape03 {
  height: 8.1vh;
  width: 26.3vh;
  max-height: 87px;
  max-width: 283px;
  position: absolute;
  display: flex;
  top: calc(9 * var(--u));
  left: calc(-5 * var(--u));
  transform: translateY(-50%);
  background-image: url(images/tape03.png);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  padding-left: calc(9 * var(--u));
  pointer-events: auto;
}

.projects-copy {
  position: absolute;
  display: flex;
  width: 55vh;
  top: 6%;
  left: calc(40 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.22vh, 24px);
  line-height: 1.3;
  z-index: 30;
  pointer-events: auto;
}

.videoframe {
  position: absolute;
  display: flex;
  top: 57%;
  transform: translateY(-50%);
  left: 0;
  width: calc(148 * var(--u));
  height: calc(84.2 * var(--u));
  pointer-events: none;
  overflow: visible;
  z-index: 1001;
}

/* ----------------------------------------
   VIDEO WRAP STYLES
   ---------------------------------------- */

/* 1) Base styles for every .video-wrapNN */
[class^="video-wrap"] {
  position: absolute;
  max-width: 800px;
  width: calc(42 * var(--u));
  aspect-ratio: 16 / 9;
  pointer-events: auto;
}

/* 2) Rows (shared 'top' positions) */
:is(.video-wrap01, .video-wrap02, .video-wrap03) {
  top: 22%;
}
:is(.video-wrap04, .video-wrap05, .video-wrap06) {
  top: 46%;
}
:is(.video-wrap07, .video-wrap08, .video-wrap09) {
  top: 69%;
}

/* 3) Columns (shared 'left' positions) */
:is(.video-wrap01, .video-wrap04, .video-wrap07) {
  left: calc(8 * var(--u));
}
:is(.video-wrap02, .video-wrap05, .video-wrap08) {
  left: calc(50 * var(--u));
}
:is(.video-wrap03, .video-wrap06, .video-wrap09) {
  left: calc(92 * var(--u));
}

/* 4) Special case */
.video-wrap10 {
  display: none;
}

/* 5) iframe rule */
[class^="video-wrap"] iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  z-index: 1000;
}

/* ----------------------------------------
   WHO ARE WE PAGE
   ---------------------------------------- */

.whoarewe {
  display: flex;
  position: relative;
  top: 0;
  width: 189vh;
  height: 100vh;
  max-height: 1080px;
  max-width: 2038px;
  background-image: url(images/Who-bg.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: calc(182 * var(--u)) calc(89 * var(--u));
  background-position: 0% 50%;
  z-index: 1;
}

/* Who Are We Section Titles */
.whoarewe-title {
  position: absolute;
  display: flex;
  height: 13vh;
  width: 64vh;
  max-height: 141px;
  max-width: 693px;
  top: calc(73 * var(--u));
  left: calc(4 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.theteam-title {
  position: absolute;
  display: flex;
  height: 13vh;
  width: 64vh;
  max-height: 141px;
  max-width: 693px;
  top: calc(12 * var(--u));
  left: calc(70 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.companies-title {
  position: absolute;
  display: flex;
  height: 13vh;
  width: 65vh;
  max-height: 141px;
  max-width: 710px;
  top: calc(47.5 * var(--u));
  left: calc(141 * var(--u));
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  overflow: hidden;
  pointer-events: auto;
}

/* Who Are We Content Sections */
.whoarewe-copy01 {
  width: 70vh;
  position: absolute;
  display: flex;
  top: 41%;
  transform: translateY(-50%);
  left: calc(15 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  z-index: 30;
  pointer-events: auto;
}

.whoarewe-copy02 {
  width: 70vh;
  position: absolute;
  display: flex;
  top: 64%;
  transform: translateY(-50%);
  left: calc(15 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  z-index: 30;
  pointer-events: auto;
}

.whoarewe-copy02 a {
  color: var(--accent);
  text-decoration: none;
}

.whoarewe-copy02 a:hover {
  color: #cdbc73;
  text-decoration: none;
}

.ba-copy {
  width: 70vh;
  position: absolute;
  display: flex;
  top: 54%;
  transform: translateY(-50%);
  left: calc(35 * var(--u));
  font-family: var(--din-font);
  font-size: clamp(8px, 1.57vh, 17px);
  z-index: 30;
}

/* Team Members Layout */
.steven,
.werner,
.jaco,
.claudia,
.gerda,
.ray,
.gareth,
.theunis,
.john {
  width: 70vh;
  position: absolute;
  display: flex;
  transform: translateY(-50%);
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  z-index: 30;
  pointer-events: auto;
}

/* Team Members - Column Layout */
.steven,
.werner,
.jaco,
.claudia {
  left: calc(91 * var(--u));
}

.gerda,
.ray,
.gareth,
.theunis,
.john {
  left: calc(143 * var(--u));
}

/* Team Members - Row Positioning */
.steven,
.ray {
  top: 36%;
}

.werner,
.gareth {
  top: 54%;
}

.jaco,
.theunis {
  top: 72%;
}

.claudia,
.john {
  top: 90%;
}

.gerda {
  top: 20%;
}

/* ----------------------------------------
   COMPANIES PAGE
   ---------------------------------------- */

.companies {
  display: flex;
  position: relative;
  top: 0;
  width: 139vh;
  height: 100vh;
  max-height: 1080px;
  max-width: 1501px;
  background-image: url(images/contact-bg.png);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: calc(139 * var(--u)) calc(87.4 * var(--u));
  background-position: 100% 100%;
  z-index: 1;
}

/* Companies Page Visual Elements */
.phone {
  position: relative;
  display: flex;
  top: 20%;
  left: calc(98 * var(--u));
  transform: translateY(-50%);
  height: 23.7vh;
  max-height: 256px;
}

/* Script Sample Section */
.sample {
  width: 70vh;
  position: absolute;
  top: 18%;
  transform: translateY(-50%);
  left: calc(40 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  pointer-events: auto;
}

.sample h1 {
  font-size: clamp(8px, 2.2vh, 24px);
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.sp01 {
  text-align: center;
  margin-left: -10vh;
}

.sp02 {
  margin-left: 15vh;
}

/* ----------------------------------------
   CONTACT PAGE
   ---------------------------------------- */

/* Contact Page Header */
.contact-title {
  position: absolute;
  height: 13vh;
  width: 64vh;
  max-height: 141px;
  max-width: 693px;
  top: calc(42 * var(--u));
  left: calc(76 * var(--u));
  transform: translateY(-50%);
  font-family: var(--felt-font);
  font-size: clamp(9px, 5.5vh, 60px);
  pointer-events: auto;
}

.contact-copy {
  width: calc(75 * var(--u));
  position: absolute;
  top: 67%;
  transform: translateY(-50%);
  left: calc(73 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */

#contact-form {
  width: 60%;
}

.form-row {
  margin-bottom: calc(1 * var(--u));
  display: flex;
  flex-direction: row;
  align-items: center;
  pointer-events: auto;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.hp-field label,
.hp-field input {
  pointer-events: none;
}

.recaptcha-row {
  align-items: flex-start;
  justify-content: flex-end;
}

.recaptcha-row .g-recaptcha {
  transform-origin: left top;
}

.form-row label {
  width: calc(12 * var(--u));
  min-width: 80px;
  margin-right: calc(-2 * var(--u));
  margin-bottom: 0;
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  color: var(--ink);
  flex-shrink: 0;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: calc(0.1 * var(--u));
  border: 1px solid #333;
  background-color: rgba(205, 188, 115, 0.2);
  font-family: var(--copy-font);
  font-size: clamp(8px, 2vh, 22px);
  color: var(--ink);
  box-sizing: border-box;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(205, 188, 115, 0.4);
}

.submit-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-row textarea {
  resize: none;
  min-height: calc(8 * var(--u));
}

/* Form Submit Button */
.submit-btn {
  background-color: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: calc(0.2 * var(--u)) calc(2 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: auto;
}

.submit-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Form Feedback Messages */
.form-feedback {
  margin-top: calc(19 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2vh, 22px);
  padding: calc(1 * var(--u));
  border-radius: 4px;
  text-align: center;
  z-index: 6000;
  position: absolute;
  top: calc(2 * var(--u));
  left: 0;
  right: 0;
}

.form-feedback.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-feedback.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Contact Details & Social Media */
.contact-details {
  width: 70vh;
  position: absolute;
  top: 89%;
  transform: translateY(-50%);
  left: calc(75 * var(--u));
  font-family: var(--copy-font);
  font-size: clamp(8px, 2.2vh, 24px);
  pointer-events: auto;
}
.contact-icons {
  position: absolute;
  top: 14.5vh;
  left: 5vh;
  transform: translateY(-50%);
  margin-left: -5vh;
}

/* Social Media Icons */
.yt-icon {
  height: calc(2.4 * var(--u));
  width: auto;
  max-height: 26px;
  margin-top: calc(1.7 * var(--u));
  margin-right: calc(2 * var(--u));
}

.li-icon,
.in-icon {
  height: calc(3.5 * var(--u));
  width: auto;
  max-height: 37px;
  margin-right: calc(2 * var(--u));
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Desktop Responsive Breakpoints */
@media (max-width: 1200px) and (min-width: 500px) {
  body {
    min-width: 1200px;
    overflow-x: auto !important;
    overflow-y: auto !important;
  }

  .canvas {
    min-width: 1200px;
  }

  .innercanvas {
    min-width: 1200px;
  }
}

/* -- video shield for mobile -- */
@media (hover: hover) {
  .video-shield {
    cursor: pointer;
  }
}
/* -- End of video shield -- */

@media (max-width: 500px) {
  /* ----------------------------------------
       MOBILE GLOBAL LAYOUT
       ---------------------------------------- */

  body {
    width: 100vw !important;
    height: 1225vw;
    max-height: 1180vw;
    min-width: 320px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }

  .canvas,
  .innercanvas {
    width: 100vw;
    height: 1180vw;
    max-height: 1180vw;
    min-width: 320px;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .canvas {
    min-width: 320px;
    max-width: 100vw;
    display: block;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .innercanvas {
    top: 0;
    left: 0 !important;
    transform: none;
    max-width: 100vw;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }

  html {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* Enable momentum scrolling on iOS */
  }

  /* ----------------------------------------
       MOBILE NAVIGATION
       ---------------------------------------- */

  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(8.9 * var(--v));
    width: 100%;
    display: flex;
    padding: 0;
    margin: 0;
    align-content: center;
  }

  #menu-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: calc(2.2 * var(--v));
    padding-bottom: 0;
    text-align: right;
  }

  .menu-icon {
    width: calc(5.6 * var(--v)) !important;
    height: auto !important;
    display: block;
    margin-right: calc(1.1 * var(--v));
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .popup-menu {
    width: calc(26.7 * var(--v));
    max-height: calc(30 * var(--v)) !important;
    position: fixed !important;
    top: calc(9 * var(--v)) !important;
    right: calc(0.2 * var(--v)) !important;
    left: auto !important;
    padding: calc(1.1 * var(--v)) calc(1.7 * var(--v));
    z-index: 9999;
    pointer-events: auto;
  }

  /* Mobile video shield */
  .video-shield {
    position: absolute;
    inset: 0;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 1200; /* above iframes (300) but below nav (3100) */
    touch-action: pan-y; /* finger can scroll vertically across videos */
    -webkit-tap-highlight-color: transparent;
  }

  .popup-menu ul {
    text-align: center;
  }

  .popup-menu li {
    margin-bottom: calc(2.2 * var(--v));
    font-size: clamp(8px, 2.7vw, 24px);
    padding: calc(0.6 * var(--v));
  }

  /* ----------------------------------------
       MOBILE BACKGROUND
       ---------------------------------------- */

  .media-bg {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1175vw;
    max-height: none;
    max-width: 900px;
    background-image: url(images/r-mobile-bg.png);
    background-repeat: no-repeat;
    background-size: 100%;
  }

  /* ----------------------------------------
       MOBILE HOME PAGE
       ---------------------------------------- */

  .home {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 900px;
  }

  .logo-container {
    display: none;
  }

  .projector {
    top: 34vw;
    left: 10vw;
    transform: translateY(0%);
    overflow: visible;
  }

  .projector-icon {
    width: 37.2vw;
    max-width: 335px;
  }

  .beam {
    display: none;
  }

  .frame01 {
    display: none;
  }

  .home-copy {
    top: 55vw;
    left: 53vw;
    width: 45vw;
    max-width: 90vw;
    font-size: clamp(8px, 2.7vw, 24px);
    z-index: 50;
  }

  .link01 {
    display: none;
  }

  /* Mobile Popup Adjustments */
  .multiple-media-popup,
  .transmedia-popup,
  .medium-popup {
    width: calc(31 * var(--v));
    max-width: 32vw;
    padding: calc(1 * var(--v));
  }

  /* Mobile Popup Content Styling */
  .multiple-media-popup span,
  .transmedia-popup span,
  .medium-popup span {
    font-size: clamp(8px, 3vw, 24px);
    line-height: 1.3;
    letter-spacing: 0.07em;
  }

  .multiple-media-popup {
    top: 13vw;
    left: 3vw;
  }

  .transmedia-popup {
    top: 13vw;
    left: 0vw;
  }

  .medium-popup {
    top: 13vw;
    left: 3vw;
  }

  .tape01 {
    height: 10.3vw;
    width: 65.1vw;
    max-height: 111px;
    max-width: 703px;
    top: 96vw;
    left: 15vw;
    background-image: none;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .arrow01 {
    display: none;
  }

  /* ----------------------------------------
       MOBILE START PAGE
       ---------------------------------------- */

  .start {
    display: block;
    left: 0;
    width: 100vw;
    height: 167vw;
    max-height: none;
    background-image: none;
    overflow: visible;
    z-index: 30;
  }

  .start-copy {
    position: absolute;
    display: flex;
    width: 30vw;
    max-width: 144px;
    top: 160vw;
    left: 40vw;
    font-family: var(--copy-font);
    font-size: clamp(8px, 2.7vw, 24px);
    transform: translateY(-0%);
  }

  .tape02 {
    height: 12vw;
    width: 80vw;
    top: 179vw;
    left: 12vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .TV {
    position: absolute;
    display: flex;
    top: 210vw;
    left: 20vw;
    height: 43vw;
  }

  .quote {
    height: 12vw;
    width: 80vw;
    top: 228vw;
    left: 14vw;
    transform: translateY(-0%);
    font-size: clamp(9px, 5.5vw, 60px);
    z-index: 999;
  }

  .matthew {
    width: 55vw;
    top: 245vw;
    left: 70vw;
    font-size: clamp(8px, 2.7vw, 24px);
  }

  .cassette {
    position: absolute;
    top: 273vw;
    left: 21vw;
    height: 27.5vw;
  }

  .ask {
    width: 55vw;
    top: 300vw;
    left: 58vw;
    font-size: clamp(8px, 3.1vw, 30px);
  }

  /* ----------------------------------------
       MOBILE SERVICES PAGE
       ---------------------------------------- */

  .services {
    display: block;
    position: absolute;
    left: 0;
    width: 100vw;
    height: 217vw;
    max-height: none;
    background-image: none;
    overflow: visible;
    z-index: 30;
  }

  .camera {
    position: absolute;
    top: 325vw;
    left: 2vw;
    height: 52vw;
  }

  .marshall {
    width: 55vw;
    top: 370vw;
    left: 68vw;
    font-size: clamp(8px, 2.7vw, 24px);
  }

  .quote02 {
    height: 12vw;
    width: 80vw;
    top: 357vw;
    left: 12vw;
    font-size: clamp(9px, 5.5vw, 60px);
    pointer-events: auto;
  }

  .core {
    width: 55vw;
    top: 389.5vw;
    left: 23.5vw;
    font-size: clamp(8px, 2.7vw, 24px);
  }

  .layers {
    width: 55vw;
    top: 409vw;
    left: 7vw;
    font-size: clamp(8px, 2.7vw, 24px);
  }

  .titleserv {
    height: 13vw;
    width: 64vw;
    top: 443vw;
    left: 15vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .servlist {
    width: 55vw;
    top: 458vw;
    left: 60vw;
    font-size: clamp(8px, 2.7vw, 24px);
  }

  .typewriter {
    position: absolute;
    top: 413vw;
    left: 52vw;
    height: 36vw;
  }

  .computer {
    position: absolute;
    top: 483vw;
    left: 0.5vw;
    height: 49vw;
  }

  /* ----------------------------------------
       MOBILE PROJECTS PAGE
       ---------------------------------------- */

  .projects {
    display: block;
    position: absolute;
    left: 0;
    width: 100vw;
    height: 200vw;
    max-height: none;
    background-image: none;
    overflow: visible;
    z-index: 30;
  }

  .tape03 {
    height: 8.1vw;
    width: 26.3vw;
    top: 523.5vw;
    left: 9vw;
    padding: 0;
    background-image: none;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .projects-copy {
    width: 55vw;
    top: 519vw;
    left: 35vw;
    font-size: clamp(8px, 2.4vw, 22px);
    line-height: 1.2;
  }

  /* Video Links - Mobile Layout */

  .videoframe img {
    content: url(images/mobile-frames.png);
  }
  .videoframe {
    position: absolute;
    top: 594vw;
    left: 4vw;
    width: 85vw;
    height: 119vw;
    z-index: 600;
  }

  /* ----------------------------------------
       VIDEO WRAP STYLES - MOBILE
       ---------------------------------------- */

  /* 1) Base styles for every .video-wrapNN */
  [class^="video-wrap"] {
    position: absolute;
    max-width: 240px;
    width: calc(41.6 * var(--v));
    aspect-ratio: 16 / 9;
    z-index: 200;
  }

  /* 2) Rows (shared 'top' positions) */
  :is(.video-wrap01, .video-wrap02) {
    top: 535vw;
  }
  :is(.video-wrap03, .video-wrap04) {
    top: 559vw;
  }
  :is(.video-wrap05, .video-wrap06) {
    top: 583vw;
  }
  :is(.video-wrap07, .video-wrap08) {
    top: 606.5vw;
  }
  :is(.video-wrap09, .video-wrap10) {
    top: 630vw;
  }

  /* 3) Columns (shared 'left' positions) */
  :is(
      .video-wrap01,
      .video-wrap03,
      .video-wrap05,
      .video-wrap07,
      .video-wrap09
    ) {
    left: calc(4.5 * var(--v));
  }
  :is(
      .video-wrap02,
      .video-wrap04,
      .video-wrap06,
      .video-wrap08,
      .video-wrap10
    ) {
    left: calc(46.5 * var(--v));
  }

  /* 4) Show all videos in mobile */
  .video-wrap10 {
    display: block;
  }

  /* 5) iframe rule */
  [class^="video-wrap"] iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    z-index: 300;
  }

  /* ----------------------------------------
       MOBILE WHO ARE WE PAGE
       ---------------------------------------- */

  .whoarewe {
    display: block;
    position: absolute;
    left: 0;
    width: 100vw;
    height: 200vw;
    max-height: none;
    background-image: none;
    overflow: visible;
    z-index: 30;
  }

  .whoarewe-title {
    height: 13vw;
    width: 64vw;
    top: 664.5vw;
    left: 10vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .theteam-title {
    height: 13vw;
    width: 64vw;
    top: 762vw;
    left: 18vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .companies-title {
    height: 13vw;
    width: 65vw;
    top: 906vw;
    left: -19vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .whoarewe-copy01 {
    width: 70vw;
    top: 703.5vw;
    left: 13vw;
    font-size: clamp(8px, 2.4vw, 22px);
    z-index: 30;
    pointer-events: auto;
  }

  .whoarewe-copy02 {
    width: 70vw;
    top: 733.5vw;
    left: 13vw;
    font-size: clamp(8px, 2.4vw, 22px);
    pointer-events: auto;
  }

  .ba-copy {
    width: 70vw;
    top: 718vw;
    left: 36vw;
    font-size: clamp(8px, 2.2vw, 20px);
  }

  /* Team Members - Mobile Layout */
  .steven,
  .werner,
  .jaco,
  .claudia,
  .gerda,
  .ray,
  .gareth,
  .theunis,
  .john {
    width: 70vw;
    font-size: clamp(8px, 2.4vw, 22px);
  }

  /* Team positioning - Left column */
  .steven,
  .werner,
  .jaco,
  .claudia {
    left: 40vw;
  }

  /* Team positioning - Right column */
  .gerda,
  .ray,
  .gareth,
  .theunis,
  .john {
    left: 70vw;
  }

  /* Team positioning - Rows */
  .steven {
    top: 788vw;
  }
  .werner {
    top: 806vw;
  }
  .jaco {
    top: 824vw;
  }
  .claudia {
    top: 842vw;
  }
  .gerda {
    top: 868vw;
  }
  .ray {
    top: 885vw;
  }
  .gareth {
    top: 904vw;
  }
  .theunis {
    top: 922vw;
  }
  .john {
    top: 940vw;
  }

  /* ----------------------------------------
       MOBILE COMPANIES PAGE
       ---------------------------------------- */

  .companies {
    display: block;
    position: absolute;
    left: 0;
    width: 100vw;
    height: 111vw;
    max-height: none;
    background-image: none;
    overflow: visible;
    z-index: 30;
  }

  .phone {
    top: 1063vw;
    left: 60vw;
    height: 23.7vw;
  }

  .sample {
    width: 70vw;
    display: block;
    top: 1059vw;
    left: 3vw;
    font-size: clamp(8px, 2.4vw, 12px);
  }

  .sample h1 {
    font-size: clamp(8px, 2.4vw, 12px);
  }

  .sp01 {
    text-align: center;
    margin-left: -10vw;
  }

  .sp02 {
    margin-left: 4vw;
  }

  /* ----------------------------------------
       MOBILE CONTACT PAGE
       ---------------------------------------- */

  .contact-title {
    height: 13vw;
    width: 64vw;
    top: 1083vw;
    left: 10vw;
    font-size: clamp(9px, 5.5vw, 60px);
  }

  .contact-copy {
    width: 70vw;
    top: 1119vw;
    left: 3vw;
    font-size: clamp(8px, 2.4vw, 22px);
  }

  .contact-details {
    width: 70vw;
    top: 1148vw;
    left: 5vw;
    font-size: clamp(8px, 2.4vw, 22px);
  }

  .contact-icons {
    position: absolute;
    display: flex;
    top: 10vw;
    left: 5vw;
    transform: translateY(-50%);
    margin-left: -5vw;
  }

  .yt-icon,
  .li-icon,
  .in-icon {
    height: 4vw;
    max-height: 26px;
    margin-right: 4vw;
    margin-top: 16vw;
  }

  /* Mobile Contact Form */
  #contact-form {
    width: 49vw;
  }

  .form-row {
    margin-bottom: 1.5vw;
  }

  .form-row label {
    width: 12vw;
    margin-right: calc(-2 * var(--v));
    font-size: clamp(8px, 2.4vw, 24px);
  }

  .form-row input,
  .form-row textarea {
    padding: 0.2vw;
    font-size: clamp(8px, 2.4vw, 22px);
  }

  .form-row textarea {
    min-height: 8vw;
  }
  .recaptcha-row {
    justify-content: flex-start;
    margin-left: 2.5vw;
  }

  .g-recaptcha {
    transform: scale(0.60);
    transform-origin: 0 0;
  }

  .submit-btn {
    padding: 0.2vw 2vw;
    font-size: clamp(8px, 2.4vw, 24px);
    margin-top: -11vw;
  }

  .form-feedback {
    margin-top: 2vw;
    font-size: clamp(8px, 2.4vw, 22px);
    padding: 1vw;
    top: 22vw;
  }
}
