/* TULUM — Modern Tropical Luxury */
:root {
  --sand: #F4ECDF; --sand-2: #EADDC7; --sand-3: #DCC9AA;
  --jungle: #16342A; --jungle-2: #21483A; --moss: #5E7A4F;
  --clay: #B65E38; --clay-2: #D88A5E; --cenote: #1F8F87; --cenote-2: #7FC8C0;
  --ink: #1C1A16; --ink-2: #4A453C; --cream: #FFFBF4;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --logo-bg: var(--sand);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cenote); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--jungle); color: var(--cream); padding: 10px 16px; border-radius: 99px; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.ico { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Type ---------- */
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--clay); margin: 0 0 18px; }
.section-title { font: 400 clamp(40px, 6.4vw, 92px)/.98 var(--serif); letter-spacing: -.015em; margin: 0 0 24px; }
.section-title em, .hero-title em { font-style: italic; color: var(--clay); }
.mini-label { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s; will-change: transform; }
.btn-solid { background: var(--jungle); color: var(--cream); }
.btn-solid:hover { background: var(--clay); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(0,0,0,.2); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--jungle); display: grid; place-items: center; transition: clip-path 1.1s var(--ease) .1s; clip-path: inset(0 0 0 0); --logo-bg: var(--jungle); color: var(--sand); }
.loader .brand-mark { width: 74px; height: 86px; }
.is-loaded .loader { clip-path: inset(0 0 100% 0); }
.loader .d1, .loader .d2, .loader .d3, .loader .d4 { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1.2s var(--ease) forwards; }
.loader .d2 { animation-delay: .25s } .loader .d3 { animation-delay: .35s } .loader .d4 { animation-delay: .45s }
.loader .sun { transform-origin: 24px 36px; transform: translateY(14px); animation: rise 1.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: translateY(0); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .5s var(--ease), color .5s, transform .5s var(--ease), box-shadow .5s; color: var(--ink); }
.site-header.is-over { color: var(--cream); --logo-bg: transparent; }
.site-header.is-solid, .site-header.is-scrolled { background: rgba(244, 236, 223, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 rgba(28,26,22,.08); --logo-bg: var(--sand); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 35px; overflow: visible; }
.brand-mark .sun { transition: transform .8s var(--ease); }
.brand:hover .brand-mark .sun { transform: translateY(-4px); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 500 26px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: none; gap: 34px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .04em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-btn span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--jungle); color: var(--sand); padding: 110px var(--gutter) 40px; overflow-y: auto; clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .8s var(--ease); }
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu-arch { position: absolute; right: -20vw; bottom: -10vh; width: 70vw; height: 90vh; border: 1px solid rgba(244,236,223,.15); border-radius: 999px 999px 0 0; pointer-events: none; }
.menu-nav { position: relative; display: flex; flex-direction: column; }
.menu-nav > a { font: 400 clamp(34px, 9vw, 60px)/1.15 var(--serif); text-decoration: none; display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid rgba(244,236,223,.12); }
.menu-nav > a span { font: 500 12px var(--sans); color: var(--clay-2); letter-spacing: .1em; }
.menu-kicker { font: 500 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cenote-2); margin: 26px 0 8px; }
.menu-small { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 17px; }
.menu-small a { text-decoration: none; }
.menu-open .site-header { color: var(--sand); background: transparent; box-shadow: none; backdrop-filter: none; --logo-bg: var(--jungle); }
@media (min-width: 960px) { .nav { display: flex; } .menu-btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); overflow: hidden; isolation: isolate; position: relative; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease), opacity .8s; }
.is-loaded .hero-img { transform: scale(1.02); }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s; }
.gl-ready .hero-gl { opacity: 1; }
.gl-ready .hero-img { opacity: 0; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,30,24,.45) 0%, rgba(14,30,24,0) 30%, rgba(14,30,24,.15) 55%, rgba(14,30,24,.78) 100%); }
.hero-content { padding-bottom: 6vh; }
.hero-content .eyebrow { color: var(--sand-2); }
.hero-title { font: 400 clamp(50px, 10.5vw, 168px)/.9 var(--serif); letter-spacing: -.02em; margin: 0 0 22px; max-width: 12ch; }
.hero-title .w:nth-last-child(1) span, .hero-title .w:nth-last-child(2) span { font-style: italic; }
.hero-sub { font-size: clamp(16px, 1.6vw, 20px); max-width: 520px; color: rgba(255,251,244,.86); margin: 0 0 32px; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-solid { background: var(--cream); color: var(--jungle); }
.hero .btn-solid:hover { background: var(--clay); color: var(--cream); }
.hero .btn-line:hover { background: var(--cream); color: var(--jungle); border-color: var(--cream); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; padding-block: 22px 26px; border-top: 1px solid rgba(255,251,244,.2); font: 500 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,251,244,.7); }
.scroll-cue { width: 26px; height: 42px; border: 1px solid rgba(255,251,244,.6); border-radius: 20px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--cream); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 600px) { .hero-foot .coords:last-child { display: none; } }

