/* ===================================
   VISIUM | MORAIS — editorial, black & white
   Tokens + components for the redesigned pages.
   Older pages still use style.css.
   =================================== */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 400; font-display: swap; src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 400; font-display: swap; src: url('/fonts/jost.woff2') format('woff2'); }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --frame: #181818;
  --line-soft: #262626;
  --line: #3a3a3a;
  --muted: #8c8c8c;   /* ≈5.6:1 on --bg */
  --body: #b8b8b8;    /* ≈10:1 */
  --text: #f2f2f2;    /* ≈18:1 */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --section: clamp(120px, 15vw, 220px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; transition: color .3s ease; }
a:hover { color: #bdbdbd; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--text); color: var(--bg); padding: 12px 20px;
}
.skip-link:focus { top: 16px; color: var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 300; }
.italic { font-style: italic; }
.caps {
  font-family: var(--sans); font-weight: 400; font-size: 12px;
  letter-spacing: .32em; text-transform: uppercase; line-height: 1.6;
}
.muted { color: var(--muted); }
.body-text { color: var(--body); }
.center { text-align: center; }
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); }
.rule { width: 48px; height: 1px; background: var(--text); margin: 64px auto 0; border: 0; }

/* Buttons and links */
.btn {
  display: inline-block; border: 1px solid var(--text); padding: 20px 48px;
  min-height: 44px; color: var(--text); background: transparent;
  transition: background .3s ease, color .3s ease;
}
.btn:hover { background: var(--text); color: var(--bg); }
.link-line { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.link-line:hover { border-bottom-color: var(--text); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header--solid { position: relative; border-bottom: 1px solid var(--line-soft); }
.nav {
  height: 112px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.nav__group { display: flex; gap: 40px; flex-wrap: wrap; }
.nav__group--end { justify-content: flex-end; }
.nav__group a[aria-current="page"] { border-bottom: 1px solid var(--text); padding-bottom: 6px; }
.monogram { text-align: center; line-height: 1; }
.monogram__mark { display: block; font-family: var(--serif); font-size: 30px; letter-spacing: .08em; }
.monogram__mark span { color: #5c5c5c; }
.monogram__word { display: block; margin-top: 8px; font-size: 9px; letter-spacing: .5em; }
.nav__toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0;
  color: var(--text); cursor: pointer; justify-self: end; align-items: center; justify-content: center;
}
.nav__panel { display: none; }

/* Hero */
.hero { position: relative; height: min(940px, 100svh); min-height: 640px; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 58%, rgba(10,10,10,.88) 100%);
}
.hero__content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding-bottom: clamp(64px, 9vw, 120px);
}
.hero__title { font-family: var(--serif); font-size: clamp(56px, 8vw, 104px); line-height: .95; letter-spacing: -.01em; }
.hero__sub { margin: 28px 0 56px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); color: var(--body); }

/* Image frames */
.frame { position: relative; margin: 0; background: var(--frame); overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.frame img.is-loaded { opacity: 1; }
.preview-labels .frame:not(.has-image)::after {
  content: attr(data-label); position: absolute; left: 20px; bottom: 20px; right: 20px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
figcaption { margin-top: 20px; font-size: 12px; color: var(--muted); }

/* Manifesto */
.manifesto { max-width: 900px; }
.manifesto__text { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.35; margin-top: 48px; }
.signature { margin-top: 40px; font-family: var(--serif); font-style: italic; font-size: 22px; }

/* Section heads */
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 72px; }
.h2 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 56px); line-height: 1.05; }

