/* ==========================================================================
   Patrimony Media — "Warm stone" theme
   Layout and motion modelled on a restrained, photography-led editorial site:
   fluid rem scale, regular-weight grotesk type, rounded stacked sections.
   ========================================================================== */

/* Inter Tight, hosted on this website (no Google request). Licence: static/fonts/InterTight-LICENSE.txt
   When you buy Neue Haas Grotesk Display, add its @font-face blocks here and change --font below. */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Change this one line when the paid font is ready */
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--font);          /* headlines use the same typeface as the rest, in a heavier weight */
  --heading-weight: 500;          /* 500 = Medium. Try 600 for even bolder headlines */

  --bg: #F4F2EE;        /* warm off-white */
  --bg-soft: #EAE6E0;   /* slightly deeper stone for cards */
  --ink: #1A1A1A;       /* soft black text */
  --muted: #6F6A63;     /* captions, secondary text */
  --accent: #736E67;    /* warm taupe: feature blocks + footer (dark enough for readable white text) */
  --on-accent: #F7F5F1;
  --dark: #151413;      /* contact band */
  --line: rgba(26, 26, 26, 0.12);
  --pill: rgba(232, 228, 222, 0.82);
  --glass: rgba(244, 242, 238, 0.78);

  --r-sm: 0.4rem;
  --r-md: 0.8rem;
  --r-lg: 1.2rem;
  --r-xl: 3rem;
  --gutter: 2.4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fluid scale: everything is in rem, and 1rem grows with the window.
   1440px wide -> 12px, 1024px -> ~8.5px. Phones use a fixed 10px. */
html { font-size: clamp(8px, 0.8333vw, 14px); }
@media (max-width: 767px) { html { font-size: 10px; } }

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }

/* ---------- Type ---------- */
.label {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.h1 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.h2 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 24ch;
}
.h3 { margin: 0 0 1.2rem; font-size: 2.4rem; line-height: 1.12; font-weight: 400; display: block; }
.big-text { margin: 0; font-size: 3.4rem; line-height: 1.12; max-width: 30ch; }
.lead { margin: 2rem 0 0; font-size: 2.4rem; line-height: 1.2; color: var(--muted); max-width: 40ch; }
.body { margin: 0 0 2.4rem; font-size: 1.7rem; line-height: 1.45; max-width: 48ch; }
.caption { margin-top: 1rem; font-size: 1.2rem; color: var(--muted); }

