/* ============================================================
   Mar y Mas — Website Shared Styles
   Tokens · Type · Layout · Components · Animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --cream:      #FAF6F0;
  --cream-deep: #F1EADE;
  --navy:       #1B3A4B;
  --terracotta: #B85C3A;
  --olive:      #6B6A3E;
  --stone:      #C7B9A3;
  --rule:  rgba(27, 58, 75, 0.18);
  --muted: rgba(27, 58, 75, 0.55);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "EB Garamond", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --max-w:   1440px;
  --gutter:  80px;
  --nav-h:   80px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
body:has(.marmas-root) { margin: 0; padding: 0; }
html:has(.marmas-root) { background: var(--cream); }
.marmas-root {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.marmas-root :where(img, svg, video) { max-width: 100%; display: block; }
.marmas-root a { color: inherit; text-decoration: none; }
.marmas-root button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* ============== Scroll horizon line (disabled) ============== */
.horizon-scroll {
  display: none;
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 0 var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), height 300ms var(--ease);
}
.nav.scrolled {
  height: 60px;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--rule);
}
.nav .brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
}
.nav .brand .y {
  font-style: italic;
  font-weight: 500;
  text-transform: lowercase;
  font-size: 0.78em;
  letter-spacing: 0;
  padding: 0 0.34em 0 0;
  color: var(--terracotta);
  position: relative;
  top: 0.04em;
}

/* Inline numbered nav links — magazine masthead style */
.nav .nav-links {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav .nav-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--navy);
  padding: 6px 0;
  position: relative;
  transition: color 200ms;
}
.nav .nav-links a .n {
  color: var(--terracotta);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  position: relative;
  top: -0.5em;
}
.nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}
.nav .nav-links a:hover { color: var(--terracotta); }
.nav .nav-links a:hover::after { transform: scaleX(1); }
.nav .nav-links a.active { color: var(--terracotta); }
.nav .nav-links a.active::after { transform: scaleX(1); }

.nav .nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav .clock {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}
.nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav .lang button { padding: 4px 6px; color: var(--muted); }
.nav .lang button.active { color: var(--terracotta); }
.nav .lang .sep { color: var(--rule); }

/* Hamburger — visible only on narrow screens; opens the existing overlay */
.nav .menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0;
  background: transparent;
}
.nav .menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 300ms var(--ease), opacity 200ms;
}
.nav .menu-btn:hover { background: var(--navy); border-color: var(--navy); }
.nav .menu-btn:hover span { background: var(--cream); }

/* ============== INDEX overlay (full-screen menu) ============== */
.index-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: var(--cream);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
  display: grid;
  grid-template-rows: var(--nav-h) 1fr auto;
  padding: 0;
}
.index-overlay.open { opacity: 1; pointer-events: auto; }
.index-overlay .ov-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(250, 246, 240, 0.15);
}
.index-overlay .ov-nav .brand { color: var(--cream); }
.index-overlay .ov-nav .close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(250,246,240,0.25);
  border-radius: 999px;
}
.index-overlay .ov-body {
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: center;
}
.index-overlay .ov-list { display: flex; flex-direction: column; gap: 4px; }
.index-overlay .ov-list a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 88px;
  line-height: 1.05;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
  transition: color 200ms;
  text-decoration: none;
}
.index-overlay .ov-list a .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--terracotta);
  position: relative;
  top: -1.4em;
}
.index-overlay .ov-list a:hover { color: var(--terracotta); }
.index-overlay .ov-list a.active { color: var(--terracotta); }
.index-overlay .ov-list a em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.index-overlay .ov-aside {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(250, 246, 240, 0.7);
}
.index-overlay .ov-aside h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin: 0 0 16px;
}
.index-overlay .ov-aside p { margin: 0 0 16px; }
.index-overlay .ov-aside a { color: var(--cream); border-bottom: 1px solid rgba(250,246,240,0.4); }
.index-overlay .ov-foot {
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.55);
}

/* ============== Homepage hero ============== */
.home-hero { isolation: isolate; }

/* ============== Reveal-on-scroll system ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--rev-delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Line-by-line reveal (apply to a block; wrap lines in spans .line) */
.lines .line {
  display: block;
  overflow: hidden;
  /* Give the clip box room for descenders (p, g, y) without changing layout */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.lines .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--rev-delay, 0ms) + (var(--i, 0) * 110ms));
}
.lines.in .line > span { transform: translateY(0); }

