/* Delta Studios – hand-written replacement for the Webflow CSS. Same look, a fraction of the size. */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/open-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/open-sans-italic-latin.woff2) format("woff2"); }

:root {
  --black: #0b0b0c;
  --black-2: #0b0b0d;
  --blue: #150df7;
  --light-blue: #a2bebd;
  --gap: 27px;
  --fs: 17px;
  --lh: 27px;
}
@media (max-width: 767px) { :root { --fs: 14px; --lh: 20px; } }

/* Grid: 12 columns from 992px, 8 on tablets, 4 on phones, with the same outer margin and
   gutter everywhere. Logo, text, tiles and footer all sit on it. Press G locally (or add
   ?grid to the address) to show the columns. */
:root { --grid-cols: 12; --margin: 15px; --gutter: var(--gap); }
@media (max-width: 991px) { :root { --grid-cols: 8; } }
@media (max-width: 767px) { :root { --grid-cols: 4; --gutter: 15px; } }
.grid { display: grid; grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); column-gap: var(--gutter); padding-inline: var(--margin); }
.grid > * { grid-column: 1 / -1; min-width: 0; }

/* Placement: which grid lines each block runs between ("first line / last line", 1 is the
   left edge, -1 the right edge). This is the only place to move text around. */
:root {
  --at-project: 3 / 9;        /* project page: kicker, title, text, team */
  --at-subs: 3 / 9;           /* project page: sub-projects */
  --at-gallery: 3 / 11;       /* project page: image gallery */
  --at-page: 3 / 9;           /* text pages, Om Delta Studios and 404 */
  --at-about-gallery: 2 / 12; /* Om Delta Studios: image pairs */
  --at-footer-col: span 4;    /* footer: each of the three columns */
}
@media (min-width: 1680px) {
  :root { --at-project: 4 / 9; --at-subs: 4 / 9; --at-gallery: 4 / 10; --at-page: 4 / 9; --at-about-gallery: 3 / 11; }
}
@media (max-width: 1279px) {
  :root { --at-project: 2 / 10; --at-subs: 2 / 10; --at-gallery: 2 / 12; --at-page: 2 / 10; --at-about-gallery: 1 / -1; }
}
@media (max-width: 991px) {
  :root { --at-project: 1 / 8; --at-subs: 1 / 8; --at-gallery: 1 / -1; --at-page: 1 / 8; }
}
@media (max-width: 767px) {
  :root { --at-project: 1 / -1; --at-subs: 1 / -1; --at-page: 1 / -1; --at-footer-col: 1 / -1; }
}
.show-grid body::after { content: ""; position: fixed; inset: 0 var(--margin); z-index: 9999; pointer-events: none; --cw: calc((100% - (var(--grid-cols) - 1) * var(--gutter)) / var(--grid-cols)); background: repeating-linear-gradient(to right, rgba(255, 40, 90, .14) 0 var(--cw), transparent var(--cw) calc(var(--cw) + var(--gutter))); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: #fff; font: 300 var(--fs)/var(--lh) "Open Sans", sans-serif; letter-spacing: .4px; }
body.is-page { background: var(--blue); }
img { max-width: 100%; display: block; }
a { color: #fff; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-size: 10px; line-height: 10px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin: 20px 0 10px; }
p { margin: 0 0 10px; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xs-title { display: inline-block; opacity: .7; font-size: 10px; line-height: 10px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 5px; }
.xs-title.white { color: #fff; }
.xs-title.sep { margin-left: 4px; margin-right: 4px; }
@media (max-width: 479px) { .xs-title { font-size: 8px; line-height: 10px; margin-bottom: 0; } }

/* Header and menu */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 1000; padding: 11px 0 10px; pointer-events: none; }
.navbar > * { pointer-events: auto; }
.brand { display: inline-block; margin-left: var(--margin); line-height: 0; }
.logo { width: 140px; height: auto; }
@media (max-width: 479px) { .navbar .logo { width: 114px; } }
.menu-button { position: fixed; top: 0; right: 0; width: 48px; height: 42px; padding: 15px; z-index: 500; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.menu-button span { display: block; width: 18px; height: 1px; background: #fff; transition: transform .3s, opacity .3s; }
.menu-open .menu-button span:nth-child(1) { transform: translateY(4px) rotate(-45deg); }
.menu-open .menu-button span:nth-child(2) { opacity: 0; }
.menu-open .menu-button span:nth-child(3) { transform: translateY(-4px) rotate(45deg); }
.nav-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 40vw; padding: 80px var(--margin) 40px; overflow-y: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; background: linear-gradient(-90deg, rgba(21, 13, 247, .8) 46%, rgba(255, 255, 255, 0)); transform: translateX(100%); visibility: hidden; transition: transform .4s ease, visibility 0s .4s; z-index: 400; }
.menu-open .nav-menu { transform: none; visibility: visible; transition: transform .4s ease; }
.menu-group { display: flex; flex-direction: column; margin: 10px 0 40px; }
.menu-link { display: block; font-size: 17px; line-height: 27px; font-weight: 300; transition: color .3s, transform .5s; }
.menu-link:hover { transform: translateX(-5px); }
.nav-menu .credit { opacity: 1; }
.nav-menu .credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 991px) { .nav-menu { width: 80%; } }
@media (max-width: 767px) { .nav-menu { width: 90%; } .menu-link { font-size: 14px; line-height: 24px; } .menu-group { margin: 0 0 20px; } }
.gradient-top { position: fixed; top: 0; left: 0; right: 0; height: 135px; z-index: 55; pointer-events: none; background: linear-gradient(var(--black-2), var(--black-2) 17%, rgba(0, 0, 0, 0)); }
.is-page .gradient-top { display: none; }

/* Start page tiles. src/layout.js gives each tile its column, span, top and height for
   3 and 2 columns as [a, b] pairs: a column widths + b gaps. Phones stack the tiles. */
.tiles-wrap { container-type: inline-size; position: relative; padding-bottom: 60px; } /* edge to edge, outside the grid */
.tiles { --cols: 3; --cw: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols)); position: relative; height: calc(var(--Ha3) * var(--cw) + var(--Hb3) * var(--gap)); }
.tile { position: relative; display: block; overflow: hidden; background: var(--ph, #150df7); opacity: .9; transition: transform .2s; }
.tiles .tile { --c: var(--c3); --s: var(--s3); --ya: var(--ya3); --yb: var(--yb3); --ha: var(--ha3); --hb: var(--hb3); position: absolute; left: calc(var(--c) * (var(--cw) + var(--gap))); top: calc(var(--ya) * var(--cw) + var(--yb) * var(--gap)); width: calc(var(--s) * var(--cw) + (var(--s) - 1) * var(--gap)); height: calc(var(--ha) * var(--cw) + var(--hb) * var(--gap)); }
.tile:hover, .tile:focus-visible { z-index: 50; opacity: 1; transform: scale(1.02); box-shadow: 0 0 50px 7px var(--blue); outline: none; }
.tile-img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-img { opacity: 0; transition: opacity .4s; }
.tile-img.l { opacity: 1; }
.tile-logo { transition: opacity .4s; }
.tile-img:not(.l) ~ .tile-logo { opacity: 0; }
.tile video { opacity: 0; transition: opacity .3s; background: var(--blue); }
.tile video.is-playing { opacity: 1; }
.tile-logo { position: absolute; z-index: 60; inset: 0; margin: auto; width: 60%; max-height: 40%; height: 100%; object-fit: contain; pointer-events: none; }
.tile--w .tile-logo, .tile--t .tile-logo { width: 50%; }
@media (max-width: 991px) {
  .tiles { --cols: 2; height: calc(var(--Ha2) * var(--cw) + var(--Hb2) * var(--gap)); }
  .tiles .tile { --c: var(--c2); --s: var(--s2); --ya: var(--ya2); --yb: var(--yb2); --ha: var(--ha2); --hb: var(--hb2); }
  .tile:hover { transform: none; }
}
@media (max-width: 767px) {
  .tiles { height: auto; display: flex; flex-direction: column; gap: var(--gap); }
  .tiles .tile { position: relative; left: auto; top: auto; width: auto; height: auto; aspect-ratio: var(--ar); }
}
/* Proportions when tiles size themselves (phones, "more projects"); --ar inline wins. */
.tile--s, .tile--w { --ar: 3 / 2; }
.tile--q { --ar: 1; }
.tile--t { --ar: 3 / 4; }
.gradient-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; z-index: 30; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0), var(--black-2) 83%); }

