:root {
  --ink: #092527;
  --ink-deep: #06191b;
  --sea: #0f6b62;
  --sea-light: #6ba79f;
  --sand: #f2eee5;
  --paper: #fbfaf6;
  --brand-accent: #0088ff;
  --line: rgba(9, 37, 39, 0.16);
  --white-line: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

/* Skip-link: visually hidden, appears on keyboard focus for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

.svg-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-17 {
  width: 17px;
  height: 17px;
}

.icon-18 {
  width: 18px;
  height: 18px;
}

.icon-19 {
  width: 19px;
  height: 19px;
}

.icon-20 {
  width: 20px;
  height: 20px;
}

.icon-service {
  width: 66px;
  height: 66px;
  stroke-width: 1.25;
}

.icon-fill {
  fill: currentColor;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

svg {
  display: block;
  vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--brand-accent);
  color: var(--ink-deep);
}

.site-shell {
  min-width: 320px;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.page-frame {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(92px, 10vw, 148px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--sea);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #d8ddd6;
}

.hero {
  position: relative;
  min-height: 720px;
  height: 92svh;
  max-height: 900px;
  background: var(--ink-deep);
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  /* Gradient for header */
  background: linear-gradient(to bottom, rgba(5, 24, 26, 0.8) 0%, rgba(5, 24, 26, 0) 100%);
  z-index: -2;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  object-fit: cover;
  object-position: 58% center;
  animation: hero-in 1.2s ease-out both;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 102px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
}

.brand-logo {
  width: 76px;
  height: auto;
  object-fit: contain;
  filter: saturate(0.9) brightness(1.08);
}

.wordmark-name {
  display: flex;
  flex-direction: column;
  font-family: "TWK Lausanne", sans-serif;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
}

.desktop-nav a,
.footer-links a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: #fff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: #fff;
  color: var(--ink);
}

.hero-content {
  display: flex;
  height: calc(100% - 102px);
  align-items: center;
  padding-block: 72px;
}

.hero-copy {
  max-width: 720px;
  animation: copy-in 800ms 160ms ease-out both;
  text-shadow: #e0e0e0 1px 1px 0, 2px 3px 3px rgba(0, 0, 0, 0.76);
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(4rem, 7.2vw, 7.4rem);
  font-weight: 550;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.hero-copy .eyebrow {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--paper);
  /* Ensures good contrast with shadow */
  text-shadow: #e0e0e0 1px 1px 0, 2px 3px 3px rgba(0, 0, 0, 0.4);
}

.hero-intro {
  max-width: 600px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  font-weight: 500;
  line-height: 1.65;
  text-shadow: #e0e0e0 1px 1px 0, 2px 3px 3px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
}

