/* Full Frame Visuals. Fonts: Inter and Geist, both under the SIL Open Font License. */
@font-face { font-family: Inter; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Geist; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --cream: #f6f4f0;
  --ink: #111;
  --body: #1f1f1f;
  --muted: #666;
  --display: Inter, system-ui, sans-serif;
  --text: Geist, system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.25 var(--display);
  font-variation-settings: "opsz" 32;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
[id] { scroll-margin-top: 48px; }
#services { scroll-margin-top: 100px; }
.wrap { width: min(1200px, 100% - 80px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 12px 16px; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }

.eyebrow { margin-bottom: 8px; font: 500 16px/1.35 var(--display); }
.title { font: 700 64px/1.1 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.subtitle { font: 500 32px/1.25 var(--display); letter-spacing: -.02em; text-transform: uppercase; }

.button {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 3px;
  background: var(--ink); color: #fff;
  font: 600 18px/1.25 var(--text); text-decoration: none; cursor: pointer;
}
.button::before { content: "\2192"; font-weight: 400; transition: transform .2s var(--ease); }
.button:active { transform: scale(.98); }
.button-light { background: var(--cream); color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; padding: 0 32px 0 24px;
  color: #fff;
  transition: background-color .25s, height .25s var(--ease);
}
.header.scrolled { height: 68px; background: #000; }
.logo { display: block; padding: 6px 0; text-decoration: none; font: 900 20px/1 var(--display); }
.logo small { display: block; margin-top: 2px; font: 400 14px/1 var(--display); }
.menu { position: relative; }
.menu > summary {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 0 30px;
  border-radius: 30px; background: #fff; color: var(--ink);
  font: 500 16px/1 var(--text);
}
.menu > summary::after {
  content: ""; width: 9px; height: 9px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease);
}
.menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.menu-panel {
  position: absolute; top: calc(100% + 16px); right: 0;
  width: min(310px, 100vw - 32px); padding: 34px 24px;
  max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px; background: #fff; color: var(--ink);
  transform-origin: top right; animation: menu-in .22s var(--ease);
}
.menu-panel a:not(.button) {
  display: block; padding: 11px 0;
  font: 600 20px/1.25 var(--text); text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
}
.menu-panel .button { width: 100%; justify-content: center; margin-top: 20px; }
.menu-panel .button::before { display: none; }
@keyframes menu-in { from { opacity: 0; transform: scale(.94); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #222; color: #fff; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: photo-in 1.4s var(--ease) both; }
.hero-blur {
  position: absolute; inset: auto 0 0; height: 28%;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(transparent, #0006);
  mask-image: linear-gradient(transparent, #000 70%);
  -webkit-mask-image: linear-gradient(transparent, #000 70%);
}
.hero-brand { position: absolute; top: 21.5%; left: 40px; }
.hero h1 { font: 700 clamp(68px, 8.9vw, 152px)/.85 var(--display); letter-spacing: -.03em; }
.hero h1 span { display: block; margin: .06em 0 0 .02em; font: 400 clamp(30px, 2.35vw, 40px)/1 var(--display); letter-spacing: .5em; }
.hero .button { margin-top: clamp(48px, 11vh, 108px); }
.hero-intro {
  position: absolute; right: 40px; bottom: 60px;
  width: min(680px, 50vw);
  color: #f7f7f7; font: 600 clamp(20px, 1.47vw, 25px)/1.35 var(--display); text-transform: uppercase;
}
@keyframes photo-in { from { transform: scale(1.04); } }

/* ---------- Featured work ---------- */
.featured { padding: 100px 0 70px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 68px; }
.video { position: relative; display: block; overflow: hidden; border-radius: 8px; background: #000; aspect-ratio: 3 / 2; }
.video img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 16px; bottom: 16px;
  display: grid; place-items: center;
  width: 56px; height: 40px;
  border-radius: 4px; background: #000b;
}
.play::before { content: ""; border: 9px solid transparent; border-left: 15px solid #fff; border-right: 0; }
.card p { margin: 16px 0 8px; color: var(--muted); font: 500 14px/1.25 var(--display); text-transform: uppercase; }
.card h3 { font: 500 24px/1.25 var(--display); }
.more { margin-top: 40px; text-align: center; }

/* ---------- About ---------- */
.about { width: min(720px, 100% - 40px); margin: auto; padding: 50px 0 80px; }
.about img { width: 134px; height: 134px; margin: auto; object-fit: cover; object-position: 50% 20%; }
.about .name { margin: 24px 0 32px; font: 600 28px/1.25 var(--display); text-align: center; }
.about .copy { margin-top: 16px; color: var(--body); text-align: center; }

/* ---------- Pricing and process ---------- */
.pricing { padding-bottom: 72px; }
.pricing .subtitle { margin: 20px 0; }
.row {
  display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(0, 512px); align-items: center;
  padding: 36px 0;
  border-top: 1px solid #bbb;
}
.row-number, .row-name { font: 600 28px/1.25 var(--display); }
.row-name { padding-right: 24px; }
.row-name b { margin-left: .4em; font-weight: inherit; white-space: nowrap; }
.row-detail { padding-right: 56px; font: 400 18px/1.25 var(--text); }
.pricing .button { margin-top: 20px; }

.process { padding: 100px 0 80px; background: #000; color: #fff; }
.steps { margin-top: 90px; }
.step { border-top: 1px solid #333; }
.step summary { display: grid; grid-template-columns: 124px 1fr; padding: 48px 0; font: 600 28px/1.25 var(--display); }
.step p { max-width: 512px; }
@media (min-width: 810px) {
  .step { position: relative; }
  .step summary { width: calc(100% - 512px); min-height: 147px; align-items: center; pointer-events: none; }
  .step p { position: absolute; top: 50%; right: 0; width: 512px; padding-right: 40px; transform: translateY(-50%); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 552px); gap: 96px; padding-block: 100px; }
.faq .lead { margin: 16px 0 28px; color: var(--muted); }
.questions details { padding: 2px 0; }
.questions summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 6px 0; gap: 20px; font: 600 20px/1.25 var(--display); }
.questions summary::after { content: "+"; font-weight: 400; transition: transform .2s var(--ease); }
.questions details[open] summary::after { transform: rotate(45deg); }
.questions p { padding: 8px 40px 16px 0; color: var(--body); font: 400 18px/1.35 var(--text); }

/* ---------- Work ---------- */
.project {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh; padding: 110px 24px 150px;
  background: #000; color: #fff;
}
.project-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .3; transform: scale(1.35); }
.project .video { width: min(820px, 100%); width: min(820px, 100%, 92svh); aspect-ratio: 16 / 9; }
.project h2 { position: absolute; left: 32px; bottom: 40px; font: 500 32px/1.25 var(--display); }
.project .category { position: absolute; right: 32px; bottom: 46px; color: #ddd; text-transform: uppercase; }

/* ---------- Contact and 404 ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; padding: 120px 20px 80px;
  background: #000; color: #fff;
}
.contact-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.form { width: min(440px, 100%); margin: auto; padding: 28px; border-radius: 6px; background: #000; }
.form label { display: block; margin-bottom: 20px; color: #aaa; font: 400 14px/1.3 var(--display); }
.form input, .form textarea, .form select {
  display: block; width: 100%; min-height: 48px; margin-top: 9px; padding: 12px;
  border: 1px solid #262626; border-radius: 10px;
  background-color: #1d1d1d; color: #fff;
  font-size: 16px;
}
.form input { text-overflow: ellipsis; }
.form textarea { min-height: 120px; resize: vertical; }
.form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aaa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form ::placeholder { color: #8b8b8b; }
.form .button { width: 100%; justify-content: center; }
.form .button:disabled { opacity: .6; cursor: wait; }
.form .trap { display: none; }
.form-status { margin-top: 16px; font-size: 16px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status.error { color: #ff9b9b; }
.missing { display: grid; place-content: center; gap: 28px; justify-items: center; min-height: 80svh; padding: 110px 24px; background: #000; color: #fff; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 98px 0 40px; background: #fff; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-label { margin-bottom: 16px; font: 500 18px/1.25 var(--display); }
.touch { display: block; font: 500 32px/1.25 var(--display); letter-spacing: -.02em; text-underline-offset: 4px; }
.social { display: inline-block; margin-top: 40px; font: 500 16px/1.35 var(--display); }
.footer-links { display: grid; grid-template-columns: auto auto; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 8px 72px; }
.footer-links a { font: 600 24px/1.25 var(--display); text-decoration: none; }
.wordmark { margin: 100px 0 16px; font: 900 clamp(24px, 7.3vw, 102px)/1.24 var(--display); letter-spacing: -.01em; text-align: center; white-space: nowrap; }
.copyright { font-size: 16px; }

/* ---------- Hover and motion ---------- */
@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: translateX(4px); }
  .video:hover img { transform: scale(1.025); }
  .menu-panel a:hover, .footer a:hover { opacity: .65; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1199.98px) {
  .title { font-size: 52px; }
  .row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 40%); }
  .row-number, .row-name, .step summary { font-size: 24px; }
  .row-detail { padding-right: 0; }
  .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .step summary { grid-template-columns: 72px 1fr; width: 55%; }
  .step p { width: 42%; padding: 0; font-size: 16px; }
}

/* ---------- Touch targets ---------- */
@media (max-width: 809.98px), (pointer: coarse) {
  .touch { display: flex; align-items: center; min-height: 48px; }
  .footer-label { margin-bottom: 6px; }
  .social { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin-top: 20px; }
  .footer-links { row-gap: 0; }
  .footer-links a { display: flex; align-items: center; min-width: 44px; min-height: 44px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 809.98px) {
  .wrap { width: calc(100% - 40px); }
  .title { font-size: clamp(32px, 10.8vw, 40px); }
  .subtitle { font-size: 22px; }
  .header { padding: 0 16px 0 20px; }
  .menu > summary { padding: 0 22px; }

  .hero { display: flex; flex-direction: column; padding: clamp(100px, 23.5svh, 210px) 20px 32px; }
  .hero-brand, .hero-intro { position: relative; inset: auto; width: auto; }
  .hero h1 { max-width: 350px; font-size: clamp(52px, 17.1vw, 64px); }
  .hero h1 span { font-size: clamp(30px, 10.6vw, 40px); }
  .hero .button { margin: 72px 0 24px; }
  .hero-intro { margin-top: auto; font-size: clamp(20px, 6.2vw, 24px); }

  .featured { padding-top: 72px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
  .card p { margin: 14px 0 6px; font-size: 12px; }
  .card h3 { font-size: 20px; font-weight: 600; }
  .more .button { padding-inline: 16px; gap: 12px; font-size: clamp(15px, 4.8vw, 18px); }

  .about .name { font-size: 20px; }
  .about .subtitle { text-align: center; }

  .row { grid-template-columns: 48px minmax(0, 1fr); gap: 14px 0; padding: 28px 0; align-items: start; }
  .row-number, .row-name { font-size: 20px; }
  .row-name { padding: 0; overflow-wrap: break-word; }
  .row-detail { grid-column: 2; font-size: 16px; }

  .process { padding: 72px 0; }
  .steps { margin-top: 56px; }
  .step summary { position: relative; grid-template-columns: 96px 1fr; padding: 36px 40px 36px 0; }
  .step summary::after { content: "+"; position: absolute; top: 50%; right: 6px; font-weight: 400; transform: translateY(-50%); }
  .step[open] summary::after { content: "\2212"; }
  .step p { padding-bottom: 28px; }

  .faq { grid-template-columns: minmax(0, 1fr); padding-block: 72px; }

  .project { min-height: 78svh; padding: 100px 16px 130px; }
  .project h2 { left: 20px; right: 20px; bottom: 60px; font-size: 26px; }
  .project .category { left: 20px; right: auto; bottom: 30px; font-size: 14px; }

  .form { padding: 22px; }
  .footer { padding-top: 64px; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .footer-top { flex-direction: column; }
  .footer-links { justify-content: space-between; column-gap: 24px; }
  .wordmark { margin-top: 56px; font-size: 7.5vw; }
  .copyright { text-align: center; font-size: 14px; }
}

/* ---------- Short portrait phones ---------- */
@media (max-width: 809.98px) and (max-height: 700px) and (orientation: portrait) {
  .hero { padding: 96px 20px 24px; }
  .hero h1 { font-size: min(52px, 17vw); }
  .hero h1 span { font-size: min(28px, 9vw); }
  .hero .button { margin: 28px 0 20px; }
  .hero-intro { font-size: 18px; }
}

/* ---------- Phones in landscape ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { display: flex; flex-direction: column; padding: 88px 24px 14px; }
  .hero-brand, .hero-intro { position: relative; inset: auto; }
  .hero h1 { max-width: none; font-size: min(64px, 15vh); }
  .hero h1 span { font-size: min(28px, 7vh); }
  .hero .button { margin: 14px 0 10px; }
  .hero-intro { align-self: flex-end; width: min(460px, 100%); margin-top: auto; font-size: min(16px, 4.5vh); }
  .menu-panel { padding: 16px 24px; border-radius: 20px; }
  .menu-panel a:not(.button) { padding: 11px 0; font-size: 18px; min-height: 45px; }
  .menu-panel .button { margin-top: 8px; }
  .project { padding: 84px 24px 100px; }
  .project h2 { left: 24px; right: 24px; bottom: 44px; font-size: 24px; }
  .project .category { left: 24px; right: auto; bottom: 20px; font-size: 14px; }
}
