/* edin & eva — site styles
   Built from the "EE Website 2026" Figma file.
   Breakpoints follow the design's three frames: desktop (1920), tablet (768), mobile (480). */

@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/metropolis-latin-100-normal.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f0e9;
  --ink: #000;
  --paper: #fff;
  --overlay: rgba(0, 0, 0, 0.9);

  --font-display: "Metropolis", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --pad-x: 100px;      /* page side padding */
  --gap: 50px;         /* grid column gap */
  --section-y: 100px;  /* section vertical padding */
  --hero-indent: 100px;/* hero title indent inside the padded area */
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Text selection: black highlight with cream text */
::selection { background: #000; color: var(--bg); }
/* On the dark pop-ups a black highlight would vanish, so it flips to cream there */
.overlay ::selection { background: var(--bg); color: #000; }

img { display: block; max-width: 100%; }
/* Make images harder to save: no drag, no long-press menu on iOS, no right-click target */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; pointer-events: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a, button { transition: opacity .2s ease; }
a:hover, button:hover { opacity: .6; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.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;
}

/* ---------- Type styles (Figma text styles) ---------- */
.h3-inter { font-family: var(--font-body); font-size: 16px; }
.h4-inter { font-family: var(--font-body); font-size: 14px; }
.h4      { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.h5      { font-family: var(--font-display); font-weight: 600; font-size: 12px; }
.brand   { font-family: var(--font-display); font-weight: 600; letter-spacing: .05em; }
.brand-inline { font-family: var(--font-display); font-weight: 600; letter-spacing: .05em; }

/* ---------- Scroll fade-in ---------- */
/* Only applied when JS is running (html.js), so content is never hidden without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;   /* always one screen tall */
  height: 100svh;
  overflow: hidden;
  background: #000;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 var(--pad-x);
}
.hero--plain { background: #000; }

.hero__media,
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

.hero > :not(.hero__media):not(.hero__slides) { position: relative; z-index: 1; }
.hero__slides { position: absolute; inset: 0; }
.hero:has(.hero__slide + .hero__slide) { user-select: none; -webkit-user-select: none; cursor: pointer; }
.hero__slide { -webkit-user-drag: none; }

.hero__spacer { height: 95px; flex: none; }
.hero__fill { flex: 1 1 auto; }
.hero__text { padding-left: var(--hero-indent); }
.hero__title { font-size: 16px; }
.hero__text .h4 { width: max-content; }

/* ---------- Header / menu ---------- */
.menu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 0;
  flex: none;
}
.menu__logo { display: block; width: 67px; height: 79px; }
.menu__logo img { width: 67px; height: 79px; }

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.nav a[aria-current="page"] { opacity: 1; }

.menu__toggle {
  display: none;
  width: 14px;
  height: 12px;
  position: relative;
}
.menu__toggle span,
.menu__toggle::before,
.menu__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: top .25s ease .15s, transform .25s ease, left .25s ease, width .25s ease, opacity .2s ease;
}
.menu__toggle::before { top: 1px; }
.menu__toggle span { top: 6px; }
.menu__toggle::after { top: 11px; }

/* Open: lines slide together, then rotate into the same X as .close (16px lines at ±40deg) */
.menu-open .menu__toggle::before,
.menu-open .menu__toggle::after {
  top: 5.5px;
  left: -1px;
  width: 16px;
  transition: top .25s ease, transform .25s ease .15s, left .25s ease .15s, width .25s ease .15s;
}
.menu-open .menu__toggle::before { transform: rotate(40deg); }
.menu-open .menu__toggle::after { transform: rotate(-40deg); }
.menu-open .menu__toggle span { opacity: 0; }

/* Keep the header above the menu overlay so the morphing button stays usable */
.menu-open .hero > .menu { z-index: 60; }
.menu__logo { transition: opacity .3s ease; }
.menu-open .menu__logo { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .menu__toggle span, .menu__toggle::before, .menu__toggle::after { transition: none !important; }
}

/* ---------- Carousel dots ---------- */
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 25px 0;
  flex: none;
}
.dots button {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}
.dots button[aria-current="true"] { background: #fff; }
.dots button::after { content: ""; position: absolute; inset: -10px -3.5px; } /* bigger tap area */

/* ---------- Layout grid ---------- */
.section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--gap);
  padding: var(--section-y) var(--pad-x);
  align-items: start;
}
.section--first { padding-top: 200px; }
.section--one { grid-template-columns: minmax(0, 1fr); }
.section--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section--six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-4 { grid-column: span 4; }
.col-2 { grid-column-start: 2; }
.col-2-5 { grid-column: 2 / span 4; }

