/* =========================================================
   MAD MATT SALVAGE
   RESPONSIVE MAIN STYLESHEET
   ========================================================= */

:root {
  --navy-950: #020a0f;
  --navy-900: #04131c;
  --navy-850: #061c27;

  --gold: #c8a45d;
  --gold-light: #e0c17a;
  --gold-bright: #efd490;

  --text: #e6edef;
  --text-soft: #b3c3c8;
  --text-muted: #8198a0;

  --line-gold: rgba(200, 164, 93, 0.32);

  --content-width: 1120px;
  --page-gutter: clamp(14px, 3.5vw, 40px);

  --sky-bg-top: #040c12;
  --sky-bg-bottom: #163847;

  --horizon-glow-warm: rgba(235, 194, 111, 0.11);
  --horizon-glow-cool: rgba(110, 182, 194, 0.08);

  --r-glow-color: rgba(223, 184, 94, 0.65);

  --stage-surface-glow: rgba(75, 165, 183, 0.31);
  --stage-top: #0b4559;
  --stage-mid: #073647;
  --stage-mid-2: #062a3a;
  --stage-deep: #051f2c;
  --stage-deeper: #041620;
  --stage-bottom: #020c12;
}


/* =========================================================
   BASE
   ========================================================= */

html {
  box-sizing: border-box;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  background: var(--navy-950);
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  min-width: 320px;
  overflow-x: hidden;

  background: var(--navy-950);
  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
section,
article,
header,
footer,
nav,
aside,
figure {
  display: block;
}

figure,
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
  border: 0;
}

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

a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #04131c;
  background: var(--gold-light);
}

.site {
  display: flex;

  min-height: 100vh;
  min-height: 100dvh;

  flex-direction: column;
}

.site__content {
  flex: 1;
  width: 100%;
}

.container {
  width: min(
    var(--content-width),
    calc(100% - 32px)
  );

  margin-inline: auto;
}


/* =========================================================
   ABOVE-WATER SPLASH
   ========================================================= */

.pirate-screen {
  --pointer-x: 0;
  --pointer-y: 0;
  --splash-scroll: 0;
  --sun-strength: 0;

  position: relative;
  isolation: isolate;

  width: 100%;
  height: 100svh;

  min-height: 560px;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  padding-left:
    env(safe-area-inset-left, 0px);

  padding-right:
    env(safe-area-inset-right, 0px);

  background:
    linear-gradient(
      180deg,
      var(--sky-bg-top),
      var(--sky-bg-bottom)
    );
}

.pirate-sky-canvas {
  position: absolute;

  z-index: 0;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  max-width: none;

  pointer-events: none;
}

.pirate-screen::before {
  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at 72% 63%,
      rgba(238, 191, 105, 0.06),
      transparent 29%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.34),
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.34)
    ),
    linear-gradient(
      180deg,
      rgba(1, 6, 10, 0.12),
      transparent 45%,
      rgba(0, 8, 13, 0.11)
    );
}

.pirate-screen::after {
  content: "";

  position: absolute;

  z-index: 2;

  left: 0;
  right: 0;
  top: 70%;

  height: clamp(
    120px,
    20vh,
    190px
  );

  transform: translateY(-50%);

  pointer-events: none;

  opacity:
    calc(
      0.2 +
      var(--sun-strength) * 0.45
    );

  background:
    radial-gradient(
      ellipse at 68% 50%,
      var(--horizon-glow-warm),
      transparent 35%
    ),
    radial-gradient(
      ellipse at center,
      var(--horizon-glow-cool),
      transparent 70%
    );
}


/* =========================================================
   COMPASS
   ========================================================= */

.pirate-compass {
  position: absolute;

  z-index: 2;

  left: 50%;
  top: 46%;

  width: min(76vmin, 680px);

  aspect-ratio: 1;

  transform:
    translate(
      calc(-50% + var(--pointer-x) * -7px),
      calc(-50% + var(--pointer-y) * -5px)
    )
    rotate(
      calc(
        var(--splash-scroll) *
        12deg
      )
    );

  border-radius: 50%;

  opacity: 0.19;

  pointer-events: none;

  transition:
    opacity 0.4s ease;
}

.pirate-compass::before,
.pirate-compass::after {
  content: "";

  position: absolute;

  border-radius: 50%;
}

.pirate-compass::before {
  inset: 0;

  border:
    1px solid
    rgba(211, 177, 104, 0.58);

  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(214, 181, 107, 0.58) 0deg 0.5deg,
      transparent 0.5deg 11.25deg
    );

  -webkit-mask:
    radial-gradient(
      circle,
      transparent 0 77%,
      #000 77.3% 78%,
      transparent 78.3% 86%,
      #000 86.3% 87%,
      transparent 87.3%
    );

  mask:
    radial-gradient(
      circle,
      transparent 0 77%,
      #000 77.3% 78%,
      transparent 78.3% 86%,
      #000 86.3% 87%,
      transparent 87.3%
    );
}

