/* Kaze Aerial Production - static rebuild of the 2023-2026 Brooklyn theme look.
   Type: Raleway (SIL OFL 1.1, self-hosted). Icons: Font Awesome Free 6.5.2 (CC BY 4.0), inlined as SVG. */

@font-face { font-family: "Raleway"; font-style: normal; font-weight: 200; font-display: swap; src: url("../fonts/raleway-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-italic.woff2") format("woff2"); }

:root {
  --orange: #ff6e00;
  --orange-overlay: rgba(255, 110, 0, 0.88);
  --dark: #222222;
  --hero-bg: #141618;
  --ink: #151515;
  --text: #444444;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --paper: #ffffff;
  --paper-alt: #f7f7f7;
  --slate-overlay: rgba(28, 38, 50, 0.62);
  --header-h: 80px;
  --gutter: 16px;
  --wrap: 1170px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: "Raleway", "Helvetica Neue", Arial, sans-serif; font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: color 0.2s ease; }
a:hover { color: var(--orange); }

::selection { background: var(--orange); color: #ffffff; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

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

.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--dark); color: #fff; padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { width: 195px; height: 66px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: var(--dark); cursor: pointer; border-radius: 4px;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; display: block; padding: 10px 12px;
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; color: var(--dark); text-decoration: none; white-space: nowrap;
}
.site-nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--orange); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #ffffff; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .site-nav a { padding: 14px 24px; font-size: 1rem; border-top: 1px solid var(--line); }
  .site-nav li:first-child a { border-top: 0; }
  .site-nav a::after { left: 24px; right: auto; width: 32px; bottom: 8px; transform-origin: left; }
}
@media (max-width: 400px) { .brand img { width: 160px; height: auto; } }