/* Split words */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms + .5s); }
.is-loaded .split .w > span { transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in, .hero .reveal { opacity: 1; transform: none; }
.hero .reveal { opacity: 0; transform: translateY(20px); }
.is-loaded .hero .reveal { opacity: 1; transform: none; transition-delay: calc(var(--d, 0s) + .6s); }

/* ---------- Intro ---------- */
.intro { padding: clamp(90px, 14vw, 180px) 0; position: relative; }
.intro-grid { display: grid; gap: 40px; align-items: center; }
.intro-text { font: 400 clamp(28px, 3.6vw, 50px)/1.2 var(--serif); margin: 0 0 48px; max-width: 24ch; }
.intro-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(28,26,22,.15); padding-top: 26px; }
.intro-stats strong { display: block; font: 500 clamp(36px, 5vw, 64px)/1 var(--serif); color: var(--jungle); }
.intro-stats span { font-size: 13px; color: var(--ink-2); line-height: 1.3; display: block; margin-top: 8px; }
.sun-orbit { position: relative; width: min(64vw, 340px); aspect-ratio: 1; margin-inline: auto; perspective: 700px; }
.orbit-ring { position: absolute; inset: 0; border: 1px solid var(--clay); border-radius: 50%; transform: rotateX(68deg); animation: spin 18s linear infinite; }
.orbit-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cenote); }
.orbit-ring.r2 { inset: 12%; border-color: var(--cenote); transform: rotateX(68deg) rotateY(30deg); animation-duration: 12s; animation-direction: reverse; }
.orbit-sun { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F2B38A, var(--clay) 55%, #8A3F20); box-shadow: 0 0 80px rgba(182,94,56,.45), inset -18px -24px 40px rgba(0,0,0,.18); animation: float 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotateX(68deg) rotateZ(360deg); } }
.orbit-ring.r2 { animation-name: spin2; } @keyframes spin2 { to { transform: rotateX(68deg) rotateY(30deg) rotateZ(-360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ---------- Developers ---------- */
.devs { background: var(--cream); border-radius: 48px 48px 0 0; padding: clamp(80px, 11vw, 150px) 0 40px; position: relative; }
.devs-head { margin-bottom: clamp(40px, 7vw, 90px); }
.devs-note { color: var(--ink-2); font-size: 15px; max-width: 520px; }
.dev-index { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 30px; padding-bottom: 6px; scrollbar-width: none; }
.dev-index::-webkit-scrollbar { display: none; }
.dev-index a { scroll-snap-align: start; flex: none; display: inline-flex; gap: 10px; align-items: baseline; padding: 12px 18px; border: 1px solid rgba(28,26,22,.15); border-radius: 999px; text-decoration: none; font-size: 15px; transition: background .3s, color .3s; }
.dev-index a span { font-size: 11px; color: var(--clay); letter-spacing: .1em; }
.dev-index a:hover { background: var(--jungle); color: var(--cream); }
.dev { padding: clamp(60px, 9vw, 120px) 0; border-top: 1px solid rgba(28,26,22,.08); }
.dev-grid { display: grid; gap: 44px; align-items: center; }
.dev-visual { position: relative; padding-bottom: 18%; }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; position: relative; background: var(--sand-2); transform-style: preserve-3d; }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.arch:hover img { transform: scale(1.14); }
.arch-main { aspect-ratio: 4 / 5; width: 82%; box-shadow: 0 40px 80px -40px rgba(22,52,42,.55); }
.arch-small { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3/4; border: 6px solid var(--cream); }
.dev.is-flip .arch-main { margin-left: auto; }
.dev.is-flip .arch-small { right: auto; left: 0; }
.dev-num { position: absolute; top: -20px; right: 4%; font: italic 400 clamp(90px, 14vw, 200px)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--clay); opacity: .7; pointer-events: none; }
.dev.is-flip .dev-num { right: auto; left: 4%; }
.logo-plate { margin: 0 0 22px; display: inline-grid; place-items: center; min-height: 76px; min-width: 150px; max-width: 240px; padding: 16px 22px; background: #fff; border-radius: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -18px rgba(0,0,0,.35); }
.logo-plate img { max-height: 48px; width: auto; max-width: 196px; object-fit: contain; }
.logo-plate.is-dark { background: var(--jungle); }
.logo-plate.is-text { font: 600 18px var(--sans); }
.dev-name { font: 400 clamp(40px, 5vw, 72px)/1 var(--serif); margin: 0 0 16px; }
.dev-summary { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); margin: 0 0 22px; max-width: 56ch; }
.chips { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 8px 14px; border-radius: 999px; background: var(--sand); color: var(--jungle); border: 1px solid rgba(22,52,42,.1); }
.dev-projects { margin-bottom: 30px; }
.dev-projects ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(28,26,22,.12); }
.dev-projects a { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n i" "m i"; align-items: center; gap: 2px 12px; padding: 14px 4px; border-bottom: 1px solid rgba(28,26,22,.12); text-decoration: none; transition: padding .4s var(--ease), background .3s; }
.dev-projects a:hover { padding-left: 14px; background: var(--sand); }
.pj-name { grid-area: n; font: 500 22px/1.1 var(--serif); }
.pj-meta { grid-area: m; font-size: 13px; color: var(--ink-2); }
.dev-projects .ico { grid-area: i; color: var(--clay); }
.dev-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-sponsored { display: inline-block; font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; background: var(--clay); color: #fff; padding: 6px 10px; border-radius: 4px; }
@media (min-width: 900px) {
  .dev-grid { grid-template-columns: 1fr 1fr; gap: 90px; }
  .dev.is-flip .dev-visual { order: 2; }
}

/* ---------- Landscape strip ---------- */
.landscape { background: var(--cream); padding: clamp(60px, 9vw, 130px) 0; overflow: hidden; }
.strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; perspective: 1400px; padding-block: 20px 10px; }
.strip::-webkit-scrollbar { display: none; }
.strip-track { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; }
.strip-item { margin: 0; flex: none; width: clamp(240px, 30vw, 440px); scroll-snap-align: center; transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .2s linear; }
.strip-item img { aspect-ratio: 4/5; width: 100%; object-fit: cover; border-radius: 18px; }
.strip-item.is-arch img { border-radius: 999px 999px 18px 18px; }
.strip-item figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }

/* ---------- About guide ---------- */
.about-guide { background: var(--jungle); color: var(--sand); padding: clamp(90px, 12vw, 160px) 0; --logo-bg: var(--jungle); }
.about-guide .eyebrow { color: var(--clay-2); }
.about-guide .section-title em { color: var(--cenote-2); }
.about-guide p { max-width: 60ch; color: rgba(244,236,223,.85); }
.ag-grid { display: grid; gap: 50px; align-items: center; }
.ag-badge { position: relative; width: 220px; aspect-ratio: 1; }
.ag-badge > svg:first-child { width: 100%; height: 100%; animation: rot 26s linear infinite; }
.ag-badge text { font: 500 13.4px var(--sans); letter-spacing: .26em; fill: var(--sand); }
.ag-badge-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sand); }
.ag-badge-mark .brand-mark { width: 54px; height: 64px; }
@keyframes rot { to { transform: rotate(360deg); } }
.ag-links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; }
.ag-links a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border-bottom: 1px solid rgba(244,236,223,.35); padding-bottom: 4px; }
@media (min-width: 900px) { .ag-grid { grid-template-columns: 300px 1fr; gap: 100px; } .ag-badge { width: 280px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand-2); position: relative; padding: 80px 0 30px; margin-top: -1px; --logo-bg: var(--ink); }
.footer-wave { position: absolute; top: -79px; left: 0; width: 100%; height: 80px; fill: var(--ink); }
.page-body + .site-footer .footer-wave, .next-dev + .site-footer .footer-wave { fill: var(--ink); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { max-width: 44ch; color: rgba(234,221,199,.7); font-size: 15px; }
.site-footer h2 { font: 600 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--clay-2); margin: 0 0 16px; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer nav a, .motion-toggle { text-decoration: none; font-size: 15px; color: var(--sand-2); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.site-footer nav a:hover, .motion-toggle:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(234,221,199,.14); margin-top: 60px; padding-top: 24px; font-size: 13px; color: rgba(234,221,199,.6); display: grid; gap: 10px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } .footer-legal { grid-template-columns: 3fr 1fr; } .footer-legal p:last-child { text-align: right; } }