.pirate-compass::after {
  inset: 18%;

  border:
    1px solid
    rgba(211, 177, 104, 0.2);

  background:
    linear-gradient(
      90deg,
      transparent 49.85%,
      rgba(211, 177, 104, 0.25) 50%,
      transparent 50.15%
    ),
    linear-gradient(
      0deg,
      transparent 49.85%,
      rgba(211, 177, 104, 0.25) 50%,
      transparent 50.15%
    );

  animation:
    compassBreathe
    7s
    ease-in-out
    infinite;
}

@keyframes compassBreathe {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.9;
  }
}


/* =========================================================
   PIRATE R
   ========================================================= */

.pirate-r {
  position: relative;

  z-index: 5;

  font-family:
    "Pirata One",
    Georgia,
    serif;

  font-size:
    min(
      96vw,
      90vh
    );

  line-height: 0.7;

  color: transparent;

  user-select: none;

  background:
    linear-gradient(
      175deg,
      #f0d994 0%,
      #d7b568 26%,
      #bd9347 65%,
      #98702d 100%
    );

  -webkit-background-clip: text;
  background-clip: text;

  filter:
    drop-shadow(0 4px 0 #76501f)
    drop-shadow(0 10px 0 #38240f)
    drop-shadow(
      0 20px 28px
      rgba(0, 0, 0, 0.78)
    )
    drop-shadow(
      10px -6px 30px
      rgba(229, 185, 96, 0.1)
    );

  transform:
    translate(
      calc(
        var(--pointer-x) *
        4px
      ),
      calc(
        var(--pointer-y) *
        3px -
        var(--splash-scroll) *
        30px
      )
    )
    rotate(
      calc(
        var(--pointer-x) *
        0.3deg +
        var(--splash-scroll) *
        -1deg
      )
    );

  opacity:
    calc(
      1 -
      var(--splash-scroll) *
      0.28
    );

  will-change:
    transform,
    opacity;
}

.pirate-r::after {
  content: "";

  position: absolute;

  z-index: -1;

  inset: 18% -5%;

  opacity:
    calc(
      0.1 +
      var(--sun-strength) *
      0.18
    );

  filter:
    blur(42px);

  background:
    radial-gradient(
      ellipse,
      var(--r-glow-color),
      transparent 68%
    );
}


/* =========================================================
   UNDERWATER STAGE
   ========================================================= */

.mad-matt-water-stage {
  position: relative;

  isolation: isolate;

  width: 100%;

  overflow: visible;

  color: var(--text);

  text-align: left;

  background:
    radial-gradient(
      ellipse at 50% -4%,
      var(--stage-surface-glow),
      transparent 25%
    ),
    linear-gradient(
      180deg,
      var(--stage-top) 0%,
      var(--stage-mid) 12%,
      var(--stage-mid-2) 31%,
      var(--stage-deep) 58%,
      var(--stage-deeper) 79%,
      var(--stage-bottom) 100%
    );
}

.mad-matt-water-stage::before {
  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.24),
      transparent 16%,
      transparent 84%,
      rgba(0, 0, 0, 0.24)
    ),
    radial-gradient(
      ellipse at center 15%,
      transparent 10%,
      rgba(0, 8, 14, 0.08) 75%
    );
}

.mad-matt-water-stage::after {
  content: "";

  position: absolute;

  z-index: 1;

  inset: 0;

  pointer-events: none;

  opacity: 0.18;

  background-image:
    repeating-linear-gradient(
      115deg,
      transparent 0,
      transparent 46px,
      rgba(107, 183, 196, 0.024) 47px,
      transparent 48px
    );
}


/* =========================================================
   WATER SURFACE
   ========================================================= */

.mad-matt-sea-surface {
  position: absolute;

  z-index: 6;

  left: 0;
  top: 0;

  width: 100%;
  height: 110px;

  transform:
    translateY(-42px);

  pointer-events: none;

  overflow: hidden;

  filter:
    drop-shadow(
      0 -6px 10px
      rgba(151, 223, 229, 0.08)
    )
    drop-shadow(
      0 10px 18px
      rgba(0, 0, 0, 0.18)
    );
}

.mad-matt-sea-surface::before {
  content: "";

  position: absolute;

  inset: 28px 0 0;

  background:
    linear-gradient(
      180deg,
      rgba(196, 245, 247, 0.22) 0%,
      rgba(77, 174, 190, 0.24) 18%,
      rgba(10, 73, 95, 0.45) 42%,
      rgba(8, 46, 61, 0.58) 65%,
      rgba(3, 21, 32, 0) 100%
    );
}

.mad-matt-sea-surface::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 32px;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      rgba(190, 241, 243, 0.1),
      rgba(214, 248, 249, 0.7) 10%,
      rgba(240, 251, 251, 0.9) 50%,
      rgba(214, 248, 249, 0.7) 90%,
      rgba(190, 241, 243, 0.1)
    );

  box-shadow:
    0 0 14px
    rgba(194, 241, 244, 0.7),
    0 6px 20px
    rgba(83, 172, 189, 0.26);
}

