/* n3 Group — static site styles */

@font-face {
  font-family: "PN Extrabold";
  src: url("../fonts/ProximaNova-Extrabld.woff2") format("woff2"), url("../fonts/ProximaNova-Extrabld.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PN";
  src: url("../fonts/ProximaNova-Regular.woff2") format("woff2"), url("../fonts/ProximaNova-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PN Alt";
  src: url("../fonts/ProximaNovaA-Light.woff2") format("woff2"), url("../fonts/ProximaNovaA-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PN Alt";
  src: url("../fonts/ProximaNovaA-Bold.woff2") format("woff2"), url("../fonts/ProximaNovaA-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.12);
  --charcoal: #212121;
  --black: #000000;
  --display: "PN Extrabold", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --text: "PN Alt", "PN", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --header-h: 80px;
  --footer-h: 44px;
  --gutter: clamp(20px, 3vw, 40px);
}

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

html {
  background: var(--black);
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed page gradient (works on iOS, unlike background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--white); color: var(--black);
  font: 700 12px/1 var(--text); letter-spacing: 1px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, var(--charcoal) 0%, rgba(33, 33, 33, 0) 100%);
}
.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.menu-toggle {
  justify-self: start;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; padding: 0 12px;
  background: none; border: 0; cursor: pointer; color: var(--white);
}
.menu-toggle span { display: block; height: 1px; width: 20px; background: currentColor; }
.site-logo { justify-self: center; display: block; }
.site-logo img { height: 40px; width: auto; }

/* ---------- Full-screen side menu ---------- */

.menu-panel {
  position: fixed; inset: 0 auto 0 0; z-index: 70;
  width: max(40vw, 320px); max-width: 100vw;
  padding: 100px 48px;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s linear 0.45s;
}
.menu-panel:target,
.menu-open .menu-panel {
  transform: none;
  visibility: visible;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li + li { margin-top: 22px; }
.menu-panel ul a {
  display: inline-block;
  font-family: var(--display); font-weight: 800;
  font-size: 25px; line-height: 50px; letter-spacing: 1.67px;
  text-decoration: none;
  color: var(--charcoal);
  -webkit-text-stroke: 1px var(--white);
  transition: color 0.3s;
}
.menu-panel ul a:hover,
.menu-panel ul a[aria-current="page"] { color: var(--white); }
@supports not (-webkit-text-stroke: 1px white) {
  .menu-panel ul a { color: var(--muted); }
}
.menu-close {
  position: absolute; top: 22px; left: 30px;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 8px 4px;
  background: none; border: 0; cursor: pointer; color: var(--white); text-decoration: none;
  font: 700 10px/1 var(--text); letter-spacing: 2px; text-transform: uppercase;
}
.menu-close svg { width: 16px; height: 16px; }
.menu-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.45s;
}
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */

.site-footer {
  position: fixed; inset: auto 0 0; z-index: 40;
  min-height: var(--footer-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(33, 33, 33, 0) 0%, var(--charcoal) 100%);
  font: 700 9px/1.4 var(--text); letter-spacing: 2px; text-transform: uppercase;
}
.site-footer p { margin: 0; }
.site-footer ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.site-footer li + li::before { content: "|"; margin-right: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Shared type ---------- */

main {
  display: block;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
}

.display {
  margin: 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 8.4vw, 120px);
  line-height: 0.86;
  letter-spacing: 0.08em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.35);
}
.display--md { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: 0.06em; }

.lede {
  max-width: 34em;
  margin: 28px 0 0;
  font: 400 18px/1.15 "PN", var(--text); letter-spacing: 0.03em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.text-link {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font: 700 14px/20px var(--text); letter-spacing: 2px;
  text-decoration: none;
}
.text-link:hover { opacity: 0.75; }

/* ---------- Home ---------- */

.home {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid;
  grid-template-rows: 1fr auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
  padding-bottom: 28px;
  overflow: hidden;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 48px clamp(0px, 5vw, 70px) 32px;
}
.hero-media {
  position: absolute; z-index: 0;
  top: 6%; bottom: 4%; left: 34%; right: 6%;
  overflow: hidden;
  background: url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.55) 100%);
}
.hero-copy, .typed-words { position: relative; z-index: 1; }
.hero-copy .text-link { margin-top: 44px; }

.typed-words {
  justify-self: end;
  min-width: 13em;
  margin: 0; padding: 0; list-style: none;
  font: 400 18px/29px "PN", var(--text);
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}
.typed-words li { min-height: 29px; }
.js .typed-words.is-typing li { visibility: hidden; }
.js .typed-words.is-typing li.is-shown { visibility: visible; }
.typed-words .caret {
  display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: currentColor; vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.brand-logos {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center; justify-items: center; gap: 32px;
  margin: 0; padding: 8px clamp(0px, 8vw, 120px) 0; list-style: none;
}
.brand-logos a { display: block; transition: opacity 0.3s; }
.brand-logos a:hover { opacity: 0.8; }
.brand-logos img { height: auto; max-height: 82px; width: auto; max-width: 100%; }

/* ---------- Our businesses ---------- */

.snap { scroll-snap-type: y proximity; }

.biz {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid; align-items: center;
  padding: 40px var(--gutter);
  scroll-snap-align: start;
  scroll-margin-top: var(--header-h);
}
.biz-media {
  position: absolute; z-index: 0;
  top: 40px; bottom: 40px; left: 17%; right: 16%;
  overflow: hidden;
}
.biz-media img { width: 100%; height: 100%; object-fit: cover; }
.biz-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: center; gap: 40px;
  padding-left: clamp(0px, 5vw, 76px);
}
.biz-copy { text-shadow: 0 0 24px rgba(0, 0, 0, 0.45); }
.biz-copy h3 {
  margin: 0 0 18px;
  font: 400 20px/1.2 "PN", var(--text); letter-spacing: 0.04em;
}
.biz-copy p { margin: 0 0 14px; font-family: "PN", var(--text); font-weight: 400; font-size: 18px; line-height: 1.12; letter-spacing: 0.02em; }
.biz-copy .text-link { margin-top: 12px; }

.biz-nav { display: flex; gap: 12px; margin-top: 40px; }
.biz-nav a {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-decoration: none; transition: background 0.3s;
}
.biz-nav a:hover { background: rgba(255, 255, 255, 0.15); }
.biz-nav a[aria-disabled="true"] { opacity: 0.3; pointer-events: none; }
.biz-nav svg { width: 12px; height: 12px; }

/* ---------- About ---------- */

.about {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 1fr);
  align-items: center; gap: 30px;
  padding: 40px var(--gutter) 40px 0;
}
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; }
.about-media__copy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-left: 32%;
}
.about-media__copy .text-link { margin-top: 40px; align-self: flex-start; }
.about-copy { max-width: 680px; }
.about-copy h2 {
  margin: 34px 0 14px;
  font: 700 15px/1.3 var(--text); letter-spacing: 2px;
}
.about-copy h2:first-child { margin-top: 0; }
.about-copy p, .about-copy li { margin: 0; font-family: "PN", var(--text); font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: 0.04em; }
.about-copy ol, .about-copy ul { margin: 0; padding-left: 1.3em; }
.about-copy ul { margin-top: 14px; }

