/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {
    *,
    :before,
    :after,
    ::backdrop {
      --tw-rotate-x:initial;
      --tw-rotate-y:initial;
      --tw-rotate-z:initial;
      --tw-skew-x:initial;
      --tw-skew-y:initial;
      --tw-shadow:0 0 #0000;
      --tw-shadow-color:initial;
      --tw-shadow-alpha:100%;
      --tw-inset-shadow:0 0 #0000;
      --tw-inset-shadow-color:initial;
      --tw-inset-shadow-alpha:100%;
      --tw-ring-color:initial;
      --tw-ring-shadow:0 0 #0000;
      --tw-inset-ring-color:initial;
      --tw-inset-ring-shadow:0 0 #0000;
      --tw-ring-inset:initial;
      --tw-ring-offset-width:0px;
      --tw-ring-offset-color:#fff;
      --tw-ring-offset-shadow:0 0 #0000
    }
  }
}
@layer theme {
  :root,
  :host {
    --font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing:.25rem;
    --default-font-family:var(--font-sans);
    --default-mono-font-family:var(--font-mono)
  }
}
@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  ::file-selector-button {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  html,
  :host {
    -webkit-text-size-adjust:100%;
    tab-size:4;
    line-height:1.5;
    font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings:var(--default-font-feature-settings,normal);
    font-variation-settings:var(--default-font-variation-settings,normal);
    -webkit-tap-highlight-color:transparent
  }
  hr {
    height:0;
    color:inherit;
    border-top-width:1px
  }
  abbr:where([title]) {
    -webkit-text-decoration:underline dotted;
    text-decoration:underline dotted
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size:inherit;
    font-weight:inherit
  }
  a {
    color:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    text-decoration:inherit
  }
  b,
  strong {
    font-weight:bolder
  }
  code,
  kbd,
  samp,
  pre {
    font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings:var(--default-mono-font-feature-settings,normal);
    font-variation-settings:var(--default-mono-font-variation-settings,normal);
    font-size:1em
  }
  small {
    font-size:80%
  }
  sub,
  sup {
    vertical-align:baseline;
    font-size:75%;
    line-height:0;
    position:relative
  }
  sub {
    bottom:-.25em
  }
  sup {
    top:-.5em
  }
  table {
    text-indent:0;
    border-color:inherit;
    border-collapse:collapse
  }
  :-moz-focusring {
    outline:auto
  }
  progress {
    vertical-align:baseline
  }
  summary {
    display:list-item
  }
  ol,
  ul,
  menu {
    list-style:none
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align:middle;
    display:block
  }
  img,
  video {
    max-width:100%;
    height:auto
  }
  button,
  input,
  select,
  optgroup,
  textarea {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  ::file-selector-button {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  :where(select:is([multiple],
  [size])) optgroup {
    font-weight:bolder
  }
  :where(select:is([multiple],
  [size])) optgroup option {
    padding-inline-start:20px
  }
  ::file-selector-button {
    margin-inline-end:4px
  }
  ::placeholder {
    opacity:1
  }
  @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
    ::placeholder {
      color:currentColor
    }
    @supports (color:color-mix(in lab, red, red)) {
      ::placeholder {
        color:color-mix(in oklab, currentcolor 50%, transparent)
      }
    }
  }
  textarea {
    resize:vertical
  }
  ::-webkit-search-decoration {
    -webkit-appearance:none
  }
  ::-webkit-date-and-time-value {
    min-height:1lh;
    text-align:inherit
  }
  ::-webkit-datetime-edit {
    display:inline-flex
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding:0
  }
  ::-webkit-datetime-edit {
    padding-block:0
  }
  ::-webkit-datetime-edit-year-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-month-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-day-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-second-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block:0
  }
  ::-webkit-calendar-picker-indicator {
    line-height:1
  }
  :-moz-ui-invalid {
    box-shadow:none
  }
  button,
  input:where([type=button],
  [type=reset],
  [type=submit]) {
    appearance:button
  }
  ::file-selector-button {
    appearance:button
  }
  ::-webkit-inner-spin-button {
    height:auto
  }
  ::-webkit-outer-spin-button {
    height:auto
  }
  [hidden]:where(:not([hidden=until-found])) {
    display:none!important
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility:visible
  }
  .relative {
    position:relative
  }
  .start {
    inset-inline-start:var(--spacing)
  }
  .table {
    display:table
  }
  .transform {
    transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)
  }
  .resize {
    resize:both
  }
  .shadow {
    --tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);
    box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)
  }
}
:root {
  --cream:#fff8e7;
  --paper:#fffdf7;
  --coffee:#6f4e37;
  --ink:#2f1f16;
  --burgundy:#800020;
  --line:#4e2f1f42;
  --page-progress:0;
  --ease:cubic-bezier(.22, 1, .36, 1)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  background:var(--cream)
}
body {
  color:var(--ink);
  letter-spacing:-.025em;
  background:radial-gradient(circle at 12% 8%,#8000201a,#0000 29rem),radial-gradient(circle at 88% 34%,#6f4e371f,#0000 31rem),linear-gradient(145deg,#fffdf6 0%,#fff4e4 42%,#ecd7cd 100%);
  margin:0;
  font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;
  font-weight:460;
  overflow-x:hidden
}
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select {
  cursor:none!important
}
a {
  color:inherit;
  text-decoration:none
}
button,
input,
textarea,
select {
  font:inherit
}
button {
  color:inherit
}
img {
  max-width:100%
}
::selection {
  background:var(--burgundy);
  color:var(--cream)
}
[data-reveal] {
  opacity:0;
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  transform:translateY(28px)
}
[data-reveal].is-visible {
  opacity:1;
  transform:none
}
.preloader {
  z-index:1000;
  background:var(--burgundy);
  color:var(--cream);
  transition:transform .9s var(--ease), visibility .9s;
  place-items:center;
  display:grid;
  position:fixed;
  inset:0;
  overflow:hidden
}
.preloader span {
  letter-spacing:-.08em;
  animation:preloader-word .9s var(--ease) both;
  font-size:clamp(3.5rem,10vw,9rem);
  font-weight:540
}
.preloader i {
  background:var(--cream);
  transform-origin:0;
  width:100%;
  height:3px;
  animation:.95s both preloader-line;
  position:absolute;
  bottom:0;
  left:0
}
.preloader--done {
  visibility:hidden;
  transform:translateY(-103%)
}
.custom-cursor {
  z-index:1200;
  pointer-events:none;
  opacity:0;
  will-change:transform;
  transition:opacity .2s;
  position:fixed;
  top:0;
  left:0
}
.custom-cursor[data-visible=true] {
  opacity:1
}
.custom-cursor i {
  background:var(--burgundy);
  clip-path:polygon(0 0,100% 52%,43% 68%,20% 100%);
  filter:drop-shadow(0 4px 5px #37000e33);
  width:18px;
  height:23px;
  transition:transform .3s var(--ease), width .3s var(--ease), height .3s var(--ease);
  position:absolute;
  transform:translate(-3px,-3px)rotate(-8deg)
}
.custom-cursor[data-active=true] i {
  width:25px;
  height:31px;
  transform:translate(-5px,-5px)rotate(2deg)
}
.custom-cursor span {
  color:var(--burgundy);
  white-space:nowrap;
  letter-spacing:.12em;
  font-size:.58rem;
  font-weight:750;
  position:absolute;
  top:7px;
  left:25px
}
.site-header {
  z-index:90;
  width:100%;
  height:68px;
  color:var(--ink);
  mix-blend-mode:multiply;
  justify-content:space-between;
  align-items:center;
  padding:0 4.2vw;
  display:flex;
  position:fixed;
  top:0;
  left:0
}
.mini-mark {
  letter-spacing:-.08em;
  font-size:1.15rem;
  font-weight:800
}
.mini-mark span {
  color:var(--burgundy)
}
.site-header nav {
  gap:clamp(1.7rem,4vw,4.4rem);
  margin-left:auto;
  display:flex
}
.site-header nav a {
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.64rem;
  font-weight:670;
  position:relative
}
.site-header nav a:after {
  content:"";
  background:var(--burgundy);
  transform-origin:100%;
  height:1px;
  transition:transform .4s var(--ease);
  position:absolute;
  bottom:-7px;
  left:0;
  right:0;
  transform:scaleX(0)
}
.site-header nav a:hover:after {
  transform-origin:0;
  transform:scaleX(1)
}
.menu-toggle {
  display:none
}
main {
  position:relative
}
.hero {
  z-index:2;
  background:radial-gradient(circle at 52% 42%,#fffffffa 0 8%,#0000 37%),radial-gradient(circle at 6% 22%,#8000201c,#0000 28rem),radial-gradient(circle at 92% 84%,#6f4e371f,#0000 30rem),linear-gradient(145deg,#fffdf7 0%,#fff5e5 52%,#efd8cf 100%);
  place-items:center;
  height:94svh;
  min-height:650px;
  display:grid;
  position:relative;
  overflow:hidden
}
.hero-grain {
  opacity:.2;
  pointer-events:none;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  position:absolute;
  inset:0
}
.hero h1 {
  z-index:2;
  color:var(--coffee);
  letter-spacing:-.085em;
  white-space:nowrap;
  justify-content:center;
  margin:0;
  font-size:clamp(6.8rem,19vw,18rem);
  font-weight:530;
  line-height:.75;
  display:flex;
  position:absolute;
  top:18%;
  left:50%;
  transform:translate(-50%)
}
.hero h1 span {
  animation:letter-in 1.05s calc(1.05s + var(--letter-delay)) both var(--ease);
  display:inline-block
}
.hero-sparrow-media {
  z-index:3;
  pointer-events:none;
  filter:drop-shadow(0 22px 18px #3a221433);
  position:absolute;
  inset:0
}
.hero-sparrow-video,
.hero-sparrow-fallback {
  object-fit:cover;
  object-position:center;
  width:100%;
  height:100%;
  display:block;
  position:absolute;
  inset:0
}
.hero-sparrow-video {
  transition:opacity .22s
}
.hero-sparrow-video--breathing,
.hero-sparrow-media--landed .hero-sparrow-video--intro {
  opacity:0
}
.hero-sparrow-media--landed .hero-sparrow-video--breathing {
  opacity:1
}
.hero-sparrow-fallback {
  object-fit:contain;
  opacity:0;
  top:50%;
  left:50%;
  width:clamp(270px,32vw,440px);
  height:auto;
  inset:auto;
  transform:translate(-50%,-52%)
}
.hero-sparrow-media--fallback .hero-sparrow-video {
  display:none
}
.hero-sparrow-media--fallback .hero-sparrow-fallback {
  opacity:1
}
.hero-tagline {
  z-index:4;
  text-align:center;
  animation:fade-up .9s 1.9s both var(--ease);
  margin:0;
  font-size:clamp(1.15rem,2vw,1.9rem);
  position:absolute;
  bottom:15%;
  left:0;
  right:0
}
.hero-perch {
  z-index:2;
  filter:blur(4px);
  background:radial-gradient(#4c2d1c38,#0000 68%);
  border-radius:50%;
  width:clamp(260px,34vw,520px);
  height:22px;
  position:absolute;
  top:61%;
  left:50%;
  transform:translate(-50%)
}
.scroll-note {
  z-index:4;
  text-transform:uppercase;
  letter-spacing:.12em;
  align-items:center;
  gap:.75rem;
  font-size:.57rem;
  font-weight:700;
  display:flex;
  position:absolute;
  bottom:2.4rem;
  right:4.2vw
}
.scroll-note i {
  border:1px solid var(--line);
  width:34px;
  height:34px;
  color:var(--burgundy);
  border-radius:50%;
  place-items:center;
  font-style:normal;
  animation:1.7s ease-in-out infinite scroll-bob;
  display:grid
}
.showreel-section {
  z-index:4;
  background:linear-gradient(#fff8e799,#f8e7db85);
  height:180svh;
  position:relative
}
.showreel-sticky {
  place-items:center;
  height:100svh;
  display:grid;
  position:sticky;
  top:0;
  overflow:hidden
}
.showreel-frame {
  --reel-progress:0;
  width:calc(92vw + var(--reel-progress) * 8vw);
  height:calc(64vh + var(--reel-progress) * 36vh);
  border-radius:calc(24px - var(--reel-progress) * 24px);
  color:var(--cream);
  transform:scale(calc(.92 + var(--reel-progress) * .08));
  will-change:width, height, border-radius, transform;
  background:#241711;
  position:relative;
  overflow:hidden;
  box-shadow:0 28px 75px #37201433
}
.showreel-frame video {
  object-fit:cover;
  filter:saturate(.72)contrast(1.08);
  width:100%;
  height:100%
}
.reel-shade {
  background:linear-gradient(#140b0624,#140b065c),radial-gradient(circle,#0000 20%,#10080452);
  position:absolute;
  inset:0
}
.reel-title {
  z-index:2;
  letter-spacing:.1em;
  flex-direction:column;
  align-items:center;
  gap:.8rem;
  font-size:.72rem;
  display:flex;
  position:absolute;
  top:2rem;
  left:50%;
  transform:translate(-50%)
}
.reel-title i {
  opacity:.65;
  background:currentColor;
  width:38px;
  height:1px
}
.showreel-frame>p {
  z-index:2;
  letter-spacing:.06em;
  margin:0;
  font-size:.72rem;
  position:absolute;
  bottom:1.6rem;
  left:2rem
}
.play-button {
  z-index:3;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  width:76px;
  height:76px;
  transition:background .35s ease, transform .35s var(--ease);
  background:#fff8e714;
  border:1px solid #fff8e7a8;
  border-radius:50%;
  place-items:center;
  display:grid;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%)
}
.play-button:hover {
  background:var(--burgundy);
  transform:translate(-50%,-50%)scale(1.07)
}
.play-icon {
  border-top:8px solid #0000;
  border-bottom:8px solid #0000;
  border-left:13px solid var(--cream);
  width:0;
  height:0;
  margin-left:5px
}
.pause-icon {
  border-left:4px solid var(--cream);
  border-right:4px solid var(--cream);
  width:14px;
  height:18px
}
.about-section {
  z-index:4;
  background:radial-gradient(circle at 82% 30%,#80002014,#0000 25rem),linear-gradient(135deg,#fffdf7f0,#f8e6dbdb);
  padding:4.8rem 6vw 3.2rem;
  position:relative
}
.about-grid {
  grid-template-columns:auto 1px minmax(260px,440px);
  align-items:center;
  gap:clamp(2rem,4vw,5rem);
  display:grid
}
.about-grid h2 {
  letter-spacing:-.07em;
  margin:0;
  font-size:clamp(3.7rem,7vw,7.4rem);
  font-weight:470;
  line-height:.9
}
.about-grid p {
  margin:0;
  font-size:clamp(.9rem,1.2vw,1.12rem);
  line-height:1.55
}
.about-divider {
  background:var(--line);
  width:1px;
  height:6rem
}
.service-strip {
  border-top:1px solid var(--line);
  grid-template-columns:repeat(6,1fr);
  margin-top:4.2rem;
  padding-top:1.5rem;
  display:grid
}
.service-strip span {
  border-right:1px solid var(--line);
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:.15rem 1rem;
  font-size:.58rem;
  font-weight:690
}
.service-strip span:last-child {
  border-right:0
}
.section-heading {
  text-align:center
}
.section-heading>span {
  color:var(--burgundy);
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.62rem;
  font-weight:750
}
.section-heading h2 {
  letter-spacing:-.055em;
  margin:.55rem 0 0;
  font-size:clamp(2.5rem,4.2vw,4.6rem);
  font-weight:480;
  line-height:1
}
.section-heading p {
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.62;
  margin:.8rem 0 0;
  font-size:.68rem
}
.work-section {
  z-index:4;
  background:radial-gradient(circle at 10% 40%,#80002014,#0000 29rem),radial-gradient(circle at 90% 70%,#6f4e371f,#0000 30rem),linear-gradient(145deg,#fffaf0,#f5e4da 58%,#fff7e8);
  height:330svh;
  position:relative
}
.work-sticky {
  perspective:1500px;
  grid-template-rows:auto 1fr auto;
  height:100svh;
  padding:5.5rem 0 2rem;
  display:grid;
  position:sticky;
  top:0;
  overflow:hidden
}
.carousel-scene {
  width:100%;
  min-height:0;
  transform-style:preserve-3d;
  position:relative
}
.project-card {
  width:clamp(215px,20vw,310px);
  color:var(--ink);
  transform-style:preserve-3d;
  transform:translate(-50%, -50%) translateX(calc(var(--side) * clamp(170px, 17.2vw, 255px))) rotateY(calc(var(--side) * -13deg)) translateZ(calc(var(--depth) * -95px)) scale(calc(1 - var(--depth) * .055));
  opacity:clamp(0, calc(1 - var(--depth) * .24), 1);
  filter:blur(calc(var(--depth) * .35px)) saturate(calc(1 - var(--depth) * .11));
  will-change:transform, opacity, filter;
  transition:filter .2s linear,opacity .2s linear;
  position:absolute;
  top:50%;
  left:50%
}
.project-card--active {
  z-index:12;
  filter:none
}
.project-image {
  background:var(--accent);
  border:1px solid #4a2a1929;
  border-radius:7px;
  height:min(51vh,530px);
  min-height:350px;
  position:relative;
  overflow:hidden;
  box-shadow:0 24px 45px #44281829
}
.project-image:after {
  content:"";
  pointer-events:none;
  background:linear-gradient(#0000 62%,#1d0f0847);
  position:absolute;
  inset:0
}
.project-image img {
  object-fit:cover;
  width:100%;
  height:100%;
  transition:transform .8s var(--ease)
}
.project-card:hover .project-image img,
.project-card--active .project-image img {
  transform:scale(1.045)
}
.project-image>span {
  z-index:2;
  color:#fff;
  border:1px solid #ffffffa6;
  border-radius:50%;
  place-items:center;
  width:31px;
  height:31px;
  font-size:.57rem;
  display:grid;
  position:absolute;
  top:.8rem;
  right:.8rem
}
.project-meta {
  flex-direction:column;
  gap:.28rem;
  padding:.7rem .15rem 0;
  display:flex
}
.project-meta strong {
  font-size:.87rem;
  font-weight:650
}
.project-meta small {
  text-transform:uppercase;
  letter-spacing:.05em;
  opacity:.65;
  font-size:.56rem
}
.work-control {
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  width:min(84vw,990px);
  margin:0 auto;
  font-size:.62rem;
  display:grid
}
.work-control>i {
  background:var(--line);
  height:1px
}
.work-control b {
  background:var(--burgundy);
  height:100%;
  transition:width .15s linear;
  display:block
}
.team-section {
  z-index:4;
  background:radial-gradient(circle at 50% 95%,#ffffffd1,#0000 38rem),linear-gradient(145deg,#f8e9de,#fff9ec 55%,#ebd8d2);
  min-height:96svh;
  padding:6.2rem 3vw 0;
  position:relative;
  overflow:hidden
}
.team-lineup {
  align-items:end;
  width:100%;
  min-height:510px;
  margin-top:1.5rem;
  display:flex
}
.team-person {
  transform-origin:bottom;
  min-width:0;
  height:505px;
  transition:flex .6s var(--ease), filter .45s ease, opacity .45s ease, transform .6s var(--ease);
  background:0 0;
  border:0;
  flex:8.333%;
  justify-content:center;
  align-items:end;
  padding:0;
  display:flex;
  position:relative
}
.team-person img {
  object-fit:contain;
  object-position:bottom center;
  filter:drop-shadow(0 15px 16px #3520141f);
  width:132%;
  max-width:none;
  height:455px;
  transition:transform .6s var(--ease)
}
.team-person>span {
  z-index:2;
  text-align:center;
  opacity:0;
  width:max-content;
  max-width:180px;
  transition:opacity .35s ease, transform .45s var(--ease);
  flex-direction:column;
  gap:.22rem;
  display:flex;
  position:absolute;
  top:1rem;
  left:50%;
  transform:translate(-50%,13px)
}
.team-person strong {
  font-size:.8rem
}
.team-person small {
  color:var(--burgundy);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.5rem;
  font-weight:750
}
.team-lineup--focused .team-person:not(.team-person--active) {
  filter:blur(5px)saturate(.35);
  opacity:.38;
  transform:scale(.94)
}
.team-person--active {
  z-index:5;
  flex:1.7 14%
}
.team-person--active img {
  transform:scale(1.1)translateY(-3px)
}
.team-person--active>span {
  opacity:1;
  transform:translate(-50%)
}
.trust-section {
  z-index:4;
  background:linear-gradient(145deg,#fff9ec,#f4e3da);
  padding:1.2rem 5vw 4.2rem;
  position:relative
}
.trust-title {
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1.3rem;
  display:grid
}
.trust-title i {
  background:var(--line);
  height:1px
}
.trust-title h2 {
  letter-spacing:.08em;
  margin:0;
  font-size:.72rem;
  font-weight:690
}
.partner-row {
  grid-template-columns:repeat(6,1fr);
  margin-top:1.7rem;
  display:grid
}
.partner {
  border-right:1px solid var(--line);
  min-height:92px;
  transition:color .3s ease, transform .4s var(--ease);
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:.45rem;
  display:flex
}
.partner:last-child {
  border-right:0
}
.partner:hover {
  color:var(--burgundy);
  transform:translateY(-4px)
}
.partner b {
  font-family:Georgia,serif;
  font-size:1.55rem;
  font-weight:400;
  line-height:1
}
.partner span {
  letter-spacing:.05em;
  font-size:.65rem
}
.contact-section {
  z-index:4;
  background:radial-gradient(circle at 86% 12%,#8000201a,#0000 25rem),linear-gradient(140deg,#fffdf4,#f8e4d8 60%,#ead2cd);
  padding:4.8rem 6vw 0;
  position:relative;
  overflow:hidden
}
.contact-heading>span {
  color:var(--burgundy);
  letter-spacing:.12em;
  font-size:.62rem;
  font-weight:750
}
.contact-heading h2 {
  color:var(--burgundy);
  letter-spacing:-.07em;
  margin:.6rem 0 2.2rem;
  font-size:clamp(2.8rem,5.6vw,6.2rem);
  font-weight:470;
  line-height:.92
}
.contact-grid {
  z-index:3;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.72fr);
  gap:4.5vw;
  max-width:1260px;
  padding-bottom:4rem;
  display:grid;
  position:relative
}
.contact-form {
  grid-template-columns:1fr 1fr;
  gap:.8rem 1.25rem;
  display:grid
}
.contact-form label {
  grid-template-columns:88px 1fr;
  align-items:center;
  gap:.65rem;
  display:grid
}
.contact-form label>span,
.contact-details dt {
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:.56rem;
  font-weight:700
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width:100%;
  min-width:0;
  color:var(--ink);
  background:#fff3;
  border:1px solid #492b1b4d;
  border-radius:0;
  outline:0;
  padding:.72rem .8rem;
  transition:background .25s,border-color .25s
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color:var(--burgundy);
  background:#ffffff8c
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color:#2f1f1680
}
.contact-form .message-field {
  grid-column:1/-1;
  align-items:start
}
.contact-form textarea {
  resize:vertical
}
.contact-form button {
  background:var(--burgundy);
  min-height:48px;
  color:var(--cream);
  text-transform:uppercase;
  letter-spacing:.05em;
  transition:background .3s ease, transform .3s var(--ease);
  border:0;
  grid-column:2;
  justify-content:space-between;
  align-items:center;
  padding:0 1rem;
  font-size:.61rem;
  font-weight:720;
  display:flex
}
.contact-form button:hover {
  background:var(--coffee);
  transform:translateY(-2px)
}
.contact-form button i {
  font-size:1rem;
  font-style:normal
}
.form-success {
  color:var(--burgundy);
  text-align:right;
  grid-column:1/-1;
  margin:0;
  font-size:.72rem
}
.contact-details {
  border-left:1px solid var(--line);
  padding-left:2.6rem
}
.contact-details h3 {
  margin:0 0 1.5rem;
  font-size:.9rem;
  font-weight:620
}
.contact-details dl {
  gap:1rem;
  margin:0;
  display:grid
}
.contact-details dl div {
  gap:.22rem;
  display:grid
}
.contact-details dt {
  color:var(--burgundy)
}
.contact-details dd {
  margin:0;
  font-size:.88rem;
  line-height:1.4
}
.location-map {
  background:#fffdf67a;
  height:145px;
  margin-top:1.5rem;
  position:relative;
  overflow:hidden
}
.location-map svg {
  width:100%;
  height:100%
}
.location-map path {
  fill:none;
  stroke:#6f4e3752;
  stroke-width:1.5px
}
.location-map circle {
  fill:var(--burgundy)
}
.location-map .map-pulse {
  fill:none;
  stroke:var(--burgundy);
  transform-origin:255px 113px;
  animation:1.8s ease-out infinite map-pulse
}
.location-map span {
  letter-spacing:.06em;
  font-size:.55rem;
  line-height:1.4;
  position:absolute;
  bottom:.65rem;
  left:.8rem
}
.footer-perch {
  filter:blur(4px);
  background:radial-gradient(#4a2b1a33,#0000 70%);
  border-radius:50%;
  width:36vw;
  height:16px;
  position:absolute;
  bottom:-.2rem;
  right:-8vw
}
.footer-bar {
  z-index:5;
  min-height:96px;
  color:var(--cream);
  background:linear-gradient(155deg, var(--burgundy), #4c101e);
  clip-path:ellipse(90% 92% at 50% 100%);
  justify-content:space-between;
  align-items:end;
  margin:0 -6vw;
  padding:3.5rem 6vw 1.3rem;
  display:flex;
  position:relative
}
.footer-bar p,
.footer-bar span,
.footer-bar a {
  letter-spacing:.04em;
  font-size:.55rem
}
.footer-bar p {
  margin:0
}
.footer-bar>div {
  align-items:center;
  gap:1rem;
  display:flex
}
.footer-bar a {
  border:1px solid #fff8e773;
  border-radius:50%;
  place-items:center;
  width:24px;
  height:24px;
  display:grid
}
.case-page {
  background:var(--cream);
  min-height:100svh
}
.case-nav {
  text-transform:uppercase;
  letter-spacing:.1em;
  justify-content:space-between;
  align-items:center;
  height:82px;
  padding:0 3.5vw;
  font-size:.68rem;
  display:flex
}
.case-hero {
  padding:3rem 3.5vw 0
}
.case-kicker {
  border-bottom:1px solid var(--line);
  text-transform:uppercase;
  letter-spacing:.08em;
  grid-template-columns:1fr 1fr auto;
  gap:2rem;
  padding-bottom:1.2rem;
  font-size:.62rem;
  display:grid
}
.case-hero h1 {
  letter-spacing:-.085em;
  max-width:1000px;
  margin:4rem 0;
  font-size:clamp(4rem,10vw,11rem);
  font-weight:480;
  line-height:.85
}
.case-cover {
  height:78svh;
  overflow:hidden
}
.case-cover img {
  object-fit:cover;
  width:100%;
  height:100%
}
.case-info {
  grid-template-columns:.75fr 1fr;
  gap:9vw;
  padding:8rem 3.5vw;
  display:grid
}
.case-facts {
  gap:2rem;
  display:grid
}
.case-facts div {
  border-bottom:1px solid var(--line);
  grid-template-columns:6rem 1fr;
  gap:1rem;
  padding-bottom:1rem;
  display:grid
}
.case-facts span {
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.6rem
}
.case-facts strong {
  font-size:.9rem
}
.case-statement {
  letter-spacing:-.055em;
  margin:0;
  font-size:clamp(2rem,4vw,4.5rem);
  line-height:1.05
}
.case-gallery {
  grid-template-columns:1fr 1fr;
  gap:1.2vw;
  padding:0 3.5vw 8rem;
  display:grid
}
.case-gallery figure {
  height:65vh;
  margin:0;
  overflow:hidden
}
.case-gallery figure:first-child {
  grid-column:1/-1;
  height:95vh
}
.case-gallery img {
  object-fit:cover;
  width:100%;
  height:100%
}
.next-case {
  background:var(--burgundy);
  color:var(--cream);
  gap:1rem;
  padding:6rem 3.5vw;
  display:grid
}
.next-case span {
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.64rem
}
.next-case strong {
  letter-spacing:-.08em;
  font-size:clamp(4rem,12vw,12rem);
  font-weight:460
}
@keyframes preloader-word {
  0% {
    opacity:0;
    transform:translateY(35px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes preloader-line {
  0% {
    transform:scaleX(0)
  }
  to {
    transform:scaleX(1)
  }
}
@keyframes letter-in {
  0% {
    opacity:0;
    transform:translateY(70px)rotate(4deg)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes fade-up {
  0% {
    opacity:0;
    transform:translateY(25px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes scroll-bob {
  0%,
  to {
    transform:translateY(0)
  }
  50% {
    transform:translateY(5px)
  }
}
@keyframes map-pulse {
  0% {
    opacity:.75;
    transform:scale(.55)
  }
  to {
    opacity:0;
    transform:scale(1.65)
  }
}
@media (width<=900px) {
  .hero {
    min-height:590px
  }
  .hero h1 {
    font-size:20vw;
    top:25%
  }
  .hero-tagline {
    bottom:18%
  }
  .about-grid {
    grid-template-columns:1fr;
    gap:1.4rem
  }
  .about-divider {
    width:80px;
    height:1px
  }
  .service-strip {
    grid-template-columns:repeat(3,1fr);
    row-gap:1.3rem
  }
  .service-strip span:nth-child(3) {
    border-right:0
  }
  .project-card {
    width:clamp(210px,30vw,290px);
    transform:translate(-50%, -50%) translateX(calc(var(--side) * 25vw)) rotateY(calc(var(--side) * -12deg)) translateZ(calc(var(--depth) * -80px)) scale(calc(1 - var(--depth) * .06))
  }
  .team-section {
    min-height:auto;
    padding-bottom:3rem
  }
  .team-lineup {
    scrollbar-width:none;
    justify-content:flex-start;
    min-height:480px;
    overflow-x:auto
  }
  .team-person {
    flex:0 0 12.5vw;
    min-width:100px
  }
  .team-person--active {
    flex-basis:150px
  }
  .partner-row {
    grid-template-columns:repeat(3,1fr)
  }
  .partner {
    border-bottom:1px solid var(--line)
  }
  .partner:nth-child(3) {
    border-right:0
  }
  .contact-grid {
    grid-template-columns:1fr
  }
  .contact-details {
    border-left:0;
    border-top:1px solid var(--line);
    padding:2rem 0 0
  }
}
@media (width<=680px) {
  .site-header {
    height:60px;
    padding:0 5vw
  }
  .site-header nav {
    z-index:-1;
    background:var(--cream);
    opacity:0;
    visibility:hidden;
    transition:opacity .35s ease, transform .35s var(--ease), visibility .35s;
    flex-direction:column;
    justify-content:center;
    gap:2rem;
    padding:12vh 8vw;
    display:flex;
    position:fixed;
    inset:0;
    transform:translateY(-12px)
  }
  .site-header nav.nav-open {
    opacity:1;
    visibility:visible;
    transform:none
  }
  .site-header nav a {
    letter-spacing:-.04em;
    font-size:2.5rem
  }
  .menu-toggle {
    background:0 0;
    border:0;
    place-content:center;
    gap:6px;
    width:34px;
    height:34px;
    display:grid
  }
  .menu-toggle i {
    background:currentColor;
    width:21px;
    height:1px
  }
  .hero {
    height:88svh;
    min-height:560px
  }
  .hero h1 {
    font-size:19.5vw;
    top:28%
  }
  .hero-tagline {
    font-size:1.05rem;
    bottom:21%;
    left:8vw;
    right:8vw
  }
  .hero-perch {
    top:59%
  }
  .scroll-note span {
    display:none
  }
  .showreel-section {
    height:150svh
  }
  .showreel-frame {
    width:calc(92vw + var(--reel-progress) * 8vw);
    height:calc(58vh + var(--reel-progress) * 42vh)
  }
  .showreel-frame>p {
    display:none
  }
  .about-section {
    padding:4rem 5vw 2.5rem
  }
  .about-grid h2 {
    font-size:3.5rem
  }
  .service-strip {
    grid-template-columns:repeat(2,1fr)
  }
  .service-strip span {
    place-items:center;
    min-height:38px;
    display:grid
  }
  .service-strip span:nth-child(odd) {
    border-right:1px solid var(--line)
  }
  .service-strip span:nth-child(2n) {
    border-right:0
  }
  .work-section {
    height:300svh
  }
  .work-sticky {
    padding-top:5rem
  }
  .section-heading h2 {
    font-size:2.6rem
  }
  .project-card {
    width:58vw;
    transform:translate(-50%, -50%) translateX(calc(var(--side) * 44vw)) rotateY(calc(var(--side) * -14deg)) translateZ(calc(var(--depth) * -100px)) scale(calc(1 - var(--depth) * .08))
  }
  .project-image {
    height:48vh;
    min-height:320px
  }
  .team-section {
    padding-inline:0
  }
  .team-section .section-heading {
    padding:0 5vw
  }
  .team-lineup {
    padding:0 4vw
  }
  .team-person {
    flex-basis:120px
  }
  .partner-row {
    grid-template-columns:repeat(2,1fr)
  }
  .partner:nth-child(2n) {
    border-right:0
  }
  .partner:nth-child(3) {
    border-right:1px solid var(--line)
  }
  .contact-section {
    padding:4rem 5vw 0
  }
  .contact-heading h2 {
    font-size:3.4rem
  }
  .contact-form {
    grid-template-columns:1fr
  }
  .contact-form label {
    grid-template-columns:78px 1fr
  }
  .contact-form label,
  .contact-form .message-field,
  .contact-form button {
    grid-column:1
  }
  .contact-form button {
    width:calc(100% - 90px);
    margin-left:90px
  }
  .footer-bar {
    clip-path:ellipse(125% 92% at 50% 100%);
    flex-direction:column;
    justify-content:end;
    align-items:flex-start;
    gap:.8rem;
    min-height:120px;
    margin-inline:-5vw;
    padding-inline:5vw
  }
  .case-kicker {
    grid-template-columns:1fr
  }
  .case-cover {
    height:62svh
  }
  .case-info {
    grid-template-columns:1fr;
    padding-block:5rem
  }
  .case-gallery {
    grid-template-columns:1fr
  }
  .case-gallery figure,
  .case-gallery figure:first-child {
    grid-column:auto;
    height:58vh
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  .milich-error-page{min-height:100vh;display:grid;place-items:center;align-content:center;gap:18px;padding:30px;background:#171614;color:#e9e2d7;text-align:center}.milich-error-mark{font-size:clamp(5rem,18vw,13rem);font-weight:800;letter-spacing:-.14em;line-height:.8}.milich-error-mark span{color:#b98752;margin-right:8px}.milich-error-page p{font:15px 'DM Mono',monospace}.milich-error-page small{color:#aaa;font:11px 'DM Mono',monospace}.milich-error-page a{margin-top:12px;padding:13px 22px;border:1px solid #b98752;color:#e9e2d7;font:11px 'DM Mono',monospace;text-transform:uppercase}
  *,
  :before,
  :after {
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important
  }
  [data-reveal] {
    opacity:1;
    transform:none
  }
}
@property --tw-rotate-x {
  syntax:"*";
  inherits:false
}
@property --tw-rotate-y {
  syntax:"*";
  inherits:false
}
@property --tw-rotate-z {
  syntax:"*";
  inherits:false
}
@property --tw-skew-x {
  syntax:"*";
  inherits:false
}
@property --tw-skew-y {
  syntax:"*";
  inherits:false
}
@property --tw-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-shadow-color {
  syntax:"*";
  inherits:false
}
@property --tw-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%
}
@property --tw-inset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-inset-shadow-color {
  syntax:"*";
  inherits:false
}
@property --tw-inset-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%
}
@property --tw-ring-color {
  syntax:"*";
  inherits:false
}
@property --tw-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-inset-ring-color {
  syntax:"*";
  inherits:false
}
@property --tw-inset-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-ring-inset {
  syntax:"*";
  inherits:false
}
@property --tw-ring-offset-width {
  syntax:"<length>";
  inherits:false;
  initial-value:0
}
@property --tw-ring-offset-color {
  syntax:"*";
  inherits:false;
  initial-value:#fff
}
@property --tw-ring-offset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}

.contact-form--modal-trigger{align-content:center;min-height:270px;gap:1.4rem}
.contact-form--modal-trigger p{max-width:25rem;color:var(--cream);font-size:1rem;line-height:1.8}
.contact-modal-trigger,.service-request-modal__submit{align-items:center;justify-content:space-between;gap:1rem;width:min(100%,22rem);padding:1rem 1.15rem;border:1px solid #ffffff66;border-radius:999px;background:var(--cream);color:var(--ink);cursor:pointer;display:flex;transition:transform .3s var(--ease),background .3s ease,color .3s ease}
.contact-modal-trigger:hover,.service-request-modal__submit:hover{background:var(--burgundy);color:var(--cream);transform:translateY(-3px)}
.contact-modal-trigger i,.service-request-modal__submit i{font-style:normal;font-size:1.4rem}
body.modal-open{overflow:hidden}
.service-request-modal{z-index:2000;visibility:hidden;opacity:0;pointer-events:none;position:fixed;inset:0;transition:opacity .35s ease,visibility .35s ease}
.service-request-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.service-request-modal__backdrop{position:absolute;inset:0;background:#160b0bd9;backdrop-filter:blur(12px)}
.service-request-modal__dialog{position:relative;width:min(92vw,760px);max-height:90vh;margin:5vh auto;overflow:auto;padding:2.2rem;border:1px solid #ffffff30;border-radius:1.2rem;background:linear-gradient(145deg,#4b2025f5,#1f1314f8 70%);box-shadow:0 30px 100px #00000080;color:var(--cream);transform:translateY(20px) scale(.98);transition:transform .35s var(--ease)}
.service-request-modal.is-open .service-request-modal__dialog{transform:none}
.service-request-modal__close{position:absolute;top:1rem;left:1rem;width:2.2rem;height:2.2rem;border:1px solid #ffffff38;border-radius:50%;background:#ffffff12;color:var(--cream);cursor:pointer;font-size:1.4rem;line-height:1}
.service-request-modal__heading{margin-bottom:1.5rem;padding-left:2.8rem}
.service-request-modal__heading span{color:#e0a679;font-size:.62rem;letter-spacing:.15em}
.service-request-modal__heading h2{margin:.5rem 0;color:var(--cream);font-size:clamp(1.5rem,4vw,2.5rem)}
.service-request-modal__heading p{margin:0;color:#eadbd1b8;line-height:1.8}
.service-request-modal__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}
.service-request-modal__form label{display:grid;gap:.45rem}
.service-request-modal__form label span{color:#eadbd1c7;font-size:.7rem}
.service-request-modal__form input,.service-request-modal__form textarea,.service-request-modal__form select{width:100%;border:1px solid #ffffff2e;border-radius:.65rem;outline:0;padding:.8rem .85rem;background:#120c0db8;color:var(--cream)}
.service-request-modal__form select option{background:#241416;color:var(--cream)}
.service-request-modal__form input:focus,.service-request-modal__form textarea:focus,.service-request-modal__form select:focus{border-color:#e0a679;box-shadow:0 0 0 3px #e0a67924}
.service-request-modal__message{margin-top:1rem}
.service-request-modal__status{display:none;margin:1rem 0;padding:.8rem 1rem;border-radius:.65rem;line-height:1.8}
.service-request-modal__status.is-visible{display:block}
.service-request-modal__status.is-success{border:1px solid #8fc6a288;background:#477b5550;color:#c9f0d4}
.service-request-modal__status.is-error{border:1px solid #e59a9a88;background:#8a303050;color:#ffd1d1}
.service-request-modal.is-open,.service-request-modal.is-open *{cursor:auto!important}
.service-request-modal.is-open button{cursor:pointer!important}
.service-success-check{align-items:center;justify-content:center;width:2.8rem;height:2.8rem;margin-left:.7rem;border:2px solid #b9f1c5;border-radius:50%;background:#6ca978;color:#fff;font-size:1.8rem;line-height:1;display:inline-flex;animation:service-check-pop .55s var(--ease) both}
.service-request-modal__status.is-success{align-items:center;gap:.7rem;display:flex}
@keyframes service-check-pop{0%{opacity:0;transform:scale(.2) rotate(-25deg)}70%{transform:scale(1.15) rotate(5deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
.service-request-modal__submit{margin-top:1.25rem;background:var(--cream)}
.service-request-modal__submit:disabled{cursor:wait;opacity:.65}
@media(max-width:700px){.service-request-modal__dialog{width:calc(100vw - 1.2rem);max-height:calc(100vh - 1.2rem);margin:.6rem auto;padding:1.4rem}.service-request-modal__grid{grid-template-columns:1fr}}


/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This CSS file is for the Picture-in-Picture toggle.
 *
 * The "experiment" class is used to enable styling for the VARIANT version
 * of the toggle for upcoming PiP Nimbus experiments.
 * @see Bug 1811314.
 *
 * To see each section of style changes, search "PIP STYLING" in this file.
 */

/* SHARED PIP STYLING */

.controlsOverlay[hidetoggle="true"].hovering > .pip-wrapper:not(.hovering) {
  /* If this isn't !important, it will fail to override the other opacity
   * rules, which are currently defined below this point in this file. */
  opacity: 0 !important;
}

.pip-wrapper {
  position: absolute;
  cursor: pointer;
  -moz-appearance: none;
  background: none;
  color: inherit;
  border: none;
  text-align: unset;
  top: calc(70% - 40px);
  opacity: 0;
  padding-inline: 0;
  transition: opacity 200ms;
  --pip-icon-size: 24px;
  --pip-icon-width-with-margins: calc(2 * var(--pip-toggle-margin) + var(--pip-icon-size));
  --pip-highlight-style: solid rgba(0, 254, 255, 1);
  --pip-highlight-width: 2px;
  --pip-toggle-distanceFromVideoEdge: 18px;
  --pip-toggle-focus-outline-offset: 1px;
  --pip-toggle-margin: 8px;
  --pip-border-radius-toggle: 4px;
  --pip-box-shadow-default: 0 0 4px rgba(255, 255, 255, 0.9);
  --pip-box-shadow-hover: 0 0 10px rgba(255, 255, 255, 0.7);
  --pip-expanded-height: 40px;
  --pip-expanded-min-width: 200px;
  --pip-expanded-max-width: max-content;
}

/* Adjust sizing of the regular toggle wrapper to correctly show the
 * focus outline when navigating via keyboard. */
.pip-wrapper[has-used],
.pip-wrapper[small-video] {
  height: var(--pip-icon-width-with-margins);
  width: var(--pip-icon-width-with-margins);
  border-radius: var(--pip-border-radius-toggle);
  margin-right: calc(var(--pip-icon-width-with-margins) * -1);
}

.pip-wrapper[policy="hidden"] {
  display: none;
}

.pip-wrapper[policy="top"] {
  top: 0%;
  translate: var(--pip-toggle-translate-x);
}

.pip-wrapper[policy="one-quarter"] {
  top: 25%;
}

.pip-wrapper[policy="middle"] {
  top: 50%;
}

.pip-wrapper[policy="three-quarters"] {
  top: 75%;
}

.pip-wrapper[policy="bottom"] {
  top: 100%;
  translate: var(--pip-toggle-translate-x) -100%;
}

.pip-wrapper[medium-video] > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: 13px;
}

.pip-wrapper[medium-video] > .pip-expanded {
  font-size: 11px;
}

.pip-wrapper[position="right"] {
  /* move from the right by total width of pip toggle so that it is at least visible in the video element */
  right: calc(var(--pip-icon-width-with-margins) + var(--pip-toggle-distanceFromVideoEdge));
}

/* Re-position the first-time toggle such that it will always be the same distance away from the right edge
 * of the video, even if the label and/or message string(s) are long. */
.pip-wrapper[position="right"] > .pip-expanded {
  translate: calc(-100% + var(--pip-icon-width-with-margins));
  transform-origin: right;
}

.pip-wrapper[position="left"] {
  left: var(--pip-toggle-distanceFromVideoEdge);
}

.pip-expanded,
.pip-small,
.pip-icon,
.pip-explainer {
  position: absolute;
  left: 0;
  top: 0;
}

.pip-wrapper > .pip-expanded {
  display: flex;
  opacity: 0;
  align-items: center;
  scale: 0.33 1;
  font-size: 14px;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-small {
  opacity: 0;
  transition: opacity 200ms;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-expanded {
  opacity: 1;
  scale: 1;
  pointer-events: none;
}

.pip-wrapper:not([small-video], [has-used]).hovering > .pip-expanded {
  pointer-events: auto;
}

.pip-icon {
  top: 8px;
  left: 8px;
  pointer-events: none;
  background-image: url("chrome://global/skin/media/picture-in-picture-open.svg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: var(--pip-icon-size) var(--pip-icon-size);
  -moz-context-properties: fill;
  fill: currentColor;
  height: var(--pip-icon-size);
  width: var(--pip-icon-size);
}

.videocontrols[localedir="rtl"] .pip-icon {
  transform: scaleX(-1);
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-left: var(--pip-icon-width-with-margins);
  margin-right: var(--pip-toggle-margin);
}

.pip-small {
  width: 40px;
  height: 40px;
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-icon {
  display: none;
}

.pip-wrapper:is([small-video], [has-used]) > .pip-expanded,
.pip-wrapper[position="right"]:not([small-video], [has-used]) > .pip-icon {
  display: none;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label {
  display: flex;
  flex-direction: row;
  align-content: center;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon,
.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-block: auto;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  margin-inline: var(--pip-toggle-margin);
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-right: var(--pip-toggle-margin);
}

@media (prefers-reduced-motion) {
  .pip-wrapper,
  .pip-expanded,
  .pip-small,
  .pip-explainer {
    /* Transition changes in other rules may override this one if reduced motion is preferred.
     * Make sure this one always takes priority. */
    transition: none !important;
  }
}

/* NO EXPERIMENT - PIP STYLING */

.controlsOverlay:not(.experiment).hovering > .pip-wrapper:not(:focus-visible) {
  opacity: 0.8;
}

.controlsOverlay:not(.experiment).hovering > .pip-wrapper.hovering {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it at 100% opacity */
.pip-wrapper:not([policy="hidden"], .experiment):focus-visible {
  opacity: 1;
}

/* If showing the expanded PiP toggle, don't outline the
 * parent wrapper element - the expanded toggle handles its
 * own outline. This also affects the regular toggle for small-videos. */
.pip-wrapper:not([policy="hidden"], [has-used], .experiment):focus-visible {
  outline: none;
}

/* Override outline set by ua.css for the regular toggle. */
.pip-wrapper[has-used]:not([policy="hidden"], .experiment):focus-visible {
  outline: var(--control-focus-outline);
}

.pip-wrapper:not(.experiment) > .pip-small {
  background-color: rgba(12, 12, 13, 0.65);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper:not(.experiment) > .pip-expanded,
.pip-wrapper:not(.experiment) > .pip-small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* If first-time toggle is visible and then switched to the regular toggle for smaller videos,
 * maintain the border shown on the first-time toggle. */
.pip-wrapper:not([has-used], .experiment) > .pip-small {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
}

.pip-wrapper:not(.experiment) > .pip-expanded {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  transition:
    opacity 250ms,
    scale 200ms;
  height: var(--pip-expanded-height);
  background-color: rgba(12, 12, 13, 0.9);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: 8px;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded {
  box-shadow: none;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  /* Remove bottom border but keep text centred with padding. */
  border-bottom: none;
  padding-bottom: var(--pip-highlight-width);
}

.pip-wrapper:not([small-video], [has-used], .experiment).hovering > .pip-expanded {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Toggle message only appears for CONTROL variant. */
.pip-wrapper:not(.experiment) > .pip-expanded > .pip-explainer {
  padding: 6px 16px 8px 8px;
  translate: 0;
  transition:
    opacity 250ms,
    translate 190ms;
  transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
  background: rgba(12, 12, 13, 0.65);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  border-top: 0;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  opacity: 0;
  margin-inline: calc(-1 * var(--pip-highlight-width));
  width: calc(100% - 24px);
  word-break: break-word;
  pointer-events: none;
  user-select: none;
}

.videocontrols[localedir="rtl"] .pip-wrapper:not(.experiment) > .pip-explainer {
  text-align: right;
  direction: rtl;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded > .pip-explainer {
  pointer-events: auto;
  opacity: 1;
  translate: 0 calc(40px - var(--pip-highlight-width));
}

/* EXPERIMENT ONLY - PIP STYLING */

/* Since we change the outline for the first-time PiP toggle VARIANT,
 * override the focus outline in videocontrols.css as well so that
 * there is design consistency. */
.controlsContainer.experiment {
  --control-focus-outline: 2px solid #0060df;
}

.pip-wrapper.experiment > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: min(16px, 1.4em);
}

/* Only the background will be set at 70% opacity. The icons and labels will remain at 100%. */
.controlsOverlay.experiment.hovering > .pip-wrapper {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it and override outline set by ua.css.
 * Opacity only affects the toggle icon and label, not the background, which is handled separately. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible {
  opacity: 1;
  /* Wrapper size won't always match pip-small or pip-expanded, so don't apply outline on wrapper. */
  outline: none;
}

/* For the regular PiP toggle, take into consideration small videos and has-used=true. */
.pip-wrapper.experiment:is([has-used], [small-video]):not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], [has-used]):focus-visible > .pip-expanded {
  outline: var(--control-focus-outline);
  outline-offset: var(--pip-toggle-focus-outline-offset);
}

.pip-wrapper.experiment > .pip-expanded > .pip-explainer {
  display: none;
}

.pip-wrapper.experiment > .pip-small {
  border-radius: var(--pip-border-radius-toggle);
  transition: background-color 200ms;
}

.pip-wrapper.experiment > .pip-expanded {
  transition:
    opacity 250ms,
    scale 200ms,
    translate 190ms,
    background-color 200ms;
  height: var(--pip-expanded-height);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper.experiment > .pip-small,
.pip-wrapper.experiment > .pip-expanded {
  background-color: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.pip-wrapper.experiment.hovering > .pip-small,
.pip-wrapper.experiment.hovering > .pip-expanded {
  background-color: rgba(0, 0, 0, 1);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-expanded {
  box-shadow: var(--pip-box-shadow-default);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-expanded {
  box-shadow: var(--pip-box-shadow-hover);
}

/* Remove white box shadow if there is keyboard focus on the toggle and
 * replace it with blue box shadow instead. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-expanded {
  box-shadow: 0 0 10px rgba(0, 96, 223, 0.9);
}


//
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.w3.org/1999/xhtml");

.videocontrols {
  writing-mode: horizontal-tb;
  width: 100%;
  height: 100%;
  display: inline-block;
  overflow: hidden;

  direction: ltr;
  /* Prevent selection from interacting weirdly with the page,
   * see bug 1766093. Our text selection story with shadow dom should be
   * better, see bug 1590379 */
  user-select: none;
  /* Prevent unwanted style inheritance. See bug 554717. */
  text-align: left;
  list-style-image: none !important;
  font: normal normal normal 100% / normal sans-serif !important;
  text-decoration: none !important;
  white-space: normal !important;
}

.videocontrols[flipped] {
  transform: scaleX(-1);
}

.controlsContainer {
  --clickToPlay-size: 48px;
  --button-size: 30px;
  --timer-size: 40px;
  --timer-long-size: 60px;
  --track-size: 5px;
  --thumb-size: 13px;
  --label-font-size: 13px;
  --pip-toggle-padding: 5px;
  --control-focus-outline: 2px solid #00ddff;
  --control-focus-outline-offset: -2px;
  --pip-toggle-icon-width-height: 16px;
  --pip-toggle-translate-x: calc(100% - var(--pip-toggle-icon-width-height) - 2 * var(--pip-toggle-padding));

  color: #fff;
}
.controlsContainer.touch {
  --clickToPlay-size: 64px;
  --button-size: 40px;
  --timer-size: 52px;
  --timer-long-size: 78px;
  --track-size: 7px;
  --thumb-size: 16px;
  --label-font-size: 16px;
}

/* Some CSS custom properties defined here are referenced by videocontrols.js */
.controlBar {
  /* Do not delete: these variables are accessed by JavaScript directly.
     see videocontrols.js and search for |-width|. */
  --clickToPlay-width: var(--clickToPlay-size);
  --playButton-width: var(--button-size);
  --scrubberStack-width: 64px;
  --muteButton-width: var(--button-size);
  --volumeStack-width: 48px;
  --closedCaptionButton-width: var(--button-size);
  --fullscreenButton-width: var(--button-size);
  --positionDurationBox-width: var(--timer-size);
  --durationSpan-width: var(--timer-size);
  --positionDurationBox-width-long: var(--timer-long-size);
  --durationSpan-width-long: var(--timer-long-size);
}

.touch .controlBar {
  /* Do not delete: these variables are accessed by JavaScript directly.
     see videocontrols.js and search for |-width|. */
  --scrubberStack-width: 84px;
  --volumeStack-width: 64px;
}

.controlsContainer [hidden],
.controlBar[hidden] .progressBar,
.controlBar[hidden] .bufferBar,
.videocontrols[inDOMFullscreen] > .controlsContainer > .controlsOverlay > #pictureInPictureToggle {
  display: none;
}

/* We hide the controlBar visually so it doesn't obscure the video. However,
 * we still want to expose it to a11y so users who don't use a mouse can access
 * it.
 */
.controlBar[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
}

.controlBar[size="hidden"] {
  display: none;
}

.controlsSpacer[hideCursor] {
  cursor: none;
}

.controlsContainer,
.progressContainer {
  position: relative;
  height: 100%;
}

.stackItem {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.statusOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(80, 80, 80, 0.85);
}

.controlsOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.controlsSpacerStack {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.controlBar {
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 40px;
  padding: 0 9px;
  background-color: rgba(26, 26, 26, 0.8);
}

.touch .controlBar {
  height: 52px;
}

.controlBar > .button {
  /* Prevent #textTrackListContainer from blocking clicks on controls */
  z-index: 1;
  height: 100%;
  min-width: var(--button-size);
  min-height: var(--button-size);
  padding: 6px;
  border: 0;
  margin: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
  background-clip: content-box;
  -moz-context-properties: fill;
  fill: currentColor;
  color: inherit;
  outline: none;
}

/* Keyboard focus styling for interactive control elements (includes control
   bar, click to play and track list) */
.controlBar > .button:focus-visible,
.volumeControl:focus-visible,
.scrubber:focus-visible,
.clickToPlay:focus-visible,
.textTrackList > .textTrackItem:focus-visible {
  outline: var(--control-focus-outline);
  outline-offset: var(--control-focus-outline-offset);
}

.touch .controlBar > .button {
  background-size: 24px 24px;
}

.controlBar > .button:enabled:hover {
  fill: #48a0f7;
}

.controlBar > .button:enabled:hover:active {
  fill: #2d89e6;
}

.playButton {
  background-image: url(chrome://global/skin/media/pause-fill.svg);
}
.playButton[paused] {
  background-image: url(chrome://global/skin/media/play-fill.svg);
}

.muteButton {
  background-image: url(chrome://global/skin/media/audio.svg);
}
.muteButton[muted] {
  background-image: url(chrome://global/skin/media/audio-muted.svg);
}
.muteButton[noAudio] {
  background-image: url(chrome://global/skin/media/audioNoAudioButton.svg);
}
.muteButton[noAudio] + .volumeStack {
  display: none;
}

.closedCaptionButton {
  background-image: url(chrome://global/skin/media/closedCaptionButton-cc-off.svg);
}
.closedCaptionButton[enabled] {
  background-image: url(chrome://global/skin/media/closedCaptionButton-cc-on.svg);
}

.fullscreenButton {
  background-image: url(chrome://global/skin/media/fullscreenEnterButton.svg);
}
.fullscreenButton[fullscreened] {
  background-image: url(chrome://global/skin/media/fullscreenExitButton.svg);
}

.controlBarSpacer {
  flex-grow: 1;
}

.volumeControl::-moz-range-thumb,
.scrubber::-moz-range-thumb {
  height: var(--thumb-size);
  width: var(--thumb-size);
  border: none;
  border-radius: 50%;
  /* this is a foreground element even though it is implemented as a background */
  background-color: currentColor;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.65));
}

.volumeControl,
.scrubber {
  outline: none;
}

.progressBackgroundBar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.progressStack {
  position: relative;
  width: 100%;
  height: var(--track-size);
}

.scrubberStack {
  /* minus margin to get basis of required width */
  min-width: calc(var(--scrubberStack-width) - 18px);
  flex-basis: calc(var(--scrubberStack-width) - 18px);
  flex-grow: 2;
  flex-shrink: 0;
  margin: 0 9px;
}

.volumeStack {
  max-width: 60px;
  min-width: var(--volumeStack-width);
  flex-grow: 1;
  flex-shrink: 0;
  margin-right: 6px;
  margin-left: 4px;
}

.bufferBar,
.progressBar,
.scrubber,
.volumeControl {
  bottom: 0;
  color: inherit;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: calc(var(--track-size) / 2);
  margin: 0;
  background: none;
  outline: none;
}

.bufferBar {
  background-color: rgba(0, 0, 0, 0.7);
}

.bufferBar::-moz-progress-bar,
.progressBar::-moz-progress-bar {
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: calc(var(--track-size) / 2);
  background: none;
}

.bufferBar::-moz-progress-bar {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: calc(var(--track-size) / 2);
}

.progressBar::-moz-progress-bar {
  background-color: #00b6f0;
}

.scrubber:hover::-moz-range-thumb,
.volumeControl:hover::-moz-range-thumb {
  background-color: #48a0f7;
}

.scrubber:active::-moz-range-thumb,
.volumeControl:active::-moz-range-thumb {
  background-color: #2d89e6;
}

.scrubber::-moz-range-track,
.scrubber::-moz-range-progress {
  background-color: transparent;
}

.volumeControl::-moz-range-progress,
.volumeControl::-moz-range-track {
  height: var(--track-size);
  border-radius: calc(var(--track-size) / 2);
}

.volumeControl::-moz-range-progress {
  /* this is a foreground element even though it is implemented as a background */
  background-color: currentColor;
}

.volumeControl::-moz-range-track {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (prefers-contrast) {
  /* Show a border in high contrast mode since background-colors
     are not shown. */
  .scrubber::-moz-range-track,
  .volumeControl::-moz-range-track {
    border: 1px solid;
  }

  .scrubber::-moz-range-progress,
  .volumeControl::-moz-range-progress {
    border: 2px solid;
  }
}

.textTrackListContainer {
  position: absolute;
  right: 5px;
  bottom: 45px;
  top: 5px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.textTrackList {
  flex: 0 1 auto;
  border: 1px solid #000;
  border-radius: 2.5px;
  padding: 5px 0;
  vertical-align: middle;
  background-color: #000;
  opacity: 0.7;
  overflow-y: auto;
}

.touch .textTrackList {
  bottom: 58px;
}

.textTrackList > .textTrackItem {
  display: block;
  width: 100%;
  height: var(--button-size);
  font-size: var(--label-font-size);
  padding: 2px 10px;
  border: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  background-color: transparent;
  color: inherit;
}

.textTrackList > .textTrackItem:hover {
  background-color: #444;
}

.textTrackList > .textTrackItem[aria-checked="true"] {
  color: #48a0f7;
}

.positionLabel,
.durationLabel {
  display: none;
}

.positionDurationBox {
  text-align: center;
  padding-inline-start: 1px;
  padding-inline-end: 9px;
  white-space: nowrap;
  font: message-box;
  font-size: var(--label-font-size);
  font-size-adjust: 0.55;
  font-variant-numeric: tabular-nums;
}

@media (-moz-platform: macos) {
  .positionDurationBox {
    font-size-adjust: unset;
    font-family: "Helvetica Neue", "Helvetica", sans-serif;
  }
}

.duration {
  display: inline-block;
  white-space: pre;
  color: #929292;
}

.statusIcon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
}

/* Not showing the throbber on mobile because of conflict with m.youtube.com (see bug 1289412) */
.controlsContainer:not(.mobile) .statusIcon[type="throbber"] {
  background: url(chrome://global/skin/media/throbber.png) no-repeat center;
}

.controlsContainer:not(.mobile) .statusIcon[type="throbber"][stalled] {
  background: url(chrome://global/skin/media/stalled.png) no-repeat center;
}

.statusIcon[type="error"],
.statusIcon[type="pictureInPicture"] {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.statusIcon[type="error"] {
  min-width: 70px;
  min-height: 60px;
  background-image: url(chrome://global/skin/media/error.png);
}

.statusIcon[type="pictureInPicture"] {
  min-width: 84px;
  min-height: 84px;
  background-image: url(chrome://global/skin/media/picture-in-picture-open.svg);
  -moz-context-properties: fill;
  fill: currentColor;
}

.videocontrols[localedir="rtl"] .statusIcon[type="pictureInPicture"] {
  transform: scaleX(-1);
}

.pictureInPictureToggleLabel {
  margin-inline-start: var(--pip-toggle-padding);
}

/* Overlay Play button */
.clickToPlay {
  appearance: none;
  border: none;
  min-width: var(--clickToPlay-size);
  min-height: var(--clickToPlay-size);
  border-radius: 50%;
  background-image: url(chrome://global/skin/media/play-fill.svg);
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 40% 40%;
  background-color: #1a1a1a;
  -moz-context-properties: fill;
  fill: currentColor;
  color: inherit;
  opacity: 0.8;
  position: relative;
  top: 20px;
}

.controlsSpacerStack:hover > .clickToPlay,
.clickToPlay:hover {
  opacity: 0.55;
}

.controlsSpacerStack:hover > .clickToPlay[fadeout] {
  opacity: 0;
}

.controlBar[fullscreen-unavailable] .fullscreenButton {
  display: none;
}

.statusOverlay[fadeout],
.statusOverlay[error] + .controlsOverlay > .controlsSpacerStack {
  opacity: 0;
}

.pictureInPictureOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  background-color: rgb(12, 12, 13);
}

/* Status description formatting */
.statusLabel {
  display: none;
  padding: 0 10px;
  text-align: center;
  font: message-box;
  font-size: 14px;
}

.videocontrols[localedir="rtl"] .statusLabel {
  direction: rtl;
}

[status="errorAborted"] > #errorAborted,
[status="errorNetwork"] > #errorNetwork,
[status="errorDecode"] > #errorDecode,
[status="errorSrcNotSupported"] > #errorSrcNotSupported,
[status="errorNoSource"] > #errorNoSource,
[status="errorGeneric"] > #errorGeneric,
[status="pictureInPicture"] > #pictureInPicture {
  display: inline;
}

@media (-moz-platform: windows) and (prefers-contrast) {
  .controlsSpacer,
  .clickToPlay {
    background-color: transparent;
  }
}

.a11y-only {
  position: absolute;
  left: -10000px;
  width: 100px;
  height: 100px;
}

:host::cue {
  font-size: var(--cue-font-size);
  writing-mode: var(--cue-writing-mode, inherit);
}
//
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This CSS file is for the Picture-in-Picture toggle.
 *
 * The "experiment" class is used to enable styling for the VARIANT version
 * of the toggle for upcoming PiP Nimbus experiments.
 * @see Bug 1811314.
 *
 * To see each section of style changes, search "PIP STYLING" in this file.
 */

/* SHARED PIP STYLING */

.controlsOverlay[hidetoggle="true"].hovering > .pip-wrapper:not(.hovering) {
  /* If this isn't !important, it will fail to override the other opacity
   * rules, which are currently defined below this point in this file. */
  opacity: 0 !important;
}

.pip-wrapper {
  position: absolute;
  cursor: pointer;
  -moz-appearance: none;
  background: none;
  color: inherit;
  border: none;
  text-align: unset;
  top: calc(70% - 40px);
  opacity: 0;
  padding-inline: 0;
  transition: opacity 200ms;
  --pip-icon-size: 24px;
  --pip-icon-width-with-margins: calc(2 * var(--pip-toggle-margin) + var(--pip-icon-size));
  --pip-highlight-style: solid rgba(0, 254, 255, 1);
  --pip-highlight-width: 2px;
  --pip-toggle-distanceFromVideoEdge: 18px;
  --pip-toggle-focus-outline-offset: 1px;
  --pip-toggle-margin: 8px;
  --pip-border-radius-toggle: 4px;
  --pip-box-shadow-default: 0 0 4px rgba(255, 255, 255, 0.9);
  --pip-box-shadow-hover: 0 0 10px rgba(255, 255, 255, 0.7);
  --pip-expanded-height: 40px;
  --pip-expanded-min-width: 200px;
  --pip-expanded-max-width: max-content;
}

/* Adjust sizing of the regular toggle wrapper to correctly show the
 * focus outline when navigating via keyboard. */
.pip-wrapper[has-used],
.pip-wrapper[small-video] {
  height: var(--pip-icon-width-with-margins);
  width: var(--pip-icon-width-with-margins);
  border-radius: var(--pip-border-radius-toggle);
  margin-right: calc(var(--pip-icon-width-with-margins) * -1);
}

.pip-wrapper[policy="hidden"] {
  display: none;
}

.pip-wrapper[policy="top"] {
  top: 0%;
  translate: var(--pip-toggle-translate-x);
}

.pip-wrapper[policy="one-quarter"] {
  top: 25%;
}

.pip-wrapper[policy="middle"] {
  top: 50%;
}

.pip-wrapper[policy="three-quarters"] {
  top: 75%;
}

.pip-wrapper[policy="bottom"] {
  top: 100%;
  translate: var(--pip-toggle-translate-x) -100%;
}

.pip-wrapper[medium-video] > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: 13px;
}

.pip-wrapper[medium-video] > .pip-expanded {
  font-size: 11px;
}

.pip-wrapper[position="right"] {
  /* move from the right by total width of pip toggle so that it is at least visible in the video element */
  right: calc(var(--pip-icon-width-with-margins) + var(--pip-toggle-distanceFromVideoEdge));
}

/* Re-position the first-time toggle such that it will always be the same distance away from the right edge
 * of the video, even if the label and/or message string(s) are long. */
.pip-wrapper[position="right"] > .pip-expanded {
  translate: calc(-100% + var(--pip-icon-width-with-margins));
  transform-origin: right;
}

.pip-wrapper[position="left"] {
  left: var(--pip-toggle-distanceFromVideoEdge);
}

.pip-expanded,
.pip-small,
.pip-icon,
.pip-explainer {
  position: absolute;
  left: 0;
  top: 0;
}

.pip-wrapper > .pip-expanded {
  display: flex;
  opacity: 0;
  align-items: center;
  scale: 0.33 1;
  font-size: 14px;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-small {
  opacity: 0;
  transition: opacity 200ms;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-expanded {
  opacity: 1;
  scale: 1;
  pointer-events: none;
}

.pip-wrapper:not([small-video], [has-used]).hovering > .pip-expanded {
  pointer-events: auto;
}

.pip-icon {
  top: 8px;
  left: 8px;
  pointer-events: none;
  background-image: url("chrome://global/skin/media/picture-in-picture-open.svg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: var(--pip-icon-size) var(--pip-icon-size);
  -moz-context-properties: fill;
  fill: currentColor;
  height: var(--pip-icon-size);
  width: var(--pip-icon-size);
}

.videocontrols[localedir="rtl"] .pip-icon {
  transform: scaleX(-1);
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-left: var(--pip-icon-width-with-margins);
  margin-right: var(--pip-toggle-margin);
}

.pip-small {
  width: 40px;
  height: 40px;
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-icon {
  display: none;
}

.pip-wrapper:is([small-video], [has-used]) > .pip-expanded,
.pip-wrapper[position="right"]:not([small-video], [has-used]) > .pip-icon {
  display: none;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label {
  display: flex;
  flex-direction: row;
  align-content: center;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon,
.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-block: auto;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  margin-inline: var(--pip-toggle-margin);
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-right: var(--pip-toggle-margin);
}

@media (prefers-reduced-motion) {
  .pip-wrapper,
  .pip-expanded,
  .pip-small,
  .pip-explainer {
    /* Transition changes in other rules may override this one if reduced motion is preferred.
     * Make sure this one always takes priority. */
    transition: none !important;
  }
}

/* NO EXPERIMENT - PIP STYLING */

.controlsOverlay:not(.experiment).hovering > .pip-wrapper:not(:focus-visible) {
  opacity: 0.8;
}

.controlsOverlay:not(.experiment).hovering > .pip-wrapper.hovering {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it at 100% opacity */
.pip-wrapper:not([policy="hidden"], .experiment):focus-visible {
  opacity: 1;
}

/* If showing the expanded PiP toggle, don't outline the
 * parent wrapper element - the expanded toggle handles its
 * own outline. This also affects the regular toggle for small-videos. */
.pip-wrapper:not([policy="hidden"], [has-used], .experiment):focus-visible {
  outline: none;
}

/* Override outline set by ua.css for the regular toggle. */
.pip-wrapper[has-used]:not([policy="hidden"], .experiment):focus-visible {
  outline: var(--control-focus-outline);
}

.pip-wrapper:not(.experiment) > .pip-small {
  background-color: rgba(12, 12, 13, 0.65);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper:not(.experiment) > .pip-expanded,
.pip-wrapper:not(.experiment) > .pip-small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* If first-time toggle is visible and then switched to the regular toggle for smaller videos,
 * maintain the border shown on the first-time toggle. */
.pip-wrapper:not([has-used], .experiment) > .pip-small {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
}

.pip-wrapper:not(.experiment) > .pip-expanded {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  transition:
    opacity 250ms,
    scale 200ms;
  height: var(--pip-expanded-height);
  background-color: rgba(12, 12, 13, 0.9);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: 8px;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded {
  box-shadow: none;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  /* Remove bottom border but keep text centred with padding. */
  border-bottom: none;
  padding-bottom: var(--pip-highlight-width);
}

.pip-wrapper:not([small-video], [has-used], .experiment).hovering > .pip-expanded {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Toggle message only appears for CONTROL variant. */
.pip-wrapper:not(.experiment) > .pip-expanded > .pip-explainer {
  padding: 6px 16px 8px 8px;
  translate: 0;
  transition:
    opacity 250ms,
    translate 190ms;
  transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
  background: rgba(12, 12, 13, 0.65);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  border-top: 0;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  opacity: 0;
  margin-inline: calc(-1 * var(--pip-highlight-width));
  width: calc(100% - 24px);
  word-break: break-word;
  pointer-events: none;
  user-select: none;
}

.videocontrols[localedir="rtl"] .pip-wrapper:not(.experiment) > .pip-explainer {
  text-align: right;
  direction: rtl;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded > .pip-explainer {
  pointer-events: auto;
  opacity: 1;
  translate: 0 calc(40px - var(--pip-highlight-width));
}

/* EXPERIMENT ONLY - PIP STYLING */

/* Since we change the outline for the first-time PiP toggle VARIANT,
 * override the focus outline in videocontrols.css as well so that
 * there is design consistency. */
.controlsContainer.experiment {
  --control-focus-outline: 2px solid #0060df;
}

.pip-wrapper.experiment > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: min(16px, 1.4em);
}

/* Only the background will be set at 70% opacity. The icons and labels will remain at 100%. */
.controlsOverlay.experiment.hovering > .pip-wrapper {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it and override outline set by ua.css.
 * Opacity only affects the toggle icon and label, not the background, which is handled separately. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible {
  opacity: 1;
  /* Wrapper size won't always match pip-small or pip-expanded, so don't apply outline on wrapper. */
  outline: none;
}

/* For the regular PiP toggle, take into consideration small videos and has-used=true. */
.pip-wrapper.experiment:is([has-used], [small-video]):not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], [has-used]):focus-visible > .pip-expanded {
  outline: var(--control-focus-outline);
  outline-offset: var(--pip-toggle-focus-outline-offset);
}

.pip-wrapper.experiment > .pip-expanded > .pip-explainer {
  display: none;
}

.pip-wrapper.experiment > .pip-small {
  border-radius: var(--pip-border-radius-toggle);
  transition: background-color 200ms;
}

.pip-wrapper.experiment > .pip-expanded {
  transition:
    opacity 250ms,
    scale 200ms,
    translate 190ms,
    background-color 200ms;
  height: var(--pip-expanded-height);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper.experiment > .pip-small,
.pip-wrapper.experiment > .pip-expanded {
  background-color: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.pip-wrapper.experiment.hovering > .pip-small,
.pip-wrapper.experiment.hovering > .pip-expanded {
  background-color: rgba(0, 0, 0, 1);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-expanded {
  box-shadow: var(--pip-box-shadow-default);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-expanded {
  box-shadow: var(--pip-box-shadow-hover);
}

/* Remove white box shadow if there is keyboard focus on the toggle and
 * replace it with blue box shadow instead. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-expanded {
  box-shadow: 0 0 10px rgba(0, 96, 223, 0.9);
}

//
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@namespace url("http://www.w3.org/1999/xhtml");

.videocontrols {
  writing-mode: horizontal-tb;
  width: 100%;
  height: 100%;
  display: inline-block;
  overflow: hidden;

  direction: ltr;
  /* Prevent selection from interacting weirdly with the page,
   * see bug 1766093. Our text selection story with shadow dom should be
   * better, see bug 1590379 */
  user-select: none;
  /* Prevent unwanted style inheritance. See bug 554717. */
  text-align: left;
  list-style-image: none !important;
  font: normal normal normal 100% / normal sans-serif !important;
  text-decoration: none !important;
  white-space: normal !important;
}

.videocontrols[flipped] {
  transform: scaleX(-1);
}

.controlsContainer {
  --clickToPlay-size: 48px;
  --button-size: 30px;
  --timer-size: 40px;
  --timer-long-size: 60px;
  --track-size: 5px;
  --thumb-size: 13px;
  --label-font-size: 13px;
  --pip-toggle-padding: 5px;
  --control-focus-outline: 2px solid #00ddff;
  --control-focus-outline-offset: -2px;
  --pip-toggle-icon-width-height: 16px;
  --pip-toggle-translate-x: calc(100% - var(--pip-toggle-icon-width-height) - 2 * var(--pip-toggle-padding));

  color: #fff;
}
.controlsContainer.touch {
  --clickToPlay-size: 64px;
  --button-size: 40px;
  --timer-size: 52px;
  --timer-long-size: 78px;
  --track-size: 7px;
  --thumb-size: 16px;
  --label-font-size: 16px;
}

/* Some CSS custom properties defined here are referenced by videocontrols.js */
.controlBar {
  /* Do not delete: these variables are accessed by JavaScript directly.
     see videocontrols.js and search for |-width|. */
  --clickToPlay-width: var(--clickToPlay-size);
  --playButton-width: var(--button-size);
  --scrubberStack-width: 64px;
  --muteButton-width: var(--button-size);
  --volumeStack-width: 48px;
  --closedCaptionButton-width: var(--button-size);
  --fullscreenButton-width: var(--button-size);
  --positionDurationBox-width: var(--timer-size);
  --durationSpan-width: var(--timer-size);
  --positionDurationBox-width-long: var(--timer-long-size);
  --durationSpan-width-long: var(--timer-long-size);
}

.touch .controlBar {
  /* Do not delete: these variables are accessed by JavaScript directly.
     see videocontrols.js and search for |-width|. */
  --scrubberStack-width: 84px;
  --volumeStack-width: 64px;
}

.controlsContainer [hidden],
.controlBar[hidden] .progressBar,
.controlBar[hidden] .bufferBar,
.videocontrols[inDOMFullscreen] > .controlsContainer > .controlsOverlay > #pictureInPictureToggle {
  display: none;
}

/* We hide the controlBar visually so it doesn't obscure the video. However,
 * we still want to expose it to a11y so users who don't use a mouse can access
 * it.
 */
.controlBar[hidden] {
  display: flex;
  opacity: 0;
  pointer-events: none;
}

.controlBar[size="hidden"] {
  display: none;
}

.controlsSpacer[hideCursor] {
  cursor: none;
}

.controlsContainer,
.progressContainer {
  position: relative;
  height: 100%;
}

.stackItem {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.statusOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(80, 80, 80, 0.85);
}

.controlsOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.controlsSpacerStack {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.controlBar {
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 40px;
  padding: 0 9px;
  background-color: rgba(26, 26, 26, 0.8);
}

.touch .controlBar {
  height: 52px;
}

.controlBar > .button {
  /* Prevent #textTrackListContainer from blocking clicks on controls */
  z-index: 1;
  height: 100%;
  min-width: var(--button-size);
  min-height: var(--button-size);
  padding: 6px;
  border: 0;
  margin: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
  background-clip: content-box;
  -moz-context-properties: fill;
  fill: currentColor;
  color: inherit;
  outline: none;
}

/* Keyboard focus styling for interactive control elements (includes control
   bar, click to play and track list) */
.controlBar > .button:focus-visible,
.volumeControl:focus-visible,
.scrubber:focus-visible,
.clickToPlay:focus-visible,
.textTrackList > .textTrackItem:focus-visible {
  outline: var(--control-focus-outline);
  outline-offset: var(--control-focus-outline-offset);
}

.touch .controlBar > .button {
  background-size: 24px 24px;
}

.controlBar > .button:enabled:hover {
  fill: #48a0f7;
}

.controlBar > .button:enabled:hover:active {
  fill: #2d89e6;
}

.playButton {
  background-image: url(chrome://global/skin/media/pause-fill.svg);
}
.playButton[paused] {
  background-image: url(chrome://global/skin/media/play-fill.svg);
}

.muteButton {
  background-image: url(chrome://global/skin/media/audio.svg);
}
.muteButton[muted] {
  background-image: url(chrome://global/skin/media/audio-muted.svg);
}
.muteButton[noAudio] {
  background-image: url(chrome://global/skin/media/audioNoAudioButton.svg);
}
.muteButton[noAudio] + .volumeStack {
  display: none;
}

.closedCaptionButton {
  background-image: url(chrome://global/skin/media/closedCaptionButton-cc-off.svg);
}
.closedCaptionButton[enabled] {
  background-image: url(chrome://global/skin/media/closedCaptionButton-cc-on.svg);
}

.fullscreenButton {
  background-image: url(chrome://global/skin/media/fullscreenEnterButton.svg);
}
.fullscreenButton[fullscreened] {
  background-image: url(chrome://global/skin/media/fullscreenExitButton.svg);
}

.controlBarSpacer {
  flex-grow: 1;
}

.volumeControl::-moz-range-thumb,
.scrubber::-moz-range-thumb {
  height: var(--thumb-size);
  width: var(--thumb-size);
  border: none;
  border-radius: 50%;
  /* this is a foreground element even though it is implemented as a background */
  background-color: currentColor;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.65));
}

.volumeControl,
.scrubber {
  outline: none;
}

.progressBackgroundBar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.progressStack {
  position: relative;
  width: 100%;
  height: var(--track-size);
}

.scrubberStack {
  /* minus margin to get basis of required width */
  min-width: calc(var(--scrubberStack-width) - 18px);
  flex-basis: calc(var(--scrubberStack-width) - 18px);
  flex-grow: 2;
  flex-shrink: 0;
  margin: 0 9px;
}

.volumeStack {
  max-width: 60px;
  min-width: var(--volumeStack-width);
  flex-grow: 1;
  flex-shrink: 0;
  margin-right: 6px;
  margin-left: 4px;
}

.bufferBar,
.progressBar,
.scrubber,
.volumeControl {
  bottom: 0;
  color: inherit;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: calc(var(--track-size) / 2);
  margin: 0;
  background: none;
  outline: none;
}

.bufferBar {
  background-color: rgba(0, 0, 0, 0.7);
}

.bufferBar::-moz-progress-bar,
.progressBar::-moz-progress-bar {
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: calc(var(--track-size) / 2);
  background: none;
}

.bufferBar::-moz-progress-bar {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: calc(var(--track-size) / 2);
}

.progressBar::-moz-progress-bar {
  background-color: #00b6f0;
}

.scrubber:hover::-moz-range-thumb,
.volumeControl:hover::-moz-range-thumb {
  background-color: #48a0f7;
}

.scrubber:active::-moz-range-thumb,
.volumeControl:active::-moz-range-thumb {
  background-color: #2d89e6;
}

.scrubber::-moz-range-track,
.scrubber::-moz-range-progress {
  background-color: transparent;
}

.volumeControl::-moz-range-progress,
.volumeControl::-moz-range-track {
  height: var(--track-size);
  border-radius: calc(var(--track-size) / 2);
}

.volumeControl::-moz-range-progress {
  /* this is a foreground element even though it is implemented as a background */
  background-color: currentColor;
}

.volumeControl::-moz-range-track {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (prefers-contrast) {
  /* Show a border in high contrast mode since background-colors
     are not shown. */
  .scrubber::-moz-range-track,
  .volumeControl::-moz-range-track {
    border: 1px solid;
  }

  .scrubber::-moz-range-progress,
  .volumeControl::-moz-range-progress {
    border: 2px solid;
  }
}

.textTrackListContainer {
  position: absolute;
  right: 5px;
  bottom: 45px;
  top: 5px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.textTrackList {
  flex: 0 1 auto;
  border: 1px solid #000;
  border-radius: 2.5px;
  padding: 5px 0;
  vertical-align: middle;
  background-color: #000;
  opacity: 0.7;
  overflow-y: auto;
}

.touch .textTrackList {
  bottom: 58px;
}

.textTrackList > .textTrackItem {
  display: block;
  width: 100%;
  height: var(--button-size);
  font-size: var(--label-font-size);
  padding: 2px 10px;
  border: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  background-color: transparent;
  color: inherit;
}

.textTrackList > .textTrackItem:hover {
  background-color: #444;
}

.textTrackList > .textTrackItem[aria-checked="true"] {
  color: #48a0f7;
}

.positionLabel,
.durationLabel {
  display: none;
}

.positionDurationBox {
  text-align: center;
  padding-inline-start: 1px;
  padding-inline-end: 9px;
  white-space: nowrap;
  font: message-box;
  font-size: var(--label-font-size);
  font-size-adjust: 0.55;
  font-variant-numeric: tabular-nums;
}

@media (-moz-platform: macos) {
  .positionDurationBox {
    font-size-adjust: unset;
    font-family: "Helvetica Neue", "Helvetica", sans-serif;
  }
}

.duration {
  display: inline-block;
  white-space: pre;
  color: #929292;
}

.statusIcon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
}

/* Not showing the throbber on mobile because of conflict with m.youtube.com (see bug 1289412) */
.controlsContainer:not(.mobile) .statusIcon[type="throbber"] {
  background: url(chrome://global/skin/media/throbber.png) no-repeat center;
}

.controlsContainer:not(.mobile) .statusIcon[type="throbber"][stalled] {
  background: url(chrome://global/skin/media/stalled.png) no-repeat center;
}

.statusIcon[type="error"],
.statusIcon[type="pictureInPicture"] {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.statusIcon[type="error"] {
  min-width: 70px;
  min-height: 60px;
  background-image: url(chrome://global/skin/media/error.png);
}

.statusIcon[type="pictureInPicture"] {
  min-width: 84px;
  min-height: 84px;
  background-image: url(chrome://global/skin/media/picture-in-picture-open.svg);
  -moz-context-properties: fill;
  fill: currentColor;
}

.videocontrols[localedir="rtl"] .statusIcon[type="pictureInPicture"] {
  transform: scaleX(-1);
}

.pictureInPictureToggleLabel {
  margin-inline-start: var(--pip-toggle-padding);
}

/* Overlay Play button */
.clickToPlay {
  appearance: none;
  border: none;
  min-width: var(--clickToPlay-size);
  min-height: var(--clickToPlay-size);
  border-radius: 50%;
  background-image: url(chrome://global/skin/media/play-fill.svg);
  background-repeat: no-repeat;
  background-position: 54% 50%;
  background-size: 40% 40%;
  background-color: #1a1a1a;
  -moz-context-properties: fill;
  fill: currentColor;
  color: inherit;
  opacity: 0.8;
  position: relative;
  top: 20px;
}

.controlsSpacerStack:hover > .clickToPlay,
.clickToPlay:hover {
  opacity: 0.55;
}

.controlsSpacerStack:hover > .clickToPlay[fadeout] {
  opacity: 0;
}

.controlBar[fullscreen-unavailable] .fullscreenButton {
  display: none;
}

.statusOverlay[fadeout],
.statusOverlay[error] + .controlsOverlay > .controlsSpacerStack {
  opacity: 0;
}

.pictureInPictureOverlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
  background-color: rgb(12, 12, 13);
}

/* Status description formatting */
.statusLabel {
  display: none;
  padding: 0 10px;
  text-align: center;
  font: message-box;
  font-size: 14px;
}

.videocontrols[localedir="rtl"] .statusLabel {
  direction: rtl;
}

[status="errorAborted"] > #errorAborted,
[status="errorNetwork"] > #errorNetwork,
[status="errorDecode"] > #errorDecode,
[status="errorSrcNotSupported"] > #errorSrcNotSupported,
[status="errorNoSource"] > #errorNoSource,
[status="errorGeneric"] > #errorGeneric,
[status="pictureInPicture"] > #pictureInPicture {
  display: inline;
}

@media (-moz-platform: windows) and (prefers-contrast) {
  .controlsSpacer,
  .clickToPlay {
    background-color: transparent;
  }
}

.a11y-only {
  position: absolute;
  left: -10000px;
  width: 100px;
  height: 100px;
}

:host::cue {
  font-size: var(--cue-font-size);
  writing-mode: var(--cue-writing-mode, inherit);
}

//
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* This CSS file is for the Picture-in-Picture toggle.
 *
 * The "experiment" class is used to enable styling for the VARIANT version
 * of the toggle for upcoming PiP Nimbus experiments.
 * @see Bug 1811314.
 *
 * To see each section of style changes, search "PIP STYLING" in this file.
 */

/* SHARED PIP STYLING */

.controlsOverlay[hidetoggle="true"].hovering > .pip-wrapper:not(.hovering) {
  /* If this isn't !important, it will fail to override the other opacity
   * rules, which are currently defined below this point in this file. */
  opacity: 0 !important;
}

.pip-wrapper {
  position: absolute;
  cursor: pointer;
  -moz-appearance: none;
  background: none;
  color: inherit;
  border: none;
  text-align: unset;
  top: calc(70% - 40px);
  opacity: 0;
  padding-inline: 0;
  transition: opacity 200ms;
  --pip-icon-size: 24px;
  --pip-icon-width-with-margins: calc(2 * var(--pip-toggle-margin) + var(--pip-icon-size));
  --pip-highlight-style: solid rgba(0, 254, 255, 1);
  --pip-highlight-width: 2px;
  --pip-toggle-distanceFromVideoEdge: 18px;
  --pip-toggle-focus-outline-offset: 1px;
  --pip-toggle-margin: 8px;
  --pip-border-radius-toggle: 4px;
  --pip-box-shadow-default: 0 0 4px rgba(255, 255, 255, 0.9);
  --pip-box-shadow-hover: 0 0 10px rgba(255, 255, 255, 0.7);
  --pip-expanded-height: 40px;
  --pip-expanded-min-width: 200px;
  --pip-expanded-max-width: max-content;
}

/* Adjust sizing of the regular toggle wrapper to correctly show the
 * focus outline when navigating via keyboard. */
.pip-wrapper[has-used],
.pip-wrapper[small-video] {
  height: var(--pip-icon-width-with-margins);
  width: var(--pip-icon-width-with-margins);
  border-radius: var(--pip-border-radius-toggle);
  margin-right: calc(var(--pip-icon-width-with-margins) * -1);
}

.pip-wrapper[policy="hidden"] {
  display: none;
}

.pip-wrapper[policy="top"] {
  top: 0%;
  translate: var(--pip-toggle-translate-x);
}

.pip-wrapper[policy="one-quarter"] {
  top: 25%;
}

.pip-wrapper[policy="middle"] {
  top: 50%;
}

.pip-wrapper[policy="three-quarters"] {
  top: 75%;
}

.pip-wrapper[policy="bottom"] {
  top: 100%;
  translate: var(--pip-toggle-translate-x) -100%;
}

.pip-wrapper[medium-video] > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: 13px;
}

.pip-wrapper[medium-video] > .pip-expanded {
  font-size: 11px;
}

.pip-wrapper[position="right"] {
  /* move from the right by total width of pip toggle so that it is at least visible in the video element */
  right: calc(var(--pip-icon-width-with-margins) + var(--pip-toggle-distanceFromVideoEdge));
}

/* Re-position the first-time toggle such that it will always be the same distance away from the right edge
 * of the video, even if the label and/or message string(s) are long. */
.pip-wrapper[position="right"] > .pip-expanded {
  translate: calc(-100% + var(--pip-icon-width-with-margins));
  transform-origin: right;
}

.pip-wrapper[position="left"] {
  left: var(--pip-toggle-distanceFromVideoEdge);
}

.pip-expanded,
.pip-small,
.pip-icon,
.pip-explainer {
  position: absolute;
  left: 0;
  top: 0;
}

.pip-wrapper > .pip-expanded {
  display: flex;
  opacity: 0;
  align-items: center;
  scale: 0.33 1;
  font-size: 14px;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-small {
  opacity: 0;
  transition: opacity 200ms;
}

.pip-wrapper:not([small-video], [has-used]) > .pip-expanded {
  opacity: 1;
  scale: 1;
  pointer-events: none;
}

.pip-wrapper:not([small-video], [has-used]).hovering > .pip-expanded {
  pointer-events: auto;
}

.pip-icon {
  top: 8px;
  left: 8px;
  pointer-events: none;
  background-image: url("chrome://global/skin/media/picture-in-picture-open.svg");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: var(--pip-icon-size) var(--pip-icon-size);
  -moz-context-properties: fill;
  fill: currentColor;
  height: var(--pip-icon-size);
  width: var(--pip-icon-size);
}

.videocontrols[localedir="rtl"] .pip-icon {
  transform: scaleX(-1);
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-left: var(--pip-icon-width-with-margins);
  margin-right: var(--pip-toggle-margin);
}

.pip-small {
  width: 40px;
  height: 40px;
}

.pip-wrapper[position="left"] > .pip-expanded > .pip-icon-label > .pip-icon {
  display: none;
}

.pip-wrapper:is([small-video], [has-used]) > .pip-expanded,
.pip-wrapper[position="right"]:not([small-video], [has-used]) > .pip-icon {
  display: none;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  position: relative;
  top: 0;
  left: 0;
  display: inline-block;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label {
  display: flex;
  flex-direction: row;
  align-content: center;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon,
.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-block: auto;
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-icon {
  margin-inline: var(--pip-toggle-margin);
}

.pip-wrapper[position="right"] > .pip-expanded > .pip-icon-label > .pip-label {
  margin-right: var(--pip-toggle-margin);
}

@media (prefers-reduced-motion) {
  .pip-wrapper,
  .pip-expanded,
  .pip-small,
  .pip-explainer {
    /* Transition changes in other rules may override this one if reduced motion is preferred.
     * Make sure this one always takes priority. */
    transition: none !important;
  }
}

/* NO EXPERIMENT - PIP STYLING */

.controlsOverlay:not(.experiment).hovering > .pip-wrapper:not(:focus-visible) {
  opacity: 0.8;
}

.controlsOverlay:not(.experiment).hovering > .pip-wrapper.hovering {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it at 100% opacity */
.pip-wrapper:not([policy="hidden"], .experiment):focus-visible {
  opacity: 1;
}

/* If showing the expanded PiP toggle, don't outline the
 * parent wrapper element - the expanded toggle handles its
 * own outline. This also affects the regular toggle for small-videos. */
.pip-wrapper:not([policy="hidden"], [has-used], .experiment):focus-visible {
  outline: none;
}

/* Override outline set by ua.css for the regular toggle. */
.pip-wrapper[has-used]:not([policy="hidden"], .experiment):focus-visible {
  outline: var(--control-focus-outline);
}

.pip-wrapper:not(.experiment) > .pip-small {
  background-color: rgba(12, 12, 13, 0.65);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper:not(.experiment) > .pip-expanded,
.pip-wrapper:not(.experiment) > .pip-small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

/* If first-time toggle is visible and then switched to the regular toggle for smaller videos,
 * maintain the border shown on the first-time toggle. */
.pip-wrapper:not([has-used], .experiment) > .pip-small {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
}

.pip-wrapper:not(.experiment) > .pip-expanded {
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  transition:
    opacity 250ms,
    scale 200ms;
  height: var(--pip-expanded-height);
  background-color: rgba(12, 12, 13, 0.9);
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: 8px;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded {
  box-shadow: none;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  /* Remove bottom border but keep text centred with padding. */
  border-bottom: none;
  padding-bottom: var(--pip-highlight-width);
}

.pip-wrapper:not([small-video], [has-used], .experiment).hovering > .pip-expanded {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

/* Toggle message only appears for CONTROL variant. */
.pip-wrapper:not(.experiment) > .pip-expanded > .pip-explainer {
  padding: 6px 16px 8px 8px;
  translate: 0;
  transition:
    opacity 250ms,
    translate 190ms;
  transition-timing-function: cubic-bezier(0.07, 0.95, 0, 1);
  background: rgba(12, 12, 13, 0.65);
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border: var(--pip-highlight-width) var(--pip-highlight-style);
  border-top: 0;
  box-shadow: 0 4px 4px rgba(12, 12, 13, 0.25);
  opacity: 0;
  margin-inline: calc(-1 * var(--pip-highlight-width));
  width: calc(100% - 24px);
  word-break: break-word;
  pointer-events: none;
  user-select: none;
}

.videocontrols[localedir="rtl"] .pip-wrapper:not(.experiment) > .pip-explainer {
  text-align: right;
  direction: rtl;
}

.pip-wrapper:not(.experiment).hovering > .pip-expanded > .pip-explainer {
  pointer-events: auto;
  opacity: 1;
  translate: 0 calc(40px - var(--pip-highlight-width));
}

/* EXPERIMENT ONLY - PIP STYLING */

/* Since we change the outline for the first-time PiP toggle VARIANT,
 * override the focus outline in videocontrols.css as well so that
 * there is design consistency. */
.controlsContainer.experiment {
  --control-focus-outline: 2px solid #0060df;
}

.pip-wrapper.experiment > .pip-expanded > .pip-icon-label > .pip-label {
  font-size: min(16px, 1.4em);
}

/* Only the background will be set at 70% opacity. The icons and labels will remain at 100%. */
.controlsOverlay.experiment.hovering > .pip-wrapper {
  opacity: 1;
}

/* If the PiP toggle is keyboard focused, always show it and override outline set by ua.css.
 * Opacity only affects the toggle icon and label, not the background, which is handled separately. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible {
  opacity: 1;
  /* Wrapper size won't always match pip-small or pip-expanded, so don't apply outline on wrapper. */
  outline: none;
}

/* For the regular PiP toggle, take into consideration small videos and has-used=true. */
.pip-wrapper.experiment:is([has-used], [small-video]):not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], [has-used]):focus-visible > .pip-expanded {
  outline: var(--control-focus-outline);
  outline-offset: var(--pip-toggle-focus-outline-offset);
}

.pip-wrapper.experiment > .pip-expanded > .pip-explainer {
  display: none;
}

.pip-wrapper.experiment > .pip-small {
  border-radius: var(--pip-border-radius-toggle);
  transition: background-color 200ms;
}

.pip-wrapper.experiment > .pip-expanded {
  transition:
    opacity 250ms,
    scale 200ms,
    translate 190ms,
    background-color 200ms;
  height: var(--pip-expanded-height);
  width: var(--pip-expanded-max-width);
  min-width: var(--pip-expanded-min-width);
  border-radius: var(--pip-border-radius-toggle);
}

.pip-wrapper.experiment > .pip-small,
.pip-wrapper.experiment > .pip-expanded {
  background-color: rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.pip-wrapper.experiment.hovering > .pip-small,
.pip-wrapper.experiment.hovering > .pip-expanded {
  background-color: rgba(0, 0, 0, 1);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible) > .pip-expanded {
  box-shadow: var(--pip-box-shadow-default);
}

.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"], :focus-visible).hovering > .pip-expanded {
  box-shadow: var(--pip-box-shadow-hover);
}

/* Remove white box shadow if there is keyboard focus on the toggle and
 * replace it with blue box shadow instead. */
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-small,
.pip-wrapper.experiment:not([policy="hidden"]):focus-visible > .pip-expanded {
  box-shadow: 0 0 10px rgba(0, 96, 223, 0.9);
}

//
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

slot[name="internal-select-button"] {
  display: none;
}

/* stylelint-disable-next-line at-rule-no-unknown */
@appearance-base {
  slot[name="internal-select-button"] {
    display: contents;
  }

  slot[name="internal-select-button"]:has-slotted + label {
    display: none;
  }
}
//
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))) {
    *,
    :before,
    :after,
    ::backdrop {
      --tw-rotate-x:initial;
      --tw-rotate-y:initial;
      --tw-rotate-z:initial;
      --tw-skew-x:initial;
      --tw-skew-y:initial;
      --tw-shadow:0 0 #0000;
      --tw-shadow-color:initial;
      --tw-shadow-alpha:100%;
      --tw-inset-shadow:0 0 #0000;
      --tw-inset-shadow-color:initial;
      --tw-inset-shadow-alpha:100%;
      --tw-ring-color:initial;
      --tw-ring-shadow:0 0 #0000;
      --tw-inset-ring-color:initial;
      --tw-inset-ring-shadow:0 0 #0000;
      --tw-ring-inset:initial;
      --tw-ring-offset-width:0px;
      --tw-ring-offset-color:#fff;
      --tw-ring-offset-shadow:0 0 #0000
    }
  }
}
@layer theme {
  :root,
  :host {
    --font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --spacing:.25rem;
    --default-font-family:var(--font-sans);
    --default-mono-font-family:var(--font-mono)
  }
}
@layer base {
  *,
  :after,
  :before,
  ::backdrop {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  ::file-selector-button {
    box-sizing:border-box;
    border:0 solid;
    margin:0;
    padding:0
  }
  html,
  :host {
    -webkit-text-size-adjust:100%;
    tab-size:4;
    line-height:1.5;
    font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings:var(--default-font-feature-settings,normal);
    font-variation-settings:var(--default-font-variation-settings,normal);
    -webkit-tap-highlight-color:transparent
  }
  hr {
    height:0;
    color:inherit;
    border-top-width:1px
  }
  abbr:where([title]) {
    -webkit-text-decoration:underline dotted;
    text-decoration:underline dotted
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size:inherit;
    font-weight:inherit
  }
  a {
    color:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    -webkit-text-decoration:inherit;
    text-decoration:inherit
  }
  b,
  strong {
    font-weight:bolder
  }
  code,
  kbd,
  samp,
  pre {
    font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings:var(--default-mono-font-feature-settings,normal);
    font-variation-settings:var(--default-mono-font-variation-settings,normal);
    font-size:1em
  }
  small {
    font-size:80%
  }
  sub,
  sup {
    vertical-align:baseline;
    font-size:75%;
    line-height:0;
    position:relative
  }
  sub {
    bottom:-.25em
  }
  sup {
    top:-.5em
  }
  table {
    text-indent:0;
    border-color:inherit;
    border-collapse:collapse
  }
  :-moz-focusring {
    outline:auto
  }
  progress {
    vertical-align:baseline
  }
  summary {
    display:list-item
  }
  ol,
  ul,
  menu {
    list-style:none
  }
  img,
  svg,
  video,
  canvas,
  audio,
  iframe,
  embed,
  object {
    vertical-align:middle;
    display:block
  }
  img,
  video {
    max-width:100%;
    height:auto
  }
  button,
  input,
  select,
  optgroup,
  textarea {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  ::file-selector-button {
    font:inherit;
    font-feature-settings:inherit;
    font-variation-settings:inherit;
    letter-spacing:inherit;
    color:inherit;
    opacity:1;
    background-color:#0000;
    border-radius:0
  }
  :where(select:is([multiple],
  [size])) optgroup {
    font-weight:bolder
  }
  :where(select:is([multiple],
  [size])) optgroup option {
    padding-inline-start:20px
  }
  ::file-selector-button {
    margin-inline-end:4px
  }
  ::placeholder {
    opacity:1
  }
  @supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px) {
    ::placeholder {
      color:currentColor
    }
    @supports (color:color-mix(in lab, red, red)) {
      ::placeholder {
        color:color-mix(in oklab, currentcolor 50%, transparent)
      }
    }
  }
  textarea {
    resize:vertical
  }
  ::-webkit-search-decoration {
    -webkit-appearance:none
  }
  ::-webkit-date-and-time-value {
    min-height:1lh;
    text-align:inherit
  }
  ::-webkit-datetime-edit {
    display:inline-flex
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding:0
  }
  ::-webkit-datetime-edit {
    padding-block:0
  }
  ::-webkit-datetime-edit-year-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-month-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-day-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-hour-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-minute-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-second-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-millisecond-field {
    padding-block:0
  }
  ::-webkit-datetime-edit-meridiem-field {
    padding-block:0
  }
  ::-webkit-calendar-picker-indicator {
    line-height:1
  }
  :-moz-ui-invalid {
    box-shadow:none
  }
  button,
  input:where([type=button],
  [type=reset],
  [type=submit]) {
    appearance:button
  }
  ::file-selector-button {
    appearance:button
  }
  ::-webkit-inner-spin-button {
    height:auto
  }
  ::-webkit-outer-spin-button {
    height:auto
  }
  [hidden]:where(:not([hidden=until-found])) {
    display:none!important
  }
}
@layer components;
@layer utilities {
  .visible {
    visibility:visible
  }
  .relative {
    position:relative
  }
  .start {
    inset-inline-start:var(--spacing)
  }
  .table {
    display:table
  }
  .transform {
    transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)
  }
  .resize {
    resize:both
  }
  .shadow {
    --tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);
    box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)
  }
}
:root {
  --cream:#fff8e7;
  --paper:#fffdf7;
  --coffee:#6f4e37;
  --ink:#2f1f16;
  --burgundy:#800020;
  --line:#4e2f1f42;
  --page-progress:0;
  --ease:cubic-bezier(.22, 1, .36, 1)
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  background:var(--cream)
}
body {
  color:var(--ink);
  letter-spacing:-.025em;
  background:radial-gradient(circle at 12% 8%,#8000201a,#0000 29rem),radial-gradient(circle at 88% 34%,#6f4e371f,#0000 31rem),linear-gradient(145deg,#fffdf6 0%,#fff4e4 42%,#ecd7cd 100%);
  margin:0;
  font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;
  font-weight:460;
  overflow-x:hidden
}
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select {
  cursor:none!important
}
a {
  color:inherit;
  text-decoration:none
}
button,
input,
textarea,
select {
  font:inherit
}
button {
  color:inherit
}
img {
  max-width:100%
}
::selection {
  background:var(--burgundy);
  color:var(--cream)
}
[data-reveal] {
  opacity:0;
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  transform:translateY(28px)
}
[data-reveal].is-visible {
  opacity:1;
  transform:none
}
.preloader {
  z-index:1000;
  background:var(--burgundy);
  color:var(--cream);
  transition:transform .9s var(--ease), visibility .9s;
  place-items:center;
  display:grid;
  position:fixed;
  inset:0;
  overflow:hidden
}
.preloader span {
  letter-spacing:-.08em;
  animation:preloader-word .9s var(--ease) both;
  font-size:clamp(3.5rem,10vw,9rem);
  font-weight:540
}
.preloader i {
  background:var(--cream);
  transform-origin:0;
  width:100%;
  height:3px;
  animation:.95s both preloader-line;
  position:absolute;
  bottom:0;
  left:0
}
.preloader--done {
  visibility:hidden;
  transform:translateY(-103%)
}
.custom-cursor {
  z-index:1200;
  pointer-events:none;
  opacity:0;
  will-change:transform;
  transition:opacity .2s;
  position:fixed;
  top:0;
  left:0
}
.custom-cursor[data-visible=true] {
  opacity:1
}
.custom-cursor i {
  background:var(--burgundy);
  clip-path:polygon(0 0,100% 52%,43% 68%,20% 100%);
  filter:drop-shadow(0 4px 5px #37000e33);
  width:18px;
  height:23px;
  transition:transform .3s var(--ease), width .3s var(--ease), height .3s var(--ease);
  position:absolute;
  transform:translate(-3px,-3px)rotate(-8deg)
}
.custom-cursor[data-active=true] i {
  width:25px;
  height:31px;
  transform:translate(-5px,-5px)rotate(2deg)
}
.custom-cursor span {
  color:var(--burgundy);
  white-space:nowrap;
  letter-spacing:.12em;
  font-size:.58rem;
  font-weight:750;
  position:absolute;
  top:7px;
  left:25px
}
.site-header {
  z-index:90;
  width:100%;
  height:68px;
  color:var(--ink);
  mix-blend-mode:multiply;
  justify-content:space-between;
  align-items:center;
  padding:0 4.2vw;
  display:flex;
  position:fixed;
  top:0;
  left:0
}
.mini-mark {
  letter-spacing:-.08em;
  font-size:1.15rem;
  font-weight:800
}
.mini-mark span {
  color:var(--burgundy)
}
.site-header nav {
  gap:clamp(1.7rem,4vw,4.4rem);
  margin-left:auto;
  display:flex
}
.site-header nav a {
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.64rem;
  font-weight:670;
  position:relative
}
.site-header nav a:after {
  content:"";
  background:var(--burgundy);
  transform-origin:100%;
  height:1px;
  transition:transform .4s var(--ease);
  position:absolute;
  bottom:-7px;
  left:0;
  right:0;
  transform:scaleX(0)
}
.site-header nav a:hover:after {
  transform-origin:0;
  transform:scaleX(1)
}
.menu-toggle {
  display:none
}
main {
  position:relative
}
.hero {
  z-index:2;
  background:radial-gradient(circle at 52% 42%,#fffffffa 0 8%,#0000 37%),radial-gradient(circle at 6% 22%,#8000201c,#0000 28rem),radial-gradient(circle at 92% 84%,#6f4e371f,#0000 30rem),linear-gradient(145deg,#fffdf7 0%,#fff5e5 52%,#efd8cf 100%);
  place-items:center;
  height:94svh;
  min-height:650px;
  display:grid;
  position:relative;
  overflow:hidden
}
.hero-grain {
  opacity:.2;
  pointer-events:none;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  position:absolute;
  inset:0
}
.hero h1 {
  z-index:2;
  color:var(--coffee);
  letter-spacing:-.085em;
  white-space:nowrap;
  justify-content:center;
  margin:0;
  font-size:clamp(6.8rem,19vw,18rem);
  font-weight:530;
  line-height:.75;
  display:flex;
  position:absolute;
  top:18%;
  left:50%;
  transform:translate(-50%)
}
.hero h1 span {
  animation:letter-in 1.05s calc(1.05s + var(--letter-delay)) both var(--ease);
  display:inline-block
}
.hero-sparrow-media {
  z-index:3;
  pointer-events:none;
  filter:drop-shadow(0 22px 18px #3a221433);
  position:absolute;
  inset:0
}
.hero-sparrow-video,
.hero-sparrow-fallback {
  object-fit:cover;
  object-position:center;
  width:100%;
  height:100%;
  display:block;
  position:absolute;
  inset:0
}
.hero-sparrow-video {
  transition:opacity .22s
}
.hero-sparrow-video--breathing,
.hero-sparrow-media--landed .hero-sparrow-video--intro {
  opacity:0
}
.hero-sparrow-media--landed .hero-sparrow-video--breathing {
  opacity:1
}
.hero-sparrow-fallback {
  object-fit:contain;
  opacity:0;
  top:50%;
  left:50%;
  width:clamp(270px,32vw,440px);
  height:auto;
  inset:auto;
  transform:translate(-50%,-52%)
}
.hero-sparrow-media--fallback .hero-sparrow-video {
  display:none
}
.hero-sparrow-media--fallback .hero-sparrow-fallback {
  opacity:1
}
.hero-tagline {
  z-index:4;
  text-align:center;
  animation:fade-up .9s 1.9s both var(--ease);
  margin:0;
  font-size:clamp(1.15rem,2vw,1.9rem);
  position:absolute;
  bottom:15%;
  left:0;
  right:0
}
.hero-perch {
  z-index:2;
  filter:blur(4px);
  background:radial-gradient(#4c2d1c38,#0000 68%);
  border-radius:50%;
  width:clamp(260px,34vw,520px);
  height:22px;
  position:absolute;
  top:61%;
  left:50%;
  transform:translate(-50%)
}
.scroll-note {
  z-index:4;
  text-transform:uppercase;
  letter-spacing:.12em;
  align-items:center;
  gap:.75rem;
  font-size:.57rem;
  font-weight:700;
  display:flex;
  position:absolute;
  bottom:2.4rem;
  right:4.2vw
}
.scroll-note i {
  border:1px solid var(--line);
  width:34px;
  height:34px;
  color:var(--burgundy);
  border-radius:50%;
  place-items:center;
  font-style:normal;
  animation:1.7s ease-in-out infinite scroll-bob;
  display:grid
}
.showreel-section {
  z-index:4;
  background:linear-gradient(#fff8e799,#f8e7db85);
  height:180svh;
  position:relative
}
.showreel-sticky {
  place-items:center;
  height:100svh;
  display:grid;
  position:sticky;
  top:0;
  overflow:hidden
}
.showreel-frame {
  --reel-progress:0;
  width:calc(92vw + var(--reel-progress) * 8vw);
  height:calc(64vh + var(--reel-progress) * 36vh);
  border-radius:calc(24px - var(--reel-progress) * 24px);
  color:var(--cream);
  transform:scale(calc(.92 + var(--reel-progress) * .08));
  will-change:width, height, border-radius, transform;
  background:#241711;
  position:relative;
  overflow:hidden;
  box-shadow:0 28px 75px #37201433
}
.showreel-frame video {
  object-fit:cover;
  filter:saturate(.72)contrast(1.08);
  width:100%;
  height:100%
}
.reel-shade {
  background:linear-gradient(#140b0624,#140b065c),radial-gradient(circle,#0000 20%,#10080452);
  position:absolute;
  inset:0
}
.reel-title {
  z-index:2;
  letter-spacing:.1em;
  flex-direction:column;
  align-items:center;
  gap:.8rem;
  font-size:.72rem;
  display:flex;
  position:absolute;
  top:2rem;
  left:50%;
  transform:translate(-50%)
}
.reel-title i {
  opacity:.65;
  background:currentColor;
  width:38px;
  height:1px
}
.showreel-frame>p {
  z-index:2;
  letter-spacing:.06em;
  margin:0;
  font-size:.72rem;
  position:absolute;
  bottom:1.6rem;
  left:2rem
}
.play-button {
  z-index:3;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  width:76px;
  height:76px;
  transition:background .35s ease, transform .35s var(--ease);
  background:#fff8e714;
  border:1px solid #fff8e7a8;
  border-radius:50%;
  place-items:center;
  display:grid;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%)
}
.play-button:hover {
  background:var(--burgundy);
  transform:translate(-50%,-50%)scale(1.07)
}
.play-icon {
  border-top:8px solid #0000;
  border-bottom:8px solid #0000;
  border-left:13px solid var(--cream);
  width:0;
  height:0;
  margin-left:5px
}
.pause-icon {
  border-left:4px solid var(--cream);
  border-right:4px solid var(--cream);
  width:14px;
  height:18px
}
.about-section {
  z-index:4;
  background:radial-gradient(circle at 82% 30%,#80002014,#0000 25rem),linear-gradient(135deg,#fffdf7f0,#f8e6dbdb);
  padding:4.8rem 6vw 3.2rem;
  position:relative
}
.about-grid {
  grid-template-columns:auto 1px minmax(260px,440px);
  align-items:center;
  gap:clamp(2rem,4vw,5rem);
  display:grid
}
.about-grid h2 {
  letter-spacing:-.07em;
  margin:0;
  font-size:clamp(3.7rem,7vw,7.4rem);
  font-weight:470;
  line-height:.9
}
.about-grid p {
  margin:0;
  font-size:clamp(.9rem,1.2vw,1.12rem);
  line-height:1.55
}
.about-divider {
  background:var(--line);
  width:1px;
  height:6rem
}
.service-strip {
  border-top:1px solid var(--line);
  grid-template-columns:repeat(6,1fr);
  margin-top:4.2rem;
  padding-top:1.5rem;
  display:grid
}
.service-strip span {
  border-right:1px solid var(--line);
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:.15rem 1rem;
  font-size:.58rem;
  font-weight:690
}
.service-strip span:last-child {
  border-right:0
}
.section-heading {
  text-align:center
}
.section-heading>span {
  color:var(--burgundy);
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:.62rem;
  font-weight:750
}
.section-heading h2 {
  letter-spacing:-.055em;
  margin:.55rem 0 0;
  font-size:clamp(2.5rem,4.2vw,4.6rem);
  font-weight:480;
  line-height:1
}
.section-heading p {
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.62;
  margin:.8rem 0 0;
  font-size:.68rem
}
.work-section {
  z-index:4;
  background:radial-gradient(circle at 10% 40%,#80002014,#0000 29rem),radial-gradient(circle at 90% 70%,#6f4e371f,#0000 30rem),linear-gradient(145deg,#fffaf0,#f5e4da 58%,#fff7e8);
  height:330svh;
  position:relative
}
.work-sticky {
  perspective:1500px;
  grid-template-rows:auto 1fr auto;
  height:100svh;
  padding:5.5rem 0 2rem;
  display:grid;
  position:sticky;
  top:0;
  overflow:hidden
}
.carousel-scene {
  width:100%;
  min-height:0;
  transform-style:preserve-3d;
  position:relative
}
.project-card {
  width:clamp(215px,20vw,310px);
  color:var(--ink);
  transform-style:preserve-3d;
  transform:translate(-50%, -50%) translateX(calc(var(--side) * clamp(170px, 17.2vw, 255px))) rotateY(calc(var(--side) * -13deg)) translateZ(calc(var(--depth) * -95px)) scale(calc(1 - var(--depth) * .055));
  opacity:clamp(0, calc(1 - var(--depth) * .24), 1);
  filter:blur(calc(var(--depth) * .35px)) saturate(calc(1 - var(--depth) * .11));
  will-change:transform, opacity, filter;
  transition:filter .2s linear,opacity .2s linear;
  position:absolute;
  top:50%;
  left:50%
}
.project-card--active {
  z-index:12;
  filter:none
}
.project-image {
  background:var(--accent);
  border:1px solid #4a2a1929;
  border-radius:7px;
  height:min(51vh,530px);
  min-height:350px;
  position:relative;
  overflow:hidden;
  box-shadow:0 24px 45px #44281829
}
.project-image:after {
  content:"";
  pointer-events:none;
  background:linear-gradient(#0000 62%,#1d0f0847);
  position:absolute;
  inset:0
}
.project-image img {
  object-fit:cover;
  width:100%;
  height:100%;
  transition:transform .8s var(--ease)
}
.project-card:hover .project-image img,
.project-card--active .project-image img {
  transform:scale(1.045)
}
.project-image>span {
  z-index:2;
  color:#fff;
  border:1px solid #ffffffa6;
  border-radius:50%;
  place-items:center;
  width:31px;
  height:31px;
  font-size:.57rem;
  display:grid;
  position:absolute;
  top:.8rem;
  right:.8rem
}
.project-meta {
  flex-direction:column;
  gap:.28rem;
  padding:.7rem .15rem 0;
  display:flex
}
.project-meta strong {
  font-size:.87rem;
  font-weight:650
}
.project-meta small {
  text-transform:uppercase;
  letter-spacing:.05em;
  opacity:.65;
  font-size:.56rem
}
.work-control {
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:1rem;
  width:min(84vw,990px);
  margin:0 auto;
  font-size:.62rem;
  display:grid
}
.work-control>i {
  background:var(--line);
  height:1px
}
.work-control b {
  background:var(--burgundy);
  height:100%;
  transition:width .15s linear;
  display:block
}
.team-section {
  z-index:4;
  background:radial-gradient(circle at 50% 95%,#ffffffd1,#0000 38rem),linear-gradient(145deg,#f8e9de,#fff9ec 55%,#ebd8d2);
  min-height:96svh;
  padding:6.2rem 3vw 0;
  position:relative;
  overflow:hidden
}
.team-lineup {
  align-items:end;
  width:100%;
  min-height:510px;
  margin-top:1.5rem;
  display:flex
}
.team-person {
  transform-origin:bottom;
  min-width:0;
  height:505px;
  transition:flex .6s var(--ease), filter .45s ease, opacity .45s ease, transform .6s var(--ease);
  background:0 0;
  border:0;
  flex:8.333%;
  justify-content:center;
  align-items:end;
  padding:0;
  display:flex;
  position:relative
}
.team-person img {
  object-fit:contain;
  object-position:bottom center;
  filter:drop-shadow(0 15px 16px #3520141f);
  width:132%;
  max-width:none;
  height:455px;
  transition:transform .6s var(--ease)
}
.team-person>span {
  z-index:2;
  text-align:center;
  opacity:0;
  width:max-content;
  max-width:180px;
  transition:opacity .35s ease, transform .45s var(--ease);
  flex-direction:column;
  gap:.22rem;
  display:flex;
  position:absolute;
  top:1rem;
  left:50%;
  transform:translate(-50%,13px)
}
.team-person strong {
  font-size:.8rem
}
.team-person small {
  color:var(--burgundy);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.5rem;
  font-weight:750
}
.team-lineup--focused .team-person:not(.team-person--active) {
  filter:blur(5px)saturate(.35);
  opacity:.38;
  transform:scale(.94)
}
.team-person--active {
  z-index:5;
  flex:1.7 14%
}
.team-person--active img {
  transform:scale(1.1)translateY(-3px)
}
.team-person--active>span {
  opacity:1;
  transform:translate(-50%)
}
.trust-section {
  z-index:4;
  background:linear-gradient(145deg,#fff9ec,#f4e3da);
  padding:1.2rem 5vw 4.2rem;
  position:relative
}
.trust-title {
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1.3rem;
  display:grid
}
.trust-title i {
  background:var(--line);
  height:1px
}
.trust-title h2 {
  letter-spacing:.08em;
  margin:0;
  font-size:.72rem;
  font-weight:690
}
.partner-row {
  grid-template-columns:repeat(6,1fr);
  margin-top:1.7rem;
  display:grid
}
.partner {
  border-right:1px solid var(--line);
  min-height:92px;
  transition:color .3s ease, transform .4s var(--ease);
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:.45rem;
  display:flex
}
.partner:last-child {
  border-right:0
}
.partner:hover {
  color:var(--burgundy);
  transform:translateY(-4px)
}
.partner b {
  font-family:Georgia,serif;
  font-size:1.55rem;
  font-weight:400;
  line-height:1
}
.partner span {
  letter-spacing:.05em;
  font-size:.65rem
}
.contact-section {
  z-index:4;
  background:radial-gradient(circle at 86% 12%,#8000201a,#0000 25rem),linear-gradient(140deg,#fffdf4,#f8e4d8 60%,#ead2cd);
  padding:4.8rem 6vw 0;
  position:relative;
  overflow:hidden
}
.contact-heading>span {
  color:var(--burgundy);
  letter-spacing:.12em;
  font-size:.62rem;
  font-weight:750
}
.contact-heading h2 {
  color:var(--burgundy);
  letter-spacing:-.07em;
  margin:.6rem 0 2.2rem;
  font-size:clamp(2.8rem,5.6vw,6.2rem);
  font-weight:470;
  line-height:.92
}
.contact-grid {
  z-index:3;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.72fr);
  gap:4.5vw;
  max-width:1260px;
  padding-bottom:4rem;
  display:grid;
  position:relative
}
.contact-form {
  grid-template-columns:1fr 1fr;
  gap:.8rem 1.25rem;
  display:grid
}
.contact-form label {
  grid-template-columns:88px 1fr;
  align-items:center;
  gap:.65rem;
  display:grid
}
.contact-form label>span,
.contact-details dt {
  text-transform:uppercase;
  letter-spacing:.05em;
  font-size:.56rem;
  font-weight:700
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width:100%;
  min-width:0;
  color:var(--ink);
  background:#fff3;
  border:1px solid #492b1b4d;
  border-radius:0;
  outline:0;
  padding:.72rem .8rem;
  transition:background .25s,border-color .25s
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color:var(--burgundy);
  background:#ffffff8c
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color:#2f1f1680
}
.contact-form .message-field {
  grid-column:1/-1;
  align-items:start
}
.contact-form textarea {
  resize:vertical
}
.contact-form button {
  background:var(--burgundy);
  min-height:48px;
  color:var(--cream);
  text-transform:uppercase;
  letter-spacing:.05em;
  transition:background .3s ease, transform .3s var(--ease);
  border:0;
  grid-column:2;
  justify-content:space-between;
  align-items:center;
  padding:0 1rem;
  font-size:.61rem;
  font-weight:720;
  display:flex
}
.contact-form button:hover {
  background:var(--coffee);
  transform:translateY(-2px)
}
.contact-form button i {
  font-size:1rem;
  font-style:normal
}
.form-success {
  color:var(--burgundy);
  text-align:right;
  grid-column:1/-1;
  margin:0;
  font-size:.72rem
}
.contact-details {
  border-left:1px solid var(--line);
  padding-left:2.6rem
}
.contact-details h3 {
  margin:0 0 1.5rem;
  font-size:.9rem;
  font-weight:620
}
.contact-details dl {
  gap:1rem;
  margin:0;
  display:grid
}
.contact-details dl div {
  gap:.22rem;
  display:grid
}
.contact-details dt {
  color:var(--burgundy)
}
.contact-details dd {
  margin:0;
  font-size:.88rem;
  line-height:1.4
}
.location-map {
  background:#fffdf67a;
  height:145px;
  margin-top:1.5rem;
  position:relative;
  overflow:hidden
}
.location-map svg {
  width:100%;
  height:100%
}
.location-map path {
  fill:none;
  stroke:#6f4e3752;
  stroke-width:1.5px
}
.location-map circle {
  fill:var(--burgundy)
}
.location-map .map-pulse {
  fill:none;
  stroke:var(--burgundy);
  transform-origin:255px 113px;
  animation:1.8s ease-out infinite map-pulse
}
.location-map span {
  letter-spacing:.06em;
  font-size:.55rem;
  line-height:1.4;
  position:absolute;
  bottom:.65rem;
  left:.8rem
}
.footer-perch {
  filter:blur(4px);
  background:radial-gradient(#4a2b1a33,#0000 70%);
  border-radius:50%;
  width:36vw;
  height:16px;
  position:absolute;
  bottom:-.2rem;
  right:-8vw
}
.footer-bar {
  z-index:5;
  min-height:96px;
  color:var(--cream);
  background:linear-gradient(155deg, var(--burgundy), #4c101e);
  clip-path:ellipse(90% 92% at 50% 100%);
  justify-content:space-between;
  align-items:end;
  margin:0 -6vw;
  padding:3.5rem 6vw 1.3rem;
  display:flex;
  position:relative
}
.footer-bar p,
.footer-bar span,
.footer-bar a {
  letter-spacing:.04em;
  font-size:.55rem
}
.footer-bar p {
  margin:0
}
.footer-bar>div {
  align-items:center;
  gap:1rem;
  display:flex
}
.footer-bar a {
  border:1px solid #fff8e773;
  border-radius:50%;
  place-items:center;
  width:24px;
  height:24px;
  display:grid
}
.case-page {
  background:var(--cream);
  min-height:100svh
}
.case-nav {
  text-transform:uppercase;
  letter-spacing:.1em;
  justify-content:space-between;
  align-items:center;
  height:82px;
  padding:0 3.5vw;
  font-size:.68rem;
  display:flex
}
.case-hero {
  padding:3rem 3.5vw 0
}
.case-kicker {
  border-bottom:1px solid var(--line);
  text-transform:uppercase;
  letter-spacing:.08em;
  grid-template-columns:1fr 1fr auto;
  gap:2rem;
  padding-bottom:1.2rem;
  font-size:.62rem;
  display:grid
}
.case-hero h1 {
  letter-spacing:-.085em;
  max-width:1000px;
  margin:4rem 0;
  font-size:clamp(4rem,10vw,11rem);
  font-weight:480;
  line-height:.85
}
.case-cover {
  height:78svh;
  overflow:hidden
}
.case-cover img {
  object-fit:cover;
  width:100%;
  height:100%
}
.case-info {
  grid-template-columns:.75fr 1fr;
  gap:9vw;
  padding:8rem 3.5vw;
  display:grid
}
.case-facts {
  gap:2rem;
  display:grid
}
.case-facts div {
  border-bottom:1px solid var(--line);
  grid-template-columns:6rem 1fr;
  gap:1rem;
  padding-bottom:1rem;
  display:grid
}
.case-facts span {
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.6rem
}
.case-facts strong {
  font-size:.9rem
}
.case-statement {
  letter-spacing:-.055em;
  margin:0;
  font-size:clamp(2rem,4vw,4.5rem);
  line-height:1.05
}
.case-gallery {
  grid-template-columns:1fr 1fr;
  gap:1.2vw;
  padding:0 3.5vw 8rem;
  display:grid
}
.case-gallery figure {
  height:65vh;
  margin:0;
  overflow:hidden
}
.case-gallery figure:first-child {
  grid-column:1/-1;
  height:95vh
}
.case-gallery img {
  object-fit:cover;
  width:100%;
  height:100%
}
.next-case {
  background:var(--burgundy);
  color:var(--cream);
  gap:1rem;
  padding:6rem 3.5vw;
  display:grid
}
.next-case span {
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:.64rem
}
.next-case strong {
  letter-spacing:-.08em;
  font-size:clamp(4rem,12vw,12rem);
  font-weight:460
}
@keyframes preloader-word {
  0% {
    opacity:0;
    transform:translateY(35px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes preloader-line {
  0% {
    transform:scaleX(0)
  }
  to {
    transform:scaleX(1)
  }
}
@keyframes letter-in {
  0% {
    opacity:0;
    transform:translateY(70px)rotate(4deg)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes fade-up {
  0% {
    opacity:0;
    transform:translateY(25px)
  }
  to {
    opacity:1;
    transform:none
  }
}
@keyframes scroll-bob {
  0%,
  to {
    transform:translateY(0)
  }
  50% {
    transform:translateY(5px)
  }
}
@keyframes map-pulse {
  0% {
    opacity:.75;
    transform:scale(.55)
  }
  to {
    opacity:0;
    transform:scale(1.65)
  }
}
@media (width<=900px) {
  .hero {
    min-height:590px
  }
  .hero h1 {
    font-size:20vw;
    top:25%
  }
  .hero-tagline {
    bottom:18%
  }
  .about-grid {
    grid-template-columns:1fr;
    gap:1.4rem
  }
  .about-divider {
    width:80px;
    height:1px
  }
  .service-strip {
    grid-template-columns:repeat(3,1fr);
    row-gap:1.3rem
  }
  .service-strip span:nth-child(3) {
    border-right:0
  }
  .project-card {
    width:clamp(210px,30vw,290px);
    transform:translate(-50%, -50%) translateX(calc(var(--side) * 25vw)) rotateY(calc(var(--side) * -12deg)) translateZ(calc(var(--depth) * -80px)) scale(calc(1 - var(--depth) * .06))
  }
  .team-section {
    min-height:auto;
    padding-bottom:3rem
  }
  .team-lineup {
    scrollbar-width:none;
    justify-content:flex-start;
    min-height:480px;
    overflow-x:auto
  }
  .team-person {
    flex:0 0 12.5vw;
    min-width:100px
  }
  .team-person--active {
    flex-basis:150px
  }
  .partner-row {
    grid-template-columns:repeat(3,1fr)
  }
  .partner {
    border-bottom:1px solid var(--line)
  }
  .partner:nth-child(3) {
    border-right:0
  }
  .contact-grid {
    grid-template-columns:1fr
  }
  .contact-details {
    border-left:0;
    border-top:1px solid var(--line);
    padding:2rem 0 0
  }
}
@media (width<=680px) {
  .site-header {
    height:60px;
    padding:0 5vw
  }
  .site-header nav {
    z-index:-1;
    background:var(--cream);
    opacity:0;
    visibility:hidden;
    transition:opacity .35s ease, transform .35s var(--ease), visibility .35s;
    flex-direction:column;
    justify-content:center;
    gap:2rem;
    padding:12vh 8vw;
    display:flex;
    position:fixed;
    inset:0;
    transform:translateY(-12px)
  }
  .site-header nav.nav-open {
    opacity:1;
    visibility:visible;
    transform:none
  }
  .site-header nav a {
    letter-spacing:-.04em;
    font-size:2.5rem
  }
  .menu-toggle {
    background:0 0;
    border:0;
    place-content:center;
    gap:6px;
    width:34px;
    height:34px;
    display:grid
  }
  .menu-toggle i {
    background:currentColor;
    width:21px;
    height:1px
  }
  .hero {
    height:88svh;
    min-height:560px
  }
  .hero h1 {
    font-size:19.5vw;
    top:28%
  }
  .hero-tagline {
    font-size:1.05rem;
    bottom:21%;
    left:8vw;
    right:8vw
  }
  .hero-perch {
    top:59%
  }
  .scroll-note span {
    display:none
  }
  .showreel-section {
    height:150svh
  }
  .showreel-frame {
    width:calc(92vw + var(--reel-progress) * 8vw);
    height:calc(58vh + var(--reel-progress) * 42vh)
  }
  .showreel-frame>p {
    display:none
  }
  .about-section {
    padding:4rem 5vw 2.5rem
  }
  .about-grid h2 {
    font-size:3.5rem
  }
  .service-strip {
    grid-template-columns:repeat(2,1fr)
  }
  .service-strip span {
    place-items:center;
    min-height:38px;
    display:grid
  }
  .service-strip span:nth-child(odd) {
    border-right:1px solid var(--line)
  }
  .service-strip span:nth-child(2n) {
    border-right:0
  }
  .work-section {
    height:300svh
  }
  .work-sticky {
    padding-top:5rem
  }
  .section-heading h2 {
    font-size:2.6rem
  }
  .project-card {
    width:58vw;
    transform:translate(-50%, -50%) translateX(calc(var(--side) * 44vw)) rotateY(calc(var(--side) * -14deg)) translateZ(calc(var(--depth) * -100px)) scale(calc(1 - var(--depth) * .08))
  }
  .project-image {
    height:48vh;
    min-height:320px
  }
  .team-section {
    padding-inline:0
  }
  .team-section .section-heading {
    padding:0 5vw
  }
  .team-lineup {
    padding:0 4vw
  }
  .team-person {
    flex-basis:120px
  }
  .partner-row {
    grid-template-columns:repeat(2,1fr)
  }
  .partner:nth-child(2n) {
    border-right:0
  }
  .partner:nth-child(3) {
    border-right:1px solid var(--line)
  }
  .contact-section {
    padding:4rem 5vw 0
  }
  .contact-heading h2 {
    font-size:3.4rem
  }
  .contact-form {
    grid-template-columns:1fr
  }
  .contact-form label {
    grid-template-columns:78px 1fr
  }
  .contact-form label,
  .contact-form .message-field,
  .contact-form button {
    grid-column:1
  }
  .contact-form button {
    width:calc(100% - 90px);
    margin-left:90px
  }
  .footer-bar {
    clip-path:ellipse(125% 92% at 50% 100%);
    flex-direction:column;
    justify-content:end;
    align-items:flex-start;
    gap:.8rem;
    min-height:120px;
    margin-inline:-5vw;
    padding-inline:5vw
  }
  .case-kicker {
    grid-template-columns:1fr
  }
  .case-cover {
    height:62svh
  }
  .case-info {
    grid-template-columns:1fr;
    padding-block:5rem
  }
  .case-gallery {
    grid-template-columns:1fr
  }
  .case-gallery figure,
  .case-gallery figure:first-child {
    grid-column:auto;
    height:58vh
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,
  :before,
  :after {
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important
  }
  [data-reveal] {
    opacity:1;
    transform:none
  }
}
@property --tw-rotate-x {
  syntax:"*";
  inherits:false
}
@property --tw-rotate-y {
  syntax:"*";
  inherits:false
}
@property --tw-rotate-z {
  syntax:"*";
  inherits:false
}
@property --tw-skew-x {
  syntax:"*";
  inherits:false
}
@property --tw-skew-y {
  syntax:"*";
  inherits:false
}
@property --tw-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-shadow-color {
  syntax:"*";
  inherits:false
}
@property --tw-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%
}
@property --tw-inset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-inset-shadow-color {
  syntax:"*";
  inherits:false
}
@property --tw-inset-shadow-alpha {
  syntax:"<percentage>";
  inherits:false;
  initial-value:100%
}
@property --tw-ring-color {
  syntax:"*";
  inherits:false
}
@property --tw-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-inset-ring-color {
  syntax:"*";
  inherits:false
}
@property --tw-inset-ring-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}
@property --tw-ring-inset {
  syntax:"*";
  inherits:false
}
@property --tw-ring-offset-width {
  syntax:"<length>";
  inherits:false;
  initial-value:0
}
@property --tw-ring-offset-color {
  syntax:"*";
  inherits:false;
  initial-value:#fff
}
@property --tw-ring-offset-shadow {
  syntax:"*";
  inherits:false;
  initial-value:0 0 #0000
}

//