.mad-matt-surface-wave,
.mad-matt-surface-wave-two,
.mad-matt-surface-foam {
  position: absolute;

  left: -220px;

  width:
    calc(
      100% +
      440px
    );

  pointer-events: none;
}

.mad-matt-surface-wave {
  top: 6px;

  height: 44px;

  opacity: 0.64;

  background:
    radial-gradient(
      ellipse at center,
      rgba(225, 249, 249, 0.65) 0%,
      rgba(127, 212, 223, 0.36) 28%,
      rgba(59, 139, 160, 0.14) 46%,
      transparent 67%
    );

  background-size:
    150px 42px;

  animation:
    surfaceSweep
    8s
    linear
    infinite;
}

.mad-matt-surface-wave-two {
  top: 16px;

  height: 38px;

  opacity: 0.3;

  background:
    radial-gradient(
      ellipse at center,
      rgba(223, 244, 246, 0.38) 0%,
      rgba(90, 181, 194, 0.16) 34%,
      transparent 70%
    );

  background-size:
    210px 40px;

  animation:
    surfaceSweepReverse
    12.5s
    linear
    infinite;
}

.mad-matt-surface-foam {
  top: 18px;

  height: 16px;

  opacity: 0.9;

  background:
    radial-gradient(
      circle at 10px 8px,
      rgba(244, 251, 251, 0.7)
      0 2px,
      transparent 2.2px
    ),
    radial-gradient(
      circle at 26px 7px,
      rgba(244, 251, 251, 0.55)
      0 2px,
      transparent 2.2px
    ),
    radial-gradient(
      circle at 42px 9px,
      rgba(244, 251, 251, 0.5)
      0 1.8px,
      transparent 2px
    );

  background-size:
    54px 16px;

  animation:
    foamDrift
    10s
    linear
    infinite;
}

@keyframes surfaceSweep {
  to {
    transform:
      translateX(150px);
  }
}

@keyframes surfaceSweepReverse {
  to {
    transform:
      translateX(-160px);
  }
}

@keyframes foamDrift {
  to {
    transform:
      translateX(54px);
  }
}


/* =========================================================
   UNDERWATER CANVAS
   ========================================================= */

#mad-matt-water {
  position: absolute;

  z-index: 2;

  top: 0;
  left: 0;

  display: block;

  width: 100%;

  height: 100vh;
  height: 100dvh;

  max-width: none;

  pointer-events: none;

  will-change:
    transform;
}


/* =========================================================
   WATERLINE BRAND
   ========================================================= */

.mad-matt-waterline-brand {
  position: absolute;

  z-index: 20;

  top: 0;
  left: 0;

  width: 100%;

  padding-inline:
    max(
      var(--page-gutter),
      env(
        safe-area-inset-left,
        0px
      )
    )
    max(
      var(--page-gutter),
      env(
        safe-area-inset-right,
        0px
      )
    );

  transform:
    translateY(-50%);

  text-align: center;

  pointer-events: none;
}

.mad-matt-brand-eyebrow {
  margin:
    0
    0
    clamp(
      6px,
      1vw,
      10px
    );

  color: var(--gold);

  font-size:
    clamp(
      8px,
      1.9vw,
      11px
    );

  font-weight: 700;

  line-height: 1.25;

  letter-spacing:
    clamp(
      0.12em,
      0.35vw,
      0.25em
    );

  text-transform: uppercase;

  white-space: nowrap;

  text-shadow:
    0 3px 12px
    rgba(0, 0, 0, 0.7);
}

.mad-matt-waterline-brand h1 {
  margin: 0;

  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      1.65rem,
      8vw,
      5rem
    );

  font-weight: 700;

  line-height: 0.95;

  letter-spacing: -0.02em;

  white-space: nowrap;

  text-shadow:
    0 3px 0
    rgba(70, 45, 15, 0.58),
    0 8px 22px
    rgba(0, 0, 0, 0.78),
    0 0 30px
    rgba(224, 193, 122, 0.16);
}

