@font-face {
  font-family: "Sofia Sans Extra Condensed";
  src: url("assets/sofia-extra-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bona Nova";
  src: url("assets/bona-nova-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

.portfolio-film {
  --frame-width: 42.5vw;
  --frame-ratio: 1.64;
  --splice: clamp(14px, 1.45vw, 28px);
  --bleed: 20px;
  --film-inset: max(var(--gutter), calc((100vw - var(--max)) / 2));
  overflow: hidden;
  overflow: clip;
  padding-top: clamp(.85rem, 1.35vw, 1.7rem);
  font-family: Onest, Arial, sans-serif;
}

.portfolio-film .film-window {
  position: relative;
  width: calc(100% + 2 * var(--bleed));
  margin-inline: calc(-1 * var(--bleed));
  overflow: auto hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  transform: rotate(-1.1deg);
  cursor: grab;
  background: #11120f;
}

.film-window::-webkit-scrollbar { display: none; }
.film-window:focus-visible { outline: 2px solid #dfb78d; outline-offset: -2px; }
.film-window.dragging, .film-window.dragging * { cursor: grabbing; }

.film-strip {
  display: flex;
  gap: var(--splice);
  position: relative;
  width: max-content;
  padding: 12px calc(var(--film-inset) + var(--bleed)) 16px;
  background: #11120f;
  user-select: none;
}

.film-strip::before, .film-strip::after {
  position: absolute;
  inset-inline: 0;
  height: 6px;
  pointer-events: none;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='6'%3E%3Crect x='2' y='.4' width='10' height='4.6' rx='1.25' fill='%23676358'/%3E%3C/svg%3E") repeat-x left center;
}

.film-strip::before { top: 2px; }
.film-strip::after { bottom: 4px; }

.portfolio-film .frame {
  flex: 0 0 var(--frame-width);
  width: var(--frame-width);
  min-width: 0;
  container-type: inline-size;
  outline: 0;
}

.film-edge {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 29px;
  padding-bottom: 3px;
  color: #ede5d5;
  font-size: clamp(.8rem, .98vw, .95rem);
  line-height: 1.2;
}

.film-edge::before {
  width: .9rem;
  height: 2px;
  flex: none;
  background: #57574d;
  content: "";
}

.frame.is-active .film-edge::before,
.frame:focus-visible .film-edge::before { background: #e4b28e; }

.film-edge span:last-child {
  margin-left: auto;
  color: #b7b4a6;
  font-size: .94em;
}

.portfolio-film .picture {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: var(--frame-ratio);
  overflow: hidden;
  isolation: isolate;
}

.frame:focus-visible .picture, .frame a.picture:focus-visible {
  outline: 2px solid #f7d2a8;
  outline-offset: 2px;
}

.architecture { background: #433e30; color: #fff4db; }
.architecture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 81%; }
.architecture::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #10150f68, transparent 58%);
  pointer-events: none;
  content: "";
}

.arch-copy {
  position: absolute;
  z-index: 1;
  inset: 13% 52% 9% 3.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
}

.arch-copy h2 {
  font: 600 12.9cqw/.85 "Sofia Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: -.022em;
  text-transform: uppercase;
  white-space: nowrap;
}

.arch-copy p {
  color: #eee9da;
  font: 450 clamp(12px, 2.4cqw, 19px)/1.24 Onest, Arial, sans-serif;
}

.psych-cover {
  display: block;
  color: #f1eadb;
  background: radial-gradient(ellipse at 73% 65%, #443b2c 0%, #302d25 30%, #24251f 59%, #191d1a 100%);
}

.psych-room {
  position: absolute;
  right: .5%;
  bottom: 1.5%;
  width: 57%;
  aspect-ratio: 1;
  pointer-events: none;
}

.psych-room::before {
  content: "";
  position: absolute;
  left: 50.35%;
  width: 1px;
  bottom: 99.6%;
  height: 100cqw;
  background: #685135;
}

.psych-room img { display: block; width: 100%; height: 100%; object-fit: contain; }

.psych-copy { position: absolute; top: 19%; left: 6%; }

.psych-copy h2 {
  font: 400 6.55cqw/.98 "Bona Nova", Georgia, serif;
  letter-spacing: -.045em;
}

.psych-copy p {
  margin-top: 3cqw;
  color: #d5cfbe;
  font: 400 clamp(12px, 2.45cqw, 18px)/1.35 Onest, Arial, sans-serif;
}

.psych-action {
  display: inline-block;
  margin-top: 4cqw;
  padding: .68em 1em;
  color: #302d24;
  background: #dcc8a2;
  border-radius: 2px;
  font: 500 clamp(12px, 2.4cqw, 17px)/1.2 Onest, Arial, sans-serif;
}

.film-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-block: clamp(1.1rem, 2.1vw, 2.7rem) clamp(1.1rem, 1.8vw, 2.3rem);
}

.film-navigation {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.15vw, 1.25rem);
  color: #ede5d8;
}
.film-navigation[hidden] { display: none; }
.film-navigation button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: 480 .96rem/1.2 Onest, Arial, sans-serif;
  transition: color .18s ease;
}

.film-navigation button:focus-visible, .film-contact:focus-visible { outline: 2px solid #e8b88e; outline-offset: 3px; }
.film-navigation button:focus-visible { border-radius: 3px; }

.film-count {
  color: #b9b3a5;
  font: 450 .875rem/1 Onest, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.film-count b { color: #f2e9d9; font-weight: 600; }

.film-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-left: auto;
  padding: .7em 1.25em;
  background: #e7c8a9;
  color: #22241f;
  box-shadow: inset 0 -2px #c69f7b;
  font: 540 1rem/1.2 Geologica, Onest, Arial, sans-serif;
  letter-spacing: -.025em;
  white-space: nowrap;
  border-radius: 13px;
  transition: background-color .18s ease, box-shadow .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .film-navigation button:hover { color: #e8b88e; }
  .film-contact:hover { background: #d1ac89; box-shadow: inset 0 -2px #b38c6a; }
}

.film-contact:active { background: #c19b79; box-shadow: inset 0 1px #a98362; }

@media (prefers-reduced-motion: reduce) {
  .film-navigation button, .film-contact { transition: none; }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .portfolio-film { --frame-width: 52vw; }
}

@media (max-width: 720px) {
  .portfolio-film { --frame-width: 80vw; --frame-ratio: 1.16; --splice: 12px; --bleed: 12px; padding-top: 10px; }
  .portfolio-film .film-window { transform: rotate(-.8deg); }
  .film-strip { padding-block: 10px 13px; }
  .film-strip::before, .film-strip::after { background-size: 23px 5px; }
  .film-strip::after { bottom: 3px; }
  .film-edge { min-height: 29px; gap: .38rem; font-size: .78rem; }
  .film-edge::before { width: .65rem; }
  .arch-copy { inset: 15% 51% 10% 2%; }
  .arch-copy h2 { font-size: 14cqw; }
  .arch-copy p { font-size: clamp(12px, 3.5cqw, 16px); }
  .psych-copy { top: 11%; }
  .psych-copy h2 { font-size: 8.6cqw; }
  .psych-copy p { margin-top: 3.5cqw; }
  .psych-action { margin-top: 4cqw; }
  .psych-room { width: 63%; right: .5%; bottom: 2%; }
  .picture.apiary-print { grid-template-rows: minmax(0, 1fr) auto; gap: 3%; padding: 3.5%; }
  .apiary-print .apiary-print__mast, .apiary-print .apiary-print__kicker,
  .apiary-print .apiary-print__intro, .apiary-print .apiary-print__browse,
  .apiary-print .apiary-print__hotspot, .apiary-print .apiary-print__subtitle { display: none; }
  .apiary-print .apiary-print__hero { border-radius: 2px; }
  .apiary-print .apiary-print__copy { padding: 4cqi; }
  .apiary-print .apiary-print__copy h2 { margin: 0; font-size: 9.2cqi; }
  .apiary-print .apiary-print__title { margin-bottom: 2.3cqi; font-size: max(14px, 4.6cqi); }
  .apiary-print .apiary-print__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqi; }
  .apiary-print .apiary-print__tiles > .reel-shop-tile:last-child { display: none; }
  .apiary-print .reel-shop-tile__name { font-size: max(12px, 8cqi); }
  .apiary-print .reel-shop-tile__caption { display: none; }
  .film-tools { padding-block: .85rem 1rem; }
  .film-contact { font-size: .94rem; }
}

@media (max-width: 380px) {
  .film-tools { gap: .5rem; }
  .film-navigation { gap: .3rem; }
  .film-navigation button { font-size: .9rem; }
  .film-contact { padding-inline: .5em; font-size: .9rem; }
  .film-edge { font-size: .75rem; }
}
