.portland-hero {
  --shot-focus: 38%;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #111519;
  color: white;
}

.portland-hero .portland-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portland-screen, .portland-screen picture, .portland-screen img, .portland-screen video, .portland-screen canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}

.portland-screen img, .portland-screen video, .portland-screen canvas {
  object-fit: cover;
  object-position: center;
}

.portland-film { opacity: 0; }
.portland-hero[data-playback="film"][data-frame] .portland-film { opacity: 1; }

.portland-lockup {
  position: absolute;
  z-index: 1;
  top: calc(50% - clamp(1rem, 3.3333vh, 2.5rem));
  left: 50%;
  width: clamp(18rem, 34vw, 37rem);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.portland-mark {
  position: relative;
  isolation: isolate;
  opacity: var(--mark-opacity, 0);
}

.portland-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -62% -24%;
  background: radial-gradient(ellipse at center, rgb(244 187 110 / 26%), rgb(197 127 60 / 9%) 45%, transparent 72%);
}

.portland-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 3px rgb(24 11 3 / 88%)) drop-shadow(0 0 12px rgb(255 211 144 / 22%));
}

.portland-shimmer {
  position: absolute;
  inset: 0;
  -webkit-mask: url("efes-gold.webp") center / 100% 100% no-repeat;
  mask: url("efes-gold.webp") center / 100% 100% no-repeat;
  overflow: hidden;
}

@supports not ((mask-image: url("efes-gold.webp")) or (-webkit-mask-image: url("efes-gold.webp"))) {
  .portland-shimmer { display: none; }
}

.portland-shimmer::after {
  content: "";
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(108deg, transparent 34%, rgb(255 228 167 / 16%) 43%, rgb(255 249 214 / 88%) 49.5%, rgb(255 242 192 / 56%) 52%, transparent 63%);
  transform: translateX(var(--shine-position, -110%));
}

.portland-below-mark {
  position: absolute;
  top: calc(100% + clamp(.45rem, 1vh, .8rem));
  inset-inline: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  row-gap: clamp(.8rem, 1.8vh, 1.3rem);
}

.portland-hero .portland-tagline {
  margin: 0;
  color: #fff2dc;
  font: 400 clamp(1.1rem, 1.55vw, 1.65rem)/1.25 var(--efes-nav-face);
  letter-spacing: .045em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgb(23 12 5 / 95%), 0 2px 10px rgb(23 12 5 / 85%);
  opacity: var(--mark-opacity, 0);
}

.portland-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: max-content;
  visibility: hidden;
  opacity: var(--action-opacity, 0);
}

.portland-hero[data-actions] .portland-actions { visibility: visible; }
.portland-hero[data-waiting] :is(.portland-mark, .portland-tagline, .portland-actions),
.portland-hero[data-playback="still"] :is(.portland-mark, .portland-tagline, .portland-actions),
.portland-lockup:focus-within :is(.portland-mark, .portland-tagline, .portland-actions),
.portland-lockup:has(.portland-menus[open]) :is(.portland-mark, .portland-tagline, .portland-actions) { opacity: 1; visibility: visible; }

