:root {
  --ob: #090909;
  --ch: #171414;
  --bur: #641c20;
  --cr: #b82027;
  --or: #c56b36;
  --gold: #e6a45c;
  --sh: #e8d4b0;
  --iv: #f3ebdd;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  scroll-behavior: auto;
}
body {
  background: var(--ob);
  color: var(--iv);
  font:
    300 1.05rem/1.8 Manrope,
    sans-serif;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.1;
}
.script {
  font-family: "Pinyon Script", cursive;
  color: var(--cr);
}
.eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
}
section {
  position: relative;
  padding: min(14vw, 9rem) 6vw;
}
.wrap {
  max-width: 1100px;
  margin: auto;
}
#fx {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
main,
nav,
footer {
  position: relative;
  z-index: 2;
}
/* loader */
/* nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5vw;
  transition: 0.5s;
}
/* The blurred bar lives on a pseudo-element. backdrop-filter on <nav> itself would make
   <nav> the containing block of the fixed mobile menu (nav ul), which then jumped from the
   nav box to the full screen the moment the menu opened after scrolling. */
nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
nav.s::before {
  opacity: 1;
}
nav.s {
  padding: 0.8rem 5vw;
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav a {
  color: var(--iv);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.logo {
  font-family: "Playfair Display";
  letter-spacing: 0.2em;
  font-size: 1.2rem;
}
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 1px solid var(--cr);
  color: var(--iv);
  background: linear-gradient(135deg, var(--bur), var(--cr));
  text-decoration: none;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: 0.4s;
}
.btn:hover {
  box-shadow: 0 0 40px rgba(184, 32, 39, 0.6);
  transform: translateY(-2px);
}
.btn.ghost {
  background: none;
  border-color: var(--gold);
  color: var(--gold);
}
.sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.65rem;
}

