/* =========================================================================
   linger — ugc for hotels
   A sun-drenched, photo-led single page. Six elements, four colours.
   Palette: buttercream paper, soft cream, deep coral, mustard sun, warm ink.
   Type:   Pinyon Script (wordmark) · Big Shoulders Display (display) ·
           Schibsted Grotesk (UI).
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--coral);
  color: var(--cream);
}

/* ─── Tokens ─── */
:root {
  --paper:   oklch(95% 0.030 85);   /* buttercream page */
  --cream:   oklch(99% 0.010 85);   /* soft white */
  --coral:   oklch(63% 0.200 28);   /* deep coral — summer pop */
  --teal:    oklch(36% 0.075 205);   /* deep sea-teal — winter counterpoint */
  --sun:     oklch(82% 0.150 80);   /* mustard sun */
  --ink:     oklch(20% 0.040 50);   /* warm near-black */
  --ink-2:   oklch(42% 0.025 55);   /* soft body */
  --rule:    oklch(82% 0.030 75);   /* hairline */

  --brand:   "Bodoni Moda", "Bodoni 72", "Didot", "Times New Roman", serif;
  --display: "Big Shoulders Display", "Impact", "Haettenschweiler", sans-serif;
  --sans:    "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter:  clamp(20px, 4vw, 56px);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quint: cubic-bezier(0.83, 0, 0.17, 1);
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  color: var(--cream);
  transition: background 320ms var(--ease-out), padding 320ms var(--ease-out),
    color 320ms var(--ease-out);
}

.nav.is-condensed {
  background: var(--paper);
  color: var(--ink);
  padding: 16px var(--gutter);
}

.nav__mark {
  font-family: var(--brand);
  font-weight: 500;
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--cream);
  transition: color 320ms var(--ease-out);
}

.nav__mark .dot {
  color: var(--sun);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  margin-left: 1px;
}

.nav.is-condensed .nav__mark {
  color: var(--coral);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
}

.nav__links a {
  position: relative;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.92;
  transition: color 200ms var(--ease-out);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 320ms var(--ease-quint);
}

.nav__links a:hover {
  color: var(--coral);
}

.nav.is-condensed .nav__links a:hover {
  color: var(--coral);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 1800ms var(--ease-quint);
}

.hero.is-loaded .hero__image {
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(20, 8, 0, 0.45) 95%),
    linear-gradient(180deg, rgba(20, 8, 0, 0.32) 0%, rgba(20, 8, 0, 0.10) 35%, rgba(20, 8, 0, 0.55) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  animation: hero-in 1100ms var(--ease-quint) 100ms both;
}

.hero__wordmark {
  margin: 0;
  font-family: var(--brand);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(44px, 8.2vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 4px 50px rgba(20, 8, 0, 0.4);
}

.hero__tag {
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.92;
}

@keyframes hero-in {
  0%   { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Statement — one bold line ─── */
.statement {
  background: var(--paper);
  padding: clamp(96px, 14vw, 200px) var(--gutter);
  text-align: center;
}

.statement__title {
  margin: 0;
  font-family: var(--brand);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ─── Photo grid ─── */
.work {
  background: var(--paper);
  padding: 0 0 clamp(80px, 10vw, 140px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  width: 100%;
}

.grid__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  grid-column: span 2;            /* 3 items per row */
  aspect-ratio: 3 / 4;
  background: var(--cream);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.grid__item--feature {
  grid-column: span 3;            /* 2 items per row, full-width pair */
  aspect-ratio: 3 / 4;
}

.grid__item.is-in {
  opacity: 1;
  transform: translateY(0);
}

.grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-quint);
  will-change: transform;
}

.grid__item:hover img {
  transform: scale(1.05);
}

.grid__item figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 8, 0, 0.72) 100%);
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

.grid__item:hover figcaption,
.grid__item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

.cap-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.cap-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.88;
}

/* ─── Contact — the deep teal counterpoint ─── */
.contact {
  background: var(--teal);
  color: var(--cream);
  padding: clamp(80px, 11vw, 140px) var(--gutter);
  text-align: center;
}

.contact__inner {
  max-width: var(--max, 1100px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.contact__word {
  margin: 0;
  font-family: var(--brand);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(36px, 6.5vw, 100px);
  line-height: 0.95;
  color: var(--sun);
  letter-spacing: -0.02em;
}

.contact__word .dot {
  color: var(--cream);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.32em;
  vertical-align: 0.45em;
  margin-left: 2px;
}

.contact__email {
  font-family: var(--brand);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(18px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 230, 200, 0.5);
  padding-bottom: 6px;
  transition: color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.contact__email:hover {
  color: var(--sun);
  border-bottom-color: var(--sun);
  background: rgba(245, 230, 200, 0.08);
}

/* ─── Footer ─── */
.foot {
  background: var(--ink);
  color: var(--cream);
  padding: 28px var(--gutter);
}

.foot__inner {
  max-width: var(--max, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.foot__inner .dot {
  color: var(--coral);
  margin: 0 6px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .grid__item,
  .grid__item--feature { grid-column: span 2; }   /* 2 per row, equal */
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid__item { grid-column: span 1; }             /* 1 per row */
  .grid__item--feature { grid-column: span 2; aspect-ratio: 1 / 1; }  /* square pair */
}

@media (max-width: 600px) {
  .nav { padding: 18px 20px; }
  .nav.is-condensed { padding: 14px 20px; }
  .nav__mark { font-size: 15px; }
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 11px; letter-spacing: 0.16em; }

  .hero { min-height: 560px; }
  .hero__inner { padding: 0 20px; }
  .hero__tag { font-size: 10.5px; letter-spacing: 0.2em; }

  .statement { padding: 80px 20px; }
  .work { padding-bottom: 64px; }

  .grid__item figcaption { padding: 16px; }

  .contact { padding: 80px 20px; }

  .foot__inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__image { transform: none !important; }
  .grid__item { opacity: 1; transform: none; }
}