/* Portfolio */
.portfolio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 96px; }
.portfolio .p1 { grid-column: 1 / span 6; }
.portfolio .p1 .frame { aspect-ratio: 4 / 5; }
.portfolio .p2 { grid-column: 8 / span 5; margin-top: 220px; }
.portfolio .p2 .frame { aspect-ratio: 4 / 5; }
.portfolio .p3 { grid-column: 3 / span 8; }
.portfolio .p3 .frame { aspect-ratio: 3 / 2; }
.portfolio figure { margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service { padding: 0 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.service + .service { border-left: 1px solid var(--line); }
.service__num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); margin-bottom: 28px; }
.service h3 { font-size: 13px; margin-bottom: 24px; }
.service p { color: var(--body); font-size: 15px; margin-bottom: 40px; }
.service a { margin-top: auto; font-size: 12px; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.about .frame { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.about__text { grid-column: 7 / span 5; }
.about__text .h2 { font-size: clamp(46px, 5vw, 64px); margin: 32px 0 40px; line-height: 1; }
.about__text p { color: var(--body); margin-bottom: 24px; }

/* Project band */
.project { position: relative; height: 760px; overflow: hidden; }
.project .frame { position: absolute; inset: 0; }
.project::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,0) 60%);
}
.project__content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.project__title { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 6vw, 88px); margin: 32px 0 24px; }
.project__text { font-family: var(--serif); font-size: 24px; color: var(--body); max-width: 460px; line-height: 1.4; margin-bottom: 48px; }

/* CTA */
.cta { padding: clamp(140px, 17vw, 240px) 0; }
.cta__title { font-family: var(--serif); font-style: italic; font-size: clamp(52px, 5.5vw, 76px); line-height: 1; margin-bottom: 32px; }
.cta p { color: var(--body); margin-bottom: 56px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 80px 0 56px; text-align: center; }
.site-footer .monogram__mark { font-size: 28px; }
.footer__links { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; margin: 32px 0; font-size: 12px; }
.footer__links a { color: var(--muted); }
.footer__sport { font-size: 13px; color: var(--muted); }
.footer__sport a { color: var(--body); border-bottom: 1px solid var(--line); }
.footer__copy { margin-top: 24px; font-size: 12px; color: var(--muted); }

/* Inner pages */
.page-intro { padding: clamp(96px, 11vw, 160px) 0 clamp(120px, 14vw, 200px); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
.split__text { grid-column: 1 / span 6; }
.split__media { grid-column: 8 / span 5; aspect-ratio: 4 / 5; }
.page-title { font-family: var(--serif); font-size: clamp(52px, 6.4vw, 92px); line-height: .98; margin-top: 40px; }
.lead { margin: 48px 0 56px; color: var(--body); max-width: 460px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding: 0 36px; text-align: center; }
.steps li + li { border-left: 1px solid var(--line); }
.steps h3 { font-size: 12px; margin-bottom: 20px; }
.steps p { color: var(--body); font-size: 15px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-3 > * { padding: 0 40px; text-align: center; }
.cols-3 > * + * { border-left: 1px solid var(--line); }
.cols-3 h3 { font-size: 12px; margin-bottom: 18px; }
.cols-3 p { color: var(--body); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 96px; }
.gallery figure { margin: 0; }
.gallery .g1 { grid-column: 1 / span 5; } .gallery .g1 .frame { aspect-ratio: 4 / 5; }
.gallery .g2 { grid-column: 7 / span 6; margin-top: 200px; } .gallery .g2 .frame { aspect-ratio: 3 / 2; }
.gallery .g3 { grid-column: 4 / span 6; } .gallery .g3 .frame { aspect-ratio: 4 / 5; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 24px 0; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 24px; }
.list li:last-child { border-bottom: 1px solid var(--line-soft); }
.list span + span { color: var(--muted); text-align: right; }

.faq details { border-top: 1px solid var(--line); padding: 28px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 24px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 20px; color: var(--body); }

.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.team .frame { aspect-ratio: 4 / 5; }
.pro-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pro-media .wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.pro-media .tall { aspect-ratio: 4 / 5; }
.pro-media .tall + .tall { margin-top: 80px; }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 48px; }
.form__row { display: flex; gap: 48px; flex-wrap: wrap; }
.field { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.field label, .field .label { font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--text); padding: 10px 0; font: 300 18px/1.6 var(--sans); color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--text); }
.journeys { border: 0; margin: 0 0 72px; padding: 0; text-align: center; }
.journeys legend { margin: 0 auto 28px; padding: 0; color: var(--muted); }
.journeys__opts { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.journeys input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.journeys label { cursor: pointer; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); border-bottom: 1px solid transparent; }
.journeys input:checked + label { color: var(--text); border-bottom-color: var(--text); }
.journeys input:focus-visible + label { outline: 1px solid var(--text); outline-offset: 6px; }
.hidden-field { position: absolute; left: -9999px; }
.sport-panel { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 24px; margin-bottom: 72px; }
.js .sport-panel { display: none; }
.js [data-journey="desporto"] .sport-panel { display: block; }
.js [data-journey="desporto"] .form-fields,
.js [data-journey="desporto"] .company-only { display: none; }
.js .company-only { display: none; }
.js [data-journey="empresa"] .company-only { display: flex; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.form__foot p { font-size: 12px; color: var(--muted); max-width: 440px; line-height: 1.8; }
.contact-meta { display: flex; justify-content: center; gap: 56px; margin-top: 120px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.contact-meta a { color: var(--body); }

/* Photo grids from gallery_images */
.masonry { columns: 3 320px; column-gap: 32px; }
.masonry figure { break-inside: avoid; margin: 0 0 48px; }
.masonry .frame img { height: auto; }
.masonry .frame { min-height: 160px; }

/* Collections */
.filters { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; margin-bottom: 80px; }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); min-height: 44px; padding: 10px 0; cursor: pointer; }
.filter[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
.collections { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 72px 32px; }
.collection { display: block; }
.collection .frame { aspect-ratio: 4 / 5; }
.collection__meta { padding-top: 24px; }
.collection__title { font-family: var(--serif); font-size: 32px; margin: 10px 0 18px; line-height: 1.1; }
.collection:hover .collection__title { color: var(--body); }

/* Sport: modalities and price table */
.modalities { list-style: none; margin: 0; padding: 0; }
.modalities li { border-top: 1px solid var(--line); }
.modalities li:last-child { border-bottom: 1px solid var(--line); }
.modalities a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0; min-height: 44px; }
.modalities .serif { font-size: 32px; }
.modalities a:hover .serif { color: var(--body); }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-family: var(--serif); font-size: 36px; margin: 72px 0 24px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 1.2em; }
.prose a { border-bottom: 1px solid var(--line); }
.note { border: 1px solid var(--line); padding: 24px 28px; color: var(--body); font-size: 14px; }