/* hero */
#home {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 12vh;
  background:
    radial-gradient(
      ellipse at 50% 85%,
      rgba(230, 164, 92, 0.45),
      transparent 60%
    ),
    linear-gradient(180deg, #090909 0%, var(--bur) 60%, var(--or) 120%);
}
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.85)),
    linear-gradient(0deg, #090909 2%, transparent 45%);
}
#home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: gr 0.6s steps(3) infinite;
}
@keyframes gr {
  50% {
    transform: translate(-2%, 2%);
  }
}
#home .wrap {
  position: relative;
  z-index: 2;
}
#home h1 {
  font-size: clamp(2.6rem, 10vw, 8rem);
  letter-spacing: 0.02em;
  text-shadow: 0 8px 60px #000;
}
#home h1 em {
  font-family: "Pinyon Script";
  font-style: normal;
  font-weight: 400;
  color: var(--cr);
  font-size: 1.15em;
  text-shadow: 0 0 40px rgba(184, 32, 39, 0.6);
}
.by {
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sh);
  margin: 1.5rem 0 2.5rem;
  font-size: 0.85rem;
}
.tag {
  font: italic 400 clamp(1.1rem, 2vw, 1.5rem) "Cormorant Garamond";
  max-width: 40ch;
  margin-bottom: 2.5rem;
  color: var(--sh);
}
/* book */
.stage {
  height: min(86vh, 820px);
  position: relative;
  cursor: grab;
}
.stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}
.stage:active {
  cursor: grabbing;
}
.hint {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--or);
  text-transform: uppercase;
}
#book {
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(100, 28, 32, 0.55),
    var(--ob) 70%
  );
}
/* story */
#story {
  background: linear-gradient(180deg, var(--ob), var(--ch));
}
#story h2 {
  font-size: clamp(2rem, 6vw, 4.6rem);
  margin: 1.2rem 0 2.5rem;
  max-width: 16ch;
}
#story p {
  max-width: 100%;
  font-size: 3.15rem;
  color: var(--sh);
  margin-bottom: 1.4rem;
  text-align: justify;
}
#story p:first-of-type::first-letter {
  font: 700 4rem/0.8 "Playfair Display";
  float: left;
  padding: 0.4rem 0.6rem 0 0;
  color: var(--cr);
}
/* themes */
#themes {
  text-align: center;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(197, 107, 54, 0.5),
      transparent 60%
    ),
    linear-gradient(180deg, var(--ch), var(--bur) 80%, var(--ob));
  overflow: hidden;
}
.statement {
  font: italic 400 clamp(2.2rem, 5.8vw, 4.8rem) / 1.3 "Cormorant Garamond";

  max-width: 30ch;
  margin: 0 auto 4rem;
  color: var(--iv);
}
.statement b {
  color: var(--gold);
  font-weight: 400;
}
.words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 3rem;
}
.words span {
  font: 500 clamp(1.2rem, 3vw, 2rem) "Cormorant Garamond";
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sh);
  position: relative;
  font-size: 15px;
}
.words span + span::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--cr);
  transform: rotate(45deg);
}
/* author */
#author {
  background: var(--ch);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6vw;
  align-items: center;
}
.ph {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--bur), var(--ob));
  border: 1px solid rgba(230, 164, 92, 0.35);
  position: relative;
  overflow: hidden;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px #000;
}
#author h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 1rem 0 1.5rem;
}
#author p {
  color: var(--sh);
  margin-bottom: 1.2rem;
  text-align: justify;
}
.prev {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 164, 92, 0.3);
}
.prev strong {
  display: block;
  font: 500 1.6rem "Cormorant Garamond";
  letter-spacing: 0.2em;
  color: var(--gold);
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* details */
#details dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}
#details div {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(230, 164, 92, 0.3);
}
#details dt {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--or);
}
#details dd {
  font: 500 1.7rem/1.3 "Cormorant Garamond";
  margin-top: 0.5rem;
}
#details h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 1rem 0 3rem;
}
/* cta */
#cta {
  text-align: center;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(100, 28, 32, 0.6),
    var(--ob) 70%
  );
}
#cta h2 {
  font: italic 400 clamp(1.8rem, 5vw, 3.6rem)/1.25 "Cormorant Garamond";
  max-width: 22ch;
  margin: 0 auto 1rem;
}
#cta .btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
footer {
  padding: 3rem 6vw;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--or);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.phead {
  padding-top: min(24vw, 12rem);
  padding-bottom: 3rem;

  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(100, 28, 32, 0.6), var(--ob) 70%),
    url("../assets/hero.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.phead h1 {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  margin: 1rem 0;
  max-width: 18ch;
}
.phead p.lead {
  font: italic 400 1.4rem "Cormorant Garamond";
  color: var(--sh);
  max-width: 55ch;
}
.crumbs {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
}
.crumbs a {
  color: var(--or);
  text-decoration: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.card {
  display: block;
  padding: 2rem;
  border: 1px solid rgba(230, 164, 92, 0.3);
  color: var(--iv);
  text-decoration: none;
  transition: 0.4s;
  background: rgba(23, 20, 20, 0.6);
}
.card:hover {
  border-color: var(--cr);
  transform: translateY(-4px);
}
.card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.card span {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 0.8rem;
  z-index: 100;
}
.skip:focus {
  left: 0;
}
footer nav {
  position: static;
  display: block;
  background: none;
  padding: 0 0 1rem;
}
footer a {
  color: var(--sh);
  text-decoration: none;
  margin: 0 0.8rem;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  font-size: 1px !important;
}

.bookgrid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5vw;
  align-items: center;
}
.bookgrid .stage {
  height: min(82vh, 780px);
}
.bookgrid #details h2 {
  margin-bottom: 1.5rem;
}
.bookgrid #details dl {
  grid-template-columns: 1fr;
}
.bookgrid #details div {
  padding: 1.1rem 0;
}
.bookgrid #details dd {
  font-size: 1.5rem;
}
@media (max-width: 860px) {
  .bookgrid {
    grid-template-columns: 1fr;
  }
  .bookgrid .stage {
    height: min(70vh, 600px);
  }
  #story p {
    font-size: 1.5rem;
  }
  .words {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
  }
  @media (max-width: 768px) {
    .words span + span::before {
      display: none;
    }
  }
}

#stage2 {
  height: min(78vh, 720px);
}

#herovid {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  filter: blur(var(--vblur, 6px)) saturate(1.1) contrast(1.05);
  will-change: transform;
  pointer-events: none;
}
#herovid.on {
  opacity: 0.85;
}

