:root {
  --background: #F5EFE0;
  --foreground: #1A1614;
  --card: #FFFDF7;
  --primary: #1E3A2F;
  --primary-foreground: #F5EFE0;
  --muted: #E8E0CF;
  --muted-foreground: #6B5E4E;
  --accent: #B8963E;
  --border: #D4C9B0;
  --radius: 2px;
  --font-display: "Lora", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--background); color: var(--foreground); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(1152px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 8rem 0; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .75rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); }
h2 { margin-bottom: 1.5rem; color: var(--primary); font-size: clamp(2.25rem, 4.5vw, 3rem); font-weight: 500; line-height: 1.1; }
p { margin-top: 0; }
.divider { width: 40px; height: 1px; margin: 0 0 2rem; background: var(--accent); }
.divider-wide { width: 64px; margin-inline: auto; }

.site-nav { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--primary-foreground); transition: background-color .4s ease, box-shadow .4s ease; }
.site-nav.scrolled, .site-nav.menu-open { background: var(--primary); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; transition: opacity .2s ease; }
.brand:hover { opacity: .75; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; letter-spacing: .2em; line-height: 1.25; text-transform: uppercase; }
.brand-subtitle { margin-top: 2px; font-size: .7rem; letter-spacing: .25em; line-height: 1.25; opacity: .7; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a, .mobile-menu a { font-size: .78rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; transition: opacity .2s ease; }
.nav-links a:hover, .mobile-menu a:hover { opacity: .6; }
.menu-toggle { display: none; width: 32px; height: 32px; padding: 6px 4px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 5px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { padding: 0 24px 24px; background: var(--primary); }
.mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 1.2rem; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: #0a1a14; color: var(--primary-foreground); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,26,20,.3), rgba(10,26,20,.7)); }
.hero-content { position: relative; width: min(780px, calc(100% - 48px)); text-align: center; }
.hero-eyebrow { margin-bottom: 1.5rem; color: var(--primary-foreground); opacity: .7; letter-spacing: .3em; }
.hero h1 { margin-bottom: 1.5rem; color: var(--primary-foreground); font-size: clamp(3rem, 7vw, 4.7rem); font-style: italic; font-weight: 500; line-height: 1.1; }
.hero-copy { max-width: 690px; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 300; line-height: 1.7; opacity: .85; }
.hero-cta { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2.5rem; color: var(--accent); font-size: .8rem; letter-spacing: .2em; text-decoration: none; text-transform: uppercase; transition: opacity .2s ease; }
.hero-cta:hover { opacity: .6; }
.hero-cta span { font-size: 1.2rem; }

.about-section { background: var(--background); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.portrait-wrap { position: relative; }
.portrait-frame { position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--border); border-radius: var(--radius); }
.portrait { position: relative; width: 100%; aspect-ratio: 5 / 6; border-radius: var(--radius); object-fit: cover; object-position: 42% center; }
.about-grid p:not(.eyebrow) { margin-bottom: 1.25rem; color: var(--muted-foreground); }
.tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.tags span { padding: .55rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted-foreground); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

.services-section { background: var(--card); }
.section-heading { margin-bottom: 4rem; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.split-heading > p { max-width: 380px; margin-bottom: .35rem; color: var(--muted-foreground); font-size: .9rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }
.service { display: flex; align-items: flex-start; gap: 1rem; min-height: 96px; padding: 1.5rem; border-top: 1px solid var(--border); transition: background-color .2s ease; }
.service:nth-child(3n+2), .service:nth-child(3n+3) { border-left: 1px solid var(--border); }
.service:hover { background: var(--muted); }
.service span { flex: 0 0 1.6rem; margin-top: .15rem; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; }
.service p { margin: 0; font-size: .9rem; line-height: 1.6; }

.parallax-section { position: relative; min-height: 520px; padding: 10rem 0; display: grid; place-items: center; background-color: #10251c; background-image: url('https://images.unsplash.com/photo-1776831185107-179b943aa16b?w=1920&h=1080&fit=crop&auto=format'); background-size: cover; background-position: center; background-attachment: fixed; }
.parallax-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,58,47,.88), rgba(10,26,20,.75)); }
.quote-content { position: relative; width: min(760px, calc(100% - 48px)); text-align: center; }
.quote-content .eyebrow { letter-spacing: .3em; opacity: .8; }
.quote-content h2 { margin-bottom: 2rem; color: var(--primary-foreground); font-size: clamp(2.2rem, 5vw, 3.7rem); font-style: italic; font-weight: 400; line-height: 1.16; }

.projects-section { background: var(--background); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card { overflow: hidden; border-radius: var(--radius); }
.project-image { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--muted), var(--border)); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-copy { padding: 1rem 0 1.5rem; }
.project-rule { width: 24px; height: 1px; margin-bottom: .75rem; background: var(--accent); transition: width .3s ease; }
.project-card:hover .project-rule { width: 40px; }
.project-copy h3 { margin-bottom: .35rem; color: var(--primary); font-size: 1rem; font-weight: 600; }
.project-copy p { margin: 0; color: var(--muted-foreground); font-size: .86rem; line-height: 1.5; }

.contact-section { background: var(--primary); color: var(--primary-foreground); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-section h2 { color: var(--primary-foreground); font-style: italic; }
.contact-section > .container > div:first-child > p:last-child { color: rgba(245,239,224,.75); }
.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-links a, .contact-links .phone-reveal { display: flex; align-items: center; gap: 1rem; min-height: 96px; padding: 1.5rem; border: 1px solid rgba(245,239,224,.2); border-radius: var(--radius); text-decoration: none; transition: background-color .2s ease; }
.contact-links a:hover, .contact-links .phone-reveal:hover { background: rgba(245,239,224,.08); }
.contact-icon { flex: 0 0 28px; color: var(--accent); font-size: 1.25rem; text-align: center; }
.contact-links a > span:last-child, .phone-reveal > span:last-child { min-width: 0; }
.contact-links small { display: block; margin-bottom: .3rem; font-size: .7rem; letter-spacing: .15em; opacity: .6; text-transform: uppercase; }
.contact-links strong { display: block; overflow-wrap: anywhere; font-size: .9rem; font-weight: 500; }

.site-footer { padding: 2rem 0; border-top: 1px solid rgba(245,239,224,.1); background: #0a1a14; color: rgba(245,239,224,.4); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-inner p { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.footer-inner p:last-child { color: rgba(245,239,224,.3); font-family: var(--font-display); font-style: italic; letter-spacing: normal; text-transform: none; }

@media (max-width: 900px) {
  .section { padding: 6rem 0; }
  .nav-links { display: none; }
  .menu-toggle { display: block; color: var(--primary-foreground); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .portrait-wrap { width: min(620px, 100%); margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(n) { border-left: 0; }
  .service:nth-child(even) { border-left: 1px solid var(--border); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .parallax-section { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1152px); }
  .section { padding: 5rem 0; }
  .hero-content, .quote-content { width: min(100% - 32px, 780px); }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(n) { border-left: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-links a, .contact-links .phone-reveal { padding: 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Project cards are links to dedicated project pages. */
.project-link { display: block; text-decoration: none; }
.project-title-link { color: inherit; text-decoration: none; transition: color .2s ease; }
.project-title-link:hover { color: var(--accent); }
.project-card:focus-within .project-rule { width: 40px; }
.project-link:focus-visible, .project-title-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Individual project page */
.project-page { min-height: 100vh; background: var(--background); }
.project-nav { background: rgba(10,26,20,.96); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.project-hero { position: relative; min-height: 72svh; display: grid; place-items: center; overflow: hidden; background-color: #0a1a14; background-image: linear-gradient(to bottom, rgba(10,26,20,.28), rgba(10,26,20,.78)), var(--project-cover); background-size: cover; background-position: center; background-attachment: fixed; color: var(--primary-foreground); }
.project-hero-content { position: relative; width: min(900px, calc(100% - 48px)); padding-top: 76px; text-align: center; }
.project-hero .eyebrow { color: var(--accent); }
.project-hero h1 { margin: 0 auto 1.5rem; color: var(--primary-foreground); font-size: clamp(3rem, 8vw, 5.4rem); font-style: italic; font-weight: 500; line-height: 1.06; }
.project-hero-summary { max-width: 700px; margin: 0 auto; color: rgba(245,239,224,.82); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 300; }
.project-body { padding: 7rem 0 8rem; }
.project-content { width: min(860px, 100%); margin-inline: auto; }
.project-content h2 { margin-bottom: 1.5rem; }
.project-content .lead { color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.85; }
.project-content .lead + .lead { margin-top: 1.25rem; }
.project-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-top: 4.5rem; margin-bottom: 1.5rem; }
.project-gallery-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.project-gallery-heading p { max-width: 340px; margin: 0; color: var(--muted-foreground); font-size: .85rem; }
.project-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-thumb { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--muted); cursor: zoom-in; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.gallery-thumb::after { content: 'Ampliar'; position: absolute; right: .75rem; bottom: .75rem; padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.35); background: rgba(10,26,20,.72); color: #fff; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; opacity: 0; transition: opacity .2s ease; }
.gallery-thumb:hover img, .gallery-thumb:focus-visible img { transform: scale(1.035); filter: brightness(.84); }
.gallery-thumb:hover::after, .gallery-thumb:focus-visible::after { opacity: 1; }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-back { display: inline-flex; align-items: center; gap: .6rem; margin-top: 4rem; color: var(--primary); font-size: .75rem; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.project-back:hover { color: var(--accent); }

/* Lightbox / carousel */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(4,10,7,.94); }
.lightbox-dialog { position: relative; width: min(1180px, 100%); height: min(90vh, 900px); height: min(90dvh, 900px); max-height: 100%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lightbox-stage { position: relative; min-height: 0; min-width: 0; flex: 1 1 0; }
.lightbox-image { position: absolute; top: 48px; left: 54px; width: calc(100% - 108px); height: calc(100% - 56px); min-width: 0; min-height: 0; max-width: none; max-height: none; object-fit: contain; object-position: center; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); background: rgba(10,26,20,.66); color: #fff; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(30,58,47,.95); border-color: rgba(255,255,255,.55); }
.lightbox-close { top: 0; right: 0; width: 46px; height: 46px; font-size: 1.55rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 50px; height: 64px; transform: translateY(-50%); font-size: 1.7rem; }
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; color: rgba(255,255,255,.72); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.lightbox-dots { display: flex; gap: .45rem; }
.lightbox-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.32); cursor: pointer; }
.lightbox-dot.is-active { background: var(--accent); }

@media (max-width: 900px) {
  .project-hero { background-attachment: scroll; min-height: 62svh; }
  .project-body { padding: 5.5rem 0 6rem; }
  .project-gallery-heading { display: block; }
  .project-gallery-heading p { margin-top: .75rem; }
}
@media (max-width: 640px) {
  .project-hero-content { width: min(100% - 32px, 900px); }
  .project-thumbnails { grid-template-columns: 1fr; }
  .gallery-thumb { aspect-ratio: 16 / 10; }
  .lightbox { padding: 12px; }
  .lightbox-dialog { height: calc(100vh - 24px); height: calc(100dvh - 24px); }
  .lightbox-image { top: 46px; left: 0; width: 100%; height: calc(100% - 104px); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 0; transform: none; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 54px; }
  .lightbox-close { width: 42px; height: 42px; }
}

/* Version 7: clarity, contact and accessible navigation. Image rules remain unchanged. */
:root { --accent-text: #80621D; }
html { scroll-padding-top: 100px; }
section[id], main[id] { scroll-margin-top: 100px; }
.eyebrow { color: var(--accent-text); }
.hero-eyebrow { color: var(--primary-foreground); }
.contact-section .eyebrow, .quote-content .eyebrow, .project-hero .eyebrow { color: #D7B65F; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 5px; }
.site-nav :focus-visible, .hero :focus-visible, .contact-section :focus-visible, .lightbox :focus-visible { outline-color: #F5EFE0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 2000; padding: 12px 20px; background: #FFFDF7; color: #1E3A2F; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.hero-content { padding-block: 110px 50px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 32px; }
.hero-actions .hero-cta { margin: 0; color: #D7B65F; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 22px; text-decoration: none; font-size: .92rem; font-weight: 600; border-radius: 2px; text-align: center; }
.button-primary { background: #1E3A2F; color: #FFFDF7; }
.hero .button-primary { background: #F5EFE0; color: #1E3A2F; }
.button:hover { filter: brightness(.92); }
.section { padding-block: 5rem; }
.parallax-section { min-height: 280px; padding-block: 4rem; }
.quote-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.section-heading { margin-bottom: 2.5rem; }
.services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border: 0; }
.service-group { border-top: 1px solid var(--border); padding: 24px 0; }
.service-number { color: var(--accent-text); font-size: .8rem; }
.service-group h3 { margin: 12px 0; color: var(--primary); font-size: 1.4rem; line-height: 1.3; }
.service-group p, .services-note, .portfolio-intro { color: var(--muted-foreground); }
.service-group ul { padding-left: 20px; margin-bottom: 0; font-size: .9rem; }
.service-group li + li { margin-top: 10px; }
.services-note { margin: 20px 0 0; font-size: .9rem; }
.project-card:nth-child(-n+3) .project-copy h3 { font-size: 1.2rem; }
.project-card:nth-child(-n+3) .project-rule { width: 48px; }
.project-contact { padding: 28px; background: var(--muted); margin-top: 48px; }
.project-contact h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.nav-contact { margin-left: auto; padding: 10px 14px; font-size: .85rem; }
.project-nav .nav-inner { gap: 16px; }
.menu-toggle { width: 44px; height: 44px; padding: 12px 10px; }
.lightbox-dot { display: grid; place-items: center; width: 28px; height: 32px; border-radius: 0; background: transparent; }
.lightbox-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
.lightbox-dot.is-active { background: transparent; }
.lightbox-dot.is-active::before { background: var(--accent); }
.lightbox-dots { gap: 2px; flex-wrap: wrap; justify-content: center; }
.lightbox-meta { flex-wrap: wrap; gap: 8px; flex: 0 0 auto; max-height: 35%; overflow-y: auto; padding: 4px; min-width: 0; }
.site-footer, .footer-inner p:last-child { color: #B4BDB5; }
.contact-links small { opacity: .85; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
 .section { padding-block: 3.5rem; }
 .services-grid { grid-template-columns: 1fr; gap: 4px; }
 .hero-actions { flex-direction: column; }
 .hero-actions .button { width: 100%; }
 .project-nav .nav-inner { gap: 8px; }
 .nav-contact { padding-inline: 8px; }
 .project-nav .project-back { font-size: .65rem; letter-spacing: .04em; }
 .project-contact { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { .parallax-section, .project-hero { background-attachment: scroll; } }

/* Gallery captions and lightbox. */
.gallery-figure { margin: 0; min-width: 0; }
.gallery-figure .gallery-thumb { display: block; width: 100%; }
.gallery-figure figcaption { margin-top: .7rem; color: var(--muted-foreground); font-size: .83rem; line-height: 1.6; }
.gallery-figure figcaption strong { color: var(--accent-text); }
.lightbox-caption { flex-basis: 100%; max-width: 850px; margin: 0; text-align: center; color: #F5EFE0; font-size: .85rem; letter-spacing: normal; text-transform: none; }
.lightbox-stage { overflow: hidden; }

/* V8.1: scroll-driven parallax, including narrow screens. */
.parallax-ready { overflow: hidden; background-image: none; background-attachment: scroll; }
.parallax-layer { position: absolute; inset: -20% 0; width: 100%; height: 140%; max-width: none; background-size: cover; background-position: center; pointer-events: none; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .parallax-layer { inset: 0; height: 100%; transform: none !important; will-change: auto; }
}

/* V9: project details and professional trajectory. */
.profile-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; max-width: 100%; padding: 16px 22px; margin-top: 1rem; border: 1px solid var(--primary); border-radius: 3px; background: var(--primary); color: var(--primary-foreground); box-shadow: 0 5px 14px rgba(30,58,47,.13); font-weight: 600; line-height: 1.5; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.profile-cta:hover { background: #294D3F; color: var(--primary-foreground); box-shadow: 0 7px 18px rgba(30,58,47,.2); }
.profile-cta span { flex-shrink: 0; color: #D7B65F; }
.profile-cta span { font-size: 1.2rem; transition: transform .2s ease; }
.profile-cta:hover span { transform: translateX(4px); }
.project-highlights { margin-top: 2rem; padding: 1.6rem; border-left: 3px solid var(--accent-text); background: var(--card); }
.project-highlights h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1.35rem; }
.detail-list { margin: 0; padding-left: 1.25rem; color: var(--muted-foreground); }
.detail-list li + li { margin-top: .7rem; }
.visual-note { margin-top: 1.5rem; color: var(--muted-foreground); font-size: .88rem; font-style: italic; }
.events-list { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--border); }
.event-item { display: grid; grid-template-columns: 155px 1fr; gap: 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.event-item time { color: var(--accent-text); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.event-item h3 { margin-bottom: .55rem; color: var(--primary); font-size: 1.25rem; }
.event-item p { margin-bottom: .7rem; color: var(--muted-foreground); }
.event-item a { color: var(--primary); font-weight: 600; }
.profile-hero { padding: 8.5rem 0 4.5rem; background: var(--primary); color: var(--primary-foreground); }
.profile-hero-grid { display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: 4rem; align-items: center; }
.profile-hero img { width: 100%; max-height: 510px; border-radius: var(--radius); object-fit: cover; object-position: 42% center; }
.profile-hero h1 { margin-bottom: 1.25rem; color: var(--primary-foreground); font-size: clamp(3rem, 7vw, 5.5rem); font-style: italic; font-weight: 500; line-height: 1.05; }
.profile-hero p:not(.eyebrow) { max-width: 650px; color: rgba(245,239,224,.84); font-size: 1.16rem; line-height: 1.75; }
.button-light { background: var(--primary-foreground); color: var(--primary); }
.profile-body { padding: 6rem 0 8rem; }
.profile-content { width: min(960px, calc(100% - 48px)); }
.profile-intro, .profile-section { padding-bottom: 5rem; }
.profile-intro .lead { color: var(--muted-foreground); font-size: 1.08rem; line-height: 1.85; }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.education-card { padding: 1.5rem; border: 1px solid var(--border); background: var(--card); }
.education-card span, .career-list article > span { color: var(--accent-text); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.education-card h3 { margin: .8rem 0 .6rem; color: var(--primary); font-size: 1.18rem; line-height: 1.35; }
.education-card p { margin: 0; color: var(--muted-foreground); }
.research-feature { margin-bottom: 5rem; padding: clamp(1.75rem, 5vw, 3.5rem); background: var(--primary); color: var(--primary-foreground); }
.research-feature h2 { color: var(--primary-foreground); }
.research-feature p { margin-bottom: 1.5rem; color: rgba(245,239,224,.84); line-height: 1.8; }
.research-feature .button-primary { background: var(--primary-foreground); color: var(--primary); }
.career-list { border-top: 1px solid var(--border); }
.career-list article { padding: 1.65rem 0; border-bottom: 1px solid var(--border); }
.career-list h3 { margin: .65rem 0; color: var(--primary); font-size: 1.3rem; }
.career-list p { margin: 0; color: var(--muted-foreground); line-height: 1.75; }
.credentials-list { columns: 2; column-gap: 3rem; padding-left: 1.2rem; color: var(--muted-foreground); }
.credentials-list li { break-inside: avoid; margin-bottom: 1rem; }
@media (max-width: 760px) {
  .event-item { grid-template-columns: 1fr; gap: .6rem; }
  .profile-hero-grid, .education-grid { grid-template-columns: 1fr; }
  .profile-hero-grid { gap: 2.5rem; }
  .profile-hero img { max-height: 440px; }
  .profile-content { width: min(100% - 32px, 960px); }
  .credentials-list { columns: 1; }
}

/* V9.1: collaboration and professional systems. */
.partner-name { color: var(--primary); text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.partner-feature, .systems-feature { margin-block: 2rem 3rem; padding: clamp(1.4rem, 4vw, 2.2rem); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent-text); }
.partner-feature h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1rem; }
.partner-feature p, .systems-feature p { color: var(--muted-foreground); line-height: 1.8; }
.partner-button { gap: 1rem; border: 1px solid var(--primary); color: var(--primary); background: transparent; max-width: 100%; }
.partner-button:hover { background: var(--primary); color: var(--primary-foreground); }
.systems-feature h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.systems-feature .tags { margin-top: 1.4rem; gap: .6rem; }

/* V9.2: gallery of professional activities, without captions. */
.profile-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.profile-photo-grid .gallery-thumb { width: 100%; aspect-ratio: 3 / 4; }
.profile-photo-grid .gallery-thumb img { object-fit: contain; }
.profile-photo-grid .gallery-thumb:hover img, .profile-photo-grid .gallery-thumb:focus-visible img { transform: none; }
@media (max-width: 640px) { .profile-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }

/* Contact details are created only after a visitor chooses to reveal them. */
button.button { border: 0; cursor: pointer; }
.phone-reveal { width: 100%; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.phone-reveal:focus-visible, button[data-whatsapp-message]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
#phone-details { padding: 1.25rem 1.5rem; border: 1px solid rgba(245,239,224,.2); border-top: 0; }
#phone-details > strong { margin-bottom: 1rem; font-size: 1rem; }
.contact-links #phone-details a { min-height: 44px; padding: .75rem 1rem; justify-content: center; font-size: .9rem; }
