:root {
  --bg: #fafaf4;
  --ink: #000;
  --muted: rgba(0,0,0,.55);
  --rule: rgba(0,0,0,.14);
  --max: 1440px;
  --gutter: 40px;
  --nav-gap: 56px;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Nav links ---------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  list-style: none;
  font-size: 14px;
  line-height: 42px;
  letter-spacing: -0.28px;
  white-space: nowrap;
}
.nav-links a, .link { position: relative; display: inline-flex; align-items: center; }
.nav-links a:not(.icon-link)::after, .link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 10px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after,
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
/* Every item is a 42px-tall flex row, so the icon centres on the same line as the text */
.nav-links li { display: flex; align-items: center; }
.icon-link { height: 42px; }
.icon-link svg { display: block; width: 18px; height: 18px; transition: opacity .2s ease; }
.icon-link:hover svg { opacity: .55; }

/* ---------- Top nav ---------- */
.top-nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px var(--gutter);
}
.logo, .logo img { width: 85px; height: 38px; }

/* ---------- Footer nav: sits at the end of the page, no rule ---------- */
.bottom-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Big Inter headings ---------- */
.display {
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .92;
}
.statement {
  font-weight: 500;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

/* Hamburger (phone only) */
.menu-btn {
  display: none;
  width: 40px; height: 40px;
  margin-right: -9px;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s ease; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }

@media (max-width: 1000px) {
  :root { --nav-gap: 32px; }
  .statement { font-size: 32px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --nav-gap: 22px; }
  .top-nav { align-items: center; transition: background .3s ease; }
  .top-nav.open { background: var(--bg); }
  .logo, .logo img { width: 72px; height: 32px; }
  .menu-btn { display: flex; }

  /* Drop-down menu */
  .top-nav .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    font-size: 24px; line-height: 52px; letter-spacing: -0.02em;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .top-nav.open .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .top-nav .nav-links a::after { bottom: 12px; }

  .bottom-bar .nav-links { font-size: 13px; }
  .statement { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Instagram in the top menu: only on tablet and phone, where it joins the menu (the phone drop-down lists it last) */
.top-nav .nav-ig { display: none; }
@media (max-width: 1000px) { .top-nav .nav-ig { display: flex; } }
@media (max-width: 720px) {
  .top-nav .nav-ig .icon-link { height: 52px; }
  .top-nav .nav-ig svg { width: 24px; height: 24px; }
}

/* Tab systems (Before / After, Print / Digital, Framer / Webflow / Flex): on very wide or short screens the stage
   never grows taller than the window, so the tabs and the whole image fit in one view. --ba-ar is the stage ratio. */
.ba-wrap { --ba-ar: 1.6816; }
.ba-wrap.compare, .ba-wrap.print-vs { --ba-ar: 1.7778; }
.story .ba-wrap .ba { max-width: max(320px, calc((100svh - 150px) * var(--ba-ar))); margin-inline: auto; }
