/*
Theme Name: DELS Portfolio
Author: DELS
Description: An original portfolio theme for DELS.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: dels-portfolio
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --dels-bg: #f8f6f2;
  --dels-ink: #000000;
  --dels-muted: #000000;
  --dels-moon-yellow: #fff84c;
  --dels-gap: 8px;
  --dels-edge: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--dels-bg); }
body.detail-palette-handoff { transition: background-color 1.1s cubic-bezier(.68, 0, .22, 1), color 1.1s cubic-bezier(.68, 0, .22, 1); }
body.detail-body, body.single-dels_project { text-shadow: var(--dels-contrast-shadow, none); }
body {
  margin: 0;
  background: var(--dels-bg);
  color: var(--dels-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.home { overflow: hidden; height: 100svh; height: 100dvh; }
a { color: inherit; }
button { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px;
  z-index: 20;
  background: #fff;
  color: #111;
}

.site-shell { min-height: 100svh; }
.home .site-shell { overflow: hidden; height: 100svh; height: 100dvh; }
.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 72px;
  padding: 16px var(--dels-edge);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.home.home-intro .site-header .brand-link,
.home.home-intro .site-header .header-navigation .nav-control,
.home.home-intro .site-header .mobile-contact,
.home.home-intro .site-header .header-clock span,
.home.home-intro .site-header .orbit-mark { opacity: 0; }
.home.home-intro .site-header .brand-wordmark { clip-path: inset(0 100% 0 0); }
.brand-link {
  position: absolute;
  top: 16.5px;
  left: var(--dels-edge);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 24px;
  overflow: hidden;
  color: inherit;
  line-height: 12px;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-lines { display: flex; flex: 0 0 24px; flex-direction: column; }
.brand-link .nav-control-inner { --nav-roll-distance: 24px; }
.brand-wordmark {
  position: absolute;
  top: 16.5px;
  left: 29.1%;
  width: 86px;
  height: 36.62px;
  background: var(--dels-ink);
  -webkit-mask: url('assets/dels-signature.png') center / contain no-repeat;
  mask: url('assets/dels-signature.png') center / contain no-repeat;
}
.brand-wordmark.brand-signature {
  -webkit-mask-image: url('assets/dels-signature.png');
  mask-image: url('assets/dels-signature.png');
}
.header-navigation {
  position: absolute;
  top: 16.5px;
  left: 57.3%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.nav-control {
  display: block;
  height: 14px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: none;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-control-inner {
  display: flex;
  flex-direction: column;
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
.nav-control:hover .nav-control-inner,
.nav-control:focus-visible .nav-control-inner,
.brand-link:hover .nav-control-inner,
.brand-link:focus-visible .nav-control-inner { transform: translateY(calc(-1 * var(--nav-roll-distance, 12px))); }
.nav-control:focus-visible, .orbit-mark:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.header-clock {
  position: absolute;
  top: 16.5px;
  left: 85.4%;
  display: flex;
  flex-direction: column;
  line-height: 12px;
  text-transform: uppercase;
}
.orbit-mark {
  position: absolute;
  top: 16.5px;
  right: var(--dels-edge);
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.orbit-mark.is-dragging { cursor: grabbing; }
.orbit-mark::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.orbit-symbol { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.orbit-dot {
  position: absolute;
  top: calc(50% - 2.5px);
  left: calc(50% - 2.5px);
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(var(--dot-x, 0px), var(--dot-y, -25px));
}

.cases-stage { height: 100svh; height: 100dvh; min-height: 0; }
.gallery {
  display: flex;
  align-items: flex-end;
  gap: var(--dels-gap);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 var(--dels-edge) 15px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  overflow-anchor: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; }
.home:not(.gallery-ready) .project-card { opacity: 0; }
.gallery.is-entering .project-card { opacity: 0; }
.gallery.is-entering .project-label { opacity: 0; }
.gallery.is-entering .project-media { clip-path: inset(0 0 100% 0); }
.gallery.is-entering .project-card { will-change: transform; }
.project-card {
  flex: 0 0 clamp(300px, 27.55vw, 520px);
  min-width: 0;
  margin: 0;
}
.project-label {
  display: block;
  height: 28px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--dels-muted);
  font-size: 12px;
  line-height: 12px;
  text-transform: uppercase;
}
.project-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: .796;
  overflow: hidden;
  background: var(--placeholder, #627989);
  color: var(--dels-muted);
  text-decoration: none;
}
.project-media { transition: transform .5s cubic-bezier(.22,1,.36,1); }
@media (min-width: 701px) and (hover: hover) and (pointer: fine) {
  .project-card:hover .project-media { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .project-media, .nav-control-inner { transition-duration: .01ms; } }
.project-media img,
.project-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media img { object-position: center; }
.project-video-fallback { position: absolute; inset: 0; display: block; }
.project-media video { opacity: 0; }
.project-media.is-playing video { opacity: 1; }
.project-media:focus-visible,
.brand-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.project-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  padding: 13px;
  background: var(--placeholder, #627989);
  color: var(--placeholder-ink, #fff);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}
.project-card:nth-child(6n + 1) { --placeholder: #657f8b; --placeholder-ink: #17242b; }
.project-card:nth-child(6n + 2) { --placeholder: #a5a57c; --placeholder-ink: #27291b; }
.project-card:nth-child(6n + 3) { --placeholder: #b9826e; --placeholder-ink: #2a1915; }
.project-card:nth-child(6n + 4) { --placeholder: #827e9b; --placeholder-ink: #1d1b27; }
.project-card:nth-child(6n + 5) { --placeholder: #c0a981; --placeholder-ink: #312719; }
.project-card:nth-child(6n) { --placeholder: #75917f; --placeholder-ink: #19271d; }

@media (max-width: 700px) {
  :root { --dels-edge: 8px; }
  .site-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px var(--dels-edge) 0; }
  .brand-link { position: static; flex: 0 0 67px; margin-top: 1px; font-size: 12px; }
  .brand-wordmark { display: none; }
  .header-navigation {
    position: static;
    margin-top: 2px;
    flex-direction: row;
  }
  .header-navigation .nav-control + .nav-control { display: none; }
  .header-clock { display: none; }
  .orbit-mark { position: relative; top: auto; right: auto; flex: 0 0 58px; width: 58px; }
  .mobile-contact {
    position: static;
    margin-top: 2px;
  }
  .gallery { padding-bottom: 8px; }
  .project-card { flex-basis: calc(100vw - 80px); }
  .project-label { height: 24px; padding-top: 5px; font-size: 12px; line-height: 12px; }
}
@media (min-width: 701px) { .mobile-contact { display: none; } }

.temporary-menu {
  position: fixed;
  z-index: 9;
  top: 54px;
  left: 57.3%;
  min-width: 145px;
  padding: 12px 14px 14px;
  background: var(--dels-bg);
  border: 1px solid var(--dels-ink);
  color: var(--dels-ink);
}
.temporary-menu[hidden] { display: none; }
.temporary-menu a { display: block; padding: 5px 0; text-decoration: none; text-transform: uppercase; }
.temporary-menu a:hover, .temporary-menu a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.temporary-page { min-height: 100svh; padding: 155px var(--dels-edge) 40px; }
.temporary-page h1 { margin: 0 0 14px; font-size: clamp(36px, 7vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -.055em; text-transform: uppercase; }
.temporary-page p { max-width: 480px; margin: 0 0 20px; font-size: 13px; line-height: 1.45; }
.temporary-page a { text-transform: uppercase; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .temporary-menu { top: 51px; left: 34.8%; }
  .temporary-page { padding-top: 120px; }
}
@media (max-height: 580px) {
  .gallery { padding-bottom: 8px; }
  .project-card { flex-basis: min(27.55vw, calc((100svh - 125px) * .8)); }
}

.project-media > img,.project-media > video,.project-video-fallback img { transform: scale(1.15); }

/* Keep the clock clear of the fixed-size dial at intermediate widths. */
@media (min-width: 701px) and (max-width: 1024px) {
  .header-clock { left: auto; right: calc(var(--dels-edge) + 52px + 16px); }
}
