/* Giovani Chacon brand tokens. Sibling of Marea Visual: same paper and serif, own mark and clay accent. */
:root {
  --ink: #191613; --paper: #F5F0E8; --paper-2: #EAE2D6; --clay: #B5512B; --sand: #C9B79A; --muted: #6B6259;
  --line: rgba(25, 22, 19, .14); --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', 'Segoe UI', system-ui, sans-serif; --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dim: rgba(245, 240, 232, .66); --dline: rgba(245, 240, 232, .16);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 1.0625rem/1.65 var(--sans); overflow-x: hidden; }
body::after { /* film grain, above content, below the lightbox (z 100) */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.dark :focus-visible, .top:not(.solid) :focus-visible, .foot :focus-visible { outline-color: var(--sand); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 120; background: var(--ink); color: var(--paper); padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; }
.wrap { width: min(1320px, 100% - 2 * clamp(1.25rem, 5vw, 4rem)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.8rem, 7.4vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--clay); }
.dark em, .hero em { color: var(--sand); }
.label { font: 400 .7rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .22em; color: var(--muted); margin: 0 0 1rem; }
.alt .label { color: #5E564D; }
.dark .label { color: var(--dim); }
.lede { max-width: 34rem; margin: 1.6rem 0 0; }

.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2.2rem 0 0; }
.btn, .pill { display: inline-block; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; text-transform: uppercase;
  font: 400 .74rem/1 var(--sans); letter-spacing: .18em; padding: 1rem 1.8rem; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:hover { background: var(--clay); border-color: var(--clay); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .btn, .dark .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero .btn:hover { background: var(--sand); border-color: var(--sand); }
.hero .btn-ghost { background: transparent; color: var(--paper); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.top { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(245, 240, 232, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); border-color: var(--line); }
.bar { width: min(1320px, 100% - 2 * clamp(1.25rem, 5vw, 4rem)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font: 500 1.45rem/1 var(--serif); }
.brand em { font-weight: 400; }
.mark { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; align-items: center; gap: 1.6rem; }
.top nav a:not(.pill) { font: 400 .7rem/1 var(--sans); text-transform: uppercase; letter-spacing: .22em; text-decoration: none; opacity: .88; }
.top nav a:not(.pill):hover { opacity: 1; color: var(--sand); }
.top.solid nav a:not(.pill):hover { color: var(--clay); }
.pill { padding: .8rem 1.3rem; font-size: .68rem; }
.pill:hover { background: var(--clay); border-color: var(--clay); color: var(--paper); }
/* shortcut: no mobile menu, the "what I shoot" list is the mobile nav; add a menu if sections grow */
@media (max-width: 899px) { .top nav a:not(.pill) { display: none; } }

section[id] { scroll-margin-top: 4.5rem; }
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(25, 22, 19, .86) 0%, rgba(25, 22, 19, .35) 45%, rgba(25, 22, 19, .25) 100%), linear-gradient(90deg, rgba(25, 22, 19, .6), transparent 65%); }
.hero-in { position: relative; z-index: 2; padding: 8rem 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .label { color: rgba(245, 240, 232, .8); }
.hero h1 { max-width: 12ch; }
.lead { max-width: 32rem; font-size: 1.15rem; margin: 1.6rem 0 0; }
.places { margin: 2.2rem 0 0; }
/* phones: photo on top, text below it on ink, so the headline never covers the face */
@media (max-width: 699px) {
  .hero { display: block; min-height: 0; }
  .hero > img { position: static; height: 62svh; }
  .hero::before { bottom: auto; height: 62svh; background: linear-gradient(0deg, var(--ink) 0%, rgba(25, 22, 19, 0) 40%, rgba(25, 22, 19, 0) 75%, rgba(25, 22, 19, .4) 100%); }
  .hero-in { padding-top: 0; margin-top: -3.5rem; }
}

.sec { padding: clamp(5rem, 12vw, 10rem) 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--ink); color: var(--paper); }
.two { display: grid; gap: 3rem; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; } }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index a { display: flex; align-items: baseline; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index .label { margin: 0; min-width: 2rem; }
.index .nm { font: 500 1.9rem/1.1 var(--serif); flex: 1; transition: color .3s var(--ease); }
.index .arr { opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); color: var(--clay); }
.index a:hover .nm { color: var(--clay); }
.index a:hover .arr { opacity: 1; transform: none; }

.head { display: grid; gap: 1.2rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head .label { margin-bottom: 1.2rem; }
.intro { margin: 0; max-width: 26rem; }
.dark .intro { color: var(--dim); }
@media (min-width: 900px) { .head { grid-template-columns: 1fr auto; align-items: end; } .intro { text-align: right; } }
/* Masonry without JS: every row is 1 unit high, a column is 30 units wide and the gap is 1 unit,
   so a photo spans (30 x height / width) + 1 rows. Grid then drops each photo into the shortest column. */
.cq { container-type: inline-size; }
.masonry { --cols: 2; --u: calc(100cqw / (31 * var(--cols) - 1)); display: grid; grid-template-columns: repeat(var(--cols), 1fr);
  column-gap: var(--u); grid-auto-rows: var(--u); grid-auto-flow: dense; margin-bottom: calc(-1 * var(--u)); }
@media (min-width: 900px) { .masonry { --cols: 3; } }
.ph { margin: 0; grid-row-end: span var(--s); position: relative; }
.ph a { position: absolute; inset: 0 0 var(--u); overflow: hidden; border-radius: 2px; background: var(--paper-2); cursor: zoom-in; }
.dark .ph a { background: #2a2622; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ph:hover img { transform: scale(1.03); }

.group { margin-top: 3rem; }
.group h3 { font-size: 1.6rem; font-style: italic; font-weight: 400; padding-bottom: .8rem; border-bottom: 1px solid var(--dline); margin-bottom: 1.4rem; }
.rail { --h: clamp(300px, 52vh, 500px); display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.vid { margin: 0; width: min(calc(var(--h) * var(--ar)), 84vw); aspect-ratio: var(--ar); flex: none; scroll-snap-align: start; position: relative; }
.vid video { width: 100%; height: 100%; object-fit: cover; background: #2a2622; }
.vid figcaption { position: absolute; top: calc(100% + .5rem); margin: 0; color: var(--dim); }
.rail { padding-bottom: 2.6rem; }

.strip { background: var(--paper-2); padding: 2.6rem 0; text-align: center; font: 500 1.6rem/1.3 var(--serif); }
.strip p { margin: 0 auto; }
.strip a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 4px; }
#contact .btns { margin-top: 2.4rem; }

.foot { background: var(--ink); color: var(--paper); padding: 2.4rem 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot .label { margin: 0; color: var(--dim); }
.foot .links { margin-left: auto; display: flex; gap: 1.6rem; }
.foot .links a { text-decoration: none; }
.foot .links a:hover { color: var(--sand); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.lb { position: fixed; inset: 0; z-index: 100; background: rgba(25, 22, 19, .95); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 1px solid var(--dline); color: var(--paper); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .3s var(--ease); }
.lb button:hover { background: rgba(245, 240, 232, .14); }
.lb .x { top: 1rem; right: 1rem; }
.lb .p { left: 1rem; top: 50%; margin-top: -1.5rem; }
.lb .n { right: 1rem; top: 50%; margin-top: -1.5rem; }
.lb .label { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; margin: 0; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
