@font-face {
  font-family: "Fjord One";
  src: url("../fonts/fjord-one.woff") format("woff"),
       url("../fonts/fjord-one.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #17121c;
  --gold: #ffc20e;
  --red: #c30d0d;
  --panel: rgba(12, 9, 16, 0.46);
  --line: rgba(255, 255, 255, 0.32);
  --sans: "Poppins", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --serif: "Fjord One", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #1b1725;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: #1b1725;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  color: #111;
  background: #fff;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

/* Original FINOX fixed-frame navigation */
.brand {
  position: fixed;
  z-index: 80;
  top: -89px;
  left: -49px;
  width: 300px;
  height: 300px;
}

.brand img,
.corner-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.corner-mark {
  position: fixed;
  z-index: 80;
  top: -33px;
  right: -33px;
  width: 198px;
  height: 198px;
}

.frame-nav a {
  position: fixed;
  z-index: 75;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.frame-nav a::after {
  position: absolute;
  top: calc(100% + 7px);
  left: -0.25em;
  width: 0;
  border-top: 2px solid currentColor;
  content: "";
  transition: width 700ms cubic-bezier(1, 0, 0, 1);
}

.frame-nav a:hover::after,
.frame-nav a[aria-current="page"]::after {
  width: 105%;
}

.nav-about {
  top: 39px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-vision {
  top: 23%;
  right: 58px;
  transform: rotate(90deg) translateX(100%);
  transform-origin: 100% 0;
}

.nav-focus {
  top: 70%;
  right: 58px;
  transform: rotate(90deg) translateX(100%);
  transform-origin: 100% 0;
}

.nav-contact {
  top: 66%;
  left: 58px;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: 0 0;
}

.mobile-toggle,
.mobile-panel {
  display: none;
}

/* Background slideshow */
.background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #1b1725;
}

.background::after {
  position: absolute;
  z-index: 10;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, transparent 0, rgba(8, 6, 12, 0.08) 52%, rgba(8, 6, 12, 0.42) 100%),
    rgba(13, 9, 17, 0.32);
  content: "";
}

.inner-page .background::after {
  background:
    linear-gradient(90deg, rgba(8, 6, 12, 0.65), rgba(8, 6, 12, 0.38) 48%, rgba(8, 6, 12, 0.58)),
    rgba(8, 6, 12, 0.18);
}

.background span {
  position: absolute;
  inset: -5%;
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: imageAnimation 42s linear infinite;
  will-change: transform, opacity;
}

.background span:nth-child(1) { background-image: url("../images/slide-1.jpg"); animation-delay: 0s; }
.background span:nth-child(2) { background-image: url("../images/slide-2.jpg"); animation-delay: 6s; }
.background span:nth-child(3) { background-image: url("../images/slide-3.jpg"); animation-delay: 12s; }
.background span:nth-child(4) { background-image: url("../images/slide-4.jpg"); animation-delay: 18s; }
.background span:nth-child(5) { background-image: url("../images/slide-5.jpg"); animation-delay: 24s; }
.background span:nth-child(6) { background-image: url("../images/slide-6.jpg"); animation-delay: 30s; }
.background span:nth-child(7) { background-image: url("../images/slide-7.jpg"); animation-delay: 36s; }

@keyframes imageAnimation {
  0% { opacity: 0; transform: scale(1); animation-timing-function: ease-in; }
  4% { opacity: 1; }
  13% { opacity: 1; transform: scale(1.07); animation-timing-function: ease-out; }
  18% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; }
}

/* Loading animation mirrors the WordPress theme */
.loader {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  background: #1e0f24;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-track {
  position: relative;
  width: min(600px, 86vw);
  height: 36px;
  overflow: visible;
}

.loader-track span {
  position: absolute;
  width: 20px;
  height: 36px;
  opacity: 0;
  color: #35c4f0;
  font-family: Arial, sans-serif;
  animation: loaderMove 2s linear infinite;
  transform: rotate(180deg);
}

.loader-track span:nth-child(2) { animation-delay: 0.2s; }
.loader-track span:nth-child(3) { animation-delay: 0.4s; }
.loader-track span:nth-child(4) { animation-delay: 0.6s; }
.loader-track span:nth-child(5) { animation-delay: 0.8s; }
.loader-track span:nth-child(6) { animation-delay: 1s; }
.loader-track span:nth-child(7) { animation-delay: 1.2s; }

@keyframes loaderMove {
  0% { left: 0; opacity: 0; transform: rotate(180deg); }
  35% { left: 41%; opacity: 1; transform: rotate(0); }
  65% { left: 59%; opacity: 1; transform: rotate(0); }
  100% { left: 100%; opacity: 0; transform: rotate(-180deg); }
}

/* Home */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding: 150px clamp(115px, 12.5vw, 190px) 105px;
}