/* Image mask reveal */
.mask-img {
  position: relative;
  overflow: hidden;
}
.mask-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream-deep);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1200ms var(--ease);
  transition-delay: var(--rev-delay, 0ms);
}
.mask-img.in::after { transform: scaleX(0); }

/* ============== Section / typography ============== */
.marmas-root section { padding: 120px var(--gutter); position: relative; }
.marmas-root section.tight { padding: 80px var(--gutter); }
.marmas-root section.huge { padding: 200px var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--terracotta);
}

.marmas-root :where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
  line-height: 1;
}
.marmas-root h1 { font-size: 124px; line-height: 0.95; }
.marmas-root h2 { font-size: 88px; line-height: 0.98; }
.marmas-root h3 { font-size: 56px; line-height: 1; }
.marmas-root h4 { font-size: 36px; line-height: 1.1; }
.marmas-root :where(em, .italic) { font-style: italic; color: var(--terracotta); font-weight: 400; }
.marmas-root p { margin: 0 0 20px; max-width: 60ch; }
.marmas-root p.lede {
  font-style: italic;
  font-size: 28px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28ch;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* Section header: number + title + rule */
.sec-head {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 40px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 80px;
}
.sec-head .sec-num {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 500;
}
.sec-head .sec-aside {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 28px;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  transition: background 200ms, color 200ms, transform 300ms var(--ease);
  cursor: pointer;
}
.btn .arrow { transition: transform 300ms var(--ease); }
.btn:hover { background: var(--navy); color: var(--cream); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.primary { background: var(--navy); color: var(--cream); }
.btn.primary:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn.ghost { border-color: var(--rule); }
.btn.terra { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.btn.terra:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }

/* ============== The horizon glyph ============== */
.glyph-svg path { stroke: var(--navy); }
.glyph-svg line { stroke: var(--terracotta); }
.glyph-svg.on-dark path { stroke: var(--cream); }

/* ============== Marquee ============== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 64px;
  color: var(--navy);
}
.marquee-track em { font-style: italic; color: var(--terracotta); font-weight: 400; }
.marquee-track .dot { width: 10px; height: 10px; background: var(--terracotta); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== Side-gutter vertical tag ============== */
.gutter-tag {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: left center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.gutter-tag.right { left: auto; right: 24px; transform: rotate(90deg) translateX(-50%); transform-origin: right center; }

/* ============== Card / case study ============== */
.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.case-card .case-img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-deep);
}
.case-card .case-img image-slot { width: 100%; height: 100%; }
.case-card .case-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card .case-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  margin-top: 6px;
  letter-spacing: -0.005em;
  transition: color 200ms;
}
.case-card .case-desc {
  font-size: 18px;
  color: var(--muted);
  margin-top: 8px;
  max-width: 40ch;
}
.case-card:hover .case-name { color: var(--terracotta); }
.case-card:hover .case-img image-slot { transform: scale(1.02); }
.case-card .case-img image-slot { transition: transform 600ms var(--ease); display: block; }

/* ============== Visual tile (photo + video) ============== */
.vtile {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  border-radius: 2px;
  display: block;
}
.vtile image-slot {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 800ms var(--ease);
}
.vtile:hover image-slot { transform: scale(1.03); }
.vtile .tile-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  pointer-events: none;
  z-index: 2;
}
.vtile.has-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,58,75,0.0) 50%, rgba(27,58,75,0.55));
  pointer-events: none;
  z-index: 1;
}
.vtile .play-mini,
.vtile .play-mini::before,
.showreel .play-btn,
.showreel .play-btn::before { display: none !important; }

.vtile .tile-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 2;
}
.vtile .tile-tag .live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta);
  animation: pulse 2s ease-in-out infinite;
}
.vtile.light .tile-cap, .vtile.light .tile-tag { color: var(--navy); text-shadow: none; }

/* ============== Photo grid presets ============== */
.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.photo-row {
  display: grid;
  gap: 16px;
}

/* ============== Y-ornament divider ============== */
.y-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  gap: 24px;
}
.y-divider::before,
.y-divider::after {
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1;
  max-width: 240px;
}
.y-divider .y {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  color: var(--terracotta);
  position: relative;
  top: 0.1em;
}

/* ============== Footer ============== */
footer.site {
  background: var(--navy);
  color: var(--cream);
  padding: 100px var(--gutter) 40px;
  margin-top: 80px;
}
footer.site .top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(250,246,240,0.15);
}
footer.site .brand-block .brand {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 28px;
}
footer.site .brand-block .brand .y {
  font-style: italic;
  font-weight: 500;
  text-transform: lowercase;
  font-size: 0.78em;
  letter-spacing: 0;
  padding: 0 0.34em 0 0;
  color: var(--terracotta);
  position: relative;
  top: 0.04em;
}
footer.site .brand-block p {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(250,246,240,0.75);
  max-width: 36ch;
}
footer.site .brand-block p em { color: var(--terracotta); font-style: italic; }
footer.site h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin: 0 0 24px;
}
footer.site .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
footer.site .col a {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(250,246,240,0.85);
  transition: color 150ms;
}
footer.site .col a:hover { color: var(--terracotta); }
footer.site .adjacent {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(250,246,240,0.10);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: rgba(250,246,240,0.55);
  max-width: 80ch;
}
footer.site .adjacent a { color: var(--terracotta); border-bottom: 1px solid rgba(184,92,58,0.4); }
footer.site .bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,240,0.4);
}

/* ============== Blog / Journal ============== */
.blog-card { display: block; color: inherit; }
.blog-card .blog-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-card .blog-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin-top: 8px;
  transition: color 200ms;
}
.blog-card .blog-title em { color: var(--terracotta); font-style: italic; font-weight: 400; }
.blog-card .blog-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 14px;
  max-width: 42ch;
}
.blog-card .blog-readtime {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.blog-card:hover .blog-title { color: var(--terracotta); }
.blog-card:hover .vtile image-slot { transform: scale(1.03); }

.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.blog-row {
  border-bottom: 1px solid var(--rule);
}
.blog-row a {
  display: grid;
  grid-template-columns: 80px 200px 1fr auto;
  gap: 40px;
  padding: 28px 0;
  align-items: center;
  color: inherit;
  transition: padding 300ms var(--ease), background 200ms;
}
.blog-row a:hover { padding-left: 20px; padding-right: 20px; background: var(--cream-deep); }
.blog-row .blog-row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  font-weight: 500;
}
.blog-row .blog-row-img {
  aspect-ratio: 4/3;
  width: 100%;
  background: var(--cream-deep);
  overflow: hidden;
  border-radius: 2px;
}
.blog-row .blog-row-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.blog-row .blog-row-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin-bottom: 8px;
  transition: color 200ms;
}
.blog-row .blog-row-title em { color: var(--terracotta); font-style: italic; font-weight: 400; }
.blog-row .blog-row-excerpt {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}
.blog-row .blog-row-min {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.blog-row a:hover .blog-row-title { color: var(--terracotta); }

@media (max-width: 900px) {
  .blog-row a { grid-template-columns: 60px 140px 1fr; }
  .blog-row .blog-row-min { display: none; }
}

/* ============== FAQ accordion ============== */
.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-q {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 40px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 32px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  color: var(--navy);
  cursor: pointer;
  transition: color 200ms, padding-left 300ms var(--ease);
}
.faq-q .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  text-transform: uppercase;
}
.faq-q .plus {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--terracotta);
  text-align: right;
  transition: transform 400ms var(--ease);
  line-height: 1;
}
.faq-q:hover { color: var(--terracotta); padding-left: 16px; }
.faq-item.open .faq-q { color: var(--terracotta); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 40px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms var(--ease), padding 500ms var(--ease);
}
.faq-a > div {
  grid-column: 2;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
}
.faq-item.open .faq-a { max-height: 600px; padding: 0 0 40px; }

/* ============== Forms ============== */
form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 28px;
  background: color-mix(in oklab, var(--cream) 70%, var(--navy) 4%);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