/* Reveal on scroll (only when JS and motion are allowed) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 900px) {
  .nav { height: 84px; grid-template-columns: 44px 1fr 44px; }
  .nav__group { display: none; }
  .monogram__mark { font-size: 24px; }
  .monogram__word { font-size: 8px; }
  .nav__toggle { display: flex; grid-column: 3; }
  .nav .monogram { grid-column: 2; }
  .nav__panel[data-open="true"] {
    display: flex; flex-direction: column; gap: 28px; text-align: center;
    position: absolute; top: 84px; left: 0; right: 0; padding: 48px 24px 56px;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
  }
  .nav__panel .nav__sport { color: var(--muted); font-size: 12px; margin-top: 12px; }

  .portfolio { display: flex; flex-direction: column; gap: 56px; }
  .portfolio .p2 { margin: 0 0 0 64px; }
  .services { grid-template-columns: 1fr; gap: 56px; }
  .service { padding: 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); padding-top: 56px; }
  .about { display: flex; flex-direction: column; gap: 48px; align-items: stretch; }
  .project { height: 520px; }
  .project::after { background: linear-gradient(180deg, rgba(10,10,10,0) 30%, rgba(10,10,10,.9) 100%); }
  .project__content { justify-content: flex-end; padding-bottom: 48px; }
  .btn { display: block; text-align: center; padding: 18px 24px; }

  .split { display: flex; flex-direction: column; gap: 56px; align-items: stretch; }
  .steps, .cols-3 { grid-template-columns: 1fr; gap: 48px; }
  .steps li, .cols-3 > * { padding: 0; }
  .steps li + li, .cols-3 > * + * { border-left: 0; border-top: 1px solid var(--line); padding-top: 48px; }
  .gallery { display: flex; flex-direction: column; gap: 56px; }
  .gallery .g2 { margin: 0; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-media .tall + .tall { margin-top: 0; }
  .journeys__opts { gap: 24px; }
  .contact-meta { flex-direction: column; gap: 16px; align-items: center; }
}

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