@media (max-width: 767px) {
  .h1 { font-size: 3.6rem; }
  .h2, .big-text { font-size: 2.6rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 1.2rem;
  padding: 0.9rem 0.9rem 0.9rem 1.4rem;
  background: var(--pill);
  border: 0; border-radius: var(--r-sm);
  font-size: 1.3rem; cursor: pointer;
  transition: background 0.3s ease;
}
.btn:hover { background: #fff; }
.plus {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem;
  border-radius: 0.3rem;
  background: var(--ink); color: var(--bg);
  font-size: 1.5rem; line-height: 1;
  transition: transform 0.45s var(--ease);
}
.btn:hover .plus, .overlay-card:hover .plus { transform: rotate(90deg); }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 50;
  top: 2.4rem; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: flex-start; justify-content: space-between;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.logo {
  display: flex; align-items: center;
  height: 4.4rem;
  padding: 0 1.4rem;
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.logo-mark { font-size: 2rem; line-height: 1; }
.logo-word {
  display: inline-block; max-width: 0; opacity: 0; white-space: nowrap;
  font-size: 2rem; line-height: 1;
  transition: max-width 0.6s var(--ease), opacity 0.4s ease;
}
.logo:hover .logo-word { max-width: 22rem; opacity: 1; }

.nav { display: flex; gap: 0.4rem; align-items: flex-start; }
.pill {
  display: inline-block;
  padding: 1.2rem 1.4rem;
  background: var(--pill);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 0; border-radius: var(--r-sm);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.pill:hover, .pill.is-active { background: #fff; }
.pill-dark { background: var(--ink); color: var(--bg); }
.pill-dark:hover { background: #000; }

/* Titles dropdown */
.nav-drop { position: relative; }
.drop-panel {
  position: absolute; top: calc(100% + 0.4rem); right: 0;
  width: 56rem;
  display: grid; grid-template-columns: 1fr 18rem; gap: 0.8rem;
  padding: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 3rem 6rem -2rem rgba(26, 26, 26, 0.28);
  border-radius: var(--r-md);
  opacity: 0; pointer-events: none; transform: translateY(-0.6rem);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel {
  opacity: 1; pointer-events: auto; transform: none;
}
.drop-list { display: flex; flex-direction: column; }
.drop-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.2rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 1.6rem;
  transition: background 0.2s ease;
}
.drop-item small { font-size: 1.2rem; color: var(--muted); }
.drop-item:hover { background: var(--bg-soft); }
.drop-images { position: relative; border-radius: var(--r-sm); overflow: hidden; }
.drop-images img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.4s ease;
}
.drop-images img.is-on { opacity: 1; }

.menu-btn { display: none; }
.mobile-menu {
  position: fixed; z-index: 45; inset: 0;
  padding: 10rem var(--gutter) 4rem;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 1.4rem;
  font-size: 3.2rem; line-height: 1.1;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-sub { display: flex; flex-direction: column; gap: 0.8rem; padding-left: 1.6rem; font-size: 1.9rem; color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-block; }
}

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--bg-soft); }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.media img.is-loaded, html:not(.js) .media img { opacity: 1; }
/* Parallax images are taller than their frame so they can drift */
.media[data-parallax] img { position: absolute; left: 0; top: -8%; height: 116%; }
.media-wide { aspect-ratio: 16 / 10; }
.media-tall { aspect-ratio: 3 / 4; }


/* ---------- Intro (first visit) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--dark); overflow: hidden;
}
.intro-frames { position: absolute; inset: 0; }
.intro-frame { position: absolute; inset: 0; display: block; opacity: 0; }
.intro-frame.is-on { opacity: 1; }
.intro-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); }
.intro-logo {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; pointer-events: none;
}
.intro-logo span { font-size: clamp(3.6rem, 6vw, 9.6rem); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0.4rem 3rem rgba(0,0,0,0.25); }
.no-intro .intro { display: none; }

/* ---------- Hero + gallery ---------- */
.hero { padding-top: 12rem; padding-bottom: 4rem; }
.hero .h1 { margin-bottom: 4.8rem; }

.gallery { position: relative; }
.gallery-stage {
  position: relative; aspect-ratio: 16 / 8;
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft);
}
@media (max-width: 767px) { .gallery-stage { aspect-ratio: 4 / 5; } }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.gallery-slide.is-on { opacity: 1; z-index: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.gallery-slide.is-on img { transform: scale(1); }
.gallery-caption {
  position: absolute; right: 1.6rem; bottom: 1.6rem;
  max-width: 34rem; padding: 1.2rem 1.4rem;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-sm); font-size: 1.3rem;
}
.tabs {
  position: absolute; z-index: 3; left: 1.6rem; bottom: 1.6rem;
  display: flex; gap: 0.2rem; padding: 0.4rem;
  max-width: calc(100% - 3.2rem); overflow-x: auto; scrollbar-width: none;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: var(--r-sm);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; z-index: 1;
  padding: 0.9rem 1.2rem; border: 0; background: none;
  font-size: 1.2rem; white-space: nowrap; cursor: pointer;
  border-radius: 0.3rem;
}
.tab-bg {
  position: absolute; top: 0.4rem; bottom: 0.4rem; left: 0; width: 0;
  background: #fff; border-radius: 0.3rem;
  transition: left 0.5s var(--ease), width 0.5s var(--ease);
}
@media (max-width: 767px) {
  .gallery-caption { left: 1.2rem; right: 1.2rem; bottom: 6.8rem; max-width: none; }
  .tabs { left: 1.2rem; bottom: 1.2rem; max-width: calc(100% - 2.4rem); }
}

/* ---------- Accent (taupe) block ---------- */
.block-accent {
  margin-top: 6rem;
  padding: 8rem 0 var(--gutter);
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.block-accent + * { margin-top: 0; }
.about-block { padding-bottom: 8rem; }
.about-block .big-text { margin-bottom: 3.2rem; }
.block-accent .btn { background: rgba(255, 255, 255, 0.22); color: var(--on-accent); }
.block-accent .btn:hover { background: var(--on-accent); color: var(--ink); }
.block-accent .plus { background: var(--on-accent); color: var(--ink); }

/* ---------- Title features ---------- */
.titles-intro { padding-top: 12rem; padding-bottom: 2rem; }
.feature { padding-top: 10rem; }
.feature-head { margin-bottom: 4rem; }
.feature-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter);
  align-items: start;
}
.feature-main { margin: 0; }
.feature-side { display: flex; flex-direction: column; gap: 4.8rem; }
.feature-copy { padding-top: 0.4rem; }
.feature-tall { position: relative; }
.is-flipped .feature-grid { grid-template-columns: 5fr 7fr; }
.is-flipped .feature-main { order: 2; }

@media (max-width: 767px) {
  .feature { padding-top: 7rem; }
  .feature-grid, .is-flipped .feature-grid { grid-template-columns: 1fr; }
  .is-flipped .feature-main { order: 0; }
}

/* Frosted overlay card sitting on an image */
.overlay-card {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  display: grid; grid-template-columns: 1fr 8rem; gap: 1.2rem;
  padding: 1.2rem;
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-radius: var(--r-md);
  font-size: 1.3rem; line-height: 1.3;
}
.overlay-text { display: flex; flex-direction: column; gap: 0.6rem; }
.overlay-text .label { margin: 0; text-transform: uppercase; font-size: 1.1rem; }
.overlay-link { display: inline-flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.overlay-card img { width: 8rem; height: 8rem; object-fit: cover; border-radius: var(--r-sm); }

/* ---------- Teasers, page heroes, grids ---------- */
.teaser { padding-top: 14rem; padding-bottom: 14rem; }
.teaser .h1 { margin-bottom: 3.2rem; }
.page-hero { padding-top: 16rem; padding-bottom: 6rem; }

.pillars { padding-top: 10rem; padding-bottom: 6rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 3rem; }
@media (max-width: 767px) { .pillar-grid { grid-template-columns: 1fr; } }

.title-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.8rem var(--gutter); padding-bottom: 12rem; }
.title-card { display: flex; flex-direction: column; }
.title-card .media { margin-bottom: 1.6rem; }
.title-card .label { margin-bottom: 0.6rem; color: var(--muted); }
.title-card .h3 { margin-bottom: 0.6rem; }
@media (max-width: 900px) { .title-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .title-grid { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding-top: var(--gutter); }
.split-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; padding: 2rem 0; }
@media (max-width: 767px) { .split { grid-template-columns: 1fr; } }

.more-titles { padding-top: 12rem; padding-bottom: 12rem; }
.more-list { border-top: 1px solid var(--line); }
.more-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.4rem 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.more-item .h3 { margin: 0; }
.more-item:hover { padding-left: 1.6rem; }

/* ---------- Contact band (dark) ---------- */
.contact-band {
  position: relative; z-index: 1;
  padding: 8rem 0 calc(8rem + var(--r-xl));
  background: var(--dark); color: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.contact-band .label { color: rgba(244, 242, 238, 0.6); }
.contact-band a { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: rgba(244,242,238,0.35); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
@media (max-width: 767px) { .contact-grid { grid-template-columns: 1fr; gap: 4rem; } }

.contact-form { display: flex; flex-direction: column; gap: 0.8rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.2rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field span { font-size: 1.1rem; color: rgba(244, 242, 238, 0.55); }
.field input, .field select, .field textarea {
  border: 0; outline: 0; background: none; padding: 0;
  font-size: 1.6rem; color: var(--bg); resize: vertical;
}
.field select option { color: var(--ink); }
.field:focus-within { background: rgba(255, 255, 255, 0.1); border-color: rgba(244, 242, 238, 0.3); }
.field.has-error { border-color: #D98C7A; }
.form-foot { display: flex; align-items: center; gap: 1.6rem; margin-top: 0.8rem; }
.form-note { margin: 0; font-size: 1.2rem; opacity: 0.7; }
.contact-page { margin-top: 0; }

/* ---------- Footer (taupe, slides over the dark band) ---------- */
.site-footer {
  position: relative; z-index: 2;
  margin-top: calc(var(--r-xl) * -1);
  padding: 6rem 0 var(--gutter);
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  font-size: 1.3rem; line-height: 1.5;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.7fr 1.1fr 1.6fr; gap: var(--gutter); align-items: end; }
.footer-name { margin: 0 0 6rem; font-size: 3.4rem; line-height: 1; }
.site-footer .muted { color: var(--on-accent); margin: 0; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a:hover, .site-footer a:hover { opacity: 0.7; }

.newsletter {
  padding: 1.6rem;
  background: rgba(0, 0, 0, 0.14);
  border-radius: var(--r-md);
}
.newsletter .label { margin-bottom: 0.4rem; text-transform: uppercase; font-size: 1.1rem; }
.newsletter-title { margin: 0 0 2rem; font-size: 2.4rem; line-height: 1.1; }
.newsletter-row { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.newsletter-row input {
  flex: 1; min-width: 0; padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  border: 1px solid transparent; border-radius: var(--r-sm); outline: 0;
}
.newsletter-row input.has-error { border-color: #B5503B; }
.newsletter-row button {
  padding: 1rem 1.4rem; border: 0; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); cursor: pointer;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
  .footer-name { margin-bottom: 2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ==========================================================================
   Motion & experience layer
   ========================================================================== */

/* Headlines are hidden until split into lines, so they never flash */
.js [data-split] { visibility: hidden; }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-in { display: block; will-change: transform; }

/* Huge display type for title pages */
.display {
  display: block; margin: 0;
  font-size: 12rem; line-height: 0.92; font-weight: 400; letter-spacing: -0.03em;
}
@media (max-width: 767px) { .display { font-size: 5.6rem; } }

/* ---------- Curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 95;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
  background: var(--dark); color: var(--bg);
}
html:not(.js) .curtain, .no-curtain .curtain { display: none; }
.curtain-label { font-size: 6.4rem; line-height: 1; letter-spacing: -0.02em; }
@media (max-width: 767px) { .curtain-label { font-size: 4rem; } }

/* ---------- Header hides on scroll down ---------- */
.site-header { transition: transform 0.6s var(--ease), opacity 0.4s ease; }
.site-header.is-hidden { transform: translateY(calc(-100% - 3rem)); }

/* ---------- Image hover zoom (on the frame, not the img, so parallax keeps working) ---------- */
a .media, .feature-main .media { transition: transform 1.2s var(--ease); }
a:hover .media { transform: scale(0.985); }

/* ---------- Collage of three titles ---------- */
.collage {
  display: grid; grid-template-columns: 3fr 5fr 3fr; gap: var(--gutter);
  align-items: start;
}
.collage .collage-a { margin-top: 12rem; }
.collage .collage-c { margin-top: 24rem; }
.collage-hero { padding-bottom: 4rem; }
.collage-short { grid-template-columns: 7fr 4fr; }
.collage-short .collage-c { margin-top: 10rem; }
@media (max-width: 767px) {
  .collage { grid-template-columns: 1fr 1fr; }
  .collage .collage-b { grid-column: 1 / -1; grid-row: 1; }
  .collage .collage-a, .collage .collage-c { margin-top: 0; }
  .collage .collage-c { margin-top: 6rem; }
  .collage-short { grid-template-columns: 1fr; }
  .collage-short .collage-c { display: none; }
}

/* ---------- Banner image ---------- */
.media-banner { aspect-ratio: 16 / 7.5; border-radius: var(--r-lg); }
@media (max-width: 767px) { .media-banner { aspect-ratio: 4 / 5; } }

/* ---------- Title detail ---------- */
.title-hero { padding-bottom: 5rem; }
.title-hero .lead { margin-top: 3rem; }
.detail { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); padding-top: 10rem; }
.detail-sticky { position: sticky; top: 12rem; }
.facts { margin: 0 0 3rem; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; padding: 1.4rem 0; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.detail-main .big-text { margin-bottom: 8rem; }
.detail-img { width: 70%; margin-left: auto; }
@media (max-width: 767px) {
  .detail { grid-template-columns: 1fr; padding-top: 6rem; }
  .detail-sticky { position: static; }
  .detail-img { width: 100%; }
}

.next-title { padding-top: 16rem; }
.next-link { display: block; }
.next-link .display { margin: 1rem 0 4rem; transition: opacity 0.4s ease; }
.next-link:hover .display { opacity: 0.6; }

/* ---------- Hover list with following image ---------- */
.list-section { padding-top: 14rem; }
.list-heading { margin-bottom: 5rem; }
.title-list { border-top: 1px solid var(--line); }
.title-row {
  display: grid; grid-template-columns: 6rem 1fr auto auto; gap: 2.4rem; align-items: center;
  padding: 2.6rem 0; border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s ease;
}
.title-row-num { font-size: 1.2rem; color: var(--muted); }
.title-row-name { font-size: 4.8rem; line-height: 1; letter-spacing: -0.015em; }
.title-row-cat { font-size: 1.3rem; color: var(--muted); }
.title-row .plus { transform: rotate(0); }
.title-row.is-active { padding-left: 2rem; }
.title-row.is-active .plus { transform: rotate(90deg); }
.title-list:has(.is-active) .title-row:not(.is-active) { color: rgba(26, 26, 26, 0.3); }
.title-row-name { position: relative; z-index: 41; }  /* names always above the preview image */
@media (max-width: 767px) {
  .title-row { grid-template-columns: 3rem 1fr auto; gap: 1.2rem; }
  .title-row-name { font-size: 2.6rem; }
  .title-row-cat { display: none; }
}

.hover-image {
  position: fixed; z-index: 40; left: 0; top: 0;
  width: 24rem; aspect-ratio: 3 / 4;
  margin: -16rem 0 0 -12rem;
  box-shadow: 0 3rem 6rem -2rem rgba(26, 26, 26, 0.35);
  border-radius: var(--r-md); overflow: hidden;
  pointer-events: none; opacity: 0; transform: scale(0.9);
}
.hover-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Draggable rail ---------- */
.rail-section { padding-top: 2rem; }
.rail-head { margin-bottom: 0.4rem; }
.rail {
  display: flex; gap: 1.6rem;
  padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail-card { flex: 0 0 34rem; scroll-snap-align: start; display: flex; flex-direction: column; user-select: none; }
.rail-card .media { margin-bottom: 1.4rem; }
.rail-meta { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-size: 1.2rem; color: var(--muted); }
.rail-card .h3 { margin-bottom: 0.6rem; }
.rail-controls { display: flex; gap: 0.4rem; justify-content: flex-end; margin-top: 2.4rem; }
.rail-controls button {
  width: 4.4rem; height: 4.4rem; border: 0; border-radius: var(--r-sm);
  background: var(--pill); font-size: 1.6rem; cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease;
}
.rail-controls button:hover { background: #fff; }
.rail-controls button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 767px) { .rail-card { flex-basis: 72vw; } }

.title-card .rail-meta { margin-top: 0.2rem; }

/* ---------- Numbered pillars & steps ---------- */
.pillar-num { display: block; margin: 0 0 2.4rem; font-size: 1.2rem; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: 3rem 0 6rem; padding-top: 3rem; border-top: 1px solid rgba(247, 245, 241, 0.3); }
.block-accent .pillar-num, .block-accent .label { color: rgba(247, 245, 241, 0.75); }
.block-accent .body { color: rgba(247, 245, 241, 0.9); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }

.hero-btns { margin-top: 3.2rem; }


/* ==========================================================================
   Title logos
   Every logo sits in a box of fixed height and max width, so the very wide
   ones and the compact ones look balanced.
   ========================================================================== */
.title-logo { display: block; }
.title-logo img { display: block; height: 100%; width: 100%; object-fit: contain; object-position: left center; }
.title-logo-sm { height: 3.2rem; width: 16rem; }
.title-logo-md { height: 4.4rem; width: 20rem; }
.title-logo-lg { height: 6.4rem; width: 28rem; margin-bottom: 2.4rem; }
.title-logo-xl { height: 18rem; width: min(78rem, 100%); }
@media (max-width: 767px) {
  .title-logo-lg { height: 5.2rem; width: 22rem; }
  .title-logo-xl { height: 9rem; }
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.title-h1 { margin: 1.6rem 0 0; }
.next-logo { display: block; margin: 2.4rem 0 4rem; transition: opacity 0.4s ease; }
.next-link:hover .next-logo { opacity: 0.6; }

.title-card .title-logo, .rail-card .title-logo { margin: 0.4rem 0 1rem; }

/* Gallery caption with logo */
.gallery-caption { display: flex; flex-direction: column; gap: 1rem; }
.gallery-caption .title-logo-sm { height: 2.8rem; width: 14rem; }

/* ---------- Logo marquee ---------- */
.marquee {
  margin-top: 4rem; padding: 4rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; gap: 10rem; padding-right: 10rem; }
.marquee a { opacity: 0.8; transition: opacity 0.3s ease; }
.marquee a:hover { opacity: 1; }
.marquee .title-logo img { object-position: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Footer logos ---------- */
.footer-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3.2rem 4rem;
  padding-bottom: 5rem; margin-bottom: 5rem;
  border-bottom: 1px solid rgba(247, 245, 241, 0.3);
}
.footer-logos a { opacity: 0.85; transition: opacity 0.3s ease; }
.footer-logos a:hover { opacity: 1; }
.footer-logos .title-logo-sm { width: 13rem; height: 2.8rem; }
.footer-logos img { object-position: center; }
@media (max-width: 767px) { .footer-logos { justify-content: flex-start; } }

/* Optical balance: heavy logos shrink a little, light ones grow, so they all feel the same size.
   Tweak these numbers if one logo looks too big or small. */
.title-logo img { transform: scale(var(--logo-scale, 1)); transform-origin: left center; }
.marquee .title-logo img, .footer-logos .title-logo img, .intro-frame-logo { transform-origin: center; }
.logo-elle-man-arabia { --logo-scale: 1; }
.logo-elle-arabia { --logo-scale: 1.08; }
.logo-elle-decoration-arabia { --logo-scale: 1.12; }
.logo-elle-gourmet-arabia { --logo-scale: 1.05; }

/* Gallery: old caption leaves before the new one arrives */
.gallery-caption { transition: opacity 0.35s ease, transform 0.6s var(--ease); }
.gallery-slide:not(.is-on) .gallery-caption { opacity: 0; transform: translateY(0.8rem); }
.gallery-slide.is-on .gallery-caption { transition-delay: 0.45s; }

/* ---------- Recent covers row (title pages) ---------- */
.covers-section { padding-top: 14rem; }
.covers-row { display: flex; gap: var(--gutter); align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.covers-row::-webkit-scrollbar { display: none; }
.cover { flex: 0 0 auto; margin: 0; height: 52rem; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 2.4rem 4.8rem -2.4rem rgba(26, 26, 26, 0.35); }
.cover img { height: 100%; width: auto; display: block; }
.cover:nth-child(2) { height: 46rem; }
.cover:nth-child(3) { height: 40rem; }
@media (max-width: 767px) { .cover, .cover:nth-child(2), .cover:nth-child(3) { height: 40rem; } }

/* "Coming soon" tag */
.badge {
  display: inline-block; vertical-align: middle;
  margin-left: 0.6rem; padding: 0.35rem 0.7rem;
  border: 1px solid currentColor; border-radius: 10rem;
  font-size: 1rem; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; opacity: 0.75;
}
.title-row-name .badge { font-size: 1.1rem; margin-left: 1.2rem; transform: translateY(-0.4em); }

/* Keyboard users: a clear outline on whatever is focused */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-sm); }
.block-accent :focus-visible, .contact-band :focus-visible, .site-footer :focus-visible, .curtain :focus-visible { outline-color: var(--on-accent); }
.contact-form :focus-visible { outline: none; }  /* fields show focus with their border */


/* ==========================================================================
   Phone fixes
   ========================================================================== */
html, body { overflow-x: clip; }          /* never scroll sideways */
.gallery-slide picture { display: block; width: 100%; height: 100%; }
.gallery-slide picture img { width: 100%; height: 100%; object-fit: cover; }

/* Huge logos: size the box instead of scaling the image, so they never poke past the edge */
.title-logo-xl img { transform: none; }

@media (max-width: 767px) {
  /* Readable small text */
  .label, .caption, .rail-meta, .title-row-num, .pillar-num, .form-note,
  .overlay-card, .gallery-caption, .tab, .drop-item small { font-size: 1.3rem; }
  .field span { font-size: 1.3rem; }
  .badge, .title-row-name .badge { font-size: 1.2rem; }
  .overlay-text .label, .newsletter .label { font-size: 1.2rem; }
  .body { font-size: 1.6rem; }

  /* Wide banners keep their full shape on phones (no awkward crop of the covers) */
  .media-banner { aspect-ratio: 16 / 10; }

  /* Footer: one clear column, comfortable tap targets */
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 3.2rem; }
  .newsletter { min-width: 0; }
  .footer-name { font-size: 3rem; margin-bottom: 1.2rem; }
  .site-footer { font-size: 1.5rem; }
  .footer-links a, .site-footer address a, .footer-grid > div > a { display: inline-block; padding: 0.7rem 0; }
  .footer-links { gap: 0; }
  .contact-band .body a { display: inline-block; padding: 0.6rem 0; }

  /* Gallery caption sits above the tabs and stays short */
  .gallery-caption { bottom: 7.2rem; }
}
@media (max-width: 767px) {
  .gallery-caption { gap: 0; padding: 1rem 1.2rem; }
  .gallery-caption > span:last-child { display: none; }   /* logo only on phones, so the cover stays visible */
}


/* ==========================================================================
   Legal pages (Vivium-style three columns)
   ========================================================================== */
.legal {
  display: grid; grid-template-columns: 3fr 3fr 6fr; gap: var(--gutter);
  padding-top: 14rem; padding-bottom: 12rem;
}
.legal-sticky { position: sticky; top: 10rem; }
.legal-title { margin: 0 0 1.2rem; font-size: 2.4rem; font-weight: 400; line-height: 1.1; }
.legal-updated { margin: 0 0 3.2rem; font-size: 1.3rem; color: var(--muted); }
.legal-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.legal-nav a, .legal-nav .link-button { font-size: 1.5rem; color: var(--muted); padding: 0.4rem 0; transition: color 0.2s ease; }
.legal-nav a:hover, .legal-nav .link-button:hover, .legal-nav a[aria-current="page"] { color: var(--ink); }
#legal-current-title { font-size: 2.4rem; line-height: 1.1; display: block; transition: opacity 0.25s ease; }
.legal-body { font-size: 2rem; line-height: 1.4; max-width: 64ch; }
.legal-section { padding-bottom: 5rem; scroll-margin-top: 10rem; }
.legal-section h2 { margin: 0 0 1.6rem; font-size: 1.4rem; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.legal-section p { margin: 0 0 1.4rem; }
.legal-section ul { margin: 0 0 1.4rem; padding-left: 2rem; }
.legal-section li { margin-bottom: 0.6rem; }
.legal-section a, .link-button.inline { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: rgba(26,26,26,0.35); }
.legal-section strong { font-weight: 500; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.6rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 1.5rem; line-height: 1.35; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 400; color: var(--muted); font-size: 1.3rem; }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; padding-top: 11rem; }
  .legal-current { display: none; }
  .legal-sticky { position: static; }
  .legal-body { font-size: 1.7rem; }
  .legal-section h2 { font-size: 1.4rem; }
}

/* Text-style button (Cookie preferences) */
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.link-button:hover { opacity: 0.7; }
.legal-nav .link-button:hover { opacity: 1; }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: 1.6rem; top: -10rem; z-index: 200; padding: 1rem 1.4rem; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); }
.skip-link:focus { top: 1.6rem; }

/* Honeypot field: hidden from people */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Footer: address block + legal column */
.site-footer address { font-style: normal; }
.site-footer .link-button { color: inherit; font-size: inherit; line-height: inherit; }
.newsletter .form-note a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Consent checkboxes (contact form) ---------- */
.consent { display: flex; align-items: flex-start; gap: 1.2rem; margin-top: 0.8rem; font-size: 1.3rem; line-height: 1.45; color: rgba(244, 242, 238, 0.75); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-pill {
  flex: 0 0 auto; padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(244, 242, 238, 0.25);
  color: var(--bg); font-size: 1.2rem; line-height: 1; transition: background 0.2s ease, color 0.2s ease;
}
.consent-pill::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.7rem; border-radius: 50%; border: 1px solid currentColor; vertical-align: -0.05rem; }
.consent input:checked + .consent-pill { background: var(--bg); color: var(--ink); }
.consent input:checked + .consent-pill::before { background: currentColor; }
.consent input:focus-visible + .consent-pill { outline: 2px solid var(--bg); outline-offset: 2px; }
.consent a { color: var(--bg); text-decoration: underline; text-underline-offset: 0.2em; }
.consent.has-error .consent-pill { border-color: #D98C7A; }
@media (max-width: 767px) { .consent { font-size: 1.4rem; } }

/* ==========================================================================
   Cookie preferences panel (bottom-right, like Vivium)
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: 120; right: var(--gutter); bottom: var(--gutter);
  width: min(52rem, calc(100vw - 2 * var(--gutter)));
  padding: 2rem;
  background: var(--dark); color: var(--bg);
  border-radius: var(--r-md);
  box-shadow: 0 3rem 8rem -2rem rgba(0, 0, 0, 0.45);
  opacity: 0; transform: translateY(1.6rem);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.cookie-banner.is-open { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0 0 1.6rem; font-size: 1.3rem; line-height: 1.5; color: rgba(244, 242, 238, 0.85); }
.cookie-text a { color: var(--bg); text-decoration: underline; text-underline-offset: 0.2em; }
.cookie-options { display: grid; gap: 1rem; margin-bottom: 1.8rem; }
.cookie-toggle { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; cursor: pointer; font-size: 1.25rem; line-height: 1.4; color: rgba(244, 242, 238, 0.7); }
.cookie-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie-cat strong { display: block; color: var(--bg); font-weight: 500; font-size: 1.35rem; }
.switch { position: relative; width: 3.6rem; height: 2rem; border-radius: 2rem; background: rgba(255, 255, 255, 0.18); transition: background 0.25s ease; margin-top: 0.1rem; }
.switch::after { content: ""; position: absolute; top: 0.25rem; left: 0.25rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bg); transition: transform 0.3s var(--ease); }
.cookie-toggle input:checked + .switch { background: var(--accent); }
.cookie-toggle input:checked + .switch::after { transform: translateX(1.6rem); }
.cookie-toggle input:focus-visible + .switch { outline: 2px solid var(--bg); outline-offset: 2px; }
.cookie-toggle.is-locked { cursor: default; }
.cookie-toggle.is-locked .switch { opacity: 0.6; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cookie-actions button {
  padding: 1.1rem 0.8rem; border: 1px solid rgba(244, 242, 238, 0.25); border-radius: var(--r-sm);
  background: transparent; color: var(--bg); font-size: 1.2rem; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cookie-actions button:hover { background: rgba(255, 255, 255, 0.1); }
.cookie-actions button[data-consent="accept"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
@media (max-width: 767px) {
  .cookie-banner { left: 1.2rem; right: 1.2rem; bottom: 1.2rem; width: auto; padding: 1.6rem; max-height: 80vh; overflow-y: auto; }
  .cookie-actions { grid-template-columns: 1fr; }
  .cookie-actions button { font-size: 1.4rem; padding: 1.3rem; }
  .cookie-text, .cookie-toggle { font-size: 1.35rem; }
}


/* ==========================================================================
   Round 3 improvements
   ========================================================================== */
/* Footer links: bigger tap targets */
.footer-links a, .footer-links .link-button { padding: 0.35rem 0; min-height: 2.4rem; display: inline-block; }
.footer-links { align-items: flex-start; }

/* Phones: full wordmark in the header, like Vivium's logo */
@media (max-width: 900px) {
  .logo { height: 4.4rem; }
  .logo-word { max-width: 22rem; opacity: 1; }
  .menu-btn { color: var(--ink); min-height: 4.4rem; padding: 0 1.6rem; }
}

/* Phones: menu as a floating card of pill buttons (Vivium style) */
.mobile-menu { padding: 8rem 1.2rem 2rem; background: rgba(244, 242, 238, 0.55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); font-size: 1.8rem; display: block; }
.mobile-card { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.6rem; border-radius: var(--r-md); background: rgba(232, 228, 222, 0.75); }
.m-pill { display: block; text-align: center; padding: 1.4rem; border-radius: var(--r-sm); background: #fff; font-size: 1.8rem; line-height: 1.1; }
.m-group { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem; border-radius: var(--r-sm); background: #fff; }
.m-pill-title { padding: 1rem; }
.m-sub { background: var(--bg-soft); font-size: 1.6rem; padding: 1.2rem; }
.m-pill-dark { background: var(--ink); color: var(--bg); }
.m-sub .badge { font-size: 1rem; }

/* ---------- News ---------- */
.news { padding-bottom: 12rem; }
.tabs-inline { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.4rem; margin-bottom: 4rem; border-radius: var(--r-sm); background: var(--pill); }
.filter { padding: 1rem 1.4rem; border: 0; border-radius: 0.3rem; background: transparent; font-size: 1.3rem; cursor: pointer; transition: background 0.25s ease; }
.filter:hover { background: rgba(255, 255, 255, 0.6); }
.filter.is-on { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5rem var(--gutter); }
.news-item { display: flex; flex-direction: column; }
.news-item[hidden] { display: none; }
.media-news { aspect-ratio: 4 / 3; margin-bottom: 1.6rem; }
.news-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-size: 1.2rem; color: var(--muted); }
.news-title { font-size: 2rem; line-height: 1.2; margin-bottom: 1.4rem; }
.news-source { margin-top: auto; font-size: 1.3rem; color: var(--muted); transition: color 0.2s ease; }
.news-item:hover .news-source { color: var(--ink); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .filter { font-size: 1.4rem; } }

/* ---------- Leadership ---------- */
.team { padding-top: 12rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 3rem; }
.team-photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 1.4rem; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo span { font-size: 6rem; color: var(--muted); letter-spacing: -0.02em; }
.team-name { margin: 0 0 0.4rem; font-size: 2rem; }
.team-role { margin: 0; font-size: 1.4rem; color: var(--muted); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.newsletter .label, .newsletter .form-note { color: var(--on-accent); opacity: 1; }
@media (max-width: 767px) {
  .footer-links a, .footer-links .link-button { min-height: 4rem; padding: 0.9rem 0; }
  .m-sub .badge { font-size: 1.2rem; }
}


/* ---------- CEO note (About page) ---------- */
.ceo { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); padding-top: 12rem; align-items: start; }
.ceo-photo-col { position: sticky; top: 10rem; }
.ceo-photo { aspect-ratio: 4 / 5; border-radius: var(--r-md); display: grid; place-items: center; }
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo-initials { font-size: 10rem; color: var(--muted); letter-spacing: -0.03em; }
.ceo-text { padding-top: 0.4rem; max-width: 64rem; }
.ceo-quote { margin: 0 0 4rem; font-size: 3.4rem; line-height: 1.12; letter-spacing: -0.005em; }
.ceo-body { max-width: 58ch; margin-bottom: 2rem; }
.ceo-sign { margin: 4rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.4rem; }
.ceo-name { font-size: 2rem; }
.ceo-role { font-size: 1.4rem; color: var(--muted); }
@media (max-width: 767px) {
  .ceo { grid-template-columns: 1fr; padding-top: 8rem; }
  .ceo-photo-col { position: static; }
  .ceo-quote { font-size: 2.6rem; }
}


/* ==========================================================================
   Editorial layer: serif headlines, italic accents, grain, new home layouts
   ========================================================================== */

/* Serif for the big moments; sans stays for labels, body and buttons */
.h1, .h2, .big-text, .display, .ceo-quote, .curtain-label, .footer-name,
.title-row-name, .intro-logo span, .covers-statement, .soon-title, .expand-title,
.since-lead, .since-number, .newsletter-title, .lead {
  font-family: var(--serif); font-weight: var(--heading-weight); letter-spacing: -0.025em;
}
.h1 { font-size: 5.6rem; line-height: 1; max-width: 20ch; }
.h2 { font-size: 3.8rem; line-height: 1.04; max-width: 22ch; }
.big-text { font-size: 3.6rem; line-height: 1.08; max-width: 28ch; }
.lead { font-size: 2.4rem; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.ceo-quote { font-size: 3.6rem; line-height: 1.06; }
.title-row-name { font-size: 4.8rem; }
.footer-name { font-size: 3.6rem; }
.newsletter-title { font-size: 2.6rem; line-height: 1.04; }
.curtain-label { font-size: 6.4rem; }
em { font-style: italic; }
.h1 em, .h2 em, .big-text em, .lead em, .since-lead em, .soon-title em { font-family: var(--serif); font-style: italic; }
@media (max-width: 767px) {
  .h1 { font-size: 3.8rem; }
  .h2, .big-text { font-size: 2.8rem; }
  .lead { font-size: 2rem; }
  .ceo-quote { font-size: 2.8rem; }
  .title-row-name { font-size: 3rem; }
  .curtain-label { font-size: 4.4rem; }
}

/* Film grain: a faint printed-paper texture over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07; mix-blend-mode: multiply;
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: grain 1.2s steps(6) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Hero */
.hero-meta { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; font-size: 1.3rem; color: var(--muted); max-width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.hero .h1 { margin-bottom: 5.6rem; }
.hero-title { max-width: 16ch; }

/* Since 2012 */
.since { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; padding-top: 14rem; }
.since-number { margin: 0; font-size: 22rem; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.since-lead { margin: 0 0 4rem; font-size: 3.4rem; line-height: 1.08; max-width: 24ch; }
.since-facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.since-facts li { display: grid; grid-template-columns: 12rem 1fr; padding: 1.6rem 0; border-bottom: 1px solid var(--line); font-size: 1.6rem; }
.since-facts span { color: var(--muted); font-size: 1.3rem; }
@media (max-width: 767px) {
  .since { grid-template-columns: 1fr; padding-top: 9rem; }
  .since-number { font-size: 14rem; }
  .since-lead { font-size: 3rem; }
  .since-facts li { grid-template-columns: 9rem 1fr; font-size: 1.5rem; }
}

/* Layout 2: full-width expanding image */
.feature-full { padding-top: 12rem; }
.feature-full-head { margin-bottom: 2.4rem; }
.expand { display: block; position: relative; height: 92vh; min-height: 52rem; color: #fff; }
.expand-media { position: absolute; inset: 0; overflow: hidden; clip-path: inset(6% 9% 6% 9% round 12px); }
.expand-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.expand-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.72) 100%), linear-gradient(90deg, rgba(0,0,0,0.45), rgba(0,0,0,0) 60%); }
.expand-overlay { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 8%; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem; }
.expand-title { margin: 0; font-size: 4.4rem; line-height: 1.02; max-width: 18ch; text-shadow: 0 0.4rem 3rem rgba(0,0,0,0.25); }
.btn-glass { background: rgba(255, 255, 255, 0.18); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.expand:hover .btn-glass { background: rgba(255, 255, 255, 0.3); }
.btn-glass .plus { background: #fff; color: var(--ink); }
.expand:hover .plus { transform: rotate(90deg); }
.feature-full-copy { padding-top: 3.2rem; display: flex; justify-content: flex-end; }
.feature-full-copy .body { max-width: 52ch; }
html:not(.js) .expand-media { clip-path: none; }
html:not(.js) .expand-media img { transform: none; }
@media (max-width: 767px) {
  .expand { height: 78vh; min-height: 44rem; }
  .expand-title { font-size: 3.4rem; }
  .feature-full-copy { justify-content: flex-start; }
}

/* Layout 3: statement + covers spread */
.feature-covers { padding-top: 14rem; }
.covers-statement { margin: 0 0 6rem; font-size: 5.6rem; line-height: 1; max-width: 20ch; letter-spacing: -0.03em; }
.covers-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 3fr)) minmax(0, 4fr); gap: var(--gutter); align-items: end; }
.spread-cover { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 3rem 6rem -3rem rgba(26, 26, 26, 0.45); }
.spread-cover img { width: 100%; height: 100%; object-fit: cover; }
.spread-cover:nth-child(1) { transform: rotate(-2deg); }
.spread-cover:nth-child(2) { transform: rotate(1.5deg) translateY(-4rem); }
.spread-cover:nth-child(3) { display: none; }
.spread-copy { padding-left: 2rem; }
@media (max-width: 767px) {
  .feature-covers { padding-top: 9rem; }
  .covers-statement { font-size: 4rem; margin-bottom: 4rem; }
  .covers-spread { grid-template-columns: 1fr 1fr; }
  .spread-cover:nth-child(2) { transform: rotate(1.5deg) translateY(-2rem); }
  .spread-copy { grid-column: 1 / -1; padding: 3rem 0 0; }
}

/* Layout 4: coming soon */
.feature-soon { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; padding-top: 14rem; }
.soon-copy { padding-left: 4rem; }
.soon-title { margin: 2.4rem 0 2.4rem; font-size: 8rem; line-height: 0.92; letter-spacing: -0.04em; }
@media (max-width: 767px) {
  .feature-soon { grid-template-columns: 1fr; padding-top: 9rem; }
  .soon-copy { padding-left: 0; }
  .soon-title { font-size: 5.6rem; }
}
@media (max-width: 900px) {
  .legal-nav a, .legal-nav .link-button { padding: 1rem 0; min-height: 4rem; }
}

/* Second leadership note: photo on the right */
.ceo.is-flipped { grid-template-columns: 7fr 5fr; }
.ceo.is-flipped .ceo-photo-col { order: 2; }
.ceo + .ceo { padding-top: 14rem; }
@media (max-width: 767px) {
  .ceo.is-flipped { grid-template-columns: 1fr; }
  .ceo.is-flipped .ceo-photo-col { order: 0; }
  .ceo + .ceo { padding-top: 9rem; }
}


/* ==========================================================================
   Refinement: calmer, more elegant lists and cards (Vivium spirit)
   ========================================================================== */

/* ---------- Titles list ---------- */
.title-list { border-top: 1px solid var(--line); }
.title-row {
  position: relative; isolation: isolate;
  grid-template-columns: 7rem 1fr auto 4.8rem; gap: 2.4rem;
  padding: 3rem 1.6rem; margin: 0 -1.6rem;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s ease;
}
.title-row::before {
  content: ""; position: absolute; inset: 0.6rem 0; z-index: -1;
  background: var(--bg-soft); border-radius: var(--r-md);
  transform: scaleY(0.6); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.35s ease;
}
.title-row.is-active::before { transform: none; opacity: 1; }
.title-row.is-active { padding-left: 2.8rem; }
.title-row-num {
  justify-self: start; padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 10rem;
  font-size: 1.2rem; line-height: 1; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--muted);
}
.title-row-name { font-weight: 400; font-size: 4rem; line-height: 1.05; letter-spacing: -0.025em; }
.title-row-cat { font-size: 1.4rem; color: var(--muted); }
.row-arrow {
  display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.6s var(--ease);
}
.title-row.is-active .row-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }
.title-list:has(.is-active) .title-row:not(.is-active) { color: rgba(26, 26, 26, 0.35); }
@media (max-width: 767px) {
  .title-row { grid-template-columns: auto 1fr 3.6rem; gap: 1.4rem; padding: 2.2rem 1.2rem; margin: 0 -1.2rem; }
  .title-row-name { font-size: 2.4rem; }
  .title-row-name .badge { display: none; }
  .title-row-cat { display: none; }
  .row-arrow { width: 3.6rem; height: 3.6rem; }
}

/* ---------- "What we do" cards + Advertise steps ---------- */
.pillar-grid { border-top: 0; padding-top: 0; gap: 1.2rem; }
.pillar-grid > div, .steps > div {
  display: flex; flex-direction: column; min-height: 34rem;
  padding: 2.8rem; border-radius: var(--r-md);
  background: var(--bg-soft);
  transition: background 0.4s ease, transform 0.6s var(--ease);
}
.pillar-grid > div:hover { background: #E3DED7; }
.pillar-grid .pillar-num, .steps .pillar-num {
  margin: 0 0 auto; font-size: 7.2rem; line-height: 1; font-weight: 300;
  letter-spacing: -0.04em; color: var(--ink); opacity: 0.85;
}
.pillar-grid .h3, .steps .h3 { margin: 3.2rem 0 1rem; font-size: 2.6rem; font-weight: 500; letter-spacing: -0.02em; }
.pillar-grid .body, .steps .body { margin: 0; font-size: 1.6rem; color: var(--muted); max-width: 34ch; }
.pillars > .label { margin-bottom: 2.4rem; }

.steps { border-top: 0; padding-top: 0; gap: 1.2rem; }
.steps > div { background: rgba(255, 255, 255, 0.08); min-height: 28rem; }
.steps .pillar-num { color: var(--on-accent); opacity: 0.9; }
.steps .body { color: rgba(247, 245, 241, 0.85); }
@media (max-width: 767px) {
  .pillar-grid > div, .steps > div { min-height: 22rem; padding: 2.2rem; }
  .pillar-grid .pillar-num, .steps .pillar-num { font-size: 5.6rem; }
}


/* ---------- Section opener (big light number + category pill) ---------- */
.section-index {
  display: flex; align-items: flex-end; gap: 1.6rem; flex-wrap: wrap;
  padding-bottom: 2rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line);
}
.si-num { font-size: 9.6rem; line-height: 0.8; font-weight: 300; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.si-num sup { font-size: 1.6rem; letter-spacing: 0; vertical-align: top; margin-left: 0.6rem; color: var(--muted); font-weight: 400; position: relative; top: 0.4rem; }
.si-cat { padding: 0.8rem 1.4rem; border-radius: 10rem; background: var(--bg-soft); font-size: 1.4rem; line-height: 1; margin-bottom: 0.4rem; }
.section-index .badge { margin: 0 0 0.6rem; }
.si-name { margin-left: auto; margin-bottom: 0.4rem; font-size: 1.4rem; color: var(--muted); }
.feature-head .section-index { margin-bottom: 3.2rem; }
.feature-full-head .section-index { margin-bottom: 0; }
@media (max-width: 767px) {
  .si-num { font-size: 6.4rem; }
  .si-name { display: none; }
  .section-index { gap: 1.2rem; margin-bottom: 2.8rem; }
}

/* ---------- Split layout: the wide image fills the full height of the side column ---------- */
.feature-grid { align-items: stretch; }
.feature-main { display: flex; flex-direction: column; }
.feature-main > a { flex: 1; display: flex; }
.feature-main .media-wide { aspect-ratio: auto; flex: 1; min-height: 48rem; width: 100%; }
@media (max-width: 767px) { .feature-main .media-wide { aspect-ratio: 4 / 5; min-height: 0; } }


/* ---------- Section opener v2: no numbers, quieter ---------- */
.section-index { align-items: center; padding-bottom: 1.6rem; margin-bottom: 3.6rem; }
.si-cat { margin-bottom: 0; }
.section-index .badge { margin: 0; }
.si-name { margin-bottom: 0; font-size: 1.6rem; color: var(--text); }
@media (max-width: 767px) { .si-name { display: inline; font-size: 1.4rem; } }
.title-row { grid-template-columns: minmax(0, 1fr) auto 4.8rem; }
@media (max-width: 767px) { .title-row { grid-template-columns: minmax(0, 1fr) 3.6rem; } }


/* ---------- Header wordmark (until the real logo arrives) ---------- */
.logo {
  background: var(--pill); color: var(--ink);
  padding: 0 1.8rem; height: 4.4rem;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.logo-word {
  max-width: none; opacity: 1; font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em;
}
.logo-light { font-weight: 300; }
.logo:hover .logo-word { max-width: none; }
.logo-mark { display: none; }

/* Section opener stays neutral; title page detail sits in normal flow */
.detail-room .detail { padding-top: 10rem; }
.title-hero .section-index { border-bottom: 0; padding-bottom: 0; margin-bottom: 2.4rem; }
@media (min-width: 1101px) { .footer-grid { grid-template-columns: 1.6fr 1.2fr 1fr 1.2fr; } }

/* About: "Our name" block */
.name-block { padding-top: 14rem; }
.name-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: end; margin-top: 2.4rem; }
.name-grid .body { max-width: 46rem; color: var(--muted); }
@media (max-width: 767px) { .name-block { padding-top: 8rem; } .name-grid { grid-template-columns: 1fr; } }
/* Cards without numbers: shorter, text sits at the top like Vivium's values */
.pillar-grid > div { min-height: 0; justify-content: flex-start; padding-bottom: 4rem; }
.pillar-grid > div .h3 { margin-top: 0; margin-bottom: 1.2rem; }
@media (min-width: 768px) { .pillar-grid:has(> div:nth-child(4)) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) and (max-width: 1100px) { .pillar-grid:has(> div:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
/* Official vector logos (Nov 2026): no per-logo size correction needed */
.logo-elle-arabia, .logo-elle-man-arabia, .logo-elle-gourmet-arabia { --logo-scale: 1; }
/* ELLE Arabia split: show the whole cover spread instead of cropping it */
.feature-main .media-wide { background: #E4DED6; }
.feature-main .media-wide img { object-fit: contain; }
/* Only banner images drift, so only they need the extra height. Everything else
   (the covers in particular) shows edge to edge with nothing cut off. */
.media[data-parallax]:not(.media-banner) img { position: static; top: auto; height: 100%; }
/* "Our Titles" menu: the preview keeps the cover's 3:4 shape, so nothing is cut off */
.drop-images { aspect-ratio: 3 / 4; align-self: start; }
.drop-list { justify-content: center; }
.overlay-card img { width: 6rem; height: 8rem; }
@media (max-width: 767px) { .gallery-stage { aspect-ratio: 3 / 4; } }

/* ---------- Patrimony Media logo ---------- */
.logo { gap: 1.2rem; padding: 0 1.6rem; }
.logo-mark-img { height: 2.8rem; width: auto; display: block; }
.logo-wordmark { height: 1.35rem; width: auto; display: block; }
.intro-logo img { width: clamp(22rem, 28vw, 42rem); height: auto; filter: drop-shadow(0 0.4rem 2.4rem rgba(0,0,0,0.25)); }
.footer-name img { width: 26rem; max-width: 100%; height: auto; display: block; }
@media (max-width: 767px) {
  .logo-wordmark { height: 1.1rem; }
  .logo-mark-img { height: 2.4rem; }
  .footer-name img { width: 20rem; }
}

/* ---------- Mobile polish (Nov 2026) ---------- */
/* Keep the person in frame wherever a landscape photo is cropped narrower */
img[src*="elle-man-arabia-wide"], img[srcset*="elle-man-arabia-wide"] { object-position: 74% 50%; }
img[src*="elle-arabia-wide"], img[srcset*="elle-arabia-wide"] { object-position: 68% 40%; }
@media (max-width: 767px) {
  .about-block .big-text, .block-accent .big-text { font-size: 2.2rem; line-height: 1.3; letter-spacing: -0.01em; }
  /* ELLE Decoration: the text already shows the logo and "Coming soon", so skip the placeholder card */
  .feature-soon .soon-media { display: none; }
  .feature-soon { padding-top: 7rem; }
}

/* ---------- Long reading text ----------
   Inter Tight is built for headlines; for paragraphs that run on (the founder and
   publisher letters, the legal pages) we use its sister face Inter, which is wider
   and made for reading. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
.ceo-body, .legal-body p, .legal-body li {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.7rem; line-height: 1.7; letter-spacing: -0.005em; color: #2b2926;
}
.ceo-body { max-width: 62ch; margin-bottom: 2.2rem; }
@media (max-width: 767px) {
  .ceo-body, .legal-body p, .legal-body li { font-size: 1.6rem; line-height: 1.65; }
  .ceo-quote { font-size: 2.8rem; line-height: 1.15; }
}
