:root {
  --navy: #2d4161;
  --navy-2: #1c2d47;
  --ink: #1a2b43;
  --paper: #f7efd4;
  --white: #fff;
  --gold: #c2971d;
  --gold-light: #e0bd58;
  --muted: #637084;
  --line: rgba(45, 65, 97, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
.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; }

.site-header { height: 92px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; background: #171d27; color: var(--white); border-bottom: 1px solid rgba(224, 189, 88, .3); position: relative; z-index: 20; box-shadow: 0 10px 35px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 68px; max-width: min(330px, 45vw); object-fit: contain; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { text-decoration: none; font-size: .9rem; color: rgba(255,255,255,.82); }
nav a:hover, nav a:focus-visible { color: var(--gold-light); }
.nav-cta { border: 1px solid rgba(240,212,140,.72); padding: 11px 18px; background: rgba(240,212,140,.06); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 1px; background: var(--gold-light); margin: 6px 0; }

.hero { min-height: calc(100vh - 92px); background: radial-gradient(circle at 83% 24%, rgba(45,65,97,.64), transparent 30%), linear-gradient(118deg, #171d27 0%, #1c2d47 66%, #19243a 100%); color: var(--white); padding: clamp(72px, 9vw, 140px) clamp(24px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: clamp(60px, 9vw, 145px); align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: -60px; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 32px), repeating-linear-gradient(-45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 32px); mask-image: linear-gradient(to right, transparent 10%, black 78%); pointer-events: none; }
.hero-rule { position: absolute; width: 1px; height: 150px; background: var(--gold); left: clamp(24px, 3.5vw, 54px); top: 0; }
.hero-copy, .hero-panel { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; text-align: left; }
.eyebrow { margin: 0 0 22px; color: #a77e11; text-transform: uppercase; letter-spacing: .18em; font-size: .73rem; font-weight: 600; }
.hero .eyebrow { color: var(--gold-light); }
h1, h2 { font-family: "Libre Caslon Display", serif; font-weight: 400; letter-spacing: -.025em; line-height: 1.05; margin: 0; }
h1 { max-width: 800px; margin-inline: 0; font-size: clamp(3.1rem, 5.8vw, 6rem); }
.hero-lead { max-width: 650px; font-size: clamp(1.08rem, 1.45vw, 1.3rem); color: rgba(255,255,255,.73); margin: 34px 0 0; text-align: left; }
.hero-actions { margin-top: 42px; display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 28px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 25px; border: 1px solid transparent; font: 600 .9rem/1 "DM Sans", sans-serif; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; transition: transform .25s ease, background-color .25s ease, border-color .25s ease; }
.button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.4) 48%, transparent 74%); transform: translateX(-145%); transition: transform .65s ease; }
.button:hover::after, .button:focus-visible::after { transform: translateX(145%); }
.button-gold { color: #171d27; background: #d6ac35; border-color: #d6ac35; box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.button-gold:hover, .button-gold:focus-visible { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.text-link { color: var(--white); text-decoration-color: rgba(230,207,145,.5); text-underline-offset: 6px; font-size: .92rem; }
.text-link span { color: var(--gold-light); margin-left: 7px; }
.hero-panel { border-left: 1px solid rgba(230,207,145,.38); padding: 28px 0 28px clamp(38px, 5vw, 70px); }
.hero-emblem { display: block; width: min(330px, 100%); height: auto; margin: -24px auto 6px; filter: drop-shadow(0 16px 24px rgba(0,0,0,.16)); }
.hero-panel p { max-width: 410px; font-family: "Libre Caslon Display", serif; font-size: 1.45rem; line-height: 1.55; margin: 0 auto 30px; color: rgba(255,255,255,.9); text-align: left; }
.hero-panel span { display: block; font-size: .7rem; color: var(--gold-light); text-transform: uppercase; text-align: center; letter-spacing: .13em; }

.services { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 110px); }
.section-heading { max-width: 760px; margin: 0 auto 68px; text-align: center; }
h2 { font-size: clamp(2.65rem, 5vw, 5rem); color: var(--navy); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 24px auto 0; text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { padding: 42px clamp(24px, 3vw, 46px) 46px; min-height: 390px; display: flex; flex-direction: column; border-right: 1px solid var(--line); text-align: left; transition: .25s ease; }
.service-card:first-child { padding-left: clamp(24px, 3vw, 46px); }
.service-card:last-child { border-right: 0; }
.service-card:hover { background: rgba(255,255,255,.5); transform: translateY(-6px); box-shadow: 0 20px 44px rgba(45,65,97,.1); }
.service-number { font-family: "Libre Caslon Display", serif; color: #9a7834; font-size: 1.2rem; }
.service-card h3, .process-list h3 { font-family: "Libre Caslon Display", serif; color: var(--navy); font-size: 1.75rem; line-height: 1.2; font-weight: 400; margin: 40px 0 18px; }
.service-card p { color: var(--muted); margin: 0 0 26px; text-align: left; }
.service-card a { margin-top: auto; font-size: .88rem; font-weight: 600; text-underline-offset: 5px; }
.service-card a span { color: #9a7834; margin-left: 5px; }

.approach { background: var(--white); padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 110px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 140px); }
.approach-intro { text-align: left; }
.approach-intro h2 { font-size: clamp(2.6rem, 4.4vw, 4.6rem); }
.process-list { list-style: none; padding: 0; margin: 0; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 25px; padding: 8px 0 34px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.process-list > li > span { color: #9a7834; font-size: .8rem; font-weight: 600; padding-top: 8px; }
.process-list h3 { margin: 0 0 8px; text-align: left; }
.process-list p { color: var(--muted); margin: 0; text-align: left; }

.identity-film { padding: clamp(80px, 9vw, 138px) clamp(24px, 7vw, 110px); background: #171d27; color: var(--white); position: relative; overflow: hidden; }
.identity-film::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(45,65,97,.42), transparent 54%); pointer-events: none; }
.identity-heading { max-width: 840px; margin: 0 auto 48px; text-align: center; position: relative; z-index: 1; }
.identity-heading .eyebrow { color: var(--gold-light); margin-bottom: 16px; }
.identity-heading h2 { color: var(--white); font-size: clamp(2.65rem, 4.8vw, 4.9rem); }
.identity-heading > p:last-child { max-width: 650px; margin: 22px auto 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.identity-video-frame { max-width: 1180px; margin-inline: auto; padding: clamp(6px, .7vw, 10px); border: 1px solid rgba(224,189,88,.42); background: rgba(255,255,255,.035); box-shadow: 0 34px 90px rgba(0,0,0,.32); position: relative; z-index: 1; }
.identity-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #091626; object-fit: cover; }

.team { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 110px); background: #f7efd4; }
.team-heading { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.team-heading > p { color: var(--muted); margin: 26px auto 0; max-width: 660px; text-align: center; }
.team-grid { display: grid; grid-template-columns: 1fr; max-width: 1100px; margin-inline: auto; border-top: 1px solid var(--line); }
.team-card { min-height: 148px; padding: 28px 34px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: clamp(22px, 4vw, 52px); text-align: left; background: rgba(255,255,255,.52); cursor: pointer; transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease; }
.team-card:nth-child(even) { background: var(--navy); color: var(--white); }
.team-card:hover, .team-card:focus-visible { transform: translateX(7px); background: var(--white); box-shadow: -7px 0 0 #9a7834, 0 18px 38px rgba(45,65,97,.12); }
.team-card:nth-child(even):hover, .team-card:nth-child(even):focus-visible { background: var(--navy-2); box-shadow: -7px 0 0 var(--gold-light), 0 18px 38px rgba(18,29,45,.22); }
.team-card:focus-visible { outline: 2px solid #9a7834; outline-offset: 4px; }
.member-mark { width: 62px; height: 62px; border: 1px solid rgba(194,151,29,.75); display: grid; place-items: center; color: #9a7834; font-family: "Libre Caslon Display", serif; font-size: 1.2rem; letter-spacing: .08em; }
.team-card:nth-child(even) .member-mark { color: var(--gold-light); border-color: rgba(230,207,145,.55); }
.member-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 30px; row-gap: 8px; }
.member-role { grid-column: 1; grid-row: 2; margin: 0; color: #9a7834; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 600; }
.team-card:nth-child(even) .member-role { color: var(--gold-light); }
.team-card h3 { grid-column: 1; grid-row: 1; margin: 0; color: var(--navy-2); font: 400 clamp(1.65rem, 3vw, 2.3rem)/1.13 "Libre Caslon Display", serif; }
.team-card:nth-child(even) h3 { color: var(--white); }
.member-profile-link { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.team-card:nth-child(even) .member-profile-link { color: rgba(255,255,255,.76); }
.member-profile-link span { color: #9a7834; margin-left: 5px; }
.team-card:hover .member-profile-link, .team-card:focus-visible .member-profile-link { color: #765716; }
.team-card:nth-child(even):hover .member-profile-link, .team-card:nth-child(even):focus-visible .member-profile-link { color: var(--gold-light); }

.member-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--white); color: var(--ink); box-shadow: 0 34px 90px rgba(10,18,30,.42); }
.member-dialog::backdrop { background: rgba(15,24,38,.76); backdrop-filter: blur(4px); }
.dialog-profile { padding: clamp(38px, 7vw, 72px); text-align: center; }
.dialog-close { position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--navy); font: 300 1.8rem/1 sans-serif; cursor: pointer; }
.dialog-close:hover, .dialog-close:focus-visible { background: #f7efd4; outline: 2px solid #9a7834; outline-offset: 2px; }
.dialog-mark { width: 72px; height: 72px; margin: 0 auto 30px; border: 1px solid rgba(194,151,29,.7); display: grid; place-items: center; color: #9a7834; font: 400 1.35rem/1 "Libre Caslon Display", serif; letter-spacing: .1em; }
.member-dialog h2 { color: var(--navy); font-size: clamp(2.35rem, 6vw, 3.8rem); line-height: 1.06; margin: 10px auto 12px; }
.dialog-role { color: #9a7834; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 600; }
.dialog-summary { max-width: 470px; margin: 28px auto 34px; color: var(--muted); }
.dialog-contact { padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dialog-contact p { margin: 0 0 4px; color: var(--navy); font-weight: 600; }
.dialog-contact .button { min-width: min(100%, 310px); }
.dialog-whatsapp { min-width: min(100%, 310px); border: 1px solid #9a7834; color: var(--navy); background: transparent; }
.dialog-whatsapp:hover, .dialog-whatsapp:focus-visible { color: var(--white); background: var(--navy); border-color: var(--navy); }
body:has(.member-dialog[open]) { overflow: hidden; }

.contact { padding: clamp(80px, 9vw, 140px) clamp(24px, 7vw, 110px); background: #2d4161; color: var(--white); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(55px, 9vw, 150px); }
.contact-copy { text-align: left; }
.contact h2 { color: var(--white); font-size: clamp(2.7rem, 4.5vw, 4.8rem); }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.66); margin: 28px 0 0; max-width: 540px; text-align: left; }
.contact-note { display: flex; gap: 18px; margin-top: 50px; align-items: center; justify-content: flex-start; text-align: left; }
.contact-note > span { width: 48px; height: 48px; border: 1px solid rgba(230,207,145,.4); color: var(--gold-light); display: grid; place-items: center; font-family: serif; font-size: 1.5rem; }
.contact-note p { margin: 0; color: rgba(255,255,255,.66); }
.contact-note strong { color: var(--white); font-weight: 500; }
.contact-form { background: var(--white); color: var(--ink); padding: clamp(26px, 4vw, 52px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 21px; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #aeb5bf; background: transparent; padding: 11px 0 12px; color: var(--ink); font: 400 1rem/1.4 "DM Sans", sans-serif; border-radius: 0; }
.contact-form textarea { border: 1px solid #c4c9cf; padding: 13px; margin-top: 9px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(154,120,52,.4); outline-offset: 3px; border-color: #9a7834; }
.consent { display: flex !important; align-items: flex-start; gap: 11px; font-weight: 400 !important; color: var(--muted); letter-spacing: 0 !important; }
.consent input { margin-top: 5px; accent-color: var(--navy); }
.contact-form .button { margin-top: 8px; width: 100%; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: .85rem; color: #8b6420; }

.site-footer { background: #171d27; color: rgba(255,255,255,.66); padding: 0 clamp(24px, 7vw, 110px); font-size: .9rem; }
.footer-cta { min-height: 245px; padding: 58px 0; display: flex; align-items: center; justify-content: space-between; gap: 45px; border-bottom: 1px solid rgba(240,212,140,.2); }
.footer-cta > div { text-align: left; }
.footer-cta .eyebrow { color: var(--gold-light); margin-bottom: 14px; }
.footer-cta h2 { color: var(--white); font-size: clamp(2.4rem, 4.3vw, 4.4rem); }
.footer-button { flex: 0 0 auto; color: #071727; background: var(--gold-light); border-color: var(--gold-light); min-width: 230px; }
.footer-button span { margin-left: 13px; }
.footer-button:hover, .footer-button:focus-visible { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.footer-main { padding: 65px 0 58px; display: grid; grid-template-columns: 1.35fr 1fr .85fr; gap: clamp(45px, 7vw, 105px); }
.footer-identity { text-align: left; }
.footer-identity img { display: block; width: min(360px, 100%); height: auto; margin-inline: 0; }
.footer-identity p { max-width: 420px; margin: 28px 0 0; line-height: 1.8; text-align: left; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; }
.footer-column h3 { color: var(--gold-light); font: 400 1.2rem/1.2 "Libre Caslon Display", serif; margin: 0 0 15px; }
.footer-column a { color: rgba(255,255,255,.72); text-decoration: none; line-height: 1.55; }
.footer-column a:hover, .footer-column a:focus-visible { color: var(--gold-light); }
.footer-column p { margin: 0; }
.footer-contact-link { margin-top: 14px; padding-bottom: 3px; border-bottom: 1px solid rgba(240,212,140,.38); }
.footer-contact-link span { color: var(--gold-light); margin-left: 6px; }
.footer-bottom { min-height: 90px; padding: 22px 0; display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: center; gap: 30px; border-top: 1px solid rgba(255,255,255,.09); font-size: .75rem; }
.footer-bottom p { margin: 0; text-align: left; }
.footer-bottom a { color: var(--gold-light); text-decoration: none; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes markFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
  @keyframes patternDrift {
    from { transform: translate3d(-12px, -8px, 0); }
    to { transform: translate3d(24px, 18px, 0); }
  }
  .hero::after { animation: patternDrift 28s linear infinite alternate; }
  .hero-copy .eyebrow { animation: riseIn .7s .05s both; }
  .hero-copy h1 { animation: riseIn .8s .16s both; }
  .hero-lead { animation: riseIn .8s .28s both; }
  .hero-actions { animation: riseIn .8s .4s both; }
  .hero-panel { animation: riseIn .9s .3s both; }
  .hero-emblem { animation: markFloat 7s 1.2s ease-in-out infinite; }
  .motion-ready .reveal-item { opacity: 0; transform: translateY(28px); transition: opacity .72s ease var(--reveal-delay, 0ms), transform .72s cubic-bezier(.2,.65,.3,1) var(--reveal-delay, 0ms); }
  .motion-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .site-header { height: 78px; }
  .brand img { height: 54px; max-width: 235px; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 78px; left: 0; right: 0; background: var(--navy); padding: 24px; display: none; flex-direction: column; align-items: stretch; gap: 20px; border-top: 1px solid rgba(230,207,145,.2); }
  nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 90px; }
  .hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
  h1 { margin-inline: auto; }
  .hero-lead { margin-inline: auto; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-panel { max-width: 620px; margin-inline: auto; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:first-child { min-height: 0; padding: 38px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-card:last-child { border-bottom: 0; }
  .service-card h3 { margin-top: 22px; }
  .approach, .contact { grid-template-columns: 1fr; }
  .approach-intro, .contact-copy { text-align: center; }
  .contact-copy > p:not(.eyebrow) { margin-inline: auto; text-align: center; }
  .contact-note { justify-content: center; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .hero { padding-bottom: 80px; }
  .hero-panel { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(230,207,145,.38); }
  .hero-emblem { width: min(230px, 76vw); margin-top: 0; }
  .hero-panel p { text-align: center; }
  .identity-film { padding-inline: 16px; }
  .identity-heading { margin-bottom: 34px; padding-inline: 8px; }
  .identity-video-frame { padding: 4px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-cta { align-items: center; flex-direction: column; text-align: center; }
  .footer-cta > div { text-align: center; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-identity, .footer-identity p { text-align: center; }
  .footer-identity img { margin-inline: auto; }
  .footer-bottom { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
}

@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { min-height: 0; padding: 24px 20px; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; }
  .member-mark { width: 52px; height: 52px; }
  .member-info { grid-template-columns: 1fr; row-gap: 7px; }
  .member-role, .team-card h3, .member-profile-link { grid-column: 1; grid-row: auto; }
  .member-profile-link { margin-top: 8px; white-space: normal; }
  .footer-cta { min-height: 0; padding: 56px 0; }
  .footer-button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; padding: 52px 0; }
  .footer-identity { grid-column: auto; }
  .footer-identity img { width: min(310px, 100%); }
  .footer-column { align-items: center; text-align: center; }
  .footer-bottom p { text-align: center; }
}

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