.hero-copy {
  width: min(820px, 74vw);
}

.hero h1 {
  min-height: 62px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.35;
}

.typed-text::after {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: #fff;
  content: "";
  animation: blink 500ms infinite alternate;
}

@keyframes blink {
  to { opacity: 0; }
}

.quotes {
  position: relative;
  min-height: 165px;
  margin-top: 12px;
  padding: 0 38px;
}

.quote {
  position: absolute;
  inset: 0 38px;
  display: flex;
  margin: 0;
  align-items: flex-start;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(22px, 2.15vw, 30px);
  font-weight: 400;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.quote.is-active {
  opacity: 1;
  transform: translateY(0);
}

.quote-control {
  position: absolute;
  z-index: 4;
  top: 35px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.quote-control::before {
  width: 10px;
  height: 10px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
}

.quote-prev {
  left: -5px;
}

.quote-prev::before {
  transform: rotate(-45deg);
}

.quote-next {
  right: -5px;
}

.quote-next::before {
  transform: rotate(135deg);
}

/* Inner pages */
.content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 300px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 178px 0 115px;
}

.content.narrow {
  width: min(960px, calc(100% - 340px));
}

.content h1,
.content h2,
.content h3 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 400;
}

.content h1 {
  margin: 0 0 30px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
}

.content h2 {
  margin: 54px 0 20px;
  font-size: clamp(28px, 3vw, 38px);
}

.content h3 {
  margin: 38px 0 12px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1.4;
}

.content p,
.content li {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.58;
  letter-spacing: 0.015em;
}

.content p {
  margin: 0 0 28px;
}

.content strong {
  color: var(--gold);
  font-weight: 400;
}

.lead {
  font-size: clamp(21px, 1.9vw, 28px) !important;
}

.section-kicker {
  margin-top: 58px !important;
  color: #fff;
  font-size: clamp(28px, 3vw, 40px) !important;
}

.pillar-grid {
  display: grid;
  gap: 0;
}

.pillar {
  padding: 27px 0 10px;
  border-top: 1px solid var(--line);
}

.pillar h3 {
  margin-top: 0;
}

.vision-block {
  padding: 18px 0 48px;
  border-bottom: 1px solid var(--line);
}

.vision-block + .vision-block {
  padding-top: 48px;
  text-align: right;
}

.vision-block p {
  max-width: 1020px;
}

.vision-block + .vision-block p {
  margin-left: auto;
}

.focus-list {
  display: grid;
  margin: 35px 0 44px;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.focus-list li {
  position: relative;
  padding-left: 28px;
}

.focus-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "‣";
}

/* Contact */
.contact-intro {
  max-width: 830px;
  padding-bottom: 33px;
  border-bottom: 1px solid var(--line);
}

.contact-intro .eyebrow {
  margin-bottom: 38px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.contact-intro h1 {
  margin-bottom: 24px;
}

.contact-intro p {
  font-size: clamp(18px, 1.55vw, 23px);
}

.contact-form {
  display: grid;
  max-width: 830px;
  margin-top: 38px;
  gap: 23px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
}

.required {
  color: var(--gold);
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 2px;
  color: #111;
  background: rgba(255, 255, 255, 0.78);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #fff;
  border-radius: 2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover {
  color: #16111d;
  background: var(--gold);
}

.form-status {
  min-height: 25px;
  margin: 0 !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
}

/* 404 */
.error-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(900px, calc(100% - 300px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 100px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-card {
  width: 100%;
}

.error-card .error-code {
  margin: 0;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(130px, 19vw, 270px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.76);
}

.error-card h1 {
  margin: 50px 0 18px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 400;
}

.error-card p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.6;
}

.home-button {
  position: relative;
  display: inline-flex;
  min-width: 210px;
  min-height: 54px;
  margin-top: 37px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10, 7, 14, 0.28);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease;
}

.home-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--gold);
  content: "";
  transform: translateX(-105%);
  transition: transform 420ms cubic-bezier(0.77, 0, 0.175, 1);
}

