/* ============================================================
   MODELO "MAR"
   Identidade tirada do vídeo: azul profundo, ardósia, névoa,
   areia como único ponto de luz. Texto em Inter Tight, bem
   junto, com a inicial caligráfica (Pinyon Script).
   Camada por cima do style.css; a estrutura não muda.
   ============================================================ */

body.mar {
  --noite: #0e1521;
  --fundo: #182334;
  --ardosia: #4f6179;
  --nevoa: #c7d0da;
  --papel: #f3f1ed;
  --areia: #d9cbb4;

  --bg: var(--papel);
  --surface: transparent;
  --text: var(--noite);
  --muted: #545e6c;
  --stroke: rgba(14, 21, 33, 0.14);
  --stroke-2: rgba(14, 21, 33, 0.28);
  --sand: #e4e1db;
  --pink: var(--areia);
  --rose: var(--ardosia);
  --brown: var(--ardosia);
  --brown-deep: var(--noite);
  --on-dark: var(--papel);

  --font-head: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-overline: var(--font-mono);
  --font-script: "Pinyon Script", cursive;
}
html { background: var(--noite); }
body.mar ::selection { background: var(--areia); color: var(--noite); }
html::-webkit-scrollbar-track { background: #f3f1ed; }
html::-webkit-scrollbar-thumb { background: #4f6179; border-color: #f3f1ed; }

/* ---------- Menu ---------- */
body.mar .oh-header .profile-nav a,
body.mar .oh-header .profile-nav a.is-active { color: var(--noite); font-weight: 400; letter-spacing: -0.01em; }
body.mar .oh-header .profile-nav a.is-active::before { width: 5px; height: 5px; background: currentColor; box-shadow: none; vertical-align: 2px; }
body.mar .oh-brand { background: none; border: 0; padding-inline: 0; color: var(--noite); letter-spacing: 0.1em; font-weight: 400; }
body.mar .oh-brand i { color: currentColor; }
body.mar .oh-header.is-solid { background: rgba(243, 241, 237, 0.94); box-shadow: 0 1px 0 var(--stroke); }
body.mar.on-video .oh-header { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.mar.on-video .oh-header .profile-nav a,
body.mar.on-video .oh-header .oh-brand { color: #fff; }
/* sobre o vídeo, o menu fica dentro de um retângulo de cantos arredondados */
body.mar .oh-header .profile-nav { padding: 3px 24px; border: 1px solid transparent; border-radius: 14px; transition: background 0.3s ease, border-color 0.3s ease; }
body.mar.on-video .oh-header .profile-nav {
  background: rgba(14, 21, 33, 0.45); border-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@media (max-width: 560px) { body.mar .oh-header .profile-nav { padding-inline: 14px; } }

/* ---------- Abertura ---------- */
body.mar .oh { height: 160vh; background: var(--noite); }
body.mar .oh-stage { background: var(--noite); color: #fff; }
.vh-media, .vh-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vh-media video, .vh-media canvas { object-fit: cover; object-position: 62% 50%; }
.vh-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; pointer-events: none; }
.vh-media canvas.is-fading { transition: opacity 0.9s linear; }
.vh-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(52% 40% at 50% 46%, rgba(8, 13, 24, 0.55), transparent 100%),
    linear-gradient(180deg, rgba(8, 13, 24, 0.45), transparent 30%, transparent 70%, rgba(8, 13, 24, 0.55));
}

.vh-title {
  position: absolute; z-index: 5; left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; padding-inline: 16px;
  font-size: clamp(2.5rem, min(7.2vw, 12vh), 7rem); pointer-events: none; will-change: transform;
}
body.mar .vh-label {
  display: inline-block; margin-bottom: 0.45em; padding-bottom: 2px; border-bottom: 1px solid currentColor;
  font-size: clamp(16px, 0.26em, 26px); letter-spacing: 0.14em;
}
/* título escrito (js/mar-type.js): escondido até o script assumir; aparece sozinho se ele falhar */
.vh-title[data-type] .vh-label,
.vh-title[data-type] .vh-line { visibility: hidden; animation: vh-show 0s linear 4s forwards; }
@keyframes vh-show { to { visibility: visible; } }
.vh-caret { position: absolute; width: 2px; margin-left: 2px; background: #fff; box-shadow: 0 0 10px rgba(4, 10, 24, 0.6); pointer-events: none; }
.vh-caret.is-done { animation: vh-blink 0.6s steps(1) 3 forwards; }
@keyframes vh-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.oh-stage.is-writing .vh-sub,
.oh-stage.is-writing .oh-cue { visibility: hidden; }
.oh-stage.is-written .vh-sub,
.oh-stage.is-written .oh-cue { animation: vh-fade 0.8s ease; }
@keyframes vh-fade { from { opacity: 0; } }
.vh-star { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; }
.vh-star.is-waiting { opacity: 0; transform: scale(0) rotate(-120deg); }
@media (prefers-reduced-motion: reduce) {
  .vh-title[data-type] .vh-label,
  .vh-title[data-type] .vh-line { visibility: visible; animation: none; }
}
.vh-phrase {
  font-family: var(--font-head); font-weight: 400; line-height: 0.98; letter-spacing: -0.05em;
  text-shadow: 0 2px 24px rgba(4, 10, 24, 0.5);
}
.vh-line { display: flex; align-items: baseline; justify-content: center; white-space: nowrap; }
.vh-sw { font-family: var(--font-script); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 0; }
.vh-sw--cap { font-size: 1.42em; margin-right: -0.04em; }
.vh-sw--low { font-size: 1.5em; margin-right: 0.01em; }
.vh-star { width: 0.62em; height: 0.62em; margin-left: 0.14em; fill: currentColor; align-self: center; }
.vh-flourish { width: 1.9em; height: 0.55em; margin-right: 0.16em; align-self: center; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; }
.vh-flourish path { vector-effect: non-scaling-stroke; }
.vh-flourish .vh-flourish-star { fill: currentColor; stroke: none; }

body.mar .vh-sub {
  position: absolute; z-index: 5; left: 0; right: 0; bottom: 104px; margin-inline: auto; width: min(560px, 86vw); text-align: center;
  font-size: clamp(14px, 1.2vw, 17px); line-height: 1.5; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(4, 10, 24, 0.7);
}
body.mar .oh-cue { color: #fff; text-transform: none; letter-spacing: 0; font-size: 13px; }
body.mar .oh-cue::after { background: linear-gradient(to bottom, #fff, transparent); }

body.mar .oh-cards { --cw: clamp(130px, min(15vw, 25vh), 232px); top: 66%; z-index: 4; }
body.mar .oh-card { border-radius: 6px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.75); }

body.mar .oh-bubble {
  z-index: 3; padding: 0; border-radius: 0; background: none; box-shadow: none; animation: none; opacity: 0;
  color: #fff; font-size: 14px; font-weight: 400; text-shadow: 0 1px 10px rgba(4, 10, 24, 0.8);
}
body.mar .oh-bubble::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: currentColor; vertical-align: 3px; }

.mh-cta {
  position: absolute; z-index: 6; left: 50%; bottom: 5vh; translate: -50% 0; visibility: hidden; white-space: nowrap;
  padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(14, 21, 33, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 14px; transition: background 0.2s ease, color 0.2s ease;
}
.mh-cta:hover, .mh-cta:focus-visible { background: #fff; color: #0e1521; }

/* ---------- Esteira ---------- */
body.mar .scramble-hero--band { background: var(--noite); padding: 0; }
body.mar .scramble-hero--band .marquee { padding-block: 16px; }
body.mar .s-pill {
  background: none; border: 0; padding-inline: 1.3rem; color: var(--nevoa);
  font-weight: 400; text-transform: none; letter-spacing: -0.03em; font-size: clamp(18px, 2vw, 26px);
}
body.mar .s-pill-label::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 1.9rem; border-radius: 0; box-shadow: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23d9cbb4' d='M50 0C52 37 63 48 100 50C63 52 52 63 50 100C48 63 37 52 0 50C37 48 48 37 50 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Títulos: inicial caligráfica, como na abertura ---------- */
body.mar .panels { background: var(--papel); }
body.mar .panels .works-title,
body.mar .panels .section-title {
  font-family: var(--font-head); font-weight: 400; letter-spacing: -0.05em; line-height: 1.15;
  --title-size: clamp(2.5rem, 5.2vw, 4.4rem); font-size: var(--title-size);
}
body.mar .panels .panel .section-head:not(.section-head--center),
body.mar .panels .panel .works-head > div:first-child { left: 0; }
body.mar .works-title em,
body.mar .section-title em { display: inline-block; font-style: normal; font-weight: 400; color: inherit; }
body.mar .works-title em::first-letter,
body.mar .section-title em::first-letter,
body.mar #faco .section-title::first-letter,
body.mar #contato .section-title::first-letter { font-family: var(--font-script); font-size: 1.45em; letter-spacing: 0; line-height: 0.7; }
body.mar .works-title em { margin-left: 0.24em; }
body.mar .section-head::after { display: none; }

/* ---------- Sobre ---------- */
body.mar #sobre { background: var(--papel); border-top: 1px solid var(--stroke); }
body.mar .profile-card {
  background: none; border: 0; border-top: 1px solid var(--stroke-2); border-radius: 0; box-shadow: none; padding: 1.1rem 0 0.6rem;
}
body.mar .about-mosaic { column-gap: clamp(1.4rem, 3.4vw, 3rem); row-gap: clamp(1.6rem, 3.4vw, 2.8rem); }
body.mar .profile-card-head h3 { color: var(--ardosia); font-size: 15px; font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
body.mar .profile-card--intro p { font-size: 1rem; line-height: 1.7; color: var(--muted); }
body.mar .profile-card--intro p strong { font-weight: 500; }
body.mar .profile-edu-item { border-top-color: var(--stroke); }
body.mar .profile-edu-item strong { font-weight: 500; font-size: 1rem; letter-spacing: -0.02em; }
body.mar .profile-edu-item .desc { font-size: 0.86rem; }
body.mar .profile-edu-year { color: var(--ardosia); letter-spacing: 0; }
body.mar .skill-chip { background: none; border: 1px solid var(--stroke-2); color: var(--noite); font-weight: 400; }
body.mar .tl-item { border-top: 1px solid var(--stroke-2); }
body.mar .tl-item::before { background: var(--noite); box-shadow: none; width: 7px; height: 7px; top: -4px; }
body.mar .tl-company { font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
body.mar .tl-period { color: var(--ardosia); letter-spacing: 0; }
body.mar .tl-role { text-transform: none; letter-spacing: 0; font-size: 13px; }
body.mar .timeline::-webkit-scrollbar-thumb { background: var(--ardosia); }

body.mar .profile-photo-card { background: #3d5271; border: 0; border-radius: 6px; box-shadow: none; }
body.mar .about-mosaic .profile-photo-img { object-fit: cover; object-position: 50% 30%; }
@media (min-width: 901px) {
  /* foto menor, na mesma altura do texto: quem define a altura da linha é o texto */
  body.mar .about-mosaic .profile-photo-card { grid-column: 1 / span 4; min-height: 0; }
  body.mar .about-mosaic .profile-card--intro { grid-column: 5 / -1; padding-bottom: 0; }
  body.mar .about-mosaic .profile-card--intro p { max-width: 42rem; }
  body.mar .about-mosaic .profile-card--intro p:last-child { margin-bottom: 0; }
  body.mar .about-mosaic .profile-card--skills { grid-column: 1 / span 4; }
  body.mar .about-mosaic .profile-card--courses { grid-column: 5 / -1; }
}

/* ---------- Trabalhos ---------- */
body.mar #trabalhos { background: var(--papel); }
body.mar .works-chip { border: 0; border-radius: 0; padding: 0 2px; margin-right: 18px; color: var(--muted); font-size: 15px; border-bottom: 1px solid transparent; }
body.mar .works-chip:hover { color: var(--noite); }
body.mar .works-chip[aria-pressed="true"] { background: none; color: var(--noite); border-bottom-color: var(--noite); }
body.mar .works-chip:focus-visible,
body.mar .work-card:focus-visible,
body.mar .works-arrow:focus-visible { outline-color: var(--ardosia); }
body.mar .work-cover { border-radius: 6px; box-shadow: none; }
body.mar .work-card:hover .work-cover,
body.mar .work-card:focus-visible .work-cover { box-shadow: none; }
body.mar .work-cover::after { background: var(--papel); color: var(--noite); }
body.mar .work-name { font-weight: 500; font-size: 16px; letter-spacing: -0.02em; padding: 0; }
body.mar .work-meta { font-size: 13.5px; padding: 0; }
body.mar .works-arrow { background: var(--papel); box-shadow: none; }
body.mar .works-arrow:hover:not(:disabled) { background: var(--noite); border-color: var(--noite); color: var(--papel); }
body.mar .works-grid::-webkit-scrollbar-thumb { background: var(--ardosia); border: 0; }

/* ---------- O que eu faço ---------- */
body.mar #faco { background: var(--fundo); color: var(--papel); }
body.mar #faco .section-title { color: var(--papel); }
body.mar #faco .services-grid { column-gap: clamp(1.2rem, 2.4vw, 2rem); row-gap: 2.6rem; }
body.mar #faco .services-grid .service-card.service-card {
  background: none; color: var(--papel); border: 0; border-top: 1px solid rgba(199, 208, 218, 0.3);
  border-radius: 0; box-shadow: none; min-height: 0; padding: 1.2rem 0 0; transform: none; transition: border-color 0.2s ease;
}
body.mar #faco .services-grid .service-card.service-card:hover { border-top-color: var(--areia); }
body.mar .service-icon { color: var(--areia); margin-bottom: 0; }
body.mar .service-name { font-weight: 500; text-transform: none; letter-spacing: -0.025em; font-size: 20px; margin-top: 1.2rem; }
body.mar .service-text { font-size: 14.5px; color: var(--nevoa); opacity: 1; }
body.mar .service-link { margin-top: auto; color: var(--areia); }

/* ---------- Contato: o mar volta ---------- */
body.mar #contato {
  position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--noite); color: #fff;
}
body.mar #contato::before { content: none; }
body.mar #contato > * { width: 100%; }
body.mar #contato > .vh-media { position: absolute; z-index: 0; max-width: none; height: 100%; margin: 0; }
body.mar #contato .section-title { color: #fff; text-shadow: 0 2px 24px rgba(4, 10, 24, 0.6); }
body.mar .contato-link-row {
  background: rgba(14, 21, 33, 0.4); color: #fff; font-weight: 400; border: 1px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
body.mar .contato-link-row:hover { background: #fff; color: var(--noite); }
body.mar .contato-eye { background: #fff; }
body.mar .contato-eye i { background: var(--noite); }
body.mar .contato-link-row:hover .contato-eye { background: var(--noite); }
body.mar .contato-link-row:hover .contato-eye i { background: #fff; }

/* ---------- Rodapé ---------- */
body.mar .site-footer { background: var(--noite); color: var(--nevoa); text-transform: none; letter-spacing: 0; font-size: 14px; }

/* ---------- Telas menores ---------- */
@media (max-width: 900px) {
  body.mar .about-mosaic .profile-photo-card { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 700px) {
  .vh-title { font-size: 12.2vw; }
  .vh-flourish { width: 1.15em; }
  body.mar .vh-sub { bottom: 96px; }
  body.mar .oh-cards { top: 60%; }
  body.mar .oh-bubble { font-size: 12.5px; }
  body.mar .oh-bubble--coral { top: 40%; }
  body.mar .oh-bubble--lilac { left: auto; right: 6%; top: 77%; }
  body.mar #contato .contato-links { padding-inline: 0; }
}
@media (max-height: 520px) { body.mar .vh-sub { display: none; } }

@media (prefers-reduced-motion: reduce) {
  body.mar .oh { height: auto; }
}
