@font-face {
  font-family: "Eurostile";
  src: url("./assets/static/fonts/Eurostile-Reg.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Eurostile";
  src: url("./assets/static/fonts/Eurostile-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Eurostile";
  src: url("./assets/static/fonts/Eurostile-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "RecordLaser";
  src: url("./assets/static/fonts/RecordLaser-Ultra.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("./assets/static/fonts/Archivo-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("./assets/static/fonts/Archivo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("./assets/static/fonts/Archivo-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --border: #8f8f8f;
  --text: #8f8f8f;
  --bg: #080808;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #050609 url("./assets/backgrounds/desktop/background.jpg") center center / cover no-repeat
    fixed;
  color: var(--text);
  font-family: "Eurostile", sans-serif;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 220ms linear;
  pointer-events: none;
}

.bg-video.is-ready {
  opacity: 1;
}

.bg-video-mobile {
  display: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: -1;
  pointer-events: none;
}

.frame {
  position: relative;
  height: 100vh;
  height: 100dvh;
  border: 0;
  margin: 0;
}

.brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(58vw, 760px);
  padding: 0;
  z-index: 2;
}

.brand-asset {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mobile {
  display: none;
}

.project-cloud {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.project-window {
  position: absolute;
  width: 248px;
  height: 154px;
  min-width: 180px;
  min-height: 118px;
  background: rgba(8, 8, 8, 0.84);
  border: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  overflow: hidden;
  user-select: none;
}

.project-window.dragging,
.project-window.resizing {
  opacity: 0.95;
}

.project-window-bar {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-bottom: 0;
  background: rgba(18, 18, 18, 0.88);
  cursor: grab;
  touch-action: none;
}

.project-window.dragging .project-window-bar {
  cursor: grabbing;
}

.project-window-title {
  margin: 0;
  color: #c8c8c8;
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-window-content {
  width: 100%;
  height: calc(100% - 22px);
  background: #000;
}

.project-window-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

.project-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 5;
  touch-action: none;
}

.project-resize-nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}

.project-resize-ne {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}

.project-resize-sw {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
}

.project-resize-se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.project-mobile-item {
  display: none;
}

.project-mobile-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.links {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  z-index: 4;
}

.links a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.links a::before {
  content: none;
}

.links-tagline {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
}

.links a:hover {
  color: #c4c4c4;
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  body {
    background-image: url("./assets/backgrounds/mobile/background.jpg");
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .bg-video-desktop {
    display: none;
  }

  .bg-video-mobile {
    display: block;
    object-fit: cover;
    object-position: left center;
  }

  .brand-desktop {
    display: none;
  }

  .brand-mobile {
    display: block;
  }

  .frame {
    margin: 0;
    height: 100vh;
    height: 100dvh;
  }

  .brand {
    top: 50%;
    width: min(92vw, 540px);
  }

  .project-cloud {
    top: 56px;
    right: 10px;
    bottom: 56px;
    left: auto;
    width: min(44vw, 280px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    z-index: 5;
    padding-right: 2px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .project-window {
    display: none;
  }

  .project-mobile-item {
    display: block;
    width: 100%;
    border: 0;
    background: rgba(8, 8, 8, 0.82);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .project-mobile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease;
  }

  .project-mobile-item.is-paused .project-mobile-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
  }

  .project-mobile-icon {
    color: #fff;
    font-size: 28px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .project-window-title {
    font-size: 7px;
  }

  .links {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 0;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    max-width: none;
  }

  .links a {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .links a::before {
    content: none;
  }

  .links-tagline {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

/* ── About page ── */

.about-page {
  background: #1a1a1a;
  overflow: hidden;
}

.about-page,
.about-page html {
  height: 100%;
}

.about-frame {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

/* Hero header */
.about-hero {
  margin: 0;
  padding: 4px 18px 0 28px;
  font-family: "RecordLaser", "Eurostile", sans-serif;
  font-size: 9vw; /* JS overrides this to fit exact width */
  font-weight: 900;
  color: #555;
  letter-spacing: -0.02em;
  line-height: 0.85;
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
}

/* Nav links below hero */
.about-nav {
  display: flex;
  justify-content: space-between;
  padding: 6px 24px 0;
  flex-shrink: 0;
}

.about-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: "Archivo", "Eurostile", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-nav a:hover {
  color: #c4c4c4;
}

/* Three-column body */
.about-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  min-height: 0;
  position: relative;
}

.about-col-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 1;
}

.about-logo-left {
  width: clamp(120px, 16vw, 260px);
  height: auto;
}

.about-col-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 520px;
  width: 40%;
}

.about-col-center p {
  margin: 0 0 20px;
  font-family: "Archivo", "Eurostile", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: #888;
  text-align: center;
  text-transform: uppercase;
}

.about-col-center p:last-child {
  margin-bottom: 0;
}

.about-col-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 1;
}

.about-logo-right {
  width: clamp(80px, 10vw, 160px);
  height: auto;
}

/* Footer bar */
.about-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
  font-family: "Archivo", "Eurostile", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6a6a6a;
  text-transform: uppercase;
  flex-shrink: 0;
}

.about-footer-left,
.about-footer-center,
.about-footer-right {
  display: flex;
  gap: 20px;
}

.about-footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.about-footer a,
.about-footer a:visited,
.about-footer a:active {
  color: #6a6a6a;
  text-decoration: none;
}

.about-footer a:hover {
  text-decoration: underline;
  color: #6a6a6a;
}

/* ── About mobile ── */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .about-page {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }

  .about-frame {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .about-hero {
    padding: 10px 16px 0;
    font-size: clamp(32px, 12vw, 64px);
    white-space: normal;
    word-break: break-all;
  }

  .about-nav {
    padding: 8px 16px 0;
  }

  .about-nav a {
    font-size: 9px;
  }

  .about-body {
    flex-direction: column;
    padding: 30px 20px;
    gap: 30px;
  }

  .about-col-left {
    order: 2;
  }

  .about-logo-left {
    width: 120px;
  }

  .about-col-center {
    position: static;
    transform: none;
    width: 100%;
    order: 1;
    max-width: 100%;
  }

  .about-col-center p {
    font-size: 10px;
    text-align: center;
  }

  .about-col-right {
    order: 3;
  }

  .about-logo-right {
    width: 60px;
  }

  .about-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
    font-size: 8px;
  }

  .about-footer-center {
    position: static;
    transform: none;
  }
}
