:root {
  color-scheme: dark;
  --ink: #000;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --panel: #121212;
  --line: #303030;
  --blue: #006be0;
  --focus: #82bdff;
  --measure: 1040px;
  --masthead-height: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --gutter: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--masthead-height) + var(--safe-top) + 20px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.55 var(--site-font);
}

a {
  color: inherit;
  text-underline-offset: .24em;
}

button { font: inherit; }

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

.site-container,
.page-hero-inner,
.page-content,
.page-closing {
  width: min(calc(100% - 2 * var(--gutter)), var(--measure));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 4;
  inset: calc(var(--safe-top) + 8px) auto auto var(--gutter);
  transform: translateY(calc(-100% - var(--safe-top) - 24px));
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  padding-top: var(--safe-top);
  background: var(--ink);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: var(--masthead-height);
  padding-inline: max(32px, var(--gutter));
}

.site-brand,
.footer-brand {
  display: inline-flex;
  width: fit-content;
}

.site-brand img,
.footer-brand img {
  display: block;
  width: 144px;
  height: auto;
}

.header-links { display: contents; }

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.header-actions {
  justify-self: end;
  gap: 16px;
}

.site-nav a,
.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.header-actions a:hover,
.header-actions a[aria-current="page"] { text-decoration: underline; }

.header-actions .header-cta {
  min-height: 34px;
  padding-inline: 15px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
}

.header-actions .header-cta:hover { background: #dcdcdc; }

.menu-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover { background: #0058be; }

.button-secondary {
  background: #262626;
  color: var(--text);
}

.button-secondary:hover { background: #373737; }

.home-hero-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: clamp(64px, 8vw, 118px) clamp(58px, 7.5vw, 104px);
  text-align: center;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.39fr) minmax(0, .86fr);
  align-items: end;
  gap: 14px clamp(28px, 5.5vw, 78px);
  padding-block: clamp(78px, 6.4vw, 98px) clamp(90px, 7.4vw, 112px);
}

.home-hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 630;
  letter-spacing: -.064em;
  line-height: 1.06;
  text-wrap: balance;
}

.home-hero h1 { font-size: clamp(36px, 6vw, 68px); }

.home-hero h1 span { color: #858585; }

.home-hero-summary p,
.page-hero p {
  max-width: 36ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.4;
  text-wrap: pretty;
}

.home-hero-summary p {
  max-width: 52ch;
  margin-inline: auto;
}

.page-actions,
.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.home-hero-summary .page-actions { justify-content: center; }

.showcase { padding-bottom: clamp(56px, 8vw, 112px); }

.reel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 6px;
  color: #d4d4d4;
  font-size: 14px;
}

.reel-header h2 {
  margin: 0;
  font: inherit;
  font-weight: 600;
}

.reel-header a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}

.reel-header a:hover { text-decoration: underline; }

.reel-controls:not([hidden]) {
  display: flex;
  margin-inline-start: auto;
}

.reel-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.reel-controls button[aria-disabled="true"] {
  color: #777;
  cursor: default;
}

.reel-controls button:not([aria-disabled="true"]):hover { background: #262626; }

.film-reel {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: clamp(224px, 32vw, 320px);
  gap: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-color: #535353 transparent;
  scrollbar-width: thin;
}

.film-reel:focus-visible { outline-offset: -2px; }

.film-card {
  display: flex;
  align-items: center;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  scroll-snap-align: start;
  text-decoration: none;
}

.film-card:hover { border-color: #535353; }

.film-card:focus-visible {
  outline-offset: -4px;
  z-index: 1;
}

.film-card:hover .film-title,
.film-card:focus-visible .film-title { text-decoration: underline; }

.film-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.25;
}

.film-play {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #535353;
  border-radius: 50%;
}

.film-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-inline-start: 2px;
  border-block: 4px solid transparent;
  border-inline-start: 7px solid currentColor;
}

.products-section { padding-bottom: clamp(48px, 7vw, 96px); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.contact-section h2,
.page-closing h2 {
  margin: 0;
  font-size: clamp(33px, 4.2vw, 54px);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: 1.07;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.product-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 32px);
}

.product-copy h3 {
  margin: 0;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.product-copy p,
.contact-section p,
.page-closing p {
  max-width: 52ch;
  margin: 12px 0;
  color: var(--muted);
  text-wrap: pretty;
}

.product-copy a { margin-top: auto; }

.text-link {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
}

.product-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}

.product-copy .text-link:hover { text-decoration: underline; }

.contact-section,
.page-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 92px);
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-links a:first-child { border-top: 1px solid var(--line); }

.contact-links a:hover { text-decoration: underline; }

.contact-links span { flex: none; }

.site-footer {
  padding: 52px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(205px, 1.38fr) repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
}

.footer-identity,
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand { margin-bottom: 12px; }

.footer-column h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.footer-main a:not(.footer-brand) {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-main a:not(.footer-brand):hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-copyright {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.page-hero-inner { padding-bottom: clamp(54px, 6vw, 86px); }

.page-hero h1 { grid-row: span 2; }

.page-hero .page-actions { margin-top: 5px; }

.work-panel,
.detail-section,
.contact-page-block {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 14px clamp(24px, 5vw, 64px);
  padding-block: clamp(28px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.work-panel h2,
.detail-section h2,
.contact-page-block h2 {
  margin: 0;
  font-size: clamp(26px, 3.7vw, 45px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-domain {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.work-panel-copy p,
.detail-section p,
.contact-page-block p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  text-wrap: pretty;
}

.contact-page-link {
  display: inline-block;
  margin-block: 9px 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.page-closing .button { justify-self: end; }

.contact-list { padding-bottom: clamp(24px, 5vw, 62px); }

@media (max-width: 880px) {
  :root { --masthead-height: 64px; }

  .site-header:not(.menu-ready) { position: static; }

  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    padding-inline: var(--gutter);
  }

  .site-brand img { width: 132px; }

  .header-links {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-bottom: 12px;
  }

  .site-nav,
  .header-actions { flex-wrap: wrap; }

  .menu-ready .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin-inline-end: -10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
  }

  .menu-icon {
    position: relative;
    width: 18px;
    height: 12px;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    inset: 1px 0 auto;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .menu-icon::after { top: 9px; }

  .menu-open .menu-icon::before { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-4px) rotate(-45deg); }

  .menu-ready .header-links { display: none; }

  .menu-ready.menu-open .header-links {
    position: absolute;
    inset: 100% 0 auto;
    display: block;
    max-height: calc(100dvh - var(--masthead-height) - var(--safe-top));
    overflow: auto;
    padding: 6px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
  }

  .menu-open .site-nav,
  .menu-open .header-actions {
    display: grid;
    gap: 0;
  }

  .menu-open .header-links a {
    min-height: 48px;
    padding: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
  }

  .menu-open .header-actions .header-cta:hover { background: #262626; }

  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .page-hero-inner,
  .contact-section,
  .page-closing,
  .work-panel,
  .detail-section,
  .contact-page-block,
  .product-grid { grid-template-columns: minmax(0, 1fr); }

  .page-hero-inner { gap: 18px; }

  .page-hero h1 { grid-row: auto; }

  .page-closing .button { justify-self: start; }
}

@media (max-width: 420px) {
  .reel-header { gap: 8px; }
  .reel-controls button { width: 38px; }
  .footer-main { gap: 18px 12px; }
  .footer-main a:not(.footer-brand) { font-size: 13px; }
}