.mad-matt-brand-subtitle {
  margin:
    clamp(
      8px,
      1.2vw,
      15px
    )
    0
    0;

  color: #c0d0d4;

  font-size:
    clamp(
      10px,
      2.3vw,
      19px
    );

  font-weight: 600;

  line-height: 1.25;

  letter-spacing:
    clamp(
      0.1em,
      0.35vw,
      0.2em
    );

  text-transform: uppercase;

  text-shadow:
    0 4px 14px
    rgba(0, 0, 0, 0.72);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.mad-matt-old-site {
  position: relative;

  z-index: 10;

  width:
    min(
      var(--content-width),
      calc(
        100% -
        32px
      )
    );

  margin-inline: auto;

  padding:
    clamp(
      115px,
      15vw,
      185px
    )
    0
    clamp(
      72px,
      9vw,
      110px
    );

  text-align: left;
}


/* =========================================================
   REVEALS
   ========================================================= */

.mad-matt-reveal {
  opacity: 0;

  transform:
    translateY(24px);

  transition:
    opacity
    0.72s
    ease,
    transform
    0.72s
    cubic-bezier(
      0.2,
      0.65,
      0.25,
      1
    );
}

.mad-matt-reveal.is-visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* =========================================================
   INTRO COPY
   ========================================================= */

.mad-matt-intro-copy {
  max-width: 760px;

  margin:
    0
    auto
    clamp(
      50px,
      7vw,
      78px
    );

  text-align: center;
}

.mad-matt-divider {
  width:
    min(
      360px,
      78%
    );

  margin:
    0
    auto
    clamp(
      24px,
      4vw,
      31px
    );

  display: flex;

  align-items: center;

  gap: 15px;

  color: var(--gold);
}

.mad-matt-divider span {
  flex: 1;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(200, 164, 93, 0.62)
    );
}

.mad-matt-divider span:last-child {
  transform:
    scaleX(-1);
}

.mad-matt-divider b {
  font-size: 7px;
}

.mad-matt-intro-copy p {
  max-width: 700px;

  margin:
    14px
    auto
    0;

  color: var(--text-soft);

  font-size:
    clamp(
      15px,
      1.7vw,
      17px
    );

  line-height: 1.72;
}

.mad-matt-intro-copy .mad-matt-lead {
  color: #e4eaeb;

  font-size:
    clamp(
      17px,
      2.2vw,
      22px
    );

  font-weight: 500;

  line-height: 1.62;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.mad-matt-hero-image {
  position: relative;

  width: 100%;

  margin:
    0
    auto
    clamp(
      72px,
      9vw,
      105px
    );

  overflow: hidden;

  border:
    1px solid
    rgba(200, 164, 93, 0.42);

  background: #020b10;

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.35);
}

.mad-matt-hero-image::before {
  content: "";

  position: absolute;

  z-index: 2;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(150, 211, 218, 0.07),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.15),
      transparent 15%,
      transparent 85%,
      rgba(0, 0, 0, 0.15)
    );
}

.mad-matt-hero-image::after {
  content: "";

  position: absolute;

  z-index: 3;

  inset:
    clamp(
      5px,
      1vw,
      8px
    );

  pointer-events: none;

  border:
    1px solid
    rgba(225, 195, 126, 0.15);
}

.mad-matt-hero-image img {
  width: 100%;

  max-height: 670px;

  object-fit: cover;

  transform:
    scale(1.04)
    translateY(
      var(
        --hero-parallax,
        0px
      )
    );

  filter:
    saturate(0.88)
    contrast(1.07)
    brightness(0.94);

  will-change:
    transform;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.mad-matt-section-title {
  display: flex;

  align-items: center;

  gap:
    clamp(
      10px,
      2.4vw,
      22px
    );

  margin-bottom:
    clamp(
      25px,
      4vw,
      38px
    );
}

.mad-matt-section-title span {
  flex: 1;

  min-width: 16px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(200, 164, 93, 0.6)
    );
}

.mad-matt-section-title span:last-child {
  transform:
    scaleX(-1);
}

.mad-matt-section-title h2 {
  margin: 0;

  max-width: 72%;

  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      10px,
      1.5vw,
      13px
    );

  font-weight: 600;

  line-height: 1.35;

  letter-spacing:
    clamp(
      0.12em,
      0.35vw,
      0.24em
    );

  text-align: center;

  text-transform: uppercase;
}


/* =========================================================
   SERVICES
   ========================================================= */

.mad-matt-services {
  margin-bottom:
    clamp(
      76px,
      9vw,
      110px
    );
}

.mad-matt-service-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  overflow: hidden;

  border-top:
    1px solid
    var(--line-gold);

  border-left:
    1px solid
    var(--line-gold);

  background:
    rgba(
      1,
      12,
      18,
      0.2
    );

  box-shadow:
    0 25px 70px
    rgba(
      0,
      0,
      0,
      0.12
    );

  backdrop-filter:
    blur(4px);

  -webkit-backdrop-filter:
    blur(4px);
}

.mad-matt-service {
  position: relative;

  min-width: 0;

  min-height:
    clamp(
      150px,
      16vw,
      176px
    );

  padding:
    clamp(
      20px,
      3vw,
      29px
    )
    clamp(
      12px,
      2vw,
      20px
    );

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 11px;

  overflow: hidden;

  text-align: center;

  border-right:
    1px solid
    var(--line-gold);

  border-bottom:
    1px solid
    var(--line-gold);

  background:
    rgba(
      3,
      18,
      25,
      0.12
    );

  transition:
    transform
    250ms
    ease,
    background
    250ms
    ease;
}

