/* Mr. Béatus: mobile-first styles */

:root {
  --ink: #14120f;
  --ink-2: #1c1a17;
  --ink-3: #26231f;
  --paper: #f7f1e8;
  --paper-2: #efe6d8;
  --cream: #fbf8f3;
  --gold: #c9a063;
  --gold-lt: #e8cc9c;
  --peach: #e9b995;
  --lavender: #c6b3e6;
  --muted: #736a5f;
  --muted-dk: #a79d90;
  --line: rgba(20, 18, 15, 0.12);
  --line-dk: rgba(247, 241, 232, 0.14);

  --serif: "Bodoni 72", "Didot", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain for a little luxury */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--gold);
}
.eyebrow::after {
  content: "";
  flex: 0 0 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 8.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.display em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.section {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
}

.section__intro {
  max-width: 38rem;
  margin: -1rem 0 clamp(2.5rem, 5vw, 3.5rem);
  color: var(--muted);
  font-size: 1.05rem;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad);
  color: var(--cream);
  transition: padding 0.5s var(--ease-soft);
}
/* Blur lives on a pseudo-element so it never becomes the containing block for the fixed mobile menu */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 18, 15, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}
.nav.is-scrolled { padding-block: 0.7rem; }
.nav.is-scrolled::before { opacity: 1; }
.nav__mark {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav__accent { color: var(--gold-lt); }

.nav__toggle {
  position: relative;
  z-index: 2;
  width: 2.75rem; height: 2.75rem;
  margin-right: -0.6rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__bars,
.nav__bars::before,
.nav__bars::after {
  position: absolute;
  left: 50%;
  width: 1.4rem;
  height: 1.5px;
  margin-left: -0.7rem;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__bars { top: 50%; }
.nav__bars::before, .nav__bars::after { content: ""; left: 0; margin-left: 0; }
.nav__bars::before { transform: translateY(-6px); }
.nav__bars::after { transform: translateY(6px); }
.nav.is-open .nav__bars { background: transparent; }
.nav.is-open .nav__bars::before { transform: rotate(45deg); background: var(--cream); }
.nav.is-open .nav__bars::after { transform: rotate(-45deg); background: var(--cream); }

.nav__menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 5rem var(--pad) 3rem;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-soft), visibility 0s 0.45s;
}
.nav.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease-soft);
}
.nav__menu a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.3s;
}
.nav.is-open .nav__menu a { transform: none; opacity: 1; }
.nav.is-open .nav__menu a:nth-child(2) { transition-delay: 0.05s; }
.nav.is-open .nav__menu a:nth-child(3) { transition-delay: 0.1s; }
.nav.is-open .nav__menu a:nth-child(4) { transition-delay: 0.15s; }
.nav.is-open .nav__menu a:nth-child(5) { transition-delay: 0.2s; }
.nav.is-open .nav__menu a:nth-child(6) { transition-delay: 0.25s; }
.nav__menu a:hover { color: var(--gold-lt); }
.nav__menu .nav__ig {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 30%;
  transform: scale(1.12);
  opacity: 0;
  animation: heroIn 2.6s var(--ease) 0.1s forwards;
}
@keyframes heroIn {
  to { transform: scale(1.02); opacity: 1; }
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0) 22%),
    linear-gradient(0deg, rgba(20, 18, 15, 0.92) 0%, rgba(20, 18, 15, 0.55) 30%, rgba(20, 18, 15, 0) 62%);
}
.hero__content {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--pad) clamp(5.5rem, 13vh, 8rem);
}
.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}
.hero__eyebrow span { margin-inline: 0.4em; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.6rem, 17vw, 10.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
  background: linear-gradient(100deg, #fbf3e6 0%, #fbf3e6 38%, var(--gold-lt) 48%, #f3ddff 54%, #fbf3e6 62%, #fbf3e6 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent-e { font-style: italic; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  45%, 100% { background-position: 0% 0; }
}
.hero__tagline {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  line-height: 1.3;
  max-width: 26ch;
  color: rgba(251, 248, 243, 0.9);
}
.hero__eyebrow, .hero__title, .hero__tagline {
  opacity: 0;
  transform: translateY(1.5rem);
  animation: rise 1.4s var(--ease) forwards;
}
.hero__eyebrow { animation-delay: 0.7s; }
.hero__title { animation: rise 1.4s var(--ease) 0.85s forwards, shimmer 9s var(--ease-soft) 2.4s infinite; }
.hero__tagline { animation-delay: 1.1s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(251, 248, 243, 0.7);
  opacity: 0;
  animation: rise 1.2s var(--ease) 1.6s forwards;
}
.hero__scroll span { writing-mode: vertical-rl; }
.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 3rem;
  overflow: hidden;
  background: rgba(251, 248, 243, 0.2);
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-lt);
  transform: translateY(-100%);
  animation: drip 2.4s var(--ease-soft) 2.4s infinite;
}
@keyframes drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- About ---------- */

