:root {
  --ink: #191812;
  --ink-soft: #46443c;
  --paper: #f6f3ec;
  --paper-deep: #ece7dc;
  --gold: #d8aa00;
  --gold-light: #f2ca42;
  --line: rgba(25, 24, 18, .16);
  --display: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --container: min(1240px, calc(100vw - 80px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: .96; letter-spacing: -.035em; }
h1 { font-size: clamp(3.8rem, 7.1vw, 7.4rem); }
h2 { font-size: clamp(2.8rem, 4.6vw, 5.3rem); }
h3 { font-size: clamp(1.85rem, 2.7vw, 2.8rem); }
.eyebrow { margin-bottom: 1.25rem; color: var(--gold); font-size: .69rem; font-weight: 700; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; }
.section { padding: clamp(6rem, 11vw, 10rem) 0; }
.section-heading { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading h2 { margin-bottom: 1.45rem; }
.section-copy { max-width: 620px; color: var(--ink-soft); }
.section-heading--center .section-copy { margin-inline: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; min-height: 52px; padding: .9rem 1.25rem; border: 1px solid transparent; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-align: center; text-transform: uppercase; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1.1rem; line-height: 0; }
.button--gold { background: var(--gold); color: var(--ink); }
.button--gold:hover { background: var(--gold-light); }
.button--dark { background: var(--ink); color: var(--paper); }
.button--dark:hover { background: #343228; }
.button--full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .9rem; border-bottom: 1px solid var(--gold); padding-bottom: .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transition: color .2s ease; }
.text-link:hover { color: var(--gold); }
.text-link span { font-size: 1rem; }
.text-link--light { border-color: rgba(255,255,255,.5); color: #fff; }

/* Header */
.site-header { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; background: var(--ink); color: var(--paper); transition: background-color .35s ease, box-shadow .35s ease, transform .35s ease; }
.has-transparent-header .site-header { background: linear-gradient(180deg, rgba(13,13,11,.65), transparent); }
.site-header.is-scrolled, .has-transparent-header .site-header.is-scrolled { background: rgba(23, 22, 18, .96); box-shadow: 0 8px 30px rgba(0,0,0,.16); }
body.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; min-height: 80px; gap: clamp(1rem, 2vw, 2.6rem); transition: min-height .3s ease; }
.is-scrolled .header-inner { min-height: 67px; }
.brand { width: 155px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.3rem); margin-left: auto; }
.desktop-nav-list { display: flex; align-items: center; gap: clamp(1rem, 2.1vw, 2.3rem); margin: 0; padding: 0; list-style: none; }
.desktop-nav-list li { list-style: none; }
.desktop-nav a { color: rgba(255,255,255,.82); font-size: .61rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transition: color .2s ease; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--gold-light); }
.header-cta { border: 1px solid rgba(255,255,255,.5); padding: .62rem .8rem; color: #fff; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s ease, color .2s ease; white-space: nowrap; }
.header-cta:hover { border-color: var(--gold); color: var(--gold-light); }
.menu-toggle { display: none; border: 0; background: none; cursor: pointer; }
.mobile-panel { display: none; }

/* Home */
.hero { position: relative; display: flex; min-height: min(94svh, 980px); align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: hero-scale 18s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,11,.76) 0%, rgba(14,14,11,.46) 42%, rgba(14,14,11,.12) 75%), linear-gradient(0deg, rgba(14,14,11,.55), transparent 44%); }
.hero-content { position: relative; z-index: 1; max-width: 1240px; padding-bottom: clamp(9rem, 15vh, 12rem); }
.hero-eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 800px; margin-bottom: 1.6rem; }
.hero-copy { max-width: 485px; margin-bottom: 2rem; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; }
.hero-services { margin: -1.05rem 0 2rem; color: var(--gold-light); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 1.7rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; z-index: 1; right: max(40px, calc((100vw - 1240px) / 2)); bottom: 2.5rem; display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.76); font-size: .61rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-cue span { display: inline-block; width: 40px; height: 1px; background: var(--gold); }
.intro { background: var(--paper); }
.intro--scroll-grow { min-height: 150vh; }
.intro-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3rem clamp(3rem, 10vw, 10rem); align-items: start; }
.intro--scroll-grow .intro-grid { min-height: 125vh; }
.intro-grid h2 { max-width: 590px; margin-bottom: 0; }
.intro-copy { max-width: 510px; padding-top: .5rem; color: var(--ink-soft); }
.intro-copy p { margin-bottom: 1.4rem; }
.intro-copy .text-link { margin-top: 1.3rem; color: var(--ink); }
.intro-image { grid-column: 1 / -1; position: relative; width: min(100%, 1040px); margin: 2.5rem auto 0; }
.intro--scroll-grow .intro-image { position: sticky; top: 12vh; margin-bottom: 23vh; transform: scale(calc(.88 + var(--grow-progress, 0) * .12)); transform-origin: center; will-change: transform; transition: none; }
.intro-image > img { width: 66%; margin-left: auto; height: min(44vw, 570px); object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.intro-image:hover > img { transform: scale(1.045); filter: saturate(1.08); }
.intro-image figcaption { position: absolute; bottom: 7%; left: 0; display: flex; max-width: 390px; align-items: flex-end; gap: 1rem; background: var(--gold); padding: 1.8rem 2rem; color: var(--ink); }
.intro-image strong { font-family: var(--display); font-size: clamp(3.4rem, 7vw, 6rem); font-weight: 600; letter-spacing: -.06em; line-height: .75; }
.intro-image span { width: 105px; font-size: .65rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.services-section { background: var(--paper-deep); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.34); }
.service-card { position: relative; min-height: 620px; overflow: hidden; color: #fff; background: var(--ink); }
.service-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.service-card:hover > img { transform: scale(1.045); }
.service-card-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,16,13,.87) 0%, rgba(17,16,13,.08) 75%); transition: background-color .3s ease; }
.service-card:hover .service-card-overlay { background-color: rgba(26, 20, 0, .16); }
.service-card-content { position: absolute; display: flex; inset: auto 0 0; min-height: 58%; flex-direction: column; justify-content: flex-end; padding: 2.25rem; }
.service-card-content > span { margin-bottom: auto; color: var(--gold-light); font-size: .69rem; font-weight: 700; letter-spacing: .14em; }
.service-card h3 { margin: 1.7rem 0 1rem; }
.service-card p { min-height: 54px; margin-bottom: 1.6rem; color: rgba(255,255,255,.8); font-size: .83rem; line-height: 1.6; }
.service-card strong { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; transform: translateX(0); transition: transform .3s ease; }
.service-card:hover strong { transform: translateX(7px); }
.service-card i { color: var(--gold-light); font-size: 1rem; font-style: normal; }
.gallery-section { overflow: hidden; background: var(--paper); }
.gallery-intro { display: flex; justify-content: flex-end; }
.gallery-intro .section-heading { margin-right: calc((var(--container) - 100vw) / 2); padding-right: clamp(40px, calc((100vw - var(--container)) / 2), 160px); }
.gallery-rail-wrap { width: min(100%, 1560px); margin-left: auto; padding-left: max(40px, calc((100vw - 1240px) / 2)); }
.gallery-rail { display: flex; gap: 1rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 2rem; }
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-slide { position: relative; flex: 0 0 min(65vw, 760px); aspect-ratio: 1.34; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; scroll-snap-align: start; background: var(--ink); }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-slide:hover img { transform: scale(1.03); }
.gallery-number { position: absolute; right: 1.25rem; bottom: 1rem; color: white; font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; max-width: 760px; padding: 1.25rem 0 0; color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .13em; }
.gallery-controls > div { display: flex; gap: .45rem; }
.circle-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.circle-button:hover { background: var(--ink); color: var(--gold-light); }
.gallery-section--home .gallery-intro { display: block; }
.gallery-section--home .gallery-intro .section-heading { max-width: 740px; margin: 0 auto clamp(3rem, 6vw, 5.5rem); padding-right: 0; text-align: center; }
.gallery-section--home .gallery-rail-wrap { width: 100%; max-width: none; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); box-sizing: border-box; }
.gallery-section--home .gallery-rail { display: flex; overflow-x: auto; padding-right: 0; }
.gallery-section--home .gallery-slide { width: auto; flex: 0 0 calc((100% - 2rem) / 3); }
.gallery-section--home .gallery-controls { max-width: 520px; margin-inline: auto; }
.becas-gallery .gallery-rail-wrap { width: 100%; max-width: none; margin-inline: auto; padding-inline: clamp(20px, 4vw, 64px); box-sizing: border-box; }
.becas-gallery .gallery-rail { display: flex; overflow-x: auto; padding-right: 0; }
.becas-gallery .gallery-slide { flex: 0 0 min(30vw, 380px); aspect-ratio: 9 / 16; }
.becas-gallery .gallery-slide img { object-fit: contain; background: var(--paper-deep); }
.becas-gallery .gallery-controls { max-width: 520px; margin-inline: auto; }
.gallery-rail { cursor: grab; touch-action: pan-y; user-select: none; }
.gallery-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.gallery-slide img { pointer-events: none; }
.expertise-section { background: var(--ink); color: var(--paper); }
.expertise-grid { display: grid; grid-template-columns: 1fr .83fr; gap: clamp(3.5rem, 8vw, 9rem); align-items: center; }
.expertise-grid h2 { max-width: 560px; margin-bottom: 3rem; }
.expertise-list { border-top: 1px solid rgba(255,255,255,.2); }
.expertise-list button { display: grid; width: 100%; grid-template-columns: 2.3rem 1fr 1rem; gap: .5rem; align-items: center; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 1.15rem 0; background: transparent; color: rgba(255,255,255,.73); cursor: pointer; font-family: var(--display); font-size: clamp(1.45rem, 2.3vw, 2.1rem); text-align: left; transition: color .25s ease, padding-left .25s ease; }
.expertise-list button span { color: var(--gold-light); font-family: var(--sans); font-size: .63rem; font-weight: 700; letter-spacing: .1em; }
.expertise-list button i { color: var(--gold-light); font-family: var(--sans); font-size: 1rem; font-style: normal; opacity: 0; transition: opacity .2s ease; }
.expertise-list button:hover, .expertise-list button[aria-pressed='true'] { padding-left: .6rem; color: white; }
.expertise-list button:hover i, .expertise-list button[aria-pressed='true'] i { opacity: 1; }
.expertise-photo { height: min(53vw, 680px); overflow: hidden; }
.expertise-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease, opacity .2s ease; }
.expertise-photo:hover img { transform: scale(1.045); filter: saturate(1.1); }
.expertise-list button:hover { background: rgba(255,255,255,.05); }
.editorial-band { position: relative; display: grid; min-height: min(73vw, 740px); place-items: center; overflow: hidden; color: white; background: var(--ink); }
.editorial-band > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.editorial-band-overlay { position: absolute; inset: 0; background: rgba(14,14,12,.5); }
.editorial-band-content { position: relative; text-align: center; }
.editorial-band h2 { margin-bottom: 2rem; }
.editorial-band-track { position: relative; height: calc(50vh + var(--circle-distance, 100vh)); background: var(--paper); }
.editorial-band[data-circle-section] { position: sticky; top: 25vh; display: grid; height: 50vh; min-height: 50vh; }
.editorial-band[data-circle-section] > img { clip-path: circle(calc(7% + var(--circle-progress, 0) * 93%) at 50% 50%); transition: clip-path .16s cubic-bezier(.2,.7,.2,1); will-change: clip-path; }
.editorial-band[data-circle-section] .editorial-band-content { position: relative; display: flex; min-height: 50vh; flex-direction: column; align-items: center; justify-content: center; }
.feature-section { background: var(--paper); }
.feature-section--reverse { background: var(--paper-deep); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.feature-section--reverse .feature-image { order: 2; }
.feature-image { height: min(53vw, 650px); overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.feature-image:hover img { transform: scale(1.035); filter: saturate(1.08); }
.feature-image--becas { background: #d8d0c2; }
.feature-image--becas img { object-fit: contain; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.feature-image--becas:hover img { transform: scale(1.035); filter: saturate(1.08); }
.feature-content { max-width: 500px; }
.feature-content h2 { margin-bottom: 1.5rem; }
.feature-content > p:not(.eyebrow) { color: var(--ink-soft); }
.feature-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 2rem; padding: 0; list-style: none; }
.feature-tags li { border: 1px solid var(--line); padding: .35rem .65rem; font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transition: transform .25s ease, background-color .25s ease, border-color .25s ease, color .25s ease; }
.feature-tags li:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.instagram-section { padding: clamp(5rem, 9vw, 9rem) 0; background: #ded6c3; }
.instagram-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.instagram-grid h2 { max-width: 500px; margin-bottom: 2rem; }
.instagram-images { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; align-items: end; }
.instagram-images img { width: 100%; aspect-ratio: .68; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.instagram-images img:hover { transform: translateY(-.4rem) scale(1.035); filter: saturate(1.14) contrast(1.03); }
.instagram-images img:nth-child(2) { transform: translateY(-2.25rem); }
.instagram-images img:nth-child(2):hover { transform: translateY(-2.65rem) scale(1.035); filter: saturate(1.14) contrast(1.03); }
.final-cta { padding: clamp(6rem, 11vw, 11rem) 0; background: var(--ink); color: white; text-align: center; }
.final-cta h2 { margin-bottom: 2.2rem; }
.final-cta--soft { background: #29271f; }

/* Internal pages */
.page-hero { position: relative; display: flex; min-height: min(70svh, 740px); align-items: flex-end; overflow: hidden; color: white; background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.page-hero--becas > img { object-position: center 35%; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,14,11,.8), rgba(15,14,11,.3) 70%), linear-gradient(0deg, rgba(15,14,11,.45), transparent); }
.page-hero-content { position: relative; z-index: 1; padding-bottom: clamp(5rem, 11vh, 8rem); }
.page-hero h1 { margin-bottom: 1.2rem; }
.page-hero p:last-child { max-width: 420px; margin-bottom: 0; color: rgba(255,255,255,.85); }
.page-intro { background: var(--paper); }
.page-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 10rem); }
.page-intro-grid h2 { margin-bottom: 0; }
.page-intro-grid > div:last-child { max-width: 525px; color: var(--ink-soft); }
.categories-section { background: var(--paper-deep); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.category-grid article { position: relative; min-height: 280px; border-right: 1px solid var(--line); padding: 1.5rem 1.3rem; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s ease, box-shadow .35s ease, color .25s ease; }
.category-grid article:first-child { border-left: 1px solid var(--line); }
.category-grid article::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--ink); content: ''; transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.category-grid span, .facts-grid span { display: block; margin-bottom: 3.8rem; color: var(--gold); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.category-grid h3, .facts-grid h3 { margin-bottom: .8rem; font-size: clamp(1.7rem, 2.4vw, 2.35rem); }
.category-grid p { color: var(--ink-soft); font-size: .8rem; line-height: 1.6; }
.category-grid article:hover { z-index: 1; background: var(--gold); box-shadow: 0 1.25rem 2.5rem rgba(23,22,18,.12); color: var(--ink); transform: translateY(-.45rem); }
.category-grid article:hover::before { transform: scaleY(1); }
.category-grid article:hover span, .category-grid article:hover p { color: var(--ink); }
.portfolio-section { overflow: hidden; background: var(--paper); }
.masonry-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 205px; grid-auto-flow: dense; gap: 1rem; }
.masonry-item { position: relative; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--ink); }
.masonry-item--wide { grid-column: span 2; }
.masonry-item--tall { grid-row: span 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-item span { position: absolute; right: 1rem; bottom: 1rem; color: white; font-size: .58rem; font-weight: 700; letter-spacing: .11em; opacity: 0; text-transform: uppercase; transition: opacity .2s ease; }
.masonry-item:hover span { opacity: 1; }
.inline-cta { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--gold); }
.inline-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.inline-cta h2 { margin-bottom: 0; }
.inline-cta-grid > div:last-child { max-width: 480px; }
.inline-cta-grid p:not(.eyebrow) { margin-bottom: 1.6rem; }
.inline-cta .button--gold { border-color: var(--ink); background: var(--ink); color: white; }
.inline-cta .button--gold:hover { background: #38352c; }
.facts-section { background: #e6ded0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts-grid article { position: relative; min-height: 260px; border-right: 1px solid var(--line); padding: 1.6rem 1.4rem; transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .35s ease, box-shadow .35s ease, color .25s ease; }
.facts-grid article::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--ink); content: ''; transform: scaleY(0); transform-origin: bottom; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.facts-grid article:first-child { border-left: 1px solid var(--line); }
.facts-grid p { margin-bottom: 0; color: var(--ink-soft); font-size: .83rem; }
.facts-grid article:hover { z-index: 1; background: var(--gold); box-shadow: 0 1.25rem 2.5rem rgba(23,22,18,.12); color: var(--ink); transform: translateY(-.45rem); }
.facts-grid article:hover::before { transform: scaleY(1); }
.facts-grid article:hover span, .facts-grid article:hover p { color: var(--ink); }
.courses-section { background: var(--paper); }
.courses-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); align-items: start; }
.courses-grid h2 { margin-bottom: 1.3rem; }
.courses-grid > div > p:last-child { color: var(--ink-soft); }
.courses-details { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.courses-details summary { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .1em; list-style: none; text-transform: uppercase; }
.courses-details summary::-webkit-details-marker { display: none; }
.courses-details summary i { color: var(--gold); font-size: 1.5rem; font-style: normal; transition: transform .2s ease; }
.courses-details[open] summary i { transform: rotate(45deg); }
.courses-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: .5rem 0 1.6rem; }
.courses-list span { border: 1px solid var(--line); padding: .4rem .65rem; font-size: .69rem; }
.becas-gallery { background: var(--paper-deep); }
.togagem-section { padding: clamp(5.5rem, 10vw, 9rem) 0; background: var(--ink); color: white; }
.togagem-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(3rem, 9vw, 10rem); align-items: center; }
.togagem-grid > .image-reveal { overflow: hidden; }
.togagem-grid img { width: 100%; height: min(50vw, 600px); object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.togagem-grid > .image-reveal:hover img { transform: scale(1.045); filter: saturate(1.08); }
.togagem-grid h2 { margin-bottom: 1.5rem; }
.togagem-grid p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.togagem-grid .text-link { margin-top: 1.4rem; color: white; }
.contact-hero { padding: clamp(10rem, 18vw, 15rem) 0 clamp(5rem, 9vw, 8rem); background: #e5ddce; }
.contact-hero-content { max-width: 1020px; }
.contact-hero h1 { margin-bottom: 1.5rem; }
.contact-hero p:last-child { max-width: 520px; color: var(--ink-soft); font-size: 1.05rem; }
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(3rem, 10vw, 11rem); align-items: start; }
.contact-details h2 { margin-bottom: 3rem; }
.contact-details dl { margin: 0; }
.contact-details dl > div { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.contact-details dl > div:last-child { border-bottom: 1px solid var(--line); }
.contact-details dt { margin-bottom: .35rem; color: var(--ink-soft); font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1; }
.contact-details a { border-bottom: 1px solid var(--gold); }
.contact-side { display: grid; gap: 1.5rem; }
.contact-map { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); box-shadow: 0 1rem 2.5rem rgba(23,22,18,.08); }
.contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-panel { padding: clamp(2rem, 4vw, 3rem); background: var(--ink); color: white; box-shadow: 0 1rem 2.5rem rgba(23,22,18,.12); }
.contact-panel--card { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; }
.contact-panel h2 { max-width: 460px; margin-bottom: 1.3rem; font-size: clamp(2.55rem, 4vw, 4.35rem); }
.contact-panel p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.contact-panel .button { margin-top: 1.2rem; }

/* Shared interaction states */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.image-reveal { clip-path: inset(0 0 8% 0); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1), clip-path .85s cubic-bezier(.2,.7,.2,1); }
.image-reveal.is-visible { clip-path: inset(0); }
@media (min-width: 769px) {
  .intro.intro--scroll-grow .intro-image[data-scroll-grow] { transform: scale(calc(.88 + var(--grow-progress, 0) * .12)); transition: none; }
}
.whatsapp-float { position: fixed; z-index: 15; right: 1.5rem; bottom: 1.5rem; display: flex; align-items: center; gap: .55rem; border: 1px solid rgba(255,255,255,.3); background: rgba(23,22,18,.94); padding: .72rem .9rem; color: white; box-shadow: 0 10px 30px rgba(0,0,0,.15); font-size: .61rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, background-color .2s ease; }
.whatsapp-float:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.whatsapp-icon { display: block; width: 1.05rem; height: 1.05rem; flex: none; color: var(--gold-light); overflow: visible; transition: transform .3s ease, color .2s ease; animation: whatsapp-icon-enter .7s cubic-bezier(.2,.7,.2,1) both; }
.whatsapp-float:hover .whatsapp-icon { color: var(--ink); transform: scale(1.1) rotate(-7deg); }
.site-footer { padding: clamp(4rem, 7vw, 6rem) 0 1.6rem; background: #0f0f0d; color: rgba(255,255,255,.75); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 4rem; }
.footer-brand { max-width: 300px; }
.footer-brand img { display: block; width: 185px; height: auto; aspect-ratio: 537 / 167; margin-bottom: 1.5rem; object-fit: contain; object-position: left center; }
.footer-brand p { font-size: .79rem; line-height: 1.7; }
.footer-label { margin-bottom: 1.15rem; color: var(--gold-light); font-size: .61rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: .52rem; font-size: .73rem; line-height: 1.5; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.4rem; color: rgba(255,255,255,.42); font-size: .61rem; }
.lightbox { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 3.5rem 1rem 1rem; background: rgba(0,0,0,.88); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { display: grid; }
.lightbox-panel { position: relative; width: min(1100px, 100%); background: #12120f; }
.lightbox img { width: 100%; max-height: calc(100vh - 74px); object-fit: contain; }
.lightbox-close { position: absolute; z-index: 1; top: .75rem; right: .75rem; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(21,21,16,.86); color: white; cursor: pointer; font-size: 1.7rem; line-height: 1; }
.instagram-icon { width: 1.05rem; height: 1.05rem; flex: none; }
.button span, .text-link span, .instagram-icon, .circle-button, .scroll-cue span { animation: icon-enter .7s cubic-bezier(.2,.7,.2,1) both; }

@keyframes hero-scale { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes icon-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes whatsapp-icon-enter { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1050px) {
  :root { --container: min(100% - 48px, 1240px); }
  .desktop-nav { gap: 1rem; }
  .desktop-nav a { font-size: .56rem; }
  .header-cta { display: none; }
  .service-card { min-height: 540px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid article:nth-child(4), .category-grid article:nth-child(5) { border-top: 1px solid var(--line); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid article:nth-child(3), .facts-grid article:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 40px, 620px); }
  body { font-size: 15px; }
  .section { padding: 5.2rem 0; }
  .site-header, .has-transparent-header .site-header { background: linear-gradient(180deg, rgba(14,14,12,.8), rgba(14,14,12,.12)); }
  .site-header.is-scrolled { background: rgba(23,22,18,.97); }
  .header-inner { min-height: 67px; justify-content: space-between; }
  .brand { width: 130px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 7px; margin-left: auto; padding: 0; color: white; }
  .menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
  .mobile-panel { position: fixed; z-index: 19; top: 67px; left: 0; display: block; width: 100%; min-height: calc(100svh - 67px); background: var(--ink); padding: 2.3rem 20px; }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel nav { border-top: 1px solid rgba(255,255,255,.2); margin-bottom: 2.5rem; }
  .mobile-panel nav ul { margin: 0; padding: 0; list-style: none; }
  .mobile-panel nav li { list-style: none; }
  .mobile-panel nav a { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.2); padding: 1.15rem 0; color: white; font-family: var(--display); font-size: 2rem; line-height: 1; }
  .mobile-panel nav a::after { content: '↗'; color: var(--gold-light); font-family: var(--sans); font-size: 1rem; }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 9rem; }
  .hero h1 { max-width: 510px; }
  .hero-copy { max-width: 370px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .scroll-cue { right: 20px; bottom: 1.8rem; }
  .intro-grid, .feature-grid, .instagram-grid, .page-intro-grid, .courses-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 2.2rem; }
  .intro--scroll-grow { min-height: auto; }
  .intro--scroll-grow .intro-grid { min-height: auto; }
  .intro--scroll-grow .intro-image { position: relative; top: auto; margin-bottom: 0; transform: scale(1); }
  .intro-image { margin-top: .7rem; }
  .intro-image > img { width: 88%; height: 400px; }
  .intro-image figcaption { bottom: 1.4rem; max-width: 230px; padding: 1.2rem; }
  .intro-image span { width: 72px; font-size: .52rem; }
  .service-grid { display: flex; margin-right: -20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-card { min-width: min(82vw, 360px); min-height: 485px; scroll-snap-align: start; }
  .service-card-content { padding: 1.55rem; }
  .gallery-intro .section-heading { margin-right: 0; padding-right: 0; }
  .gallery-rail-wrap { padding-left: 20px; }
  .gallery-slide { flex-basis: min(84vw, 520px); }
  .gallery-controls { padding-right: 20px; }
  .gallery-section--home .gallery-rail-wrap { width: 100%; padding-inline: 20px; }
  .gallery-section--home .gallery-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 0; }
  .gallery-section--home .gallery-slide { flex: 0 0 calc(100% - 0px); }
  .gallery-section--home .gallery-controls { max-width: none; margin-inline: 0; }
  .becas-gallery .gallery-rail-wrap { width: 100%; padding-inline: 20px; }
  .becas-gallery .gallery-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 0; }
  .becas-gallery .gallery-slide { flex: 0 0 min(78vw, 320px); aspect-ratio: 9 / 16; }
  .becas-gallery .gallery-controls { max-width: none; margin-inline: 0; }
  .expertise-grid { grid-template-columns: 1fr; gap: 3rem; }
  .expertise-photo { height: 430px; }
  .editorial-band { min-height: 560px; }
  .editorial-band[data-circle-section] { min-height: 50vh; }
  .editorial-band[data-circle-section] .editorial-band-content { min-height: 50vh; }
  .feature-section--reverse .feature-image { order: 0; }
  .feature-image { height: 390px; }
  .feature-content { max-width: 100%; }
  .instagram-images { grid-template-columns: 1fr; gap: 1rem; align-items: stretch; }
  .instagram-images img { height: clamp(300px, calc(100vw + 50px), 780px); aspect-ratio: auto; }
  .instagram-images img, .instagram-images img:nth-child(2), .instagram-images img:nth-child(2):hover { transform: none; }
  .instagram-images img:hover { transform: scale(1.02); }
  .page-hero { min-height: 580px; }
  .page-hero > img { object-position: 58% center; }
  .page-hero--becas > img { object-position: center 30%; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-grid article { min-height: 210px; border-bottom: 1px solid var(--line); }
  .category-grid article:nth-child(3), .category-grid article:nth-child(4) { border-top: 0; }
  .category-grid article:last-child { grid-column: span 2; }
  .category-grid span, .facts-grid span { margin-bottom: 2rem; }
  .masonry-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 155px; grid-auto-flow: dense; gap: .65rem; }
  .masonry-item--wide { grid-column: span 2; }
  .inline-cta-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid article { min-height: auto; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .facts-grid article:first-child { border-top: 0; }
  .togagem-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .togagem-grid img { height: 380px; }
  .contact-hero { padding-top: 9.2rem; }
  .contact-panel { padding: 2rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.7rem 1.5rem; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .whatsapp-float { right: 1rem; bottom: 1rem; padding: .75rem; }
  .whatsapp-float > span:last-child { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-panel { top: 113px; min-height: calc(100svh - 113px); }
}

@media (max-width: 430px) {
  :root { --container: calc(100% - 32px); }
  h1 { font-size: clamp(3.3rem, 17vw, 4.4rem); }
  h2 { font-size: clamp(2.6rem, 13vw, 3.5rem); }
  .hero { min-height: 700px; }
  .hero-content { padding-bottom: 7.5rem; }
  .hero-media { object-position: 58% center; }
  .service-card { min-width: 82vw; }
  .intro-image > img { height: 360px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-grid article, .category-grid article:last-child { grid-column: auto; border-left: 1px solid var(--line); }
  .category-grid article:nth-child(2) { border-top: 0; }
  .category-grid article { min-height: 185px; }
  .instagram-images { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .editorial-band[data-circle-section] > img { clip-path: circle(100% at 50% 50%); }
}
