/* ============================================================
   Trident — style.css (v2, orange & white)
   Hand-written, no framework. Lounge Lizard-inspired energy.
   ============================================================ */

:root {
  --orange: #ff5c1a;
  --orange-dark: #d94a0e;
  --ink: #111113;
  --paper: #ffffff;
  --gray: #f4f4f1;
  --muted: #5c5c63;
  --muted-on-dark: #a4a4ab;
  --line: #e7e7e2;
  --line-on-dark: #29292d;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
  --radius: 20px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- shared ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: var(--muted-on-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: clamp(28px, 4vw, 48px); }
h3 { font-size: 1.3rem; line-height: 1.25; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 16px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); box-shadow: 0 10px 24px -10px rgba(255, 92, 26, 0.6); }
.btn-black { background: var(--ink); color: #fff; }
.btn-black:hover { background: #000; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-small { padding: 9px 22px; font-size: 0.9rem; }

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(17, 17, 19, 0.25); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.975rem; color: var(--muted); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 27px; height: 41px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.brand-name i { font-style: normal; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero (split, LL-style) ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: min(88vh, 820px);
}
.hero-panel {
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
}
.hero-panel-inner {
  padding: clamp(48px, 6vw, 96px) clamp(28px, 4vw, 72px);
  max-width: 560px;
  margin-left: auto;
}
.hero-panel h1 { color: #fff; margin-bottom: 24px; }
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; overflow: hidden; background: var(--ink); }
.hero-knockout {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
  text-shadow: 0 6px 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: calc(5 / 12 * 100%);
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(100px, 11.5vw, 156px);
  height: clamp(100px, 11.5vw, 156px);
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.45);
}
.hero-badge svg { width: 46%; height: 72%; }

/* ---------- slideshow (Ken Burns + crossfade) ---------- */
.slideshow { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.slide.active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-dark);
}
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- showreel ---------- */
.showreel-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.showreel-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: var(--ink);
  box-shadow: 0 30px 70px -30px rgba(17, 17, 19, 0.5);
}
.showreel-card .slide { filter: brightness(0.6); }
.showreel-title {
  position: absolute;
  left: clamp(24px, 4vw, 48px);
  bottom: clamp(20px, 3.5vw, 44px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  z-index: 2;
}
.rotate-word { color: var(--orange); display: inline-block; }
.rotate-word.swap { animation: wordswap 0.45s ease; }
@keyframes wordswap {
  0% { opacity: 0; transform: translateY(0.6em); }
  100% { opacity: 1; transform: translateY(0); }
}
.showreel-dot {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  top: clamp(20px, 3vw, 40px);
  width: clamp(86px, 8vw, 120px);
  height: clamp(86px, 8vw, 120px);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.25;
  z-index: 2;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.showreel-text h2 { margin-bottom: 20px; }
.showreel-text p { color: var(--muted); margin-bottom: 18px; }
.showreel-text .btn { margin-top: 10px; }

/* ---------- stats ---------- */
.stats { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ---------- carousel (shared) ---------- */
.carousel { overflow: hidden; }
.car-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.5, 0, 0.2, 1);
}
.car-slide { flex: 0 0 100%; min-width: 0; }
.car-ui {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 4vw, 44px);
}
.car-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: inherit;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.section-dark .car-arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.car-dots { display: flex; gap: 10px; }
.car-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.car-dots button.active { opacity: 1; transform: scale(1.35); background: var(--orange); }

/* ---------- featured work ---------- */
.work { padding-bottom: clamp(56px, 7vw, 96px); }
.work-slide {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.work-info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 16px; }
.work-info p { margin-bottom: 20px; }
.work-info .tags { margin-bottom: 26px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 5px 12px;
}

.work-composite { position: relative; padding-bottom: 40px; }
.frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
  background: #fff;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.7);
}
.browser-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #1c1c20;
  border-bottom: 1px solid var(--line-on-dark);
}
.browser-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a40; }
.phone {
  position: absolute;
  right: -6px;
  bottom: 0;
  width: clamp(110px, 18%, 170px);
  border-radius: 18px;
  overflow: hidden;
  border: 4px solid #1c1c20;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}
.work-composite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.ghost-mark {
  width: clamp(140px, 17vw, 210px);
  height: clamp(213px, 25.8vw, 319px);
  opacity: 0.85;
  animation: floaty 5s ease-in-out infinite;
}
.work .car-ui { justify-content: center; color: #fff; }

/* ---------- why choose us ---------- */
.why { background: var(--orange); color: #fff; }
.why-inner {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.why-title {
  font-size: clamp(3rem, 7.5vw, 6.2rem);
  color: #fff;
  margin-bottom: 8px;
}
.why-sub {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 32px;
}
.why-slide h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 14px; }
.why-slide p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; max-width: 46ch; }
.why-car .car-arrow { color: #fff; }
.why-car .car-arrow:hover { background: #fff; color: var(--orange); }
.why-car .car-dots button.active { background: #fff; }

/* ---------- reviews ---------- */
.reviews { background: var(--gray); }
.stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 16px; font-size: 1.05rem; }
.review blockquote { font-size: 1rem; color: var(--ink); margin: 0 0 20px; }
.review figcaption { display: flex; flex-direction: column; gap: 2px; }
.review figcaption strong { font-family: var(--font-display); font-size: 0.975rem; }
.review figcaption span { font-size: 0.85rem; color: var(--muted); }
.review-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.review-cta p { margin-bottom: 10px; }

/* ---------- image break ---------- */
.break {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 14vw, 190px) 0;
  color: #fff;
  text-align: center;
}
.break-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.break-inner { position: relative; z-index: 1; }
.break h2 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: #fff;
  margin-bottom: 14px;
}
.break p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* ---------- faq ---------- */
.faq-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-head { position: sticky; top: 96px; }
.faq-head p { color: var(--muted); margin-bottom: 24px; max-width: 40ch; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: var(--orange); }
.faq-item[open] { box-shadow: 0 16px 40px -24px rgba(17, 17, 19, 0.25); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-item > p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- contact ---------- */
.contact {
  background:
    linear-gradient(rgba(11, 11, 14, 0.93), rgba(11, 11, 14, 0.88)),
    url("../assets/az/phx-night.jpg") center / cover no-repeat;
}
.contact-inner {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-text h2 { margin-bottom: 20px; }
.contact-text p { margin-bottom: 24px; max-width: 44ch; }
.contact-loc { font-size: 0.9rem; margin-top: 14px; }

.contact-form { display: grid; gap: 18px; }
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label > span {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}
.contact-form label small { font-weight: 400; color: var(--muted-on-dark); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: #fff;
  background: #1b1b1f;
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-status { min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: #58e0a8; }
.form-status.err { color: #ff8a7a; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line-on-dark);
  padding: 40px 0;
}
.footer .brand-mark { color: var(--orange); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; color: var(--muted-on-dark); transition: color 0.15s ease; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 0.85rem; color: var(--muted-on-dark); }

/* ---------- sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(255, 92, 26, 0.65);
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease;
  pointer-events: none;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { background: var(--orange-dark); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.active, .ticker-track, .showreel-dot, .ghost-mark, .rotate-word.swap { animation: none; }
  .car-track { transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 380px; }
  .hero-panel-inner { margin: 0; max-width: 640px; }
  .hero-badge { display: none; }
  .showreel-inner, .why-inner, .faq-inner,
  .work-slide, .contact-inner { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .work-composite { max-width: 640px; }
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 8px; }
  .hero-knockout { font-size: clamp(3rem, 16vw, 5rem); }
  .sticky-cta { right: 14px; bottom: 14px; padding: 13px 22px; }
}