.about { padding-bottom: 0; }
.about__grid {
  display: grid;
  gap: 3rem;
}
.about__copy p:not(.lede) { color: #3d3730; max-width: 36rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.4rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.stat:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 1.25rem; }
.stat dd {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 10vw, 4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat dt {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.places {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: 2.25rem 2.5rem;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.places__label {
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
}
.marquee__track li::after {
  content: "✦";
  margin-inline: 1.4rem;
  font-style: normal;
  font-size: 0.45em;
  color: var(--gold);
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- Work ---------- */

.work {
  background: var(--ink);
  color: var(--cream);
}
.work .eyebrow { color: var(--muted-dk); }
.work .display em { color: var(--gold-lt); }
.work__grid {
  display: grid;
  gap: 3rem;
}
.work__intro p:last-child { color: rgba(251, 248, 243, 0.75); max-width: 34rem; }
.work__role {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.15;
}
.work__role span {
  display: block;
  font-style: italic;
  color: var(--gold-lt);
}
.work__team {
  margin: 1rem 0 1.5rem;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-dk);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 243, 0.8);
}

.properties { border-top: 1px solid var(--line-dk); }
.properties li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dk);
  transition: padding 0.5s var(--ease);
}
.properties__n {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.properties__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}
.properties__desc {
  grid-column: 2;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
@media (hover: hover) {
  .properties li:hover { padding-left: 0.6rem; }
}

.funnel {
  margin-top: clamp(3.5rem, 8vw, 5rem);
}
.funnel__label {
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.funnel__steps {
  display: grid;
  gap: 0.6rem;
  counter-reset: step;
}
.funnel__steps li {
  position: relative;
  counter-increment: step;
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding-inline: 1.1rem;
}
.funnel__steps li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(201, 160, 99, 0.95), rgba(233, 185, 149, 0.8) 60%, rgba(198, 179, 230, 0.75));
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 1.4s var(--ease);
}
.funnel__steps li:nth-child(2)::before { transition-delay: 0.12s; }
.funnel__steps li:nth-child(3)::before { transition-delay: 0.24s; }
.funnel__steps li:nth-child(4)::before { transition-delay: 0.36s; }
.js .funnel:not(.is-visible) .funnel__steps li::before { transform: scaleX(0); }
.funnel__steps span {
  position: relative;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.funnel__steps span::before {
  content: "0" counter(step) "  ";
  white-space: pre;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

/* ---------- Travel ---------- */

.travel { background: var(--paper); }

.card__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
}
.card__zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
@media (hover: hover) {
  .card__zoom:hover img { transform: scale(1.045); }
}

.card__type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(233, 185, 149, 0.9), transparent 60%),
    radial-gradient(90% 70% at 80% 85%, rgba(198, 179, 230, 0.9), transparent 60%),
    linear-gradient(160deg, #f2d9a8, #e9b995 55%, #c6b3e6);
}
.card__type::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(20, 18, 15, 0.25);
}
.card__type-crown {
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(20, 18, 15, 0.7);
  animation: bob 5s var(--ease-soft) infinite;
}
.card__type-word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 18vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-6px) rotate(4deg); }
}

/* Instagram profile block: deliberately light and in Instagram's own UI language */
.ig {
  --ig-text: #000;
  --ig-muted: #737373;
  --ig-line: #dbdbdb;
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  max-width: 935px;
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
  color: var(--ig-text);
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.4;
  border: 1px solid var(--ig-line);
  border-radius: 12px;
  box-shadow: 0 30px 60px -40px rgba(20, 18, 15, 0.45);
}