form.contact-form .row {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
form.contact-form .row.full { grid-column: span 2; }
form.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding: 0 0 8px;
  border: 0;
  background: transparent;
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid color-mix(in oklab, var(--navy) 18%, transparent);
  border-radius: 3px;
  outline: none;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  text-overflow: ellipsis;
}
form.contact-form input::placeholder,
form.contact-form textarea::placeholder {
  color: color-mix(in oklab, var(--navy) 38%, transparent);
  font-style: italic;
}
form.contact-form input:hover,
form.contact-form textarea:hover,
form.contact-form select:hover {
  border-color: color-mix(in oklab, var(--navy) 35%, transparent);
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--terracotta) 18%, transparent);
  background: #ffffff;
  color: var(--navy);
}
form.contact-form textarea {
  font-size: 16px;
  line-height: 1.55;
  min-height: 150px;
  resize: vertical;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
form.contact-form .submit-row {
  grid-column: span 2;
  padding: 20px 4px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border: 0;
}
form.contact-form .submit-note {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  max-width: 48ch;
}

/* Checkbox/multi-select chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0 4px;
  border: 0 !important;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid color-mix(in oklab, var(--navy) 22%, transparent);
  background: #ffffff;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  transition: all 160ms;
  user-select: none;
}
.chip:hover { color: var(--navy); border-color: var(--navy); background: color-mix(in oklab, var(--cream) 60%, #fff); }
.chip.active,
.chip.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ============== Responsive (basic) ============== */
@media (max-width: 1280px) {
  .nav .clock { display: none; }
  .nav .nav-links { gap: 18px; font-size: 10px; }
  .nav .nav-links a .n { font-size: 8px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .marmas-root h1 { font-size: 88px; }
  .marmas-root h2 { font-size: 64px; }
  .marmas-root h3 { font-size: 44px; }
  .nav { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav .nav-links { display: none; }
  .nav .menu-btn { display: inline-flex; }
}
@media (max-width: 1024px) {
  /* Stack project layout grids that were hardcoded inline */
  .marmas-root .proj-trio,
  .marmas-root .proj-trio-photos,
  .marmas-root .proj-mix-h,
  .marmas-root .proj-mix-v { grid-template-columns: repeat(2, 1fr) !important; }
  .marmas-root .proj-mosaic { grid-template-columns: repeat(2, 1fr) !important; }
  .marmas-root .proj-mosaic > * { grid-column: span 1 !important; grid-row: auto !important; }
  /* Soften inline-styled hero headings on tablet */
  .marmas-root header h1[style],
  .marmas-root section h2[style] { font-size: clamp(48px, 8vw, 96px) !important; line-height: 1.02 !important; }
  .marmas-root .lede[style] { font-size: clamp(18px, 2.4vw, 22px) !important; }
  /* Tablet two-column hero rows collapse */
  .marmas-root header > div[style*="grid-template-columns: 1fr 1fr"],
  .marmas-root section > div[style*="grid-template-columns: 1fr 1fr"],
  .marmas-root div[style*="grid-template-columns: 5fr 7fr"],
  .marmas-root div[style*="grid-template-columns: 7fr 5fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .marmas-root h1 { font-size: clamp(36px, 9vw, 56px); }
  .marmas-root h2 { font-size: clamp(32px, 8vw, 48px); }
  .marmas-root h3 { font-size: clamp(24px, 6vw, 32px); }
  .marmas-root h4 { font-size: clamp(20px, 5vw, 28px); }
  .marmas-root { font-size: 17px; }
  .marmas-root section { padding: 64px var(--gutter); }

  /* Beat inline font-size styles on hero/CTA headings */
  .marmas-root header h1[style],
  .marmas-root section h2[style],
  .marmas-root section h1[style] { font-size: clamp(36px, 9vw, 56px) !important; line-height: 1.02 !important; }
  .marmas-root .lede,
  .marmas-root .lede[style] { font-size: 18px !important; line-height: 1.5 !important; }

  /* Stack all project layout grids on phone */
  .marmas-root .proj-trio,
  .marmas-root .proj-trio-photos,
  .marmas-root .proj-mix-h,
  .marmas-root .proj-mix-v,
  .marmas-root .proj-mosaic { grid-template-columns: 1fr !important; }
  .marmas-root .proj-mosaic > * { grid-column: span 1 !important; grid-row: auto !important; }

  /* Footer + overlay */
  footer.site .top { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .index-overlay .ov-body { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--gutter); }
  .index-overlay .ov-list a { font-size: 40px; }

  /* Form stacks */
  form.contact-form { grid-template-columns: 1fr; padding: 20px; }
  form.contact-form .row, form.contact-form .submit-row { grid-column: span 1; }
  form.contact-form label, form.contact-form input, form.contact-form textarea, form.contact-form select { border-right: none !important; }

  /* Trim runaway CTA buttons and case names */
  .marmas-root .btn { font-size: 11px; padding: 12px 18px; }
  .marmas-root .case-name[style] { font-size: 32px !important; }
  .marmas-root .marquee-track[style] { font-size: clamp(28px, 8vw, 44px) !important; }

  /* Allow long words (emails, URLs) to wrap nicely */
  .marmas-root a[href^="mailto:"],
  .marmas-root a[href^="https://wa.me"],
  .marmas-root a[href^="tel:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================================
   LINE-ART GRAPHICS + ANIMATION SYSTEM
   Hand-drawn marks in the horizon-glyph idiom: thin navy
   strokes, terracotta accents. Paths use pathLength="1" so a
   single dash rule draws any shape.
   ============================================================ */

/* ---- Stroke palette ---- */
.ink   { stroke: var(--navy); fill: none; }
.terra { stroke: var(--terracotta); fill: none; }
.ink-fill   { fill: var(--navy); stroke: none; }
.terra-fill { fill: var(--terracotta); stroke: none; }

/* ---- Draw-on: trigger by scroll (.draw-svg gains .in via observer) ---- */
.draw-svg [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1300ms var(--ease);
  transition-delay: calc(var(--rev-delay, 0ms) + (var(--di, 0) * 120ms));
}
.draw-svg.in [data-draw] { stroke-dashoffset: 0; }

/* Fades for filled bits (dots, suns) — appear after their stroke draws */
.draw-svg [data-fade] {
  opacity: 0;
  transition: opacity 700ms var(--ease);
  transition-delay: calc(var(--rev-delay, 0ms) + (var(--di, 0) * 120ms) + 500ms);
}
.draw-svg.in [data-fade] { opacity: 1; }

/* ---- Draw-on: trigger on page load (for the hero, no scroll needed) ---- */
@keyframes drawStroke { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.draw-load [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawStroke 1500ms var(--ease) forwards;
  animation-delay: calc(300ms + (var(--di, 0) * 150ms));
}
.draw-load [data-fade] {
  opacity: 0;
  animation: fadeIn 900ms var(--ease) forwards;
  animation-delay: calc(800ms + (var(--di, 0) * 150ms));
}

/* ============== Hero coastal scene ============== */
.hero-scene-wrap {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: calc(var(--nav-h) + 8px);
  right: -24px;
  width: min(50%, 720px);
  opacity: 0.92;
}
.home-hero > *:not(.hero-scene-wrap) { position: relative; z-index: 1; }
.hero-scene {
  width: 100%;
  height: auto;
  overflow: visible;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-scene .g-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: sunBreathe 8s ease-in-out infinite;
}
@keyframes sunBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.88; }
}
.hero-scene .g-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: raysSpin 90s linear infinite;
}
@keyframes raysSpin { to { transform: rotate(360deg); } }
.hero-scene .g-birds {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 12s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 6px); }
}
.hero-scene .g-sea {
  transform-box: fill-box;
  transform-origin: center;
  animation: seaSway 9s ease-in-out infinite;
}
@keyframes seaSway {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

/* ============== Discipline row line icons ============== */
.disc-ico {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.disc-ico .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--terracotta);
}
.disc-ico .ico {
  width: 46px;
  height: 46px;
  overflow: visible;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 600ms var(--ease);
}
.disc-row a:hover .disc-ico .ico { transform: translateY(-2px) rotate(-3deg); }
.disc-ico .ico [data-draw] {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms var(--ease);
  transition-delay: calc(var(--di, 0) * 90ms);
}
.disc-row.in .disc-ico .ico [data-draw] { stroke-dashoffset: 0; }
.disc-ico .ico [data-fade] { opacity: 0; transition: opacity 500ms var(--ease) 600ms; }
.disc-row.in .disc-ico .ico [data-fade] { opacity: 1; }
/* re-draw on hover for a tactile feel */
.disc-row a:hover .disc-ico .ico [data-draw] {
  animation: drawStroke 900ms var(--ease);
}

/* ============== Inline detail icons (What we notice) ============== */
.detail-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.detail-icons .item { display: flex; flex-direction: column; gap: 18px; }
.detail-icons .ico {
  width: 56px;
  height: 56px;
  overflow: visible;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-icons .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-icons .label b { color: var(--terracotta); font-weight: 500; }
.detail-icons .cap {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.3;
}

/* ============== Region coastline graphic — nautical chart ============== */
.coast-chart {
  margin: 64px 0 0;
  padding: 0;
}
.coast-chart-meta,
.coast-chart-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.coast-chart-cap {
  border-bottom: none;
  border-top: 1px solid var(--rule);
  padding: 14px 0 0;
  margin: 18px 0 0;
}
.coast-chart-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--navy);
}
.coast-chart-frame {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6), transparent 60%),
    var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 28px 32px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.coast-chart-frame .cc-tick {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--terracotta);
  opacity: 0.7;
}
.coast-chart-frame .cc-tick.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.coast-chart-frame .cc-tick.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.coast-chart-frame .cc-tick.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.coast-chart-frame .cc-tick.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.coast-map {
  width: 100%;
  height: auto;
  overflow: visible;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.coast-map text.lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--navy);
  stroke: none;
}
.coast-map text.lbl.arc { fill: var(--terracotta); letter-spacing: 0.24em; }
.coast-map text.lbl.scale { font-size: 9px; letter-spacing: 0.16em; fill: var(--muted); }
.coast-map text.base {
  fill: var(--terracotta);
  font-weight: 500;
  letter-spacing: 0.22em;
}
.coast-map text.sea {
  fill: var(--muted);
  letter-spacing: 0.36em;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: none;
}
.coast-map .cc-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  fill: var(--navy);
}
.coast-map .pin {
  transform-box: fill-box;
  transform-origin: center;
}
.coast-map.in .pin { animation: pinPop 600ms var(--ease) backwards; }
@keyframes pinPop {
  0% { transform: translateY(-6px) scale(0.4); opacity: 0; }
  60% { transform: translateY(0) scale(1.15); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 720px) {
  .coast-chart { margin-top: 40px; }
  .coast-chart-frame { padding: 20px 16px 12px; }
  .coast-chart-meta, .coast-chart-cap { font-size: 10px; letter-spacing: 0.18em; }
  .coast-map text.lbl { font-size: 13px; }
  .coast-map text.sea { font-size: 14px; }
}

/* ============== Scroll-driven parallax (progressive enhancement) ============== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax-up {
      animation: parallaxUp linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
    @keyframes parallaxUp {
      from { transform: translateY(40px); }
      to { transform: translateY(-20px); }
    }
  }
}

/* Respect reduced motion across the board */
@media (prefers-reduced-motion: reduce) {
  .hero-scene .g-sun,
  .hero-scene .g-rays,
  .hero-scene .g-birds,
  .hero-scene .g-sea { animation: none !important; }
  .draw-load [data-draw] { animation: none; stroke-dashoffset: 0; }
  .draw-load [data-fade] { animation: none; opacity: 1; }
}

@media (max-width: 1100px) {
  .hero-scene-wrap { position: relative; top: 0; right: 0; width: 100%; max-width: 460px; margin: 8px 0 8px auto; opacity: 1; }
  .home-hero { min-height: 0 !important; }
}
@media (max-width: 720px) {
  .detail-icons { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   RESPONSIVE PASS — iPad (≤1024px) + Mobile (≤640px)
   Scoped to .marmas-root so admin/auth UI is untouched.
   Uses !important to override inline font-size/grid styles in HTML.
   ============================================================ */

/* ---------- iPad / small laptop ---------- */
@media (max-width: 1024px) {
  .marmas-root h1 { font-size: clamp(44px, 7vw, 84px) !important; line-height: 1.04 !important; }
  .marmas-root h2 { font-size: clamp(34px, 5.4vw, 60px) !important; line-height: 1.08 !important; }
  .marmas-root h3 { font-size: clamp(24px, 3.4vw, 38px) !important; line-height: 1.15 !important; }
  .marmas-root p  { font-size: clamp(15px, 1.6vw, 18px) !important; line-height: 1.65 !important; }

  /* big inline display spans (service rows, prices, numerals) */
  .marmas-root [style*="font-family: var(--font-display)"][style*="font-size: 64px"],
  .marmas-root [style*="font-family:var(--font-display)"][style*="font-size: 64px"] {
    font-size: clamp(34px, 5vw, 52px) !important;
  }
  .marmas-root [style*="font-size: 38px"] { font-size: 28px !important; }
  .marmas-root [style*="font-size: 100px"],
  .marmas-root [style*="font-size: 120px"],
  .marmas-root [style*="font-size: 140px"],
  .marmas-root [style*="font-size: 160px"] { font-size: clamp(56px, 9vw, 96px) !important; }

  /* Marquee */
  .marmas-root .marquee, .marmas-root .marquee * { font-size: clamp(32px, 5vw, 56px) !important; }

  /* Footer: 4 → 2 cols */
  .marmas-root footer.site .top { grid-template-columns: 1fr 1fr !important; gap: 48px !important; }

  /* Section vertical padding */
  .marmas-root section { padding-top: 80px !important; padding-bottom: 80px !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  /* Hide hero meta (Disciplines / Region) on mobile to save space */
  .marmas-root .hero-meta { display: none !important; }

  /* Type scale */
  .marmas-root h1 { font-size: clamp(38px, 10vw, 56px) !important; line-height: 1.05 !important; letter-spacing: -0.01em !important; }
  .marmas-root h2 { font-size: clamp(28px, 8vw, 42px) !important; line-height: 1.1 !important; }
  .marmas-root h3 { font-size: clamp(20px, 5.5vw, 28px) !important; line-height: 1.2 !important; }
  .marmas-root p, .marmas-root li { font-size: 15px !important; line-height: 1.6 !important; }

  /* Crush all inline pixel font-sizes above 22px down to readable */
  .marmas-root [style*="font-size: 64px"],
  .marmas-root [style*="font-size: 72px"],
  .marmas-root [style*="font-size: 80px"],
  .marmas-root [style*="font-size: 96px"],
  .marmas-root [style*="font-size: 100px"],
  .marmas-root [style*="font-size: 120px"],
  .marmas-root [style*="font-size: 140px"],
  .marmas-root [style*="font-size: 160px"] { font-size: clamp(32px, 9vw, 48px) !important; line-height: 1.05 !important; }

  .marmas-root [style*="font-size: 38px"],
  .marmas-root [style*="font-size: 40px"],
  .marmas-root [style*="font-size: 44px"],
  .marmas-root [style*="font-size: 48px"],
  .marmas-root [style*="font-size: 52px"],
  .marmas-root [style*="font-size: 56px"] { font-size: 26px !important; }

  .marmas-root [style*="font-size: 24px"],
  .marmas-root [style*="font-size: 22px"],
  .marmas-root [style*="font-size: 20px"],
  .marmas-root [style*="font-size: 19px"] { font-size: 16px !important; line-height: 1.6 !important; }

  /* Collapse every inline grid to a single column on mobile */
  .marmas-root [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Remove staggered offsets on alternating project cards */
  .marmas-root [style*="padding-top: 80px"],
  .marmas-root [style*="padding-top:80px"],
  .marmas-root [style*="padding-top: 120px"],
  .marmas-root [style*="padding-top: 160px"] { padding-top: 0 !important; }

  /* Section padding */
  .marmas-root section,
  .marmas-root [style*="padding-top: 100px"],
  .marmas-root [style*="padding-top: 140px"] { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* Container side padding */
  .marmas-root .wrap,
  .marmas-root .container,
  .marmas-root section > div { padding-left: 20px !important; padding-right: 20px !important; }

  /* Hero — redesigned for mobile: video on top as a media block, text below on cream */
  .marmas-root .home-hero.hero-video {
    min-height: 0 !important;
    padding: calc(var(--nav-h) + 8px) 0 0 0 !important;
    background: var(--cream) !important;
    overflow: visible !important;
  }
  .marmas-root .home-hero.hero-video > .hero-bg-video,
  .marmas-root .home-hero.hero-video > video.hero-bg-video {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    display: block !important;
  }
  /* Hide the desktop scrim + the rotated vertical label inside hero on mobile */
  .marmas-root .home-hero.hero-video > div[aria-hidden="true"] { display: none !important; }
  /* Inner content grid: drop the 100vh, sit below the video on cream */
  .marmas-root .home-hero.hero-video > div:not([aria-hidden]) {
    min-height: 0 !important;
    padding: 32px 20px 48px !important;
    display: block !important;
  }
  .marmas-root .home-hero.hero-video h1 {
    color: var(--navy) !important;
    text-shadow: none !important;
    font-size: clamp(34px, 9vw, 50px) !important;
    max-width: 100% !important;
    margin: 12px 0 20px !important;
  }
  .marmas-root .home-hero.hero-video p { color: var(--navy) !important; opacity: 1 !important; }
  .marmas-root .home-hero.hero-video .eyebrow { color: var(--terracotta) !important; }
  .marmas-root .home-hero.hero-video .btn:not(.primary) {
    color: var(--navy) !important;
    border-color: var(--navy) !important;
  }

  /* Generic hero header on other pages */
  .marmas-root header:not(.hero-video) { min-height: 0 !important; padding-top: calc(var(--nav-h) + 48px) !important; padding-bottom: 48px !important; }

  /* Smaller buttons on mobile */
  .marmas-root .btn {
    padding: 12px 18px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.18em !important;
    gap: 10px !important;
  }

  /* Nav — bigger tap targets, hide desktop nav links */
  .marmas-root .nav { padding: 14px 18px !important; }
  .marmas-root .nav-links { display: none !important; }
  .marmas-root .menu-btn { min-width: 44px; min-height: 44px; }
  .marmas-root .ov-list a { font-size: clamp(32px, 8vw, 48px) !important; }

  /* Marquee */
  .marmas-root .marquee, .marmas-root .marquee * { font-size: 28px !important; }

  /* Footer */
  .marmas-root footer.site .top { grid-template-columns: 1fr !important; gap: 36px !important; }
  .marmas-root footer.site .bottom { flex-direction: column !important; gap: 8px !important; text-align: left !important; }

  /* Tables / FAQ — let them scroll horizontally instead of clipping */
  .marmas-root table { display: block; overflow-x: auto; }

  /* Vertical "rotated" text labels — hide on mobile (cramped) */
  .marmas-root [style*="transform: rotate(-90deg)"] { display: none !important; }

  /* Images stay full width — but DON'T force height:auto inside framed media blocks.
     Project/blog cards use aspect-ratio wrappers, so their images must keep height:100%;
     otherwise mobile Safari shows a half-filled image with the grey card background below. */
  .marmas-root img:not([style*="position:absolute"]):not([style*="position: absolute"]):not(.case-img img):not(.vtile img):not(.mask-img img):not(.blog-row-img img):not(.proj-thumb img) {
    max-width: 100% !important;
    height: auto !important;
  }
  .marmas-root .case-img > img,
  .marmas-root .case-img > video,
  .marmas-root .vtile img,
  .marmas-root .vtile video,
  .marmas-root .mask-img img,
  .marmas-root .mask-img video,
  .marmas-root .blog-row-img img,
  .marmas-root .blog-row-img video,
  .marmas-root .proj-thumb img,
  .marmas-root .proj-thumb video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .marmas-root image-slot { max-width: 100%; }

  /* Mobile: image-slots are display-only on public site.
     Disable tap/drag affordances so the placeholder background/ring don't
     appear on touch, and let vertical scrolling pass through cleanly. */
  .marmas-root image-slot,
  .marmas-root .case-img,
  .marmas-root .vtile,
  .marmas-root .proj-thumb {
    touch-action: pan-y !important;
    -webkit-tap-highlight-color: transparent;
  }
  .marmas-root image-slot { pointer-events: none !important; }
  .marmas-root image-slot img,
  .marmas-root image-slot video { pointer-events: none !important; }

  /* Headings: let text flow horizontally across the full width.
     Collapse the line-reveal blocks so <br>-split chunks behave like a single paragraph
     and the section-head grid stops squeezing the title into a narrow column. */
  .marmas-root .sec-head {
    display: block !important;
    padding-bottom: 20px !important;
    margin-bottom: 40px !important;
  }
  .marmas-root .sec-head .sec-num { display: inline-block; margin-right: 12px; font-size: 13px !important; }
  .marmas-root .sec-head .sec-aside { display: none !important; }
  .marmas-root .sec-head .eyebrow { margin-bottom: 14px !important; }

  /* Flatten the per-line reveal spans on mobile so headings wrap naturally
     across the full available width instead of one word per line. */
  .marmas-root .lines .line {
    display: inline !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .marmas-root .lines .line + .line::before { content: " "; }
  .marmas-root .lines .line > span {
    display: inline !important;
    transform: none !important;
  }
  /* Drop any inline max-width that hard-clips heading width */
  .marmas-root h1[style*="max-width"],
  .marmas-root h2[style*="max-width"],
  .marmas-root h3[style*="max-width"] { max-width: 100% !important; }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .marmas-root h1 { font-size: 34px !important; }
  .marmas-root h2 { font-size: 26px !important; }
}

/* ---------- Project layout helpers ---------- */
@media (max-width: 900px) {
  .marmas-root .proj-mosaic { grid-template-columns: repeat(2, 1fr) !important; }
  .marmas-root .proj-mosaic > * { grid-column: span 2 !important; grid-row: auto !important; }
  .marmas-root .proj-trio { grid-template-columns: 1fr !important; }
  .marmas-root .proj-mix-h { grid-template-columns: 1fr !important; }
  .marmas-root .proj-mix-v { grid-template-columns: 1fr !important; max-width: 100% !important; }
}

/* ---------- Contact page cards ---------- */
@media (max-width: 1024px) {
  .marmas-root .contact-cards { grid-template-columns: 1fr 1fr !important; }
  .marmas-root .contact-card { padding: 32px !important; }
}
@media (max-width: 720px) {
  .marmas-root .contact-cards { grid-template-columns: 1fr !important; gap: 16px !important; }
  .marmas-root .contact-card { padding: 28px !important; }
  .marmas-root .contact-card-value { white-space: normal !important; }
}

/* Mobile: reset inline translateY on stacked moodboard tiles so they don't overlap */
@media (max-width: 720px) {
  .marmas-root .vtile[style*="translateY"] { transform: none !important; }
}