.hero-actions .button {
  text-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-light {
  background: var(--sand);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  background: #fff;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover,
.button-dark:focus-visible {
  background: var(--sea);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.light-link {
  color: rgba(255, 255, 255, 0.82);
}

.light-link:hover,
.light-link:focus-visible {
  color: #fff;
}

.intro-section {
  position: relative;
  z-index: 10;
  margin-top: -160px;
  padding-top: calc(160px + clamp(92px, 10vw, 148px));
  background: linear-gradient(to bottom, transparent 0%, var(--paper) 160px, var(--paper) 100%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: start;
}

.intro-grid h2,
.serve-heading h2,
.section-heading h2,
.training-copy h2,
.contact-grid h2 {
  margin: 0;
  font-family: "TWK Lausanne", sans-serif;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.intro-grid h2 {
  max-width: 570px;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 1;
}

.intro-copy>p:first-child {
  margin: 45px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.64rem);
  line-height: 1.55;
}

.scripture-line {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 68px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--sea);
  font-family: "TWK Lausanne", sans-serif;
  font-size: 1.05rem;
  font-style: italic;
}

.scripture-line span {
  color: rgba(9, 37, 39, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.serve-section {
  background: #fffdf8;
}

.serve-heading {
  position: relative;
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.serve-heading .eyebrow {
  margin-bottom: 15px;
}

.serve-heading h2 {
  margin: 0;
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(2.9rem, 5vw, 5rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.04em;
}

.serve-heading>p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(9, 37, 39, 0.68);
  font-size: 1rem;
  line-height: 1.65;
}

.serve-heading::after {
  display: block;
  width: 52px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: var(--brand-accent);
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .eyebrow {
  margin: 0;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(2.6rem, 4.8vw, 5.2rem);
  line-height: 0.98;
}

.work-section {
  background: var(--ink-deep);
  color: #fff;
}

.work-heading {
  grid-template-columns: 1fr auto;
}

.work-heading h2 {
  margin-top: 20px;
}

.work-featured {
  display: flex;
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: none;
  border-radius: 8px;
  background: #132325;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-featured[href*="zamarapp"] {
  background: #132325;
}

.work-featured:hover,
.work-featured:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px rgba(0, 0, 0, 0.5);
}

.work-featured-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 49%;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 76px);
}

.work-featured-copy>span:first-child,
.video-work-copy>span:first-child {
  color: #7ee0bb;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-featured-copy h3 {
  max-width: 500px;
  margin: 18px 0 22px;
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  font-weight: 550;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.work-featured-copy p {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  line-height: 1.68;
}

.work-action,
.video-work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.work-action {
  align-self: flex-start;
  margin-top: 34px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
}

.work-featured-visual {
  position: relative;
  width: 51%;
  min-height: 520px;
  isolation: isolate;
  /* Removed background color so it inherits the #212121 from the main card */
}

/* Animated Gradient Background */
.hero-gradient {
  position: absolute;
  z-index: 0;
  top: -2em;
  /* Moved down from -12.5em */
  left: 50%;
  width: 70%;
  /* Made even narrower */
  aspect-ratio: 2554 / 1791;
  pointer-events: none;
  transform-origin: center;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

.hero-gradient__art {
  position: absolute;
  inset: 0;
  will-change: transform;

  /* Continuous slow, sweeping floating and breathing */
  animation: gradientBreathing 8s ease-in-out infinite alternate;
}

.hero-gradient__art::before {
  content: "";
  position: absolute;

  left: 68%;
  top: 42%;
  width: 122%;
  height: 46%;

  transform:
    translate(-50%, -50%) rotate(-34deg);

  border-radius: 50%;

  background:
    radial-gradient(ellipse 48% 74% at 20% 58%,
      rgba(43, 88, 73, 0.44) 0%,
      rgba(28, 49, 42, 0.24) 43%,
      transparent 76%),
    radial-gradient(ellipse 66% 76% at 62% 45%,
      rgba(70, 110, 94, 0.98) 0%,
      rgba(54, 102, 85, 0.83) 31%,
      rgba(34, 84, 66, 0.52) 57%,
      transparent 82%),
    radial-gradient(ellipse 58% 60% at 68% 72%,
      rgba(25, 94, 70, 0.78) 0%,
      rgba(13, 61, 45, 0.46) 48%,
      transparent 80%);

  filter: blur(clamp(55px, 4.5vw, 105px));
}

@keyframes gradientBreathing {
  from {
    transform: scale(0.95) translate(8%, -6%) rotate(-5deg);
  }

  to {
    transform: scale(1.25) translate(-8%, 8%) rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-gradient,
  .hero-gradient__art {
    animation: none;
  }

  .hero-gradient {
    opacity: 1;
    transform:
      translateX(calc(-50% - 3.125em)) scale(1);
  }
}

/* --- Zamar 3D Phone Mockup --- */
.zamar-phone-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  z-index: 10;
}

.phone-float-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-interaction-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transform: rotateX(8deg) rotateY(-18deg) rotateZ(3deg);
}

.phone-3d-model {
  --phone-radius: 34px;
  --phone-bezel: 4.5px;
  --phone-inner-radius: calc(var(--phone-radius) - var(--phone-bezel));
  position: relative;
  height: 88%;
  max-height: 560px;
  aspect-ratio: 430 / 932;
  /* iPhone 17 Pro aspect ratio */
  transform-style: preserve-3d;
  border-radius: var(--phone-radius);
}

.phone-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--phone-radius);
  background-color: #3C3C3C;
  /* Secondary frame */
  color: #3C3C3C;
  /* Inherit trick for box-shadow buttons */
  border: 1px solid #48484D;
  /* Reflective highlights */
  /* Hardware Antenna Bands */
  background-image: linear-gradient(to bottom,
      transparent calc(var(--phone-radius) + 10px),
      #252525 calc(var(--phone-radius) + 10px),
      #252525 calc(var(--phone-radius) + 13px),
      transparent calc(var(--phone-radius) + 13px),
      transparent calc(100% - var(--phone-radius) - 10px),
      #252525 calc(100% - var(--phone-radius) - 10px),
      #252525 calc(100% - var(--phone-radius) - 7px),
      transparent calc(100% - var(--phone-radius) - 7px));
}

.phone-layer:nth-child(n+3):not(.phone-front) {
  background-color: #3E3E3E;
  /* Main graphite body */
  color: #3E3E3E;
  border-color: #48484D;
  /* Darker antenna bands for inner core */
  background-image: linear-gradient(to bottom,
      transparent calc(var(--phone-radius) + 10px),
      #1E1E1E calc(var(--phone-radius) + 10px),
      #1E1E1E calc(var(--phone-radius) + 13px),
      transparent calc(var(--phone-radius) + 13px),
      transparent calc(100% - var(--phone-radius) - 10px),
      #1E1E1E calc(100% - var(--phone-radius) - 10px),
      #1E1E1E calc(100% - var(--phone-radius) - 7px),
      transparent calc(100% - var(--phone-radius) - 7px));
}

/* True 3D Hardware Buttons */
.hw-btn {
  position: absolute;
  right: -2px;
  /* Stick out on the right */
  width: 2px;
  transform-style: preserve-3d;
  z-index: 5;
}

.hw-btn.left-side {
  right: auto;
  left: -2px;
  /* Stick out on the left */
}

.hw-btn.power-btn {
  top: 21.43%;
  height: 10.71%;
}

.hw-btn.capture-btn {
  top: 57.14%;
  height: 8.93%;
}

.hw-btn.action-btn {
  top: 17.86%;
  height: 4.46%;
}

.hw-btn.vol-up-btn {
  top: 25%;
  height: 8.04%;
}

.hw-btn.vol-down-btn {
  top: 34.82%;
  height: 8.04%;
}

.btn-face {
  position: absolute;
  inset: 0;
  background-color: #3C3C3C;
  border: 1px solid #48484D;
  border-radius: 2px;
}

.btn-front {
  transform: translateZ(3.5px);
  border-left: none;
}

.btn-back {
  transform: translateZ(-3.5px);
  border-left: none;
}

.btn-side {
  width: 7px;
  /* 7px total depth matches translateZ 3.5 */
  left: 100%;
  transform: translateX(-50%) rotateY(90deg);
}

.hw-btn.left-side .btn-front {
  border-left: 1px solid #48484D;
  border-right: none;
}

.hw-btn.left-side .btn-back {
  border-left: 1px solid #48484D;
  border-right: none;
}

.hw-btn.left-side .btn-side {
  left: 0;
  transform: translateX(-50%) rotateY(-90deg);
}

.phone-layer:nth-child(2) {
  background-color: #040404;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.phone-front {
  background-color: #000;
  border: var(--phone-bezel) solid #000;
  /* iPhone 17 Pro ultra-thin bezel */
  border-radius: var(--phone-radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 15px rgba(0, 0, 0, 0.6);
  display: block;
}

.phone-front::before,
.phone-front::after {
  display: none;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--phone-inner-radius);
  /* Perfectly matches inner bezel radius */
  display: block;
}

.dynamic-island {
  position: absolute;
  top: clamp(8px, 1.9%, 11px);
  left: 50%;
  transform: translateX(-50%);
  width: 29%;
  height: clamp(14px, 3.8%, 21px);
  background-color: #040404;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 5px;
}

.island-camera {
  width: clamp(7px, 1.6%, 9px);
  height: clamp(7px, 1.6%, 9px);
  background-color: #121214;
  border-radius: 50%;
  box-shadow: inset -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.02) 20%,
      rgba(255, 255, 255, 0) 40%);
  border-radius: var(--phone-inner-radius);
  pointer-events: none;
  z-index: 2;
}

.phone-shadow {
  position: absolute;
  inset: -20px;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(25px);
  transform: translateZ(-40px) rotateX(10deg) scale(0.9);
  border-radius: var(--phone-radius);
}

@media (prefers-reduced-motion: reduce) {
  .phone-interaction-wrapper {
    transform: rotateX(8deg) rotateY(-18deg) rotateZ(3deg) !important;
  }

  .phone-float-wrapper {
    animation: none !important;
    transform: none !important;
  }
}

.video-work-carousel-wrapper {
  position: relative;
  width: 100%;
  margin-top: 16px;
  /* Added spacing to prevent hover overlap with Zamar card */
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.video-work-grid {
  display: flex;
  overflow-x: auto;
  gap: 22px;
  margin-top: -10px;
  padding-top: 32px;
  padding-bottom: 80px;
  margin-bottom: -56px;
  padding-left: 2px;
  padding-right: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.video-work-grid::-webkit-scrollbar {
  display: none;
}

.video-work-card {
  flex: 0 0 calc((100% - 44px) / 3);
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: none;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  will-change: transform, opacity;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.video-work-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-work-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 17, 19, 0.42), transparent 48%);
  content: "";
}

.video-work-image-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  transition: transform 600ms ease;
}