/* Project page */
.hero-video, .hero-image { position: relative; overflow: hidden; background: var(--ph, var(--blue)) center / cover no-repeat; }
.hero-video { aspect-ratio: 16 / 9; }
.hero-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transform: scale(1.2); }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); pointer-events: none; transition: opacity .4s; }
.hero-video.is-unmuted .hero-video-overlay { opacity: 0; }
.video-btn { position: absolute; z-index: 5; width: 5em; height: 5em; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); box-shadow: 0 10px 4em rgba(0, 0, 0, .45); transition: transform .25s cubic-bezier(.165, .84, .44, 1); }
.video-btn:hover { transform: scale(1.2); }
.video-btn:active { transform: scale(.95); }
.video-btn svg { width: 1.9em; height: 1.9em; }
.video-unmute { top: 50%; left: 50%; margin: -2.5em 0 0 -2.5em; }
.video-toggle { right: 1.5em; bottom: 3.5em; background: rgba(255, 255, 255, .49); }
.video-toggle svg { width: 1.7em; height: 1.7em; }
.video-toggle .i-play, .video-toggle.is-paused .i-pause { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-btn[hidden] { display: none; }
@media (max-width: 991px) { .video-btn { width: 4em; height: 4em; } .video-unmute { margin: -2em 0 0 -2em; } .video-btn:hover { transform: none; } }
@media (max-width: 767px) { .video-toggle { bottom: 2.5em; } }
.hero-image { aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .1); }
.hero-image.hero-image--whole { aspect-ratio: var(--ar); height: auto; }
.hero-logo { position: relative; z-index: 2; width: 30vw; max-height: 40%; object-fit: contain; }
@media (max-width: 991px) { .hero-image { aspect-ratio: auto; height: 80vh; } .hero-logo { width: 60vw; } }
@media (max-width: 479px) { .hero-image { height: 40vh; } }
.gradient { position: absolute; left: 0; right: 0; bottom: 0; height: 15vh; z-index: 30; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, 0), var(--black-2) 83%); }
@media (max-width: 991px) { .gradient { height: 30vh; } }
@media (max-width: 767px) { .gradient { height: 50px; } }