.portland-actions .portland-book, .portland-actions summary {
  --corner-length: 9px;
  box-sizing: border-box;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(8.4rem, 11.8vw, 10.6rem);
  min-height: 48px;
  padding: .6rem 1rem;
  border: 1px solid var(--lit-border, #bda06a);
  border-radius: 0;
  color: #f1d79f;
  background: rgb(20 18 16 / 88%);
  font: 400 1.055rem/1.2 var(--efes-nav-face);
  letter-spacing: .105em;
  text-indent: .105em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

/* Opposing corners extend along the frame as the control lights up. */
.portland-actions :is(.portland-book, summary)::before,
.portland-actions :is(.portland-book, summary)::after {
  content: "";
  position: absolute;
  width: var(--corner-length);
  height: 4px;
  border: solid currentColor;
  pointer-events: none;
  transition: width .3s ease;
}
.portland-actions :is(.portland-book, summary)::before {
  inset: 3px auto auto 3px;
  border-width: 1px 0 0 1px;
}
.portland-actions :is(.portland-book, summary)::after {
  inset: auto 3px 3px auto;
  border-width: 0 1px 1px 0;
}
.portland-menus { position: relative; color: #fff6e2; }
.portland-actions summary { list-style: none; }
.portland-actions summary::-webkit-details-marker { display: none; }
@media (hover: hover) {
  .portland-actions :is(.portland-book, summary):hover {
    --corner-length: 38%;
    --lit-border: #f3d89e;
    --lit-halo: .28;
  }
}
.portland-actions :is(.portland-book, summary):is(:focus-visible, :active),
.portland-menus[open] summary {
  --corner-length: 38%;
  --lit-border: #f3d89e;
  --lit-halo: .28;
}
.portland-actions :is(.portland-book, summary) {
  box-shadow: inset 0 0 14px rgb(228 191 119 / var(--lit-halo, 0)), 0 0 18px rgb(228 191 119 / var(--lit-halo, 0)), 0 2px 7px rgb(0 0 0 / 24%);
}
@media (prefers-reduced-motion: reduce) {
  .portland-actions :is(.portland-book, summary),
  .portland-actions :is(.portland-book, summary)::before,
  .portland-actions :is(.portland-book, summary)::after { transition: none; }
}
.portland-caret { position: absolute; right: .78rem; top: calc(50% - 3px); width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.portland-menus[open] .portland-caret { transform: translateY(2px) rotate(225deg); }
.portland-menus ul {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 3;
  min-width: 178px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgb(218 181 119 / 63%);
  border-radius: 3px;
  background: rgb(30 22 16 / 96%);
  box-shadow: 0 8px 24px rgb(0 0 0 / 32%);
  pointer-events: auto;
}

.portland-menus li { list-style: none; margin: 0; padding: 0; }
.portland-menus li a {
  display: flex; align-items: center; min-height: 42px; padding: 8px 13px;
  color: #fff4df; font: 500 .91rem/1.25 'Open Sans', Arial, sans-serif;
  text-decoration: none; white-space: nowrap;
}
.portland-menus li a:is(:hover, :focus-visible) { background: #493621; color: white; }
.portland-actions :is(a, summary):focus-visible { outline: 2px solid #fff1c7; outline-offset: 3px; }
.portland-screen .portland-freeze { z-index: 1; }
@media (max-height: 560px) {
  .portland-below-mark { top: calc(100% + .25rem); row-gap: .5rem; }
  .portland-menus ul { top: auto; bottom: calc(100% + 6px); }
}

.portland-nav {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  padding: calc(.75rem + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) .75rem max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(226 197 142 / 23%);
  margin: 0;
  background: var(--efes-nav-background);
  font: 400 clamp(.9375rem, 1.2vw, 1.0625rem)/1.4 var(--efes-nav-face);
  letter-spacing: var(--efes-nav-tracking);
  text-shadow: 0 1px 3px rgb(0 0 0 / 90%), 0 1px 9px rgb(0 0 0 / 76%);
  pointer-events: none;
}

.portland-nav .portland-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 clamp(.4rem, calc(5.4vw - 2.44rem), 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.portland-links li { margin: 0; padding: 0; list-style: none; }
.portland-nav .portland-links a, .portland-nav .portland-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: inherit;
  white-space: nowrap;
  pointer-events: auto;
}

.portland-nav :is(a, button):focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.portland-nav .portland-toggle, .portland-nav .portland-toggle[hidden] { display: none; }

@media (max-aspect-ratio: 4/5) {
  .portland-screen img, .portland-screen video, .portland-screen canvas { object-position: var(--shot-focus) 50%; }
  .portland-lockup { width: min(78vw, 25rem); }
}

@media (min-aspect-ratio: 21/10) {
  .portland-screen img, .portland-screen video, .portland-screen canvas { object-position: 50% 44%; }
}

@media (max-width: 53rem) {
  .portland-nav {
    padding-block: calc(.35rem + env(safe-area-inset-top)) .35rem;
    font-size: .9375rem;
  }

  .portland-nav.is-ready { display: grid; justify-items: end; }
  .portland-nav.is-ready .portland-toggle {
    display: inline-flex;
    gap: 10px;
    cursor: pointer;
  }

  .portland-nav.is-ready .portland-links { display: none; }
  .portland-nav.is-ready .portland-toggle[aria-expanded="true"] + .portland-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    max-height: calc(100svh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 5px 4px;
    margin-right: -5px;
    pointer-events: auto;
    text-shadow: 0 1px 3px #100d0b, 0 0 7px #100d0b, 0 0 16px #100d0b;
  }

  .portland-toggle-icon { position: relative; width: 20px; height: 12px; }
  .portland-toggle-icon::before, .portland-toggle-icon::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    height: 1.5px;
    background: currentColor;
    filter: drop-shadow(0 1px 2px #181310);
  }
  .portland-toggle-icon::before { top: 2px; }
  .portland-toggle-icon::after { bottom: 2px; }
  [aria-expanded="true"] .portland-toggle-icon::before { top: 5px; transform: rotate(45deg); }
  [aria-expanded="true"] .portland-toggle-icon::after { bottom: auto; top: 5px; transform: rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  .portland-hero { --shot-focus: 38%; }
  .portland-hero :is(.portland-mark, .portland-tagline, .portland-actions) { visibility: visible; opacity: 1; }
  .portland-shimmer { display: none; }
}