/* ---------- Project cards ---------- */
.project { display: flex; flex-direction: column; gap: 8px; }
.project__media { overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
a.project:hover { opacity: 1; }
a.project:hover .project__media img { transform: scale(1.02); }
.project__media + .project__title { margin-top: 16px; } /* 8px spacer + 2 x 8px gap */
.project__desc { margin-top: 16px; }
.project--drop-238 { padding-top: 238px; }
.project--drop-300 { padding-top: 300px; }

.ar-3x4   { aspect-ratio: 540 / 720; }
.ar-4x3   { aspect-ratio: 2304 / 1728; }
.ar-kerami{ aspect-ratio: 4096 / 3070; }
.ar-cliff { aspect-ratio: 2400 / 1792; }
.ar-studio{ aspect-ratio: 2048 / 1365; }
.ar-3x2   { aspect-ratio: 2496 / 1664; }
.ar-tall  { aspect-ratio: 2480 / 3312; }
.ar-blue  { aspect-ratio: 3520 / 2352; }
.fill { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Company info ---------- */
.intro { grid-column: 1 / -1; max-width: 835px; display: flex; flex-direction: column; gap: 50px; }

/* ---------- Text blocks ---------- */
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-50 { display: flex; flex-direction: column; gap: 50px; }
.spacer-8 { height: 8px; flex: none; }
.lines p { white-space: nowrap; }
.text-center { text-align: center; }

/* ---------- Pager (prev / next project) ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--section-y) var(--pad-x);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--section-y) var(--pad-x);
}
.footer__brand { font-size: 14px; }
/* Back-to-top arrow: floats bottom-right once you scroll past the hero.
   mix-blend-mode keeps it dark on the page background and light over photos. */
.to-top {
  position: fixed;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 40px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.to-top span { display: block; transform: translateY(9px); } /* the caret sits high in its em box */
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.to-top.is-shown:hover { opacity: .6; }
body.no-scroll .to-top { opacity: 0; visibility: hidden; }

/* ---------- Overlays (mobile menu + privacy) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--overlay);
  color: var(--paper);
  overflow-y: auto;
  padding: 0 var(--pad-x) 100px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.overlay__bar {
  height: 119px;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px 0;
}
.close {
  width: 14px;
  height: 12px;
  position: relative;
}
.close::before,
.close::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 5.5px;
  width: 16px;
  height: 1px;
  background: currentColor;
}
.close::before { transform: rotate(40deg); }
.close::after { transform: rotate(-40deg); }

.privacy {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  text-align: center;
}
.privacy .h5 + p { margin-top: 8px; }

.menu-overlay { padding: 0 30px; gap: 30px; background: rgba(0, 0, 0, .85); }
.menu-overlay .overlay__bar .close { visibility: hidden; } /* the burger button becomes this X */
.menu-overlay .nav { flex-direction: column; align-items: flex-end; gap: 25px; }
.menu-overlay .hero__spacer { height: 95px; }

body.no-scroll { overflow: hidden; }

/* ---------- Tablet (design frame: 768) ---------- */
@media (max-width: 1024px) {
  :root { --pad-x: 30px; }

  .nav--desktop { display: none; }
  .menu__toggle { display: block; }

  .section,
  .section--two,
  .section--six,
  .footer { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-4, .col-2, .col-2-5 { grid-column: auto; }
  .section-gap-0 { row-gap: 0; }

  .intro { max-width: 467px; }
  .narrow { max-width: 467px; }
  .narrow-right { max-width: 467px; justify-self: end; width: 100%; }
  .narrow-center { max-width: 467px; justify-self: center; width: 100%; }
  .hide-tablet { display: none; }
  .tablet-drop { margin-top: 353px; } /* empty block above the studio portrait on tablet/mobile */
  .tablet-drop-sm { margin-top: 446px; } /* empty block above Forest House on tablet/mobile */

  .privacy { max-width: 708px; }
}

/* ---------- Mobile (design frame: 480) ---------- */
@media (max-width: 600px) {
  :root { --hero-indent: 0px; }

  .narrow, .narrow-right, .narrow-center, .intro { max-width: none; }
  .lines p { white-space: normal; }
}