.mad-matt-service::before {
  content: "";

  position: absolute;

  width: 170px;
  height: 170px;

  left: 50%;
  top: 100%;

  border-radius: 50%;

  transform:
    translate(
      -50%,
      -30%
    );

  opacity: 0;

  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(
        203,
        170,
        96,
        0.1
      ),
      transparent 68%
    );

  transition:
    opacity
    250ms
    ease,
    transform
    350ms
    ease;
}

@media (hover: hover) and (pointer: fine) {

  .mad-matt-service:hover {
    z-index: 2;

    transform:
      translateY(-4px);

    background:
      rgba(
        200,
        164,
        93,
        0.055
      );
  }

  .mad-matt-service:hover::before {
    opacity: 1;

    transform:
      translate(
        -50%,
        -55%
      );
  }

}

.mad-matt-service-icon {
  position: relative;

  z-index: 1;

  min-height: 32px;

  color: var(--gold);

  line-height: 1;

  filter:
    drop-shadow(
      0 3px 8px
      rgba(
        0,
        0,
        0,
        0.28
      )
    );
}

.mad-matt-service-icon svg {
  display: block;

  width:
    clamp(
      27px,
      3vw,
      32px
    );

  height:
    clamp(
      27px,
      3vw,
      32px
    );
}

.mad-matt-service strong {
  position: relative;

  z-index: 1;

  max-width: 100%;

  overflow-wrap: anywhere;

  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      15px,
      1.6vw,
      17px
    );

  font-weight: 600;

  line-height: 1.22;
}

.mad-matt-service small {
  position: relative;

  z-index: 1;

  max-width: 100%;

  color: var(--text-muted);

  font-size:
    clamp(
      12px,
      1.25vw,
      13px
    );

  line-height: 1.4;
}


/* =========================================================
   VIDEOS
   ========================================================= */

.mad-matt-videos {
  margin-bottom:
    clamp(
      76px,
      9vw,
      110px
    );
}

.mad-matt-video-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    clamp(
      14px,
      2.5vw,
      25px
    );
}

.mad-matt-video {
  position: relative;

  min-width: 0;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #01070b;

  border:
    1px solid
    rgba(
      200,
      164,
      93,
      0.38
    );

  box-shadow:
    0 17px 50px
    rgba(
      0,
      0,
      0,
      0.3
    );

  transition:
    transform
    250ms
    ease,
    border-color
    250ms
    ease;
}

@media (hover: hover) and (pointer: fine) {

  .mad-matt-video:hover {
    transform:
      translateY(-4px);

    border-color:
      rgba(
        225,
        193,
        122,
        0.65
      );
  }

}

.mad-matt-video iframe {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  max-width: none;

  border: 0;
}

.mad-matt-video-wide {
  grid-column:
    1 / -1;
}


/* =========================================================
   SHIRTS
   ========================================================= */

.mad-matt-shirts {
  margin-bottom:
    clamp(
      76px,
      9vw,
      110px
    );
}

.mad-matt-shirts-inner {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      48px,
      7vw,
      78px
    )
    clamp(
      18px,
      4vw,
      35px
    );

  text-align: center;

  border-top:
    1px solid
    rgba(
      200,
      164,
      93,
      0.38
    );

  border-bottom:
    1px solid
    rgba(
      200,
      164,
      93,
      0.38
    );

  background:
    radial-gradient(
      circle at center,
      rgba(
        200,
        164,
        93,
        0.08
      ),
      transparent 55%
    ),
    rgba(
      2,
      12,
      18,
      0.18
    );
}

.mad-matt-shirts-inner::before,
.mad-matt-shirts-inner::after {
  content: "";

  position: absolute;

  top: 50%;

  width:
    min(
      9vw,
      110px
    );

  height: 1px;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(
        200,
        164,
        93,
        0.22
      )
    );
}

.mad-matt-shirts-inner::before {
  left: 3%;
}

.mad-matt-shirts-inner::after {
  right: 3%;

  transform:
    scaleX(-1);
}

.mad-matt-shirts-kicker {
  margin:
    0
    0
    15px;

  color: var(--gold);

  font-size:
    clamp(
      9px,
      1.5vw,
      11px
    );

  font-weight: 700;

  line-height: 1.4;

  letter-spacing:
    clamp(
      0.13em,
      0.35vw,
      0.27em
    );

  text-transform: uppercase;
}

.mad-matt-shirts h3 {
  margin: 0;

  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      30px,
      5vw,
      58px
    );

  font-weight: 600;

  line-height: 1.06;
}

.mad-matt-shirts-punchline {
  margin:
    10px
    0
    0;

  color: #e5ecee;

  font-family:
    "Pirata One",
    Georgia,
    serif;

  font-size:
    clamp(
      25px,
      4vw,
      46px
    );

  line-height: 1.1;

  letter-spacing: 0.02em;
}

