/* NomadicRiz landing page */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0d14;
  --shade: 6 8 16;
  --warm: 38 20 12;
  --gold: #f2c27b;
  --cream: #f7e2bf;
  --text: #fff;
  --muted: rgb(255 255 255 / 0.8);
  --pad-x: clamp(20px, 6vw, 112px);
  --pad-y: clamp(20px, 4.5vh, 48px);
  --col: clamp(340px, 38vw, 520px);
  --title: min(9vw, 16.5vh, 156px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Landscape: photo on the left, column on the right */
  display: grid;
  grid-template-columns: 1fr var(--col);
  grid-template-rows: 1fr auto auto 1fr auto;
  grid-template-areas:
    ". ."
    ". brand"
    ". links"
    ". ."
    "foot foot";
  column-gap: 24px;
  padding:
    max(var(--pad-y), env(safe-area-inset-top))
    max(var(--pad-x), env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(var(--pad-x), env(safe-area-inset-left));
}

p, h1, ul { margin: 0; }
ul { padding: 0; list-style: none; }

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

/* ---------- Background photo ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a1d14;
}
.bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the subject left of the column; keep his feet when the sky is cropped */
  object-position: 62% 100%;
  transform-origin: 38% 70%;
  animation: drift 22s var(--ease) both;
}
/* Shading (landscape). ::before = warm, lighter shade so the sunset sky keeps its colour,
   plus soft top/bottom and vignette. ::after = the cool dark column shade, faded out towards
   the top so it only sits fully behind the tagline and cards. */
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
}
.bg::before {
  background:
    linear-gradient(to left,
      rgb(var(--warm) / 0.5) 0%,
      rgb(var(--warm) / 0.42) 26%,
      rgb(var(--warm) / 0.27) 44%,
      rgb(var(--warm) / 0) 62%),
    linear-gradient(to bottom, rgb(var(--warm) / 0.22) 0%, rgb(var(--warm) / 0) 24%),
    linear-gradient(to top, rgb(var(--shade) / 0.55) 0%, rgb(var(--shade) / 0) 18%),
    radial-gradient(130% 110% at 35% 55%, transparent 55%, rgb(var(--shade) / 0.35) 100%);
}
.bg::after {
  background:
    linear-gradient(to left,
      rgb(var(--shade) / 0.82) 0%,
      rgb(var(--shade) / 0.66) 26%,
      rgb(var(--shade) / 0.28) 44%,
      rgb(var(--shade) / 0) 60%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 48%);
  mask-image: linear-gradient(to bottom, transparent 12%, #000 48%);
}

/* ---------- Title + tagline ---------- */

.brand { grid-area: brand; }

.title {
  font-family: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  font-size: var(--title);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.35);
}
.title span { display: block; }
@media (orientation: landscape) {
  .title { position: relative; isolation: isolate; }
  /* soft dark glow behind RIZ: painted under the gradient text */
  .title::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.4em;
    bottom: -0.3em;
    width: 2.05em;
    height: 1.55em;
    background: radial-gradient(closest-side, rgb(14 8 5 / 0.62), rgb(14 8 5 / 0.5) 50%, rgb(14 8 5 / 0));
    pointer-events: none;
  }
  .title__accent { filter: drop-shadow(0 1px 1.5px rgb(10 6 4 / 0.55)); }
}
.title__accent {
  color: var(--gold);
  background: linear-gradient(100deg, #ffd99c 0%, #f2b866 55%, #e98f4e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.tagline {
  margin-top: 0.5em;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(22px, min(2.5vw, 4.4vh), 38px);
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 0 1px 16px rgb(0 0 0 / 0.5);
}

.tagline span { white-space: nowrap; } /* only ever breaks after "deeper." */

/* ---------- Link cards ---------- */

.links { grid-area: links; margin-top: clamp(20px, 4.4vh, 44px); }
.links ul { display: grid; gap: clamp(10px, 1.6vh, 14px); }

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: clamp(11px, 1.7vh, 15px) 16px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: rgb(14 16 26 / 0.46);
  border: 1px solid rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 10px 30px rgb(0 0 0 / 0.22);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
a.card:hover {
  transform: translateY(-2px);
  background: rgb(22 24 36 / 0.58);
  border-color: rgb(255 255 255 / 0.3);
}
a.card:focus-visible {
  outline: 3px solid #ffd79a;
  outline-offset: 3px;
}

.card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.12);
  color: var(--gold);
}
.card__icon--logo { background: none; overflow: hidden; }
.card__icon--logo picture, .card__icon--logo img { display: block; width: 100%; height: 100%; }
.card__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.card__title { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.card__sub { font-size: 14px; line-height: 1.35; color: var(--muted); }
.card__end { flex: none; display: grid; opacity: 0.85; transition: transform 0.25s var(--ease); }
a.card:hover .card__end { transform: translate(2px, -2px); }

/* Main call to action: warm golden-hour card */
.card--primary {
  min-height: 74px;
  padding-block: clamp(13px, 2vh, 18px);
  color: #1b1206;
  background: linear-gradient(115deg, #ffd598 0%, #f4b066 52%, #ea8d52 100%);
  border-color: rgb(255 226 180 / 0.7);
  box-shadow: 0 14px 40px rgb(234 141 82 / 0.32), inset 0 1px 0 rgb(255 255 255 / 0.5);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.card--primary .card__icon { background: rgb(27 18 6 / 0.12); color: #1b1206; }
.card--primary .card__title { font-size: 17.5px; }
.card--primary .card__sub { color: rgb(27 18 6 / 0.78); }
a.card--primary:hover {
  background: linear-gradient(115deg, #ffdcaa 0%, #f7ba74 52%, #ee9860 100%);
  border-color: rgb(255 236 200 / 0.9);
  box-shadow: 0 18px 46px rgb(234 141 82 / 0.42), inset 0 1px 0 rgb(255 255 255 / 0.55);
}
a.card--primary:focus-visible { outline-color: #fff; }

/* Not a link yet */
.card--soon { background: rgb(14 16 26 / 0.38); border-style: dashed; border-color: rgb(255 255 255 / 0.2); }
.card--soon .card__icon { color: rgb(255 255 255 / 0.75); }
.badge {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffdfae;
  background: rgb(242 194 123 / 0.16);
  border: 1px solid rgb(242 194 123 / 0.45);
}

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

.footer {
  grid-area: foot;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: rgb(255 255 255 / 0.96);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.7), 0 0 12px rgb(0 0 0 / 0.6);
}
.location { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.02em; }
.location svg { color: var(--gold); }

/* ---------- Short landscape screens ---------- */

@media (orientation: landscape) and (max-height: 620px) {
  .card { min-height: 56px; padding-block: 9px; }
  .card--primary { min-height: 62px; }
  .card__icon { width: 36px; height: 36px; border-radius: 10px; }
  .card__sub { font-size: 13px; }
}

/* ---------- Portrait: phones and tablets ---------- */

@media (orientation: portrait) {
  body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "brand" "." "links" "foot";
    padding:
      max(clamp(28px, 5.5vh, 64px), env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }
  .bg img { object-position: 50% 40%; transform-origin: 50% 40%; }
  .bg::before { display: none; }
  .bg::after {
    -webkit-mask-image: none;
    mask-image: none;
    background:
      linear-gradient(to bottom,
        rgb(var(--shade) / 0.8) 0%,
        rgb(var(--shade) / 0.6) 20%,
        rgb(var(--shade) / 0.25) 30%,
        rgb(var(--shade) / 0) 37%),
      linear-gradient(to top,
        rgb(var(--shade) / 0.86) 0%,
        rgb(var(--shade) / 0.6) 30%,
        rgb(var(--shade) / 0) 50%);
  }
  .brand { text-align: center; }
  .title { font-size: min(22vw, 12vh, 150px); }
  .tagline { font-size: clamp(22px, 6.4vw, 38px); margin-top: 0.4em; text-shadow: 0 1px 3px rgb(0 0 0 / 0.55), 0 2px 22px rgb(0 0 0 / 0.6); }
  .links {
    width: 100%;
    max-width: 560px;
    justify-self: center;
    margin-top: 24px;
  }
  .footer { justify-content: center; margin-top: 14px; font-size: 12.5px; }
  .location { display: none; }
}

@media (orientation: portrait) and (min-width: 600px) {
  .title { font-size: min(9.6vh, 16vw); }
  .tagline { font-size: min(3.5vh, 6vw); }
}

@media (orientation: portrait) and (max-width: 480px) {
  .links ul { gap: 10px; }
  .card { gap: 12px; padding: 11px 14px 11px 12px; min-height: 60px; border-radius: 16px; }
  .card--primary { min-height: 68px; padding-block: 13px; }
  .card__icon { width: 38px; height: 38px; border-radius: 11px; }
  .card__title { font-size: 15.5px; }
  .card--primary .card__title { font-size: 16px; }
  .card__sub { font-size: 13px; }
}
@media (orientation: portrait) and (max-width: 370px) {
  .card { gap: 10px; padding-inline: 11px; }
  .card__title, .card--primary .card__title { font-size: 15px; }
  .card__sub { font-size: 12.5px; }
}

/* ---------- Motion ---------- */

@keyframes drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.title span, .tagline, .links li, .footer {
  animation: rise 0.9s var(--ease) both;
}
.title span:nth-child(1) { animation-delay: 0.15s; }
.title span:nth-child(2) { animation-delay: 0.27s; }
.tagline { animation-delay: 0.42s; }
.links li:nth-child(1) { animation-delay: 0.6s; }
.links li:nth-child(2) { animation-delay: 0.7s; }
.links li:nth-child(3) { animation-delay: 0.8s; }
.footer { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bg img { transform: none; }
}

.title__accent { width: fit-content; }
@media (orientation: portrait) { .title__accent { margin-inline: auto; } }