.container { padding-top: 40px; }
.info { margin-bottom: 40px; display: flex; flex-direction: column; gap: var(--gap); }
.info { grid-column: var(--at-project); }
.info.subs { grid-column: var(--at-subs); }
.page .info { grid-column: var(--at-page); }
.group { display: flex; flex-direction: column; gap: 8px; }
.kicker { display: flex; flex-wrap: wrap; margin: 0; }
.title-large { margin: 0; font-size: 27px; line-height: 27px; font-weight: 300; letter-spacing: .4px; text-transform: none; }
.rich > :last-child { margin-bottom: 0; }
.rich a { opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { opacity: 1; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 40px; }
/* Team: each "Roll: Namn" line becomes the role, small and dim, above the name, in a grid like film credits. */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px var(--gap); margin: 6px 0 0; }
.credits dt { font-size: 12px; line-height: 16px; opacity: .62; margin: 0 0 3px; }
.credits dd { margin: 0; font-size: 15px; line-height: 21px; font-weight: 400; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .credits { grid-template-columns: 1fr 1fr; gap: 14px 20px; } .credits dd { font-size: 14px; line-height: 19px; } }
.subs { gap: 40px; }
.sub { display: flex; flex-direction: column; gap: var(--gap); }
.sub-video { position: relative; aspect-ratio: 16 / 9; margin-top: 10px; }
.sub-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.title-medium { margin: 0; font-size: 20px; line-height: 24px; font-weight: 300; letter-spacing: .4px; }
.sub.nested { margin-top: 13px; }
.sub-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.sub-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ph); }
@media (max-width: 479px) { .container { padding-top: 20px; } .info { margin-bottom: 20px; } }

.gallery { grid-column: var(--at-gallery); columns: 2; column-gap: var(--gutter); padding-bottom: 24px; } /* bottom padding replaces the margin columns drop on the last image */
.gallery img { width: 100%; height: auto; margin-bottom: var(--gutter); break-inside: avoid; background: var(--ph); }
@media (max-width: 767px) { .gallery { columns: 1; } }
@media (max-width: 479px) { .gallery { padding-bottom: 14px; } .gallery img { margin-bottom: 10px; } }

.more { position: relative; padding: var(--gap) var(--margin) 60px; container-type: inline-size; }
/* Space above "more case", as on the old site: 100px page margin (30 / 10 on mobile),
   plus 40px after the text block on project pages. */
.is-project .more { margin-top: 100px; }
.is-project .container { padding-bottom: 40px; }
@media (max-width: 767px) { .is-project .more { margin-top: 30px; } }
@media (max-width: 479px) { .is-project .more { margin-top: 10px; } .is-project .container { padding-bottom: 20px; } }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.more .tile { aspect-ratio: 3 / 2; }
.fade-top { position: absolute; left: 0; right: 0; top: 0; height: 15vh; z-index: 30; pointer-events: none; background: linear-gradient(var(--black-2), var(--black-2) 17%, rgba(0, 0, 0, 0)); }
@media (max-width: 991px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .more-grid { grid-template-columns: 1fr; } }

/* Text pages (blue) */
.page { padding: 7rem 0; min-height: 70vh; }
.about-gallery { grid-column: var(--at-about-gallery); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-bottom: 40px; }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
@media (max-width: 991px) { .page { padding: 6rem 0; } }
@media (max-width: 767px) { .page { padding: 4rem 0; } .about-gallery { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 5rem 0 1rem; position: relative; z-index: 80; }
.footer-grid { row-gap: 22px; align-items: start; }
.footer-grid > .footer-col { grid-column: var(--at-footer-col); }
.footer-logo { grid-column: 1 / -1; line-height: 0; }
.footer-logo .logo { width: 212px; }
.footer-h { font-size: 10px; line-height: 20px; font-weight: 300; letter-spacing: normal; text-transform: uppercase; margin: 0 0 10px; }
.footer p { margin: 0; }
.social-link { display: flex; align-items: center; gap: 6px; opacity: .8; }
.social-link:hover { opacity: 1; }
.social-link svg { width: 1.5rem; height: 1.5rem; flex: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 5rem; padding-inline: var(--margin); font-size: 10px; line-height: 27px; text-transform: uppercase; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { opacity: .8; }
.footer-legal a:hover { opacity: 1; }
@media (max-width: 991px) {
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 8px; margin-top: 2rem; }
}
@media (max-width: 767px) { .footer-legal { flex-direction: column; gap: .2rem; } .footer-bottom { margin-top: 3rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