/* ---------- Team ---------- */

.team { padding: 60px var(--gutter) calc(var(--footer-h) + 40px); }
.team-group {
  display: grid;
  grid-template-columns: minmax(260px, 30%) minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 72px clamp(0px, 4vw, 50px);
}
.team-head .display { font-size: clamp(32px, 3.6vw, 56px); letter-spacing: 0.06em; overflow-wrap: anywhere; }
.team-arrows { display: flex; gap: 8px; margin-top: 32px; }
.team-arrows button {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 0;
  background: none; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  cursor: pointer; transition: opacity 0.3s, background 0.3s;
}
.team-arrows button:hover { background: rgba(255, 255, 255, 0.15); }
.team-arrows button:disabled { opacity: 0.3; cursor: default; background: none; }
.team-arrows svg { width: 14px; height: 14px; }

.team-track {
  display: flex; gap: 30px;
  margin: 0; padding: 0 0 6px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.team-track::-webkit-scrollbar { display: none; }
.member { flex: 0 0 clamp(240px, 21vw, 300px); scroll-snap-align: start; }
.member img {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: center 20%;
  filter: grayscale(1);
}
.member h3 {
  margin: 18px 0 4px;
  font: 700 14px/1.3 var(--text); letter-spacing: 2px; text-transform: uppercase;
}
.member .role {
  margin: 0 0 14px;
  font: 700 10px/1.4 var(--text); letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
}
.member .bio { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85); }

