/* ---------------------------------------------------
   Eumorpheme — base styles
--------------------------------------------------- */

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves Pro';
  src: url('../assets/TT_Hoves_Pro/TT Hoves Pro Trial Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --fg: #f5f1e8;
  --fg-muted: rgba(245, 241, 232, 0.55);
  --fg-faint: rgba(245, 241, 232, 0.18);
  --accent: #ffffff;
  --border: rgba(245, 241, 232, 0.14);
  --nav-h: 84px;
  --font-display: 'TT Hoves Pro', sans-serif;
  --font-body: 'TT Hoves Pro', sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.15, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

/* once js/smooth-scroll.js takes over, the easing is done per frame in
   JS — leaving the native smooth behaviour on would fight it */
html.has-smooth-scroll {
  scroll-behavior: auto;
}

::selection {
  background: rgba(191, 197, 182, 0.15);
  color: rgba(218, 222, 211, 1);
}

::-moz-selection {
  background: rgba(191, 197, 182, 0.15);
  color: rgba(218, 222, 211, 1);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.u-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* wider variant used on project detail pages — their content and footer
   share this width so everything lines up under the wider hero. */
.u-container-wide {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------------------------------------------
   Nav
--------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-contain {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-center-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--fg-muted);
}

.nav-logo-center {
  display: flex;
  align-items: center;
}

.nav-logo-icon {
  height: 30px;
  width: auto;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 1px;
  background: var(--fg);
  width: 100%;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-burger.is-active span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-burger.is-active span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.nav-panel.is-open {
  display: block;
}

.nav-panel-inner {
  display: flex;
  flex-direction: column;
  padding: 12px 0 24px;
}

.nav-panel a {
  display: block;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-panel a:hover,
.nav-panel a.is-current {
  color: var(--fg-muted);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 220px));
  gap: 32px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col .footer-clock {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--fg);
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: var(--fg-muted);
}

.footer-clock {
  color: #a7a5b8;
}

.footer-logo {
  padding-top: 12px;
  padding-bottom: 32px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  padding-bottom: 24px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #a7a5b8;
}

.footer-bottom strong {
  color: inherit;
  font-weight: 600;
}

.footer-bottom a {
  transition: color 0.3s var(--ease);
}

.footer-bottom a:hover {
  color: var(--fg);
}

@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------
   Loader
--------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  transition: opacity 0.6s var(--ease);
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-video {
  display: block;
  width: min(32vw, 300px);
  height: auto;
}

/* ---------------------------------------------------
   Page transitions — the page's own content rises into view
   on arrival, no black cover involved; a black panel only
   slides up from below to cover the page before the next
   navigation (and hosts the slow-load spinner).
--------------------------------------------------- */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

.page-transition__spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--fg);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  animation: page-transition-spin 0.8s linear infinite;
}

.page-transition__spinner.is-visible {
  opacity: 1;
}

@keyframes page-transition-spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------
   Buttons / misc
--------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn-accent {
  border-color: var(--accent);
  color: var(--bg);
  background: var(--accent);
}

.btn-accent:hover {
  background: transparent;
  color: var(--accent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */

@media (max-width: 900px) {
  .u-container {
    padding: 0 24px;
  }

  .nav-center-group {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .nav-center-group {
    gap: 12px;
  }

  .nav-link {
    font-size: 11px;
  }
}