.video-work-card:hover .video-work-image-content,
.video-work-card:focus-visible .video-work-image-content {
  transform: scale(1.035);
}

.play-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), background 400ms ease;
}

.video-work-card:hover .play-badge,
.video-work-card:focus-visible .play-badge {
  transform: scale(1.1);
  background: rgba(60, 60, 60, 0.8);
}

.video-work-copy {
  display: flex;
  min-height: 250px;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.video-work-copy h3 {
  margin: 14px 0 14px;
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  font-weight: 550;
  line-height: 1.08;
}

.video-work-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.62;
}

.video-work-link {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.training-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 12vw, 170px);
  background:
    linear-gradient(to top, var(--paper) 0%, transparent 120px),
    linear-gradient(135deg, var(--paper) 0%, var(--sand) 100%);
  color: var(--ink);
  isolation: isolate;
}

@keyframes gridScroll {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 52px 52px;
  }
}

@keyframes netFloat {

  0%,
  100% {
    transform: rotate(12deg) translate(0, 0);
  }

  50% {
    transform: rotate(12deg) translate(-15px, 20px);
  }
}

.training-net {
  position: absolute;
  top: -28%;
  right: -12%;
  z-index: -1;
  width: 62vw;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: rotate(12deg);
  filter: blur(2px);
  animation: gridScroll 8s linear infinite, netFloat 12s ease-in-out infinite;
  will-change: background-position, transform;
}