/* ---------- Consent ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 18px 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); display: grid; gap: 14px; transform: translateY(130%); transition: transform .6s var(--ease); max-width: 560px; }
.consent.is-open { transform: none; }
.consent p { margin: 0; font-size: 14px; }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { min-height: 44px; }
@media (min-width: 700px) { .consent { left: auto; right: 24px; bottom: 24px; } }

/* ---------- Profile ---------- */
.p-hero { padding: 130px 0 clamp(60px, 9vw, 120px); background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.p-hero-grid { display: grid; gap: 50px; align-items: end; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 30px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.p-title { font: 400 clamp(56px, 9vw, 140px)/.92 var(--serif); margin: 0 0 24px; letter-spacing: -.02em; }
.p-summary { font: 400 clamp(20px, 2vw, 26px)/1.4 var(--serif); max-width: 34ch; margin: 0 0 30px; }
.p-hero-visual { position: relative; }
.p-hero-visual .arch-main { width: 100%; aspect-ratio: 5/6; }
.p-logo { position: absolute; left: -8px; bottom: 28px; }
.p-body { padding: clamp(60px, 9vw, 120px) 0; background: var(--cream); }
.p-grid { display: grid; gap: 50px; }
.p-facts { background: var(--sand); border-radius: 24px; padding: 28px; align-self: start; }
.p-facts dl { margin: 0; }
.p-facts dl div { padding: 14px 0; border-top: 1px solid rgba(28,26,22,.1); }
.p-facts dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.p-facts dd { margin: 4px 0 0; font: 500 20px/1.3 var(--serif); overflow-wrap: anywhere; }
.prose { font-size: 18px; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--serif); margin: 1.8em 0 .5em; }
.prose a { color: var(--jungle); text-decoration-color: var(--clay); text-underline-offset: 3px; }
.prose .lead { font: 400 clamp(24px, 2.6vw, 32px)/1.35 var(--serif); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
@media (min-width: 900px) { .p-hero-grid { grid-template-columns: 7fr 5fr; gap: 80px; } .p-grid { grid-template-columns: 4fr 8fr; gap: 90px; } .p-facts { position: sticky; top: 100px; } }
.p-projects { background: var(--sand); padding: clamp(70px, 10vw, 140px) 0; }
.pj-grid { display: grid; gap: 18px; margin-top: 40px; perspective: 1200px; }
.pj-card { display: flex; flex-direction: column; gap: 8px; padding: 30px 28px; border-radius: 26px; background: var(--cream); text-decoration: none; position: relative; overflow: hidden; min-height: 300px; transition: background .5s var(--ease), color .5s; transform-style: preserve-3d; }
.pj-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 260px; border-radius: 999px 999px 0 0; border: 1px solid rgba(182,94,56,.35); transition: transform .8s var(--ease); }
.pj-card:hover { background: var(--jungle); color: var(--cream); }
.pj-card:hover::before { transform: translate(-30px, 30px) scale(1.2); }
.pj-idx { font: italic 400 46px/1 var(--serif); color: var(--clay); }
.pj-type { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cenote); }
.pj-card:hover .pj-type { color: var(--cenote-2); }
.pj-card h3 { font: 500 32px/1.05 var(--serif); margin: 4px 0 0; }
.pj-loc { font-size: 14px; opacity: .7; margin: 0; }
.pj-card p { margin: 0; font-size: 15px; }
.pj-go { margin-top: auto; padding-top: 16px; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; }
@media (min-width: 700px) { .pj-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pj-grid { grid-template-columns: repeat(3, 1fr); } }
.p-band { position: relative; min-height: 80svh; display: grid; place-items: center; text-align: center; color: var(--cream); overflow: hidden; }
.arch-band { position: absolute; inset: -10% 0; }
.arch-band img { width: 100%; height: 100%; object-fit: cover; }
.p-band::after { content: ""; position: absolute; inset: 0; background: rgba(16,36,29,.55); }
.p-band-inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.p-band .eyebrow { color: var(--sand-2); }
.p-band .section-title em { color: var(--clay-2); }
.p-band .btn-solid { background: var(--cream); color: var(--jungle); }
.p-sources { padding: 70px 0; background: var(--cream); }
.sources { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.sources li { padding: 8px 0; border-bottom: 1px solid rgba(28,26,22,.1); overflow-wrap: anywhere; }
.notice { background: var(--sand); border-left: 3px solid var(--clay); border-radius: 0 16px 16px 0; padding: 20px 24px; font-size: 14px; color: var(--ink-2); }
.next-dev { background: var(--sand-2); }
.next-dev a { display: flex; flex-direction: column; padding-block: 60px 100px; text-decoration: none; }
.next-name { font: 400 clamp(44px, 8vw, 120px)/1 var(--serif); display: inline-flex; align-items: center; gap: 20px; transition: gap .5s var(--ease), color .4s; }
.next-name .ico { width: .6em; height: .6em; }
.next-dev a:hover .next-name { gap: 40px; color: var(--clay); }

/* ---------- Generic pages ---------- */
.page-hero { background: var(--jungle); color: var(--sand); padding: 160px 0 90px; position: relative; }
.page-hero .eyebrow { color: var(--clay-2); }
.page-title { font: 400 clamp(52px, 8vw, 116px)/.95 var(--serif); margin: 0; }
.page-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; fill: var(--cream); }
.page-body { background: var(--cream); padding: 60px 0 160px; }
.contact-card { background: var(--sand); border-radius: 24px; padding: 30px; margin: 30px 0; }
.contact-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin: 0; color: var(--ink-2); }
.contact-email { font: 400 clamp(26px, 4vw, 40px) var(--serif); margin: 6px 0 0; overflow-wrap: anywhere; }
.credits li { overflow-wrap: anywhere; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* Developer website temporarily offline */
.link-off { opacity: .45; cursor: not-allowed; pointer-events: none; text-decoration: none; }
.site-offline { font-size: 14px; line-height: 1.5; padding: 12px 16px; margin: 0 0 20px; border-inline-start: 3px solid currentColor; opacity: .85; max-width: 60ch; }

/* ===== Client round 2: prominent "Explore the Developers" CTA + clickable developer logos/images ===== */
.btn.btn-explore { min-height: 68px; padding: 0 44px; font-size: 15px; font-weight: 500; letter-spacing: .2em; gap: 18px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.55); isolation: isolate; position: relative; }
.btn.btn-explore .ico { width: 22px; height: 22px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.btn.btn-explore:hover .ico { transform: translateX(6px); }
.btn.btn-explore::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--pulse, currentColor); opacity: 0; pointer-events: none; animation: explorePulse 2.8s ease-out 2.2s infinite; border-radius: inherit; }
@keyframes explorePulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.35); } }
@media (max-width: 600px) { .btn.btn-explore { min-height: 60px; padding: 0 30px; font-size: 13.5px; width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .btn.btn-explore::after { animation: none; } }
.dev-link { display: block; width: 100%; height: 100%; color: inherit; cursor: pointer; }
.dev-link img { transition: transform 1.1s cubic-bezier(.2,.8,.2,1), filter .6s; }
.dev-link:hover img { transform: scale(1.035); }
.logo-link { display: inline-grid; place-items: center; color: inherit; cursor: pointer; transition: opacity .3s, transform .4s; }
.logo-link:hover { opacity: .85; transform: translateY(-2px); }
.btn.btn-explore { --pulse: var(--clay); font-size: 17px; letter-spacing: .02em; }

/* Pulse ring that is not clipped by overflow:hidden buttons */
.btn.btn-explore::after { display: none; }
.btn.btn-explore { animation: explorePulseShadow 2.8s ease-out 2.2s infinite; }
@keyframes explorePulseShadow { 0% { box-shadow: 0 18px 44px -14px rgba(0,0,0,.45), 0 0 0 0 var(--pulse, rgba(255,255,255,.6)); } 75%, 100% { box-shadow: 0 18px 44px -14px rgba(0,0,0,.45), 0 0 0 16px rgba(0,0,0,0); } }
@media (prefers-reduced-motion: reduce) { .btn.btn-explore { animation: none; } }

/* Profile photo gallery (developers with more than two photos) */
.p-gallery { padding-block: clamp(70px, 9vw, 130px); }
.gal-grid { display: grid; gap: 22px; margin-top: 34px; }
.gal-item { margin: 0; }
.gal-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -36px rgba(22,52,42,.55); }
.gal-item figcaption { font-size: 13px; opacity: .75; margin-top: 10px; }
@media (min-width: 900px) { .gal-grid { grid-template-columns: 1fr 1fr; gap: 34px; } .gal-item:nth-child(even) { margin-top: 60px; } }

/* Logos inside the clickable wrapper need an explicit height (SVGs without width/height otherwise collapse) */
.logo-link > img { height: 48px; max-width: 196px; }
