/* ==========================================================================
   _leograph — lifestyle photography for hotels
   Plain CSS, no build step. Edit the tokens below to restyle the whole site.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f2ed;
  --ink: #111110;
  --muted: #6d6a64;
  --line: #d6d3cc;
  --pad: clamp(20px, 5vw, 76px);       /* page side padding */
  --header-h: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--pad); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* Small uppercase label used across the site */
.eyebrow {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 10;
}
.logo { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a {
  font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav a:not(.nav-ig)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-ig svg { width: 22px; height: 22px; display: block; }

/* Language switch — EN / HR */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em;
  padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line);
}
.lang-switch a { color: var(--muted); padding: 4px 0; transition: color .3s; }
.lang-switch a::after { display: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-current { color: var(--ink); }
.lang-sep { color: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 6vw, 80px) var(--pad) 40px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.site-footer a:hover { color: var(--muted); }

/* ---------- Reveal on scroll (progressive: only hides if JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
/* The hero film is vertical (9:16). On wide screens it sits as a full-height
   portrait panel beside the headline; on phones it fills the screen. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: clamp(32px, 5vw, 80px);
  padding: 0 var(--pad);
}
.hero-text { padding-bottom: clamp(8px, 2vw, 24px); max-width: 640px; }
.hero-title {
  margin: 24px 0 0; font-weight: 400; letter-spacing: -.025em; line-height: 1.05;
  font-size: clamp(40px, 5.2vw, 84px);
}
.hero-sub { margin: 28px 0 0; color: var(--muted); font-size: 17px; }
.hero-media {
  position: relative; overflow: hidden; background: #2a2724;
  height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 1100px;
  aspect-ratio: 9 / 16;
}
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  background: none; border: 1px solid rgba(255,255,255,.6); color: #fff;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer; opacity: .75; transition: opacity .3s;
}
.hero-toggle:hover { opacity: 1; }

.tagline {
  padding: clamp(40px, 5vw, 64px) var(--pad) 0;
  display: flex; justify-content: flex-end;
}
.tagline p {
  margin: 0; max-width: 46ch; text-align: right;
  font-size: 13px; letter-spacing: .16em; color: var(--ink);
}

/* Horizontal film-strip of photos */
.strip {
  margin-top: clamp(80px, 12vw, 180px);
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0 var(--pad) 12px;
  scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip a { flex: 0 0 auto; scroll-snap-align: start; }
.strip img {
  height: clamp(340px, 44vw, 620px); width: auto; object-fit: cover;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.strip-hint {
  padding: 18px var(--pad) 0; display: flex; justify-content: space-between; align-items: center;
}
.strip-hint a { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.strip-hint a:hover { color: var(--muted); }

.intro {
  position: relative; margin-top: clamp(80px, 12vw, 180px);
  min-height: min(100svh, 820px);
  display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden;
}
.intro > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro::before { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, .42); z-index: 1; }
.intro-inner { position: relative; z-index: 2; padding: 80px var(--pad); max-width: 1000px; }
.intro p {
  margin: 0 0 40px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -.01em;
}

.btn {
  display: inline-block; padding: 18px 34px;
  font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--dark:hover { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ==========================================================================
   WORK (index)
   ========================================================================== */
.page { padding: clamp(24px, 4vw, 60px) var(--pad) 0; }
.projects {
  margin-top: clamp(32px, 4vw, 60px);
  display: grid; gap: clamp(48px, 6vw, 90px) clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-card { display: block; }
.project-card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: #e6e2da; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.project-card:hover img { transform: scale(1.03); }
.project-card h2 { margin: 24px 0 6px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; letter-spacing: -.01em; }

/* ==========================================================================
   PROJECT (gallery)
   ========================================================================== */
.back { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.back:hover { color: var(--muted); }
.project-title { margin: 20px 0 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.project-meta { margin-top: 14px; display: flex; gap: 28px; flex-wrap: wrap; }

/* 12-column editorial layout. Each .g-row holds 1–2 photos; position classes set the columns. */
.gallery { margin-top: clamp(48px, 6vw, 90px); }
.g-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
  margin-bottom: clamp(56px, 10vw, 180px);
}
.g-row:last-child { margin-bottom: 0; }
.g-item { margin: 0; cursor: zoom-in; }
.g-item img { width: 100%; background: #e6e2da; }
.g-item button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.g-item button:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

/* positions (desktop) */
.p-left-s   { grid-column: 1 / span 5; }
.p-left-l   { grid-column: 1 / span 9; }
.p-mid      { grid-column: 4 / span 6; }
.p-mid-l    { grid-column: 4 / span 9; }
.p-right-s  { grid-column: 8 / span 5; }
.p-right-m  { grid-column: 7 / span 5; }
.drop       { margin-top: clamp(40px, 10vw, 160px); }  /* staggers the second photo of a pair */

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(244, 242, 237, .98);
  display: grid; grid-template-columns: 80px 1fr 80px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { grid-column: 2; justify-self: center; max-height: 88svh; max-width: 100%; width: auto; object-fit: contain; }
.lb-btn {
  background: none; border: 0; cursor: pointer; padding: 20px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.lb-btn:hover { color: var(--muted); }
.lb-close { position: absolute; top: 20px; right: calc(var(--pad) - 20px); }
.lb-count { position: absolute; top: 40px; left: var(--pad); font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-lead {
  margin: 28px 0 0; max-width: 22em;
  font-size: clamp(26px, 2.7vw, 40px); line-height: 1.3; font-weight: 400; letter-spacing: -.015em;
}
.contact-grid {
  margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 80px);
}
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  margin-top: 14px; padding: 10px 0 14px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; font: inherit; font-size: 19px; color: var(--ink); border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.hp { display: none !important; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); }

.contact-aside dl { margin: 0; display: grid; gap: 40px; }
.contact-aside dt { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.contact-aside dd { margin: 14px 0 0; font-size: clamp(18px, 1.5vw, 21px); }
.contact-aside a:hover { color: var(--muted); }

.project-next { margin-top: clamp(80px, 10vw, 160px); display: flex; justify-content: center; }

/* 404 */
.notfound { min-height: 50svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; align-items: flex-start; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .hero-media { order: -1; width: 100%; aspect-ratio: auto; height: calc(100svh - var(--header-h)); min-height: 0; max-height: none; }
  .hero-text { padding: clamp(40px, 8vw, 64px) var(--pad) 0; }
  .hero-title { font-size: clamp(34px, 8vw, 56px); }
  .tagline { display: none; }
  .strip-hint .eyebrow { display: none; }
  .strip-hint { justify-content: flex-end; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav a { font-size: 12px; }
  .nav { gap: 14px; }
  .nav a { letter-spacing: .1em; }
  .nav-ig { display: none; }
  .lang-switch { font-size: 12px; padding-left: 12px; letter-spacing: .1em; }
  .logo { font-size: 21px; }
  .projects { grid-template-columns: 1fr; }
  .tagline p { text-align: left; }
  .tagline { justify-content: flex-start; }
  .form { grid-template-columns: 1fr; }

  /* gallery: single column, alternating widths keeps the editorial rhythm */
  .g-row { display: block; margin-bottom: 0; }
  .g-item { margin-bottom: 56px; width: 78%; }
  .g-item.p-left-l, .g-item.p-mid-l { width: 100%; }
  .g-row .g-item:nth-child(2), .p-right-s, .p-right-m { margin-left: auto; }
  .p-mid { margin-inline: auto; }
  .drop { margin-top: 0; }

  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; }
  .lightbox img { grid-column: 1 / -1; grid-row: 1; max-height: 80svh; padding: 0 12px; }
  .lb-prev { grid-column: 1; grid-row: 2; }
  .lb-next { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