/* ---------- Contact ---------- */

.contact {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 60px;
  padding: 40px var(--gutter);
}
.contact-details { padding-left: clamp(0px, 0.5vw, 10px); }
.contact-lines { margin: 64px 0 0; }
.contact-lines a {
  display: inline-block; margin-bottom: 18px;
  font: 700 11px/1.4 var(--text); letter-spacing: 4px; text-decoration: none;
}
.contact-lines a:hover { text-decoration: underline; }
.contact-details address { margin-top: 70px; font-style: normal; font-size: 16px; line-height: 1.5; font-weight: 400; font-family: "PN", var(--text); }

.contact-form { max-width: 560px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 26px; }
.field input, .field textarea {
  width: 100%;
  padding: 14px 0;
  background: none; color: var(--white);
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.6); border-radius: 0;
  font: 400 16px/1.4 "PN", var(--text);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.7); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); box-shadow: 0 1px 0 var(--white); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #ff8a80; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  background: none; color: var(--white);
  border: 1px solid var(--white); border-radius: 0; cursor: pointer;
  font: 700 11px/1 var(--text); letter-spacing: 2px; text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.btn:hover { background: var(--white); color: var(--black); }
.form-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.form-status { margin: 16px 0 0; font-size: 14px; min-height: 1.4em; }

/* ---------- Legal pages ---------- */

.legal { max-width: 800px; margin: 0 auto; padding: 66px var(--gutter) calc(var(--footer-h) + 80px); }
.legal h1 { text-align: center; margin-bottom: 64px; font-size: clamp(36px, 5vw, 64px); }
.legal h2 { margin: 44px 0 14px; font: 700 14px/1.4 var(--text); letter-spacing: 2px; text-transform: uppercase; }
.legal p, .legal li { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.legal address { font-style: normal; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.legal a { text-underline-offset: 3px; }

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px clamp(20px, 8vw, 110px);
}
.not-found p { margin: 28px 0 40px; font-size: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .typed-words { justify-self: start; }
  .biz-inner { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .biz-media { left: 8%; right: 0; }
  .about { grid-template-columns: 1fr; padding: 32px var(--gutter); }
  .about-media { margin-left: calc(var(--gutter) * -1); }
  .about-media__copy { padding-left: var(--gutter); }
  .team-group { grid-template-columns: 1fr; padding-left: 0; }
  .team-arrows { margin-top: 20px; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .site-logo { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-logo img { height: 34px; }
  .menu-toggle { grid-column: 2; grid-row: 1; justify-self: end; align-items: flex-end; }
  .menu-panel { width: 100vw; padding: 90px 30px; }
  .menu-panel ul a { font-size: 22px; line-height: 44px; }

  .site-footer { position: static; flex-direction: column; align-items: flex-start; padding: 16px var(--gutter) 20px; }
  main { padding-bottom: 0; }

  .home { padding-bottom: 32px; }
  .hero { padding-top: 32px; }
  .hero-media { top: 20%; bottom: -8%; left: 22%; right: calc(var(--gutter) * -1); }
  .lede { font-size: 15px; line-height: 1.35; }
  .typed-words { display: none; }
  .brand-logos { grid-template-columns: 1fr; justify-items: start; gap: 24px; padding: 24px 0 0; }
  .brand-logos img { max-height: 70px; }

  .biz { min-height: auto; padding: 0 var(--gutter) 56px; }
  .biz-media { position: relative; inset: auto; margin: 0 calc(var(--gutter) * -1) -64px; aspect-ratio: 16 / 10; }
  .biz-copy p { font-size: 16px; line-height: 1.35; }
  .biz-nav { display: none; }

  .about-media__copy .text-link { margin-top: 24px; }
  .contact { grid-template-columns: 1fr; gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .contact-lines { margin-top: 36px; }
  .contact-details address { margin-top: 28px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .team { padding-bottom: 48px; }
  .legal { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