.mad-matt-shirts-copy {
  max-width: 580px;

  margin:
    23px
    auto
    0;

  color: var(--text-soft);

  font-size:
    clamp(
      14px,
      1.6vw,
      16px
    );

  line-height: 1.7;
}


/* =========================================================
   CONTACT
   ========================================================= */

.mad-matt-contact {
  position: relative;

  overflow: hidden;

  padding:
    clamp(
      52px,
      7vw,
      80px
    )
    clamp(
      14px,
      3vw,
      30px
    );

  text-align: center;

  border:
    1px solid
    rgba(
      200,
      164,
      93,
      0.42
    );

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(
        200,
        164,
        93,
        0.08
      ),
      transparent 55%
    ),
    rgba(
      1,
      10,
      16,
      0.28
    );

  box-shadow:
    inset
    0 0 80px
    rgba(
      0,
      0,
      0,
      0.14
    );
}

.mad-matt-contact::before,
.mad-matt-contact::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  border:
    1px solid
    rgba(
      200,
      164,
      93,
      0.07
    );

  border-radius: 50%;

  pointer-events: none;
}

.mad-matt-contact::before {
  left: -160px;
  top: -120px;
}

.mad-matt-contact::after {
  right: -160px;
  bottom: -130px;
}

.mad-matt-contact-mark {
  position: relative;

  z-index: 1;

  margin-bottom: 18px;

  color: var(--gold);

  font-family:
    "Pirata One",
    Georgia,
    serif;

  font-size:
    clamp(
      24px,
      3vw,
      29px
    );

  letter-spacing: 0.12em;
}

.mad-matt-contact-label {
  position: relative;

  z-index: 1;

  margin:
    0
    0
    14px;

  color: #8da3aa;

  font-size:
    clamp(
      9px,
      1.4vw,
      11px
    );

  font-weight: 700;

  line-height: 1.4;

  letter-spacing:
    clamp(
      0.12em,
      0.3vw,
      0.23em
    );

  text-transform: uppercase;
}

.mad-matt-contact a {
  position: relative;

  z-index: 1;

  display: inline-block;

  max-width: 100%;

  color: var(--gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      32px,
      7vw,
      72px
    );

  font-weight: 700;

  line-height: 1;

  letter-spacing: -0.03em;

  white-space: nowrap;

  border: 0 !important;
  border-bottom: 0 !important;

  outline: 0;

  text-decoration: none !important;

  background-image: none !important;

  box-shadow: none;

  text-shadow:
    0 8px 24px
    rgba(
      0,
      0,
      0,
      0.3
    );

  transition:
    color
    180ms
    ease,
    text-shadow
    180ms
    ease;
}

.mad-matt-contact a:visited,
.mad-matt-contact a:hover,
.mad-matt-contact a:focus,
.mad-matt-contact a:active {
  border: 0 !important;
  border-bottom: 0 !important;

  text-decoration: none !important;

  background-image: none !important;

  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {

  .mad-matt-contact a:hover,
  .mad-matt-contact a:focus {
    color: var(--gold-bright);

    text-shadow:
      0 0 25px
      rgba(
        224,
        193,
        122,
        0.16
      ),
      0 8px 24px
      rgba(
        0,
        0,
        0,
        0.3
      );
  }

}

.mad-matt-contact-name {
  position: relative;

  z-index: 1;

  margin:
    20px
    0
    0;

  color: #dde5e7;

  font-size:
    clamp(
      11px,
      1.5vw,
      14px
    );

  font-weight: 700;

  line-height: 1.4;

  letter-spacing:
    clamp(
      0.12em,
      0.35vw,
      0.21em
    );
}

.mad-matt-contact-location {
  position: relative;

  z-index: 1;

  max-width: 100%;

  margin:
    8px
    auto
    0;

  color: #718991;

  font-size:
    clamp(
      9px,
      1.3vw,
      11px
    );

  line-height: 1.5;

  letter-spacing:
    clamp(
      0.08em,
      0.3vw,
      0.16em
    );

  text-transform: uppercase;
}


/* =========================================================
   VISIBLE UNDERWATER FLOATING TEXT
   ========================================================= */

/*
   Approximately 5px of motion over 7–8 seconds.
   Different directions and timing keep the page feeling
   suspended in water instead of moving as one solid block.
*/

@keyframes madMattFloatUp {
  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(-5px);
  }
}

@keyframes madMattFloatDown {
  0%,
  100% {
    transform:
      translateY(0);
  }

  50% {
    transform:
      translateY(5px);
  }
}

@keyframes madMattFloatSoft {
  0%,
  100% {
    transform:
      translateY(-1px);
  }

  50% {
    transform:
      translateY(4px);
  }
}


/* =========================================================
   WATERLINE BRAND FLOAT
   ========================================================= */

.mad-matt-brand-eyebrow {
  animation:
    madMattFloatUp
    6.8s
    ease-in-out
    infinite;
}