main { display: block; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--hero-bg); color: #ffffff; overflow: hidden;
  display: grid; place-items: center; text-align: center;
}
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.hero-video.is-ready { opacity: 1; }
.hero-video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100vw, 177.78vh); height: max(100vh, 56.25vw);
  transform: translate(-50%, -50%);
}
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 24, 0.25) 0%, rgba(20, 22, 24, 0.45) 55%, rgba(20, 22, 24, 0.6) 100%); }
.hero-content { position: relative; z-index: 1; padding: calc(var(--header-h) + 48px) var(--gutter) 64px; animation: heroFadeIn 1.4s var(--ease-out) both; }
.hero h1 {
  color: #ffffff; font-weight: 200;
  font-size: clamp(1.75rem, 1rem + 4vw, 4rem); letter-spacing: 0.16em; line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-desc { margin: 18px 0 0; font-weight: 700; font-style: italic; font-size: clamp(1.1rem, 0.9rem + 0.9vw, 1.5rem); color: #ffffff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4); }
.reel-btn {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 10px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px;
  background: rgba(20, 22, 24, 0.35); color: #ffffff; cursor: pointer;
  font: 600 0.95rem/1 "Raleway", sans-serif; letter-spacing: 0.04em;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.reel-btn .play-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); }
.reel-btn .play-dot svg { width: 13px; height: 13px; fill: var(--hero-bg); margin-left: 3px; }
.reel-btn:hover { background: rgba(20, 22, 24, 0.6); border-color: #ffffff; transform: translateY(-1px); }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-content { animation: none; } }

/* Reel dialog */
.reel-dialog { width: min(100% - 2 * var(--gutter), 1100px); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.reel-dialog::backdrop { background: rgba(10, 11, 12, 0.88); }
.reel-frame { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.reel-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-close {
  position: absolute; top: -52px; right: -4px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: #ffffff; cursor: pointer;
}
.reel-close svg { width: 20px; height: 20px; fill: currentColor; }
.reel-close:hover { color: var(--orange); }

/* ---------- Sub page header ---------- */
.page-header { padding: calc(var(--header-h) + 96px) 0 0; text-align: center; }
.page-header h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); letter-spacing: 0.01em; }
.page-header .rule, .rule { display: block; width: 48px; height: 2px; margin: 22px auto 0; background: var(--orange); border: 0; }
.lead {
  margin: 28px auto 0; max-width: 46rem;
  font-weight: 600; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); line-height: 1.75; color: #555555;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
@media (max-width: 767px) {
  .page-header { padding-top: calc(var(--header-h) + 56px); }
  .section { padding: 64px 0; }
}

/* ---------- Icon features ---------- */
.features { display: grid; grid-template-columns: 1fr; gap: 44px 56px; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { display: grid; grid-template-columns: 72px 1fr; gap: 22px; align-items: start; }
.feature-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); display: grid; place-items: center; transition: transform 0.4s var(--ease-out); }
.feature:first-child .feature-icon { background: var(--orange); }
.feature-icon svg { width: 30px; height: 30px; fill: #ffffff; }
.feature:hover .feature-icon { transform: translateY(-3px); }
.feature h3 { font-size: 1.15rem; margin: 6px 0 10px; letter-spacing: 0.01em; }
.feature p { margin: 0; }

.figure-wide { margin: 72px 0 0; }
.figure-wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Services: image left, features right */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }
.split img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split .features { gap: 40px 40px; }

.fade-in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .js .fade-in.is-visible { opacity: 1; transform: none; }
  .js .slide-left { opacity: 0; transform: translateX(-32px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
  .js .slide-left.is-visible { opacity: 1; transform: none; }
}

/* ---------- Parallax bands ---------- */
.parallax {
  position: relative; color: #ffffff; text-align: center;
  background-color: var(--hero-bg); background-size: cover; background-position: center;
  padding: 140px 0;
}
.parallax::before { content: ""; position: absolute; inset: 0; background: var(--slate-overlay); }
.parallax > * { position: relative; }
@media (hover: hover) and (min-width: 1024px) { .parallax { background-attachment: fixed; } }
@media (max-width: 767px) { .parallax { padding: 96px 0; } }
.parallax h2 { color: #ffffff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.parallax .rule { background: var(--orange); }
.philosophy blockquote { margin: 0 auto; max-width: 52rem; }
.philosophy blockquote p { font-weight: 200; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.4; color: #ffffff; }
.philosophy cite { display: block; margin-top: 24px; font-style: normal; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff; }
.philosophy h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 28px; }
.good-at p { max-width: 44rem; margin: 26px auto 0; font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: #ffffff; }
.good-at strong { color: #ffffff; }

/* Just thinking link band */
.thinking { text-align: center; padding: 72px 0; background: var(--paper); }
.thinking a {
  display: inline-block; font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem); line-height: 1.4;
  color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 0 2px; background-position: 50% 100%; background-repeat: no-repeat; padding-bottom: 6px;
  transition: background-size 0.45s var(--ease-out), color 0.25s ease;
}
.thinking a:hover, .thinking a:focus-visible { color: var(--orange); background-size: 100% 2px; }

/* ---------- Work grid ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 600px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; height: 300px; overflow: hidden; background: var(--hero-bg); color: #ffffff; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.tile-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 24px; text-align: center; background: var(--orange-overlay); opacity: 0; transition: opacity 0.35s ease;
}
.tile-overlay h3, .tile-overlay span { color: #ffffff; transform: translateY(18px); transition: transform 0.45s var(--ease-out); }
.tile-overlay h3 { font-size: 1.25rem; font-weight: 700; }
.tile-overlay span { margin-top: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tile:hover .tile-overlay, .tile:focus-visible .tile-overlay { opacity: 1; }
.tile:hover .tile-overlay h3, .tile:hover .tile-overlay span, .tile:focus-visible .tile-overlay h3, .tile:focus-visible .tile-overlay span { transform: none; }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline-offset: -4px; outline-color: #ffffff; }
@media (hover: none) {
  .tile-overlay { opacity: 1; justify-content: flex-end; align-items: flex-start; text-align: left; background: linear-gradient(180deg, rgba(20, 22, 24, 0) 35%, rgba(20, 22, 24, 0.85) 100%); }
  .tile-overlay h3, .tile-overlay span { transform: none; }
}
.tile-placeholder, .media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 90% at 50% 40%, #23272b 0%, var(--hero-bg) 70%); }
.tile-placeholder img, .media-placeholder img { width: 46%; max-width: 260px; height: auto; object-fit: contain; opacity: 0.4; }
.tile:hover .tile-placeholder img { transform: none; }

/* ---------- Clients ---------- */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logo-grid li { min-width: 0; background: #ffffff; display: grid; place-items: center; padding: 28px 22px; aspect-ratio: 3 / 2; }
.logo-grid img { max-height: 96px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(0.15); transition: transform 0.4s var(--ease-out), filter 0.3s ease; }
.logo-grid li:hover img { transform: scale(1.05); filter: none; }

/* ---------- Team ---------- */
.team { display: grid; gap: 56px; text-align: center; }
.member svg { width: 34px; height: 34px; margin: 0 auto 18px; fill: var(--orange); }
.member h3 { font-size: 1.2rem; margin-bottom: 12px; }
.member p { max-width: 44rem; margin-inline: auto; }

.skills { display: grid; gap: 30px 64px; }
@media (min-width: 768px) { .skills { grid-template-columns: 1fr 1fr; } }
.skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.skill h3 { font-size: 1rem; }
.skill-pct { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.skill-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; width: var(--pct); background: var(--dark); border-radius: 3px; transform-origin: left center; }
.skill:first-child .skill-fill { background: var(--orange); }
@media (prefers-reduced-motion: no-preference) {
  .js .skill-fill { transform: scaleX(0); transition: transform 1.4s var(--ease-out); }
  .js .skills.is-visible .skill-fill { transform: scaleX(1); }
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-icon { width: 92px; height: 74px; margin: 0 auto 32px; fill: #444444; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 14px 36px; border-radius: 4px; background: var(--dark); color: #ffffff;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--orange); color: var(--hero-bg); transform: translateY(-1px); }
.contact-call { margin-top: 22px; font-size: 1.1rem; }
.contact-call a { white-space: nowrap; font-weight: 600; }

/* ---------- Portfolio item ---------- */
.item-media { background: var(--hero-bg); padding: calc(var(--header-h) + 48px) 0 56px; }
.media-frame { position: relative; aspect-ratio: 16 / 9; width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; background: #000; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.media-frame > img, .media-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.3s ease; }
.yt-play {
  position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease-out);
}
.yt-play svg { width: 26px; height: 26px; fill: var(--hero-bg); margin-left: 5px; }
.yt:hover img { transform: scale(1.02); opacity: 0.92; }
.yt:hover .yt-play { transform: scale(1.08); }
.yt:focus-visible { outline-offset: -6px; outline-color: #ffffff; }
@media (max-width: 600px) { .yt-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .yt-play svg { width: 20px; height: 20px; } }

.item-body { padding: 72px 0 96px; }
.item-body h1 { text-align: center; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); }
.item-body .lead { text-align: center; }
.item-copy { margin-top: 36px; }
.credits { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.credits li { color: var(--text); }
.credits .role { font-weight: 600; color: var(--ink); }
.item-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-weight: 600; }
.item-nav a { text-decoration: none; display: inline-flex; flex-direction: column; gap: 2px; max-width: 48%; }
.item-nav a span { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.item-nav a:hover span { color: var(--orange); }
.item-nav .next { text-align: right; margin-left: auto; }
@media (max-width: 600px) { .item-nav a { max-width: 100%; } .item-nav .next { text-align: left; margin-left: 0; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 64px) var(--gutter) 96px; }
.notfound p { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-alt); border-top: 1px solid var(--line); padding: 40px 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration-color: transparent; }
.site-footer a:hover { color: var(--orange); text-decoration-color: var(--orange); }
.tile.is-placeholder .tile-overlay { opacity: 1; justify-content: flex-end; background: transparent; }
.tile.is-placeholder .tile-overlay h3, .tile.is-placeholder .tile-overlay span { transform: none; }
.tile.is-placeholder:hover .tile-overlay, .tile.is-placeholder:focus-visible .tile-overlay { background: var(--orange-overlay); justify-content: center; }