html.nav-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}
.burger {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--iv);
  transition: 0.35s;
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}
nav.open .burger span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
nav.open .burger span:nth-child(2) {
  opacity: 0;
}
nav.open .burger span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}
.mbuy {
  display: none;
}
nav a[aria-current="page"] {
  color: var(--gold);
}
@media (max-width: 760px) {
  .logo {
    position: relative;
    z-index: 3;
    font-size: 0.72rem;
  }
  .burger {
    display: block;
  }
  .navbuy {
    display: none;
  }
  nav ul {
    position: fixed;
    inset: 0;
    z-index: 2;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    background: rgba(9, 9, 9, 0.97);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.4s,
      visibility 0.4s;
    padding: 5rem 6vw 2rem;
  }
  nav.open ul {
    opacity: 1;
    visibility: visible;
  }
  nav.open::before {
    opacity: 0;
  }
  nav ul a {
    font:
      500 1.8rem "Playfair Display",
      serif;
    letter-spacing: 0.12em;
    text-transform: none;
  }
  .mbuy {
    display: block;
    margin-top: 1rem;
  }
  nav ul .btn {
    font:
      600 0.8rem Manrope,
      sans-serif;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }
}

footer {
  padding: 4.5rem 6vw 2rem;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: normal;
  color: var(--sh);
  border-top: 1px solid rgba(230, 164, 92, 0.2);
  background: linear-gradient(180deg, transparent, rgba(100, 28, 32, 0.25));
}
.fwrap {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
}
.ftitle {
  font:
    700 1.1rem "Playfair Display",
    serif;
  letter-spacing: 0.2em;
  color: var(--iv);
}
.fdesc {
  max-width: 38ch;
  margin-top: 1rem;
  line-height: 1.7;
}
.fh {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.fcol ul {
  list-style: none;
  padding: 0;
}
.fcol li {
  margin: 0.55rem 0;
}
.fcol a {
  color: var(--iv);
  text-decoration: none;
  margin: 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.fcol a:hover {
  color: var(--gold);
}
.fcopy {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--or);

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.fcopy-left {
  text-align: left;
}

.fcopy-right {
  text-align: right;
}

.fcopy-right a {
  color: var(--or); /* Change this color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.fcopy-right a:hover {
  color: var(--gold);
}

@media (max-width: 760px) {
  .fwrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 760px) {
  #herovid {
    --vblur: 4px;
  }
}

/* home: hero stays pinned, content scrolls over it */
body.home #home {
  position: sticky;
  top: 0;
  z-index: 0;
}
body.home main > section:not(#home) {
  position: relative;
  z-index: 2;
  background-color: var(--ob);
}
body.home #themes {
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.7);
}
/* scroll to top */
.totop {
  position: fixed;
  right: max(1.2rem, 3vw);
  bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s,
    transform 0.4s,
    visibility 0.4s,
    background 0.3s,
    color 0.3s;
}
.totop.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.totop:hover {
  background: var(--cr);
  color: var(--iv);
  border-color: var(--cr);
}

/* home: keep hero video inside the hero and footer solid */
body.home #home {
  overflow: hidden;
}
footer {
  background-color: var(--ob);
}
/* story page */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cr), var(--gold));
}
.sx {
  padding: min(16vw, 10rem) 6vw;
  position: relative;
}
.scrub {
  font:
    500 clamp(1.6rem, 4.2vw, 3.2rem)/1.35 "Cormorant Garamond",
    Georgia,
    serif;
  max-width: 34ch;
  color: var(--iv);
}
.scrub .w {
  display: inline-block;
  margin-right: 0.28em;
  opacity: 0.15;
  will-change: opacity;
}
#story .eyebrow {
  margin-bottom: 2rem;
}
.panels {
  background: var(--ch);
}
.panels .rule {
  height: 1px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--cr), var(--gold), transparent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 3rem;
  align-items: center;
  min-height: 46vh;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(230, 164, 92, 0.15);
}
.panel .num {
  grid-row: span 2;
  font:
    300 clamp(4rem, 12vw, 9rem)/1 "Cormorant Garamond",
    serif;
  color: var(--cr);
}
.panel h2 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  align-self: end;
}
.panel p {
  max-width: 44ch;
  color: var(--sh);
  align-self: start;
}
@media (max-width: 700px) {
  .panel {
    grid-template-columns: 1fr;
  }
  .panel .num {
    grid-row: auto;
  }
}
.quote {
  overflow: hidden;
  text-align: center;
  min-height: 90vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(
      ellipse at 50% 100%,
      rgba(197, 107, 54, 0.45),
      transparent 60%
    ),
    linear-gradient(180deg, var(--ch), var(--bur) 85%, var(--ob));
}
.bigword {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(14rem, 48vw, 42rem);
  line-height: 1;
  opacity: 0;
  color: var(--cr);
  pointer-events: none;
  white-space: nowrap;
}
.quote .wrap {
  position: relative;
}
.quote .scrub {
  margin: auto;
  max-width: 40ch;
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .scrub .w {
    opacity: 1;
  }
}

