@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #f2f5f3;
  --ink: #172b24;
  --body: #3e5149;
  --muted: #52645c;
  --blue: #205747;
  --coral: #a82e19;
  --gold: #ffc632;
  --line: #becdc4;
  --line2: #dae4de;
  --soft: #e7eee9;
  --chip: #d6e8dc;
  --cut-deep: #19372d;
  --cut-lime: var(--gold);
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-head: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
}

body, .hdr, .mmenu { background: var(--paper); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -.016em; }
.hdr { border-color: var(--line); }
.hdr__bar { height: 67px; width: min(1500px, calc(100% - 64px)); }
.logo img { width: 143px; }
.hdr__workspace-narrow { display: none; }
.nav a, .hdr__login { font-weight: 560; }
.nav a:hover, .hdr__login:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.btn { border-radius: 3px; transition: transform .2s var(--motion-ease), background-color .2s, box-shadow .2s, border-color .2s; }
.btn:not(:disabled):active, button:not(:disabled):active { transform: scale(.97); }
.btn--blue, .btn--coral { background: var(--blue); }
.btn--blue:hover, .btn--coral:hover { background: #163f34; }
.btn--dark:hover { background: #26483b; }
.btn--line { border-color: var(--line); }
.btn--line:hover { background: var(--chip); }
a, summary, button, input, textarea, select { -webkit-tap-highlight-color: #20574733; }
a, summary, button { transition: color .19s, background-color .19s, border-color .19s, transform .2s var(--motion-ease); }
input, select, textarea { transition: border-color .2s, box-shadow .2s, background-color .2s; }
.qa summary svg, .plan__details-toggle svg { transition: transform .22s var(--motion-ease); }
.qa[open] > p, .plan__details[open] > div, .mmenu:not([hidden]), dialog[open] { animation: motion-appear .25s var(--motion-ease) both; }
dialog[open]::backdrop { animation: motion-fade .22s both; }
#workspace-main.htmx-added, #public-main.htmx-added { animation: motion-fade .24s var(--motion-ease) both; }
.htmx-request button[type="submit"], button.htmx-request { opacity: .72; }
.ftr { background: var(--cut-deep); color: var(--paper); }
.ftr .ftr__brand p, .ftr .ftr__grid>div:not(:first-child)>a, .ftr .ftr__bottom { color: #dce9e0; }
.ftr .ftr__bottom { border-color: #527467; }
.ftr a:hover { color: var(--gold) !important; }
.auth__art { background: var(--cut-deep); }
.auth__art>img { opacity: 1; object-position: 55% center; }
.auth__art>div { align-self: end; background: var(--cut-deep); text-shadow: none; width: 100%; }
.preview-mode { font-size: .875rem; }
.preview-mode a { text-decoration: underline; text-underline-offset: 4px; }

.motion-hero {
  width: min(1500px, calc(100% - 64px));
  margin: 20px auto 0;
}
.motion-view { min-width: 0; margin: 0; }
.motion-view__screen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(358px, 40vw, 570px);
  background: var(--ink);
}
.motion-view__screen video, .motion-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.motion-view__screen video { display: block; object-fit: contain; }
.motion-cover {
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #ffc127;
  color: #21180c;
  opacity: 1;
  transition: opacity .34s var(--motion-ease);
}
.motion-cover::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 21%;
  background: url("../campaign/relay-01.webp") 60% 50% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 34%);
}
.motion-cover__type {
  padding: 0 0 7px clamp(30px, 5.5vw, 83px);
  animation: motion-title .57s var(--motion-ease) both;
}
.motion-cover__type p { color: inherit; font-weight: 620; font-size: clamp(.93rem, 1.55vw, 1.18rem); margin-bottom: clamp(12px, 1.65vw, 25px); }
.motion-cover h1 { font-size: clamp(6rem, 12.3vw, 12.3rem); font-weight: 700; letter-spacing: -.018em; line-height: .77; }
.has-preview .motion-cover { opacity: 0; pointer-events: none; }

.motion-view__legend {
  display: grid;
  grid-template-columns: minmax(205px, 24%) minmax(0, 1fr);
  background: var(--cut-deep);
  color: var(--paper);
}
.motion-transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.3vw, 18px);
  border-right: 1px solid #557669;
  padding: 16px clamp(11px, 1.55vw, 24px);
}
.motion-transport__name { display: grid; line-height: 1.24; }
.motion-transport strong { font: 700 clamp(1.55rem, 2.4vw, 2rem)/1 var(--f-head); margin-bottom: 4px; }
.motion-transport__name span { color: #d5e6db; font-size: .84rem; }
.motion-play, .motion-reset {
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.motion-play { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); }
.motion-play:hover { background: #ffe3a0; transform: scale(1.06); }
.motion-play:focus-visible, .motion-reset:focus-visible { outline-color: var(--gold); }
.motion-play__stop { display: none; width: 12px; height: 15px; border-inline: 4px solid currentColor; }
.is-playing .motion-play__start { display: none; }
.is-playing .motion-play__stop { display: block; }
.motion-reset { width: 38px; height: 44px; border-radius: 3px; background: transparent; color: var(--paper); }
.motion-reset:hover:not(:disabled) { background: #365a4b; }
.motion-reset:disabled { opacity: .46; }

.motion-timeline { min-width: 0; padding: 10px clamp(11px, 1.7vw, 25px) 13px; }
.motion-timeline__top { display: flex; justify-content: space-between; gap: 12px; color: #e0ebe3; font-size: .8rem; }
.motion-counter, .motion-shots small { font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-reel-counter] { color: white; font-weight: 650; }
.motion-scrub {
  --progress: 0%;
  appearance: none;
  width: 100%;
  height: 18px;
  display: block;
  cursor: ew-resize;
  margin: 0 0 4px;
  background: linear-gradient(to right, var(--gold) var(--progress), #779487 var(--progress)) center / 100% 2px no-repeat;
}
.motion-scrub:disabled { cursor: default; }
.motion-scrub::-webkit-slider-thumb { appearance: none; width: 8px; height: 14px; border: 0; border-radius: 1px; background: var(--gold); }
.motion-scrub::-moz-range-thumb { width: 8px; height: 14px; border: 0; border-radius: 1px; background: var(--gold); }
.motion-scrub:focus-visible { outline-color: var(--gold); }
.motion-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.motion-shots a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: clamp(5px, 1vw, 12px);
  border-left: 2px solid transparent;
  padding-right: 4px;
  background: #2a4a3e;
  font-size: .86rem;
  font-weight: 560;
}
.motion-shots a:hover { background: #406556; }
.motion-shots a[aria-current] { border-color: var(--gold); background: #416254; color: #fff; }
.motion-shots a:focus-visible { outline-color: var(--gold); outline-offset: 1px; position: relative; z-index: 1; }
.motion-shots small { display: block; color: #e1efe8; line-height: 1.2; font-size: .75rem; }
.motion-shot { display: block; flex: 0 0 min(36%, 96px); align-self: stretch; background: #dba437 url('../campaign/relay-01.webp') center / cover no-repeat; }
.motion-shot--detail { background-size: 165%; background-position: 60% 54%; }
.motion-shot--end { background-image: url('../campaign/relay-end.webp'); background-position: 65% 58%; }

.motion-brief {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: clamp(21px, 3.2vw, 47px) clamp(3px, 2.1vw, 31px);
}
.motion-brief p { color: var(--ink); max-width: 640px; font-size: clamp(1.05rem, 1.55vw, 1.31rem); line-height: 1.45; }
.motion-brief a { flex-shrink: 0; }

.motion-flow { background: var(--chip); padding-block: clamp(44px, 7.4vw, 104px); }
.motion-flow h2, .motion-catalog h2, .motion-price h2 { font-size: clamp(2.75rem, 6vw, 5.55rem); line-height: .94; }
.motion-flow__intro { display: flex; justify-content: space-between; align-items: end; gap: 14px 30px; margin-bottom: clamp(22px, 3vw, 45px); }
.motion-flow__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 2px solid #6d8f7e; border-bottom: 1px solid #91aa9b; }
.motion-flow__steps li + li { border-left: 1px solid #91aa9b; }
.motion-flow__steps a { display: flex; min-height: 100%; flex-direction: column; align-items: flex-start; padding: clamp(15px, 2.8vw, 36px); }
.motion-flow__steps a:hover { background: #c6dece; }
.motion-flow__stagemark { display: flex; width: 100%; justify-content: space-between; align-items: center; color: #335e4f; font-variant-numeric: tabular-nums; font-weight: 640; }
.motion-flow__steps h3 { font-size: clamp(2rem, 4vw, 3.7rem); margin-top: 21px; }
.motion-flow__steps p { margin-top: 7px; max-width: 29ch; }

.motion-catalog { padding-block: clamp(49px, 9vw, 116px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px clamp(30px, 7vw, 100px); align-items: start; }
.motion-catalog__intro p { margin-top: 12px; }
.motion-catalog__intro .text-link { margin-top: 12px; }
.motion-catalog__models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px clamp(10px, 3vw, 32px); padding-top: 7px; }
.motion-catalog__models h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 1.7rem; }
.motion-model { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 640; }
.motion-model:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.motion-price { background: var(--soft); border-top: 1px solid var(--line); padding-block: clamp(39px, 5vw, 68px); }
.motion-price h2 { font-size: clamp(2.4rem, 4.3vw, 4.35rem); }
.motion-price p { margin-top: 12px; }
.motion-price__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }

.pricing-page .cut-section-head { grid-template-columns: 1.2fr .8fr; align-items: end; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.pricing-page .cut-section-head h1 { font-size: clamp(3.3rem, 7.5vw, 6.6rem); line-height: .87; }
.pricing .promo { background: var(--cut-deep); }
.pricing .seg { background: var(--soft); border-color: var(--line); }
.pricing .plans { gap: 0; border-block: 1px solid var(--line); }
.pricing .plan { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.pricing .plan + .plan { border-left: 1px solid var(--line); }
.pricing .plan--hl { background: #eaf3ec; }
.pricing .plan__head h3, .pricing .plan__amt { font-family: var(--f-head); font-weight: 700; letter-spacing: -.016em; }
.pricing .plan__head h3 { font-size: 2.5rem; }
.pricing .plan__amt { font-size: clamp(3.1rem, 5vw, 4.8rem); }
.pricing .plan__save { background: var(--chip); color: var(--ink); }

.workspace-page { background: var(--paper); }
.workspace-page .workbar { background: var(--cut-deep); color: var(--paper); }
.workbar__label { color: #d8eade; border-color: #597c6b; }
.workbar__user, .workbar__out { color: var(--paper); }
.workbar__out:hover { color: var(--gold); }
.workspace-page #workspace { display: block; min-height: calc(100vh - 68px); }
.workspace-page .worknav {
  flex-direction: row; align-items: center; overflow-x: auto; position: sticky; z-index: 15; top: 0;
  min-height: 0; padding: 8px clamp(16px, 4vw, 60px); gap: 7px; background: var(--paper);
  border-right: 0; border-bottom: 1px solid var(--line);
}
.workspace-page .worknav a { flex: 0 0 auto; position: relative; border-radius: 3px; color: var(--body); }
.workspace-page .worknav a.is-on { color: var(--ink); box-shadow: inset 0 -2px var(--blue); }
.workspace-page .btn, .workspace-page .worknav a { transition: transform .18s var(--motion-ease), background-color .18s, color .18s, box-shadow .18s; }
.workspace-page .btn:not(:disabled):hover { transform: translateY(-1px); }
.workspace-page .btn:not(:disabled):active { transform: scale(.97); }
.workspace-page .main__head h1 { font-size: clamp(2.65rem, 4.2vw, 4.4rem); font-weight: 700; }
.workspace-page .media-switch :is(a:hover, a[aria-current]) { color: var(--blue); }

.studio-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .76fr);
  align-items: start;
  gap: 24px clamp(24px, 6vw, 96px);
  padding-block: clamp(26px, 4.5vw, 65px);
}
.studio-overview__intro h1 { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .95; overflow-wrap: anywhere; }
.studio-overview__intro p { margin-top: 15px; max-width: 37ch; font-size: 1.1rem; }
.studio-overview__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.studio-overview__status { margin: 0; border-top: 2px solid var(--ink); }
.studio-overview__status > div {
  display: grid;
  grid-template-columns: minmax(114px, .78fr) minmax(0, 1fr);
  gap: 8px 12px;
  padding: 10px 0 11px;
  border-bottom: 1px solid var(--line);
}
.studio-overview__status dt { padding-top: 3px; font-weight: 640; }
.studio-overview__status dd { display: grid; gap: 2px; margin: 0; color: var(--body); font-size: .875rem; }
.studio-overview__status strong { color: var(--ink); font: 700 1.68rem/1 var(--f-head); }
.studio-overview__status a { justify-self: start; text-decoration: underline; text-underline-offset: 3px; }
.studio-overview__status a:hover { color: var(--blue); }

.studio-tool-list { margin-top: 22px; }
.studio-tool-list h2 { margin-bottom: 10px; font-size: clamp(2rem, 3.6vw, 3.55rem); }
.studio-tool-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.studio-tool-list li { border-block-end: 1px solid var(--line); }
.studio-tool-list li:nth-child(-n+2) { border-block-start: 1px solid var(--line); }
.studio-tool-list li:nth-child(even) { border-inline-start: 1px solid var(--line); }
.studio-tool-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; height: 100%; padding: 15px clamp(8px, 2vw, 22px); }
.studio-tool-list a:hover { background: var(--soft); }
.studio-tool-list a > svg:first-child { color: var(--blue); }
.studio-tool-list b { font-weight: 680; }
.studio-tool-list p { margin-top: 2px; }

.local-workspace-label { margin-left: auto; font-size: .875rem; color: #d8eade; white-space: nowrap; }
.local-workspace-label:hover { color: var(--gold); }
.local-mail { max-width: 740px; }
.local-mail pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--body); }
.local-mail > p { padding: 0; }

@keyframes motion-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes motion-fade { from { opacity: .65; } to { opacity: 1; } }
@keyframes motion-title { from { clip-path: inset(0 100% -12px 0); } to { clip-path: inset(0 0 -12px 0); } }

@media (max-width: 750px) {
  .motion-hero, .hdr__bar { width: calc(100% - 36px); }
  .motion-cover::before { inset-inline-start: 17%; }
  .motion-view__legend { grid-template-columns: minmax(0, 1fr); }
  .motion-transport { grid-template-columns: auto 1fr auto; border: 0; border-bottom: 1px solid #557669; padding-block: 9px; }
  .motion-transport__name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
  .motion-transport strong { margin-bottom: 0; }
  .motion-play { width: 44px; height: 44px; }
  .motion-timeline { padding-top: 7px; }
  .motion-brief { padding-inline: 0; }
  .motion-catalog, .studio-overview { grid-template-columns: 1fr; }
  .studio-overview { padding-top: 16px; }
}

@media (max-width: 540px) {
  .hdr__bar { height: 61px; }
  .logo img { width: 116px; }
  .hdr__workspace-wide { display: none; }
  .hdr__workspace-narrow { display: inline; }
  .motion-hero { width: calc(100% - 24px); margin-top: 12px; }
  .motion-view__screen { height: clamp(317px, 100vw, 420px); }
  .motion-cover { align-items: flex-start; }
  .motion-cover::before { inset: 21% 0 0; background-position: 54% 54%; mask-image: linear-gradient(180deg, transparent, #000 32%); }
  .motion-cover__type { padding: 19px 16px 0; }
  .motion-cover__type p { margin-bottom: 8px; }
  .motion-cover h1 { font-size: clamp(2.45rem, 14.8vw, 5.5rem); line-height: .85; white-space: nowrap; }
  .motion-cover h1 br { display: none; }
  .motion-shot { flex-basis: clamp(17px, 6vw, 30px); }
  .motion-shots a { font-size: .77rem; white-space: nowrap; }
  .motion-brief, .motion-flow__intro, .motion-price__inner { flex-direction: column; align-items: flex-start; }
  .motion-flow__steps { grid-template-columns: 1fr; }
  .motion-flow__steps li + li { border-left: 0; border-top: 1px solid #91aa9b; }
  .motion-flow__steps h3 { margin-top: 8px; }
  .pricing-page .cut-section-head { grid-template-columns: 1fr; }
  .studio-tool-list ul { grid-template-columns: 1fr; }
  .studio-tool-list li:nth-child(2) { border-block-start: 0; }
  .studio-tool-list li:nth-child(even) { border-inline-start: 0; }
  .local-workspace-label { margin-left: 0; }
}

@media (max-width: 620px) {
  .pricing .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