.ig__head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar user"
    "avatar follow"
    "name   name"
    "bio    bio"
    "stats  stats";
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  align-items: center;
  padding: 1.25rem 1rem 0;
}
.ig__avatar {
  grid-area: avatar;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ig__user {
  grid-area: user;
  align-self: end;
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.ig__follow {
  grid-area: follow;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  height: 32px;
  padding: 0 1rem;
  border-radius: 8px;
  background: var(--ig-blue);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}
.ig__follow:hover { background: var(--ig-blue-hover); }
.ig__name {
  grid-area: name;
  margin-top: 0.5rem;
  font-weight: 600;
}
.ig__bio { grid-area: bio; }
.ig__stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0.75rem -1rem 0;
  padding-block: 0.75rem;
  border-top: 1px solid var(--ig-line);
  text-align: center;
  color: var(--ig-muted);
}
.ig__stats b {
  display: block;
  font-weight: 600;
  color: var(--ig-text);
}

.ig__tabs {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--ig-line);
}
.ig__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: -1px;
  padding: 0.9rem 0;
  border-top: 1px solid var(--ig-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ig__tab svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ig__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.ig__post {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #efefef;
  container-type: inline-size;
}
.ig__tile {
  aspect-ratio: 1;
  height: 100%;
  border-radius: 0;
  background: #efefef;
}
.ig__tile img,
.ig__tile:hover img { transform: none; transition: none; }
.ig__tile:focus-visible { outline: none; }

/* Hover overlay: the post's own caption, no invented likes or comments */
.ig__cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: clamp(0.8rem, 4.5cqi, 1rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ig__cap q { quotes: "\201C" "\201D"; }
.ig__cap .card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ig__cap .card__meta b { display: block; font-weight: 500; }
.ig__post:has(.ig__tile:focus-visible) .ig__cap {
  opacity: 1;
  box-shadow: inset 0 0 0 2px #fff;
}
@media (hover: hover) {
  .ig__post:hover .ig__cap { opacity: 1; }
}
@container (max-width: 200px) {
  .ig__cap .card__meta { display: none; }
}

.ig__post--type .card__type {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
}
.ig__post--type .card__type::before { inset: 6%; }
.ig__post--type .card__type-crown { font-size: 9cqi; }
.ig__post--type .card__type-word { font-size: 24cqi; }

.ig__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  aspect-ratio: 1;
  padding: 0.75rem;
  background: #fafafa;
  color: var(--ig-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.ig__more svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.ig__more svg .dot { fill: currentColor; stroke: none; }
.ig__more:hover { background: #f0f0f0; color: var(--ig-blue); }
.ig__more:focus-visible { outline-color: var(--ig-blue); outline-offset: -3px; }

/* Boarding pass */
.pass {
  margin-top: clamp(3.5rem, 8vw, 5rem);
  display: grid;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 18, 15, 0.55);
}
.pass__main { padding: 1.75rem 1.5rem; }
.pass__kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.pass__kicker span { margin-inline: 0.4em; }
.pass__route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pass__code {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12vw, 4.5rem);
  line-height: 1;
}
.pass__city {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
.pass__route > div:last-child { text-align: right; }
.pass__plane { color: var(--gold); }
.pass__plane svg { width: 100%; height: 1.5rem; overflow: visible; }
.pass__plane path:last-child { animation: taxi 3.5s var(--ease-soft) infinite alternate; }
@keyframes taxi {
  from { transform: translateX(-6px); }
  to { transform: translateX(2px); }
}
.pass__details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-dk);
}
.pass__details dt {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dk);
}
.pass__details dd {
  font-family: var(--serif);
  font-size: 1.1rem;
}
.pass__stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(110deg, var(--gold), var(--peach) 55%, var(--lavender));
  color: var(--ink);
}
.pass__stub::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
}
.pass__stub-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.pass__stub-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
}

/* ---------- Family ---------- */

.family { background: var(--cream); }