.mad-matt-waterline-brand h1 {
  animation:
    madMattFloatDown
    7.6s
    ease-in-out
    infinite
    -2.1s;
}

.mad-matt-brand-subtitle {
  animation:
    madMattFloatSoft
    7.1s
    ease-in-out
    infinite
    -4s;
}


/* =========================================================
   INTRO FLOAT
   ========================================================= */

.mad-matt-divider {
  animation:
    madMattFloatUp
    8s
    ease-in-out
    infinite
    -3s;
}

.mad-matt-intro-copy .mad-matt-lead {
  animation:
    madMattFloatDown
    7.4s
    ease-in-out
    infinite
    -1.5s;
}

.mad-matt-intro-copy > p:not(.mad-matt-lead) {
  animation:
    madMattFloatSoft
    8.4s
    ease-in-out
    infinite
    -5s;
}


/* =========================================================
   SECTION HEADING FLOAT
   ========================================================= */

.mad-matt-section-title h2 {
  animation:
    madMattFloatUp
    7.2s
    ease-in-out
    infinite
    -2.8s;
}


/* =========================================================
   SERVICES FLOAT
   ========================================================= */

.mad-matt-service:nth-child(odd)
.mad-matt-service-icon {
  animation:
    madMattFloatDown
    7s
    ease-in-out
    infinite
    -1s;
}

.mad-matt-service:nth-child(even)
.mad-matt-service-icon {
  animation:
    madMattFloatSoft
    7.8s
    ease-in-out
    infinite
    -4.5s;
}

.mad-matt-service:nth-child(odd)
strong {
  animation:
    madMattFloatUp
    6.9s
    ease-in-out
    infinite;
}

.mad-matt-service:nth-child(even)
strong {
  animation:
    madMattFloatDown
    7.5s
    ease-in-out
    infinite
    -3s;
}

.mad-matt-service:nth-child(odd)
small {
  animation:
    madMattFloatSoft
    8s
    ease-in-out
    infinite
    -4s;
}

.mad-matt-service:nth-child(even)
small {
  animation:
    madMattFloatUp
    8.3s
    ease-in-out
    infinite
    -2s;
}


/* =========================================================
   SHIRTS FLOAT
   ========================================================= */

.mad-matt-shirts-kicker {
  animation:
    madMattFloatSoft
    7.3s
    ease-in-out
    infinite;
}

.mad-matt-shirts h3 {
  animation:
    madMattFloatUp
    7.7s
    ease-in-out
    infinite
    -3s;
}

.mad-matt-shirts-punchline {
  animation:
    madMattFloatDown
    6.9s
    ease-in-out
    infinite
    -5s;
}

.mad-matt-shirts-copy {
  animation:
    madMattFloatSoft
    8.1s
    ease-in-out
    infinite
    -2s;
}


/* =========================================================
   CONTACT FLOAT
   ========================================================= */

.mad-matt-contact-mark {
  animation:
    madMattFloatUp
    7.2s
    ease-in-out
    infinite;
}

.mad-matt-contact-label {
  animation:
    madMattFloatDown
    7.9s
    ease-in-out
    infinite
    -4s;
}

.mad-matt-contact a {
  animation:
    madMattFloatSoft
    8.2s
    ease-in-out
    infinite
    -3.5s;
}

.mad-matt-contact-name {
  animation:
    madMattFloatUp
    7.5s
    ease-in-out
    infinite
    -1.5s;
}

.mad-matt-contact-location {
  animation:
    madMattFloatDown
    8.4s
    ease-in-out
    infinite
    -5s;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  position: relative;

  z-index: 10;

  padding:
    42px
    max(
      20px,
      env(
        safe-area-inset-right,
        0px
      )
    )
    max(
      42px,
      env(
        safe-area-inset-bottom,
        0px
      )
    )
    max(
      20px,
      env(
        safe-area-inset-left,
        0px
      )
    );

  border-top:
    1px solid
    rgba(
      200,
      164,
      93,
      0.13
    );

  background: #02090d;

  color:
    rgba(
      211,
      222,
      224,
      0.55
    );

  text-align: center;

  font-size: 0.875rem;
}

footer a,
footer a:visited {
  color:
    rgba(
      211,
      222,
      224,
      0.62
    );

  border: 0 !important;

  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: var(--gold-light);

  border: 0 !important;

  text-decoration: none;
}

.social {
  display: flex;

  max-width: 220px;

  margin:
    0
    auto
    24px;

  align-items: center;

  justify-content: center;

  gap: 24px;
}

.social__link {
  margin: 0 !important;
}

.social__icon {
  width: 1.5rem;
  height: 1.5rem;

  fill: currentColor;
}


/* =========================================================
   TABLETS / SMALL LAPTOPS
   ========================================================= */

@media (max-width: 960px) {

  .mad-matt-service-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }

}


/* =========================================================
   PHONES / SMALL TABLETS
   ========================================================= */