.home-button:hover {
  border-color: var(--gold);
  color: #17121c;
}

.home-button:hover::before {
  transform: translateX(0);
}

/* Custom cursor, only on precise pointing devices */
.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  display: none;
  border-radius: 50%;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled a,
  body.cursor-enabled button {
    cursor: none;
  }

  .cursor-enabled .cursor-dot,
  .cursor-enabled .cursor-ring {
    display: block;
  }

  .cursor-dot {
    width: 5px;
    height: 5px;
    background: #fff;
    transform: translate(-50%, -50%);
  }

  .cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    transform: translate(-50%, -50%);
    transition: width 180ms ease, height 180ms ease, border-color 180ms ease;
  }

  .cursor-ring.is-hovering {
    width: 48px;
    height: 48px;
    border-color: var(--gold);
  }
}

@media (max-width: 1280px) {
  .frame-nav {
    display: none;
  }

  .brand {
    top: -75px;
    left: -42px;
    width: 270px;
    height: 270px;
  }

  .corner-mark {
    display: none;
  }

  .mobile-toggle {
    position: fixed;
    z-index: 110;
    top: 27px;
    right: 27px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 8, 16, 0.32);
    cursor: pointer;
    place-items: center;
  }

  .mobile-toggle span,
  .mobile-toggle::before,
  .mobile-toggle::after {
    display: block;
    width: 19px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .mobile-toggle span {
    margin: 4px 0;
  }

  .mobile-toggle[aria-expanded="true"] span {
    opacity: 0;
  }

  .mobile-toggle[aria-expanded="true"]::before {
    transform: translateY(5px) rotate(45deg);
  }

  .mobile-toggle[aria-expanded="true"]::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .mobile-panel {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    visibility: hidden;
    padding: 110px 38px 55px;
    align-items: center;
    background: rgba(20, 13, 25, 0.97);
    opacity: 0;
    transform: translateX(-100%);
    transition: visibility 350ms ease, opacity 350ms ease, transform 350ms ease;
  }

  .mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-panel ul {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-panel li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .mobile-panel a {
    display: block;
    padding: 19px 4px;
    font-family: var(--serif);
    font-size: clamp(25px, 5vw, 39px);
  }

  .content,
  .content.narrow,
  .error-content {
    width: min(920px, calc(100% - 160px));
  }
}

@media (max-width: 767px) {
  .brand {
    top: -55px;
    left: -25px;
    width: 205px;
    height: 205px;
  }

  .mobile-toggle {
    top: 20px;
    right: 20px;
  }

  .background span {
    inset: -3%;
  }

  .hero {
    min-height: 100svh;
    padding: 150px 38px 70px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    min-height: 91px;
    font-size: clamp(25px, 7.3vw, 34px);
  }

  .quotes {
    min-height: 185px;
    padding: 0 28px;
  }

  .quote {
    right: 28px;
    left: 28px;
    font-size: clamp(18px, 5.2vw, 24px);
    line-height: 1.5;
  }

  .quote-prev {
    left: -11px;
  }

  .quote-next {
    right: -11px;
  }

  .content,
  .content.narrow,
  .error-content {
    width: calc(100% - 56px);
    padding: 145px 0 78px;
  }

  .error-content {
    min-height: 100svh;
    padding-top: 125px;
  }

  .error-card .error-code {
    font-size: clamp(118px, 45vw, 175px);
  }

  .error-card h1 {
    margin-top: 40px;
  }

  .content h1 {
    margin-bottom: 25px;
    font-size: 37px;
  }

  .content h2 {
    margin-top: 44px;
  }

  .content h3 {
    font-size: 25px;
  }

  .content p,
  .content li {
    font-size: 18px;
    line-height: 1.55;
    text-align: left;
  }

  .vision-block + .vision-block {
    text-align: left;
  }

  .contact-form {
    gap: 19px;
  }

  .mobile-panel {
    padding-inline: 28px;
  }
}

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

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

  .background span {
    opacity: 0;
  }

  .background span:first-child {
    opacity: 1;
  }

  .typed-text::after {
    display: none;
  }
}