.mark {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.mark__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.mark__photo figcaption,
.wedding__item figcaption {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
}
.mark__role {
  margin: 0.6rem 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: #8a6fbf;
}
.mark__copy > p:not(.mark__role) { color: #3d3730; max-width: 34rem; }

.timeline {
  position: relative;
  margin-top: 2.25rem;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.3rem; top: 0.5rem; bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(var(--gold), var(--lavender));
}
.timeline li {
  position: relative;
  padding-bottom: 1.4rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.45rem;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
}
.timeline__when {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.timeline__what { display: block; color: #3d3730; }

.wedding {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}
.wedding__item .card__zoom { aspect-ratio: 4 / 5; }
.wedding__item--wide .card__zoom { aspect-ratio: 3 / 2; }

.dogs { margin-top: clamp(4rem, 9vw, 6rem); }
.dogs__title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.dogs__list {
  display: grid;
  gap: 1rem;
}
.dog {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s;
}
.dog h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.dog p { color: var(--muted); }
.dog__paw {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  width: 2.2rem;
  fill: var(--gold);
  opacity: 0.35;
  transform: rotate(18deg);
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.dog:nth-child(2) .dog__paw { fill: #8a6fbf; }
.dog:nth-child(3) .dog__paw { fill: var(--peach); opacity: 0.55; }

/* Portrait medallions: a paper gap, then a hairline ring in each dog's accent color */
.dog__photo {
  --ring: var(--gold);
  --pos: 50% 50%;
  --origin: 50% 50%;
  --zoom: 1;
  flex-shrink: 0;
  width: 7rem;
  aspect-ratio: 1;
  margin: 0.35rem 0 1.4rem 0.35rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 5px var(--ring),
    0 18px 30px -18px rgba(20, 18, 15, 0.55);
  transition: box-shadow 0.6s var(--ease);
}
.dog__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos);
  transform: scale(var(--zoom));
  transform-origin: var(--origin);
  transition: transform 1.2s var(--ease);
}
.dog:nth-child(2) .dog__photo { --ring: #8a6fbf; }
.dog:nth-child(3) .dog__photo { --ring: var(--peach); }
/* Crops keep each dog centered in the circle */
.dog__photo--kanye { --origin: 22% 100%; --zoom: 1.2; }
.dog__photo--pig { --pos: 100% 50%; --origin: 62% 50%; --zoom: 1.6; }

@media (hover: hover) {
  .dog:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -24px rgba(20, 18, 15, 0.35);
    border-color: rgba(201, 160, 99, 0.5);
  }
  .dog:hover .dog__paw { transform: rotate(-8deg) scale(1.15); opacity: 0.8; }
  .dog:hover .dog__photo img { transform: scale(calc(var(--zoom) * 1.06)); }
  .dog:hover .dog__photo {
    box-shadow:
      0 0 0 4px var(--paper),
      0 0 0 6px var(--ring),
      0 22px 34px -18px rgba(20, 18, 15, 0.6);
  }
}

/* ---------- Obsessions ---------- */

.obsessions { background: var(--paper); }
.obs {
  display: grid;
  border-top: 1px solid var(--line);
}
.obs__item {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.obs__item svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.8s var(--ease);
}
.obs__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.obs__item p { color: #4a433b; max-width: 30rem; }
@media (hover: hover) {
  .obs__item:hover svg { transform: translateY(-3px) rotate(-6deg); }
  .obs__item--disco:hover svg { transform: rotate(180deg); }
}
.obs__item--disco svg { stroke: #8a6fbf; }

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

.footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(5rem, 12vw, 8rem);
  text-align: center;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 60rem;
  height: 60rem;
  margin-left: -30rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 160, 99, 0.22), rgba(198, 179, 230, 0.1) 55%, transparent 75%);
  animation: glow 12s var(--ease-soft) infinite alternate;
}
@keyframes glow {
  from { transform: scale(0.9) translateY(0); opacity: 0.75; }
  to { transform: scale(1.08) translateY(-4%); opacity: 1; }
}
.footer__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  margin: 1rem 0 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 12vw, 6.5rem);
  line-height: 1.05;
  text-decoration: none;
  background: linear-gradient(90deg, var(--cream), var(--cream)) left bottom / 0 1px no-repeat;
  transition: background-size 0.7s var(--ease), color 0.4s;
}
.footer__ig:hover { background-size: 100% 1px; color: var(--gold-lt); }
.footer__ig svg {
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.footer__ig svg .dot { fill: currentColor; stroke: none; }
.footer__sub {
  max-width: 28rem;
  margin-inline: auto;
  color: rgba(251, 248, 243, 0.7);
}
.footer__base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(4rem, 10vw, 6rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dk);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted-dk);
}
.footer__base span { margin-inline: 0.4em; color: var(--gold); }
.footer__top { text-decoration: none; }
.footer__top:hover { color: var(--gold-lt); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(14, 12, 10, 0.94);
  color: var(--cream);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.4s var(--ease-soft);
}
.lightbox::backdrop { background: transparent; }
.lightbox__figure {
  max-width: min(92vw, 60rem);
  text-align: center;
}
.lightbox__figure img {
  max-height: 80vh;
  max-height: 80dvh;
  width: auto;
  margin-inline: auto;
  border-radius: 2px;
  animation: zoomIn 0.55s var(--ease);
}
.lightbox__figure figcaption {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-dk);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(201, 160, 99, 0.25); border-color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { bottom: 1.25rem; }
.lightbox__nav--prev { left: calc(50% - 3.5rem); }
.lightbox__nav--next { right: calc(50% - 3.5rem); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.96); } }