/* author page */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(230, 164, 92, 0.25);
  border: 1px solid rgba(230, 164, 92, 0.25);
}
.fact {
  background: var(--ch);
  padding: 2.2rem;
}
.fact h3 {
  font:
    500 1.7rem "Cormorant Garamond",
    serif;
  margin: 0.6rem 0 0.4rem;
}
.fact p {
  color: var(--sh);
  font-size: 0.95rem;
}
#shark h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin: 1rem 0 2.5rem;
  max-width: 18ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.stats b {
  display: block;
  font:
    300 clamp(2.6rem, 6vw, 4.4rem)/1 "Cormorant Garamond",
    serif;
  color: var(--gold);
}
.stats span {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or);
}
.tl {
  border-left: 1px solid var(--cr);
  padding-left: 2rem;
  margin-left: 0.3rem;
}
.step {
  position: relative;
  padding-bottom: 2.5rem;
}
.step::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 5px);
  top: 0.55rem;
  width: 9px;
  height: 9px;
  background: var(--cr);
  transform: rotate(45deg);
}
.step h3 {
  font:
    500 1.6rem "Cormorant Garamond",
    serif;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.step p {
  max-width: 62ch;
  color: var(--sh);
}
.note {
  font-size: 0.75rem;
  color: var(--or);
  letter-spacing: 0.1em;
}

/* author photo animation + shark video */
.ph.reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(230, 164, 92, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: shine 6s ease-in-out 3s infinite;
}
@keyframes shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}
.ph.reveal {
  box-shadow: 0 0 0 rgba(184, 32, 39, 0);
  animation: glow 5s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    box-shadow: 0 20px 90px rgba(184, 32, 39, 0.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ph.reveal::before,
  .ph.reveal {
    animation: none;
  }
}
.vid {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid rgba(230, 164, 92, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  margin-bottom: 2.5rem;
}
.vid video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.vid .msg {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--or);
  background: radial-gradient(ellipse at center, var(--bur), #000);
}
.vid.empty .msg {
  display: grid;
}
.vid.empty video {
  visibility: hidden;
}
.desc {
  max-width: 68ch;
  font-size: 1.15rem;
  color: var(--sh);
}

#sharkvid {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

#sharkvid iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.fsocials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.2rem;
}

.fsocials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--or);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.fsocials a:hover {
  border-color: var(--or);
  background: var(--or);
  color: #090909;
  transform: translateY(-3px);
}

.fcopy-left {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.fcopy .logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--or);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.fcopy .logo:hover {
  opacity: 0.7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--or);
  font-size: 0.85rem;
}

.contact-item i {
  width: 18px;
  text-align: center;
}

/* Patents & Inventions Section */
#patents {
  padding: 90px 0;
}

#patents .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.patent-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.patent-card h3 {
  margin: 12px 0 18px;
}

.patent-card p {
  line-height: 1.8;
  text-align: justify;
}

.patent-meta {
  margin: 24px 0;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  #patents .grid {
    grid-template-columns: 1fr;
  }

  .patent-card {
    padding: 24px;
  }
}

/* ===== PDF flipbook viewer ===== */
html.fb-open {
  overflow: hidden;
}
.fbm {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 4.5rem 1.2rem 1.2rem;
  background: rgba(9, 9, 9, 0.95);
  backdrop-filter: blur(8px);
  animation: fbF 0.4s ease;
}
.fbm[hidden] {
  display: none;
}
.fbm-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
}
.fbm-t {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--iv);
}
.fbm-a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.fbm-a a {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.fbm-x,
.fbm-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: none;
  color: var(--iv);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.fbm-x:hover,
.fbm-nav button:hover:not(:disabled) {
  background: var(--gold);
  color: var(--ob);
}
.fbm-nav button:disabled {
  opacity: 0.3;
  cursor: default;
}
.fbm-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 240px;
  min-height: 160px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7));
  animation: fbB 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fb-book {
  margin: auto;
}
.fbm-s {
  position: absolute;
  color: var(--sh);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.fbm-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--sh);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes fbF {
  from {
    opacity: 0;
  }
}
@keyframes fbB {
  from {
    opacity: 0;
    transform: translateY(30px) rotateX(12deg) scale(0.94);
  }
}
@media (max-width: 600px) {
  .fbm-a a {
    display: none;
  }
}
.patent-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  background: #dcdbe0;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}