.training-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 8vw, 120px);
  align-items: center;
}

@keyframes visualFloat {

  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  50% {
    transform: translateY(-15px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
  }
}

.training-visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #0a2526;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  will-change: transform, box-shadow;
  animation: visualFloat 6s ease-in-out infinite;
}

.training-visual::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 17, 19, 0.54), transparent 34%),
    linear-gradient(0deg, rgba(3, 17, 19, 0.88), transparent 58%);
  content: "";
}

.training-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
  transition: transform 900ms ease;
}

.training-visual-label,
.training-visual-title {
  position: absolute;
  z-index: 2;
  right: 30px;
  left: 30px;
}

.training-visual-label {
  top: 28px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.training-visual-title {
  bottom: 30px;
  max-width: 300px;
  color: #d5e2df;
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.training-copy {
  padding-block: 20px;
}

.training-copy h2 {
  max-width: 740px;
  font-size: clamp(3rem, 5.8vw, 6rem);
  line-height: 0.96;
}

.training-copy>p:not(.eyebrow) {
  max-width: 670px;
  margin: 38px 0 0;
  color: rgba(9, 37, 39, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.62;
}

.training-method {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 54px;
  color: var(--sea);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.training-method i {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.contact-section {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: end;
}

.contact-grid h2 {
  max-width: 780px;
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: 0.96;
}

.contact-action {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.contact-action p {
  margin: 0 0 32px;
  color: rgba(9, 37, 39, 0.68);
  font-size: 1.02rem;
  line-height: 1.68;
}

.site-footer {
  padding-top: 70px;
  background: var(--ink-deep);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 70px;
  align-items: start;
  padding-bottom: 70px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 106px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: saturate(0.88) brightness(1.08);
}

.footer-brand strong {
  font-family: "TWK Lausanne", sans-serif;
  font-size: 1.15rem;
  font-weight: 550;
}

.footer-brand p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 16px 40px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 180ms ease, color 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: #fff;
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.67rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.035);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: 720px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .work-featured-copy {
    padding: 48px;
  }

}

@media (max-width: 860px) {
  .page-frame {
    width: min(100% - 36px, 720px);
  }

  .hero {
    height: auto;
    min-height: 760px;
    max-height: none;
  }

  .hero-image {
    object-position: 68% center;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-content {
    min-height: calc(760px - 102px);
    height: auto;
    align-items: center;
    padding-block: 90px;
  }

  .hero-copy h1 {
    max-width: 680px;
  }

  .intro-grid,
  .training-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy>p:first-child {
    margin-top: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .work-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .work-heading .text-link {
    justify-self: start;
  }

  .work-featured {
    flex-direction: column;
  }

  .work-featured-copy,
  .work-featured-visual {
    width: 100%;
  }

  .work-featured-visual {
    min-height: 520px;
  }

  .phone-3d-model {
    --phone-radius: 30px;
    --phone-bezel: 4px;
    height: 88%;
    max-height: 520px;
  }

  .video-work-grid {
    width: min(100%, 580px);
    margin-inline: auto;
    margin-top: 24px;
    gap: 24px;
    padding-bottom: 16px;
  }

  .video-work-card {
    flex: 0 0 85%;
    will-change: auto;
  }

  .video-work-copy {
    min-height: 225px;
  }

  .training-visual {
    min-height: 460px;
  }

  .training-method {
    flex-wrap: wrap;
  }

  .contact-action {
    max-width: 580px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 48px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-logo {
    width: 96px;
    height: auto;
  }

  .footer-brand strong {
    font-size: 1.15rem;
    display: block;
  }

  .footer-brand p {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
  }

  .footer-links {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 28px;
    padding: 6px 0;
  }

  .footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    padding: 6px 10px;
    transition: color 180ms ease;
  }

  .footer-links a:hover,
  .footer-links a:focus-visible {
    color: #fff;
  }

  .footer-social {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
    gap: 16px;
  }

  .footer-social a {
    width: 46px;
    height: 46px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-block: 24px;
  }

  .footer-bottom span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
  }
}

@media (max-width: 560px) {
  .page-frame {
    width: calc(100% - 28px);
  }

  .section-pad {
    padding-block: 84px;
  }

  .hero {
    min-height: 700px;
  }

  .site-header {
    height: 84px;
  }

  .brand-logo {
    width: 60px;
  }

  .wordmark-name {
    font-size: 0.88rem;
  }

  .header-cta {
    padding: 10px 13px;
    font-size: 0.7rem;
  }

  .hero-content {
    min-height: calc(700px - 84px);
    padding-block: 72px;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 4.55rem);
  }

  .hero-intro {
    margin-top: 28px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .intro-grid {
    gap: 50px;
  }

  .intro-grid h2,
  .serve-heading h2,
  .section-heading h2,
  .training-copy h2,
  .contact-grid h2 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .serve-heading {
    margin-bottom: 46px;
  }

  .work-featured-copy {
    padding: 36px 28px 42px;
  }

  .work-featured-copy h3 {
    font-size: clamp(2.8rem, 13vw, 4.1rem);
  }

  .work-featured-visual {
    min-height: 520px;
  }

  .phone-3d-model {
    --phone-radius: 27px;
    --phone-bezel: 3.5px;
    height: 88%;
    max-height: 500px;
  }

  .video-work-copy {
    min-height: 215px;
    padding: 26px;
  }

  .training-section {
    padding-block: 84px;
  }

  .training-grid {
    gap: 50px;
  }

  .training-visual {
    min-height: 360px;
  }

  .training-visual-label,
  .training-visual-title {
    right: 24px;
    left: 24px;
  }

  .training-method {
    gap: 10px;
  }

  .training-method i {
    width: 12px;
  }

  .button-dark {
    width: 100%;
  }

  /* Pause heavy background animations on small screens */
  .training-net {
    animation: none;
  }

  .training-visual {
    animation: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

}

/* --- New Serve Section (One Calling) --- */
.new-serve-section {
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.new-serve-section .serve-fallback {
  padding: 100px 0;
  display: none;
}

.new-serve-section .serve-fallback .serve-heading h2 {
  color: var(--paper);
}

.new-serve-section .serve-fallback .serve-heading p {
  color: rgba(251, 250, 246, 0.7);
}

.new-serve-section .serve-fallback .serve-card {
  background: rgba(255, 255, 255, 0.03);
}

.new-serve-section .serve-fallback .serve-card h3 {
  color: var(--paper);
}

.new-serve-section .serve-fallback .serve-card p {
  color: rgba(251, 250, 246, 0.7);
}

.fallback-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

.serve-pinned-container {
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}

.serve-content-wrapper {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  padding-top: 40px;
  padding-bottom: 40px;
}

.serve-left {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  padding-bottom: 4vh;
}

.serve-section-title {
  position: absolute;
  top: 8vh;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.serve-section-title h2 {
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin: 0;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.serve-images {
  position: absolute;
  top: 50%;
  right: 60px;
  /* Anchored 60px left of the exact center */
  left: auto;
  transform: translateY(-50%);
  width: 330px;
  height: 480px;
  /* Ensure it doesn't break on smaller desktop screens */
  max-width: 100%;
  max-height: 70vh;
}

.serve-image-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  will-change: transform, opacity, border-radius;
  transform-origin: top left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.serve-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serve-image-wrap.active {
  border-radius: 8px;
}

.serve-image-wrap.waiting {
  opacity: 1;
  transform: translateY(120%) translateX(130%) scale(0.7);
}

.serve-right {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
  padding-left: 60px;
  /* Anchored 60px right of the exact center */
}

.serve-text-wrapper {
  max-width: 580px;
}

.serve-statement {
  font-family: "TWK Lausanne", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
  position: relative;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.serve-statement .line {
  display: block;
  min-height: 1.1em;
}

.serve-statement .line-1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  margin-bottom: 0.1em;
  line-height: 1;
}

.serve-statement .line-2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  white-space: nowrap;
  /* Ensures it stays on one line */
  color: rgba(251, 250, 246, 0.85);
}

.serve-paragraph {
  margin-top: 32px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
  color: rgba(251, 250, 246, 0.75);
  max-width: 480px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.text-cursor {
  display: inline-block;
  width: 50px;
  height: 10px;
  background-color: var(--brand-accent);
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0;
}

@media (max-width: 900px) {
  .serve-content-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 40px;
    padding-top: 15vh;
  }

  .serve-left {
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .serve-images {
    position: relative;
    top: 0;
    transform: none;
    height: 40vh;
    min-height: auto;
    margin-bottom: 20px;
    width: 65vw;
  }

  .serve-statement {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .text-cursor {
    width: 30px;
    height: 6px;
  }
}

@media (max-width: 500px) {
  .serve-pinned-container {
    height: 100svh;
    align-items: center;
    justify-content: center;
    padding-top: 0;
  }

  .serve-section-title {
    position: absolute;
    top: 3.5vh;
    left: 0;
    width: 100%;
    padding: 0 16px;
    text-align: center;
    z-index: 25;
  }

  .serve-section-title h2 {
    font-size: clamp(1.35rem, 5.2vw, 1.7rem);
    letter-spacing: -0.025em;
  }

  .serve-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 8.5vh;
    padding-bottom: 2vh;
    gap: 16px;
    height: 100%;
    width: 100%;
    grid-template-columns: none;
    grid-template-rows: none;
  }

  /* Text first on top */
  .serve-right {
    order: 1;
    width: 100%;
    padding-left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
  }

  .serve-text-wrapper {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .serve-statement {
    text-align: center;
  }

  .serve-statement .line-1 {
    font-size: clamp(2.2rem, 9.5vw, 2.85rem);
    margin-bottom: 2px;
    line-height: 1;
  }

  .serve-statement .line-2 {
    font-size: clamp(0.92rem, 3.8vw, 1.15rem);
    white-space: normal;
    color: rgba(251, 250, 246, 0.88);
  }

  .serve-paragraph {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: 320px;
    margin-inline: auto;
    text-align: center;
    min-height: 3.8em;
  }

  .text-cursor {
    width: 24px;
    height: 5px;
    margin-left: 5px;
  }

  /* Images underneath as horizontal carousel */
  .serve-left {
    order: 2;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
  }

  .serve-images {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: min(250px, 70vw);
    aspect-ratio: 330 / 440;
    height: auto;
    max-height: 42vh;
    margin: 0 auto;
    overflow: visible;
  }

  .serve-image-wrap {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    transform-origin: center center;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .new-serve-section .serve-pinned-container {
    display: none !important;
  }

  .new-serve-section .serve-fallback {
    display: block !important;
  }
}

.new-serve-section.no-js .serve-pinned-container {
  display: none !important;
}

.new-serve-section.no-js .serve-fallback {
  display: block !important;
}