/* ---------- Scroll reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .dogs__list { grid-template-columns: repeat(3, 1fr); }
  .obs { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .pass { grid-template-columns: 1fr auto; }
  .pass__main { padding: 2.25rem 2.5rem; }
  .pass__stub {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.25rem;
    min-width: 13rem;
  }
  .pass__stub::before {
    inset: 0 auto 0 -1px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px);
  }
  .pass__stub-value { font-size: 2.2rem; }
  .wedding { grid-template-columns: 1fr 1fr; }
  .wedding__item--wide { grid-column: 1 / -1; }
  .footer__base { flex-direction: row; justify-content: space-between; }
}

/* Instagram's own desktop profile breakpoint */
@media (min-width: 736px) {
  .ig__head {
    grid-template-columns: minmax(9.5rem, 17rem) auto auto 1fr;
    grid-template-areas:
      "avatar user  follow ."
      "avatar stats stats  stats"
      "avatar name  name   name"
      "avatar bio   bio    bio";
    column-gap: 1.25rem;
    row-gap: 0;
    align-items: center;
    padding: 2.5rem 2rem 2.75rem 0;
  }
  .ig__avatar {
    justify-self: center;
    width: 150px;
    height: 150px;
  }
  .ig__user { align-self: center; }
  .ig__follow { align-self: center; }
  .ig__stats {
    display: flex;
    gap: 2.5rem;
    margin: 1.25rem 0;
    padding: 0;
    border: 0;
    font-size: 1rem;
    color: var(--ig-text);
  }
  .ig__stats b { display: inline; }
  .ig__name { margin-top: 0; }
  .ig__grid { gap: 4px; }
}

@media (min-width: 960px) {
  .nav { padding-block: 1.5rem; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__menu a {
    position: relative;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 1;
    transform: none;
  }
  .nav__menu a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -0.3rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
  }
  .nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__menu .nav__ig {
    margin-top: 0;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(232, 204, 156, 0.5);
    border-radius: 999px;
    font-size: 0.72rem;
  }
  .nav__menu .nav__ig::after { display: none; }
  .nav__menu .nav__ig:hover { background: rgba(232, 204, 156, 0.12); }

  .hero__media img { object-position: 50% 28%; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0) 20%),
      linear-gradient(0deg, rgba(20, 18, 15, 0.85) 0%, rgba(20, 18, 15, 0.3) 35%, rgba(20, 18, 15, 0) 60%),
      linear-gradient(90deg, rgba(20, 18, 15, 0.55) 0%, rgba(20, 18, 15, 0) 55%);
  }

  .about__grid { grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
  .work__grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .funnel__steps li { min-height: 3.75rem; }
  .funnel__steps span { font-size: 1.35rem; }

  .mark { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: center; }
  .dog__photo { width: 8rem; }
  .wedding { grid-template-columns: 1.6fr 1fr 1fr; align-items: end; }
  .wedding__item--wide { grid-column: auto; }
  .wedding__item--wide .card__zoom { aspect-ratio: 4 / 3.35; }

  .obs { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .display { max-width: 18ch; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero__media img { transform: none; }
  .marquee { width: auto; flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; padding-inline: var(--pad); }
  .marquee__track { flex-wrap: wrap; animation: none; row-gap: 0.4rem; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track li { font-size: 1.4rem; }
}