@media (max-width: 760px) {

  :root {
    --page-gutter:
      clamp(
        12px,
        4vw,
        24px
      );
  }

  .pirate-screen {
    min-height: 500px;
  }

  .pirate-r {
    font-size:
      min(
        100vw,
        78vh
      );
  }

  .pirate-compass {
    width:
      min(
        84vmin,
        470px
      );
  }

  .mad-matt-sea-surface {
    height: 98px;

    transform:
      translateY(-36px);
  }

  .mad-matt-sea-surface::after {
    top: 27px;
  }

  .mad-matt-waterline-brand {
    transform:
      translateY(-50%);
  }

  .mad-matt-old-site {
    width:
      calc(
        100% -
        24px
      );

    padding-top:
      clamp(
        105px,
        24vw,
        145px
      );
  }

  .mad-matt-video-grid {
    grid-template-columns: 1fr;
  }

  .mad-matt-video-wide {
    grid-column: auto;
  }

  .mad-matt-shirts-inner::before,
  .mad-matt-shirts-inner::after {
    display: none;
  }

}


/* =========================================================
   COMMON PHONE WIDTHS
   360 / 375 / 390 / 412 / 430
   ========================================================= */

@media (max-width: 520px) {

  .pirate-screen {
    min-height: 470px;
  }

  .mad-matt-waterline-brand h1 {
    font-size:
      clamp(
        1.65rem,
        8vw,
        2.7rem
      );
  }

  .mad-matt-brand-eyebrow {
    letter-spacing: 0.12em;
  }

  .mad-matt-brand-subtitle {
    letter-spacing: 0.1em;
  }

  .mad-matt-old-site {
    padding-top:
      clamp(
        100px,
        27vw,
        130px
      );
  }

  .mad-matt-section-title h2 {
    max-width: 78%;
  }

  .mad-matt-contact a {
    font-size:
      clamp(
        30px,
        9.5vw,
        44px
      );
  }

}


/* =========================================================
   VERY NARROW PHONES
   320 / 340 RANGE
   ========================================================= */

@media (max-width: 350px) {

  .pirate-screen {
    min-height: 450px;
  }

  .mad-matt-waterline-brand h1 {
    font-size: 1.58rem;
  }

  .mad-matt-brand-eyebrow {
    font-size: 7.5px;

    letter-spacing: 0.09em;
  }

  .mad-matt-brand-subtitle {
    font-size: 9.5px;

    letter-spacing: 0.08em;
  }

  .mad-matt-service-grid {
    grid-template-columns: 1fr;
  }

  .mad-matt-service {
    min-height: 126px;
  }

  .mad-matt-contact a {
    font-size: 29px;
  }

}


/* =========================================================
   SHORT LANDSCAPE PHONES
   ========================================================= */

@media
  (orientation: landscape)
  and
  (max-height: 560px) {

  .pirate-screen {
    height: 100svh;

    min-height: 340px;
  }

  .pirate-r {
    font-size:
      min(
        62vw,
        80vh
      );
  }

  .pirate-compass {
    top: 48%;

    width:
      min(
        70vmin,
        390px
      );
  }

  .mad-matt-waterline-brand h1 {
    font-size:
      clamp(
        2rem,
        6vw,
        3.5rem
      );
  }

  .mad-matt-brand-eyebrow {
    font-size: 8px;
  }

  .mad-matt-brand-subtitle {
    font-size: 10px;
  }

  .mad-matt-old-site {
    padding-top: 110px;
  }

}


/* =========================================================
   LARGE / ULTRAWIDE DESKTOP
   ========================================================= */

@media (min-width: 1600px) {

  .mad-matt-waterline-brand h1 {
    font-size: 5.25rem;
  }

  .mad-matt-old-site {
    padding-top: 190px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  .pirate-compass::after,
  .mad-matt-surface-wave,
  .mad-matt-surface-wave-two,
  .mad-matt-surface-foam,
  .mad-matt-brand-eyebrow,
  .mad-matt-waterline-brand h1,
  .mad-matt-brand-subtitle,
  .mad-matt-divider,
  .mad-matt-intro-copy p,
  .mad-matt-section-title h2,
  .mad-matt-service-icon,
  .mad-matt-service strong,
  .mad-matt-service small,
  .mad-matt-shirts-kicker,
  .mad-matt-shirts h3,
  .mad-matt-shirts-punchline,
  .mad-matt-shirts-copy,
  .mad-matt-contact-mark,
  .mad-matt-contact-label,
  .mad-matt-contact a,
  .mad-matt-contact-name,
  .mad-matt-contact-location {
    animation: none !important;
  }

  .pirate-r,
  .pirate-compass,
  .mad-matt-service,
  .mad-matt-video,
  .mad-matt-reveal {
    transition: none !important;
  }

  .mad-matt-reveal {
    opacity: 1;

    transform: none;
  }

}