:root {
  --ink: #26221e; --mute: #6a6158; --rule: rgba(38,34,30,.2);
  --ink-d: #f5f1ea; --mute-d: rgba(245,241,234,.74); --rule-d: rgba(245,241,234,.28);
  --wall: #e9e4dc; --gap: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: Archivo, system-ui, sans-serif; color: var(--ink); background: var(--wall); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: Newsreader, serif; font-weight: 400; letter-spacing: -.015em; }
h2 { font-size: clamp(40px, 4.4vw, 68px); line-height: 1; }
.loc { font-size: 17px; line-height: 1.4; margin-top: 14px; color: var(--mute); }
.body { font-size: 18px; line-height: 1.55; margin-top: 22px; }
dl { display: grid; grid-template-columns: 120px 1fr; margin-top: 26px; font-size: 15.5px; line-height: 1.42; border-top: 1px solid var(--rule); }
dt, dd { padding: 10px 0; border-bottom: 1px solid var(--rule); }
dt { color: var(--mute); padding-right: 12px; }
.ico { width: 20px; height: 20px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 56px);
       background: rgba(233,228,220,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.brand { font-family: Newsreader, serif; font-size: 22px; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover, .top-ig:hover { color: var(--ink); }
.top-ig { color: var(--mute); display: flex; }
.top-ig .ico { width: 22px; height: 22px; }

/* hero: the wall part way through */
section.hero { min-height: calc(100vh - 57px); background: url(img/cover_wip.jpg) center / cover no-repeat; position: relative;
        display: flex; align-items: center; padding: 64px clamp(16px, 6vw, 92px); }
section.hero h1 { font-size: clamp(56px, 9vw, 140px); line-height: .95; letter-spacing: -.02em; }
section.hero .role { font-family: Newsreader, serif; font-size: clamp(28px, 3vw, 44px); margin-top: 22px; }
section.hero .studio { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: var(--mute); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 520px; }
section.hero .btns { margin-top: 30px; }
.hero-foot { position: absolute; left: clamp(16px, 6vw, 92px); bottom: 28px; right: 16px; font-size: 14px; color: var(--mute); }

.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px 11px 13px; border: 1px solid rgba(38,34,30,.45); border-radius: 3px;
       font-size: 15.5px; text-decoration: none; background: rgba(255,255,255,.35); transition: background .15s; }
.btn:hover { background: rgba(255,255,255,.75); }

/* profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px);
           padding: clamp(56px, 8vw, 110px) clamp(16px, 6vw, 92px); background-size: cover; background-position: center; }
.profile .lead { font-size: 21px; line-height: 1.5; margin-top: 26px; max-width: 560px; }
.sub { font-size: 15px; color: var(--mute); margin-top: 34px; margin-bottom: 6px; }
.path { list-style: none; position: relative; padding-left: 26px; max-width: 560px; }
.path::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 16px; width: 1px; background: rgba(38,34,30,.28); }
.path li { position: relative; padding: 10px 0 12px; }
.path li::before { content: ""; position: absolute; left: -26px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: #b9ab98; box-shadow: 0 0 0 3px #ece7df; }
.path b { display: block; font-family: Newsreader, serif; font-weight: 400; font-size: 24px; line-height: 1.15; }
.path span { display: block; font-size: 16.5px; line-height: 1.5; color: #4a433b; margin-top: 4px; }
.portrait { aspect-ratio: 4 / 5; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* what she works in */
.worklist { padding: clamp(48px, 6vw, 80px) clamp(16px, 6vw, 92px); background-size: cover; border-top: 1px solid var(--rule); }
.work { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 30px; border-top: 1px solid var(--rule); }
.work li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.work img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.work b { display: block; font-size: 16.5px; font-weight: 600; }
.work span { display: block; font-size: 14.5px; line-height: 1.35; color: var(--mute); margin-top: 3px; }

/* project index strip */
.work-index { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; padding: 22px clamp(16px, 6vw, 92px); background: #2a2622; color: #e9e2d7; }
.work-index span { font-family: Newsreader, serif; font-size: 26px; }
.work-index nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; }
.work-index a { text-decoration: none; color: rgba(233,226,215,.75); }
.work-index a:hover { color: #fff; }

/* project sections: sticky textured panel + photo grid */
.proj { display: grid; grid-template-columns: minmax(340px, 34%) 1fr; border-top: var(--gap) solid var(--wall); }
.panel { position: sticky; top: 57px; align-self: start; min-height: calc(100vh - 57px); background-size: cover; background-position: center;
         clip-path: var(--clip); margin-right: -20px; z-index: 2; filter: drop-shadow(3px 0 5px rgba(0,0,0,.14));
         display: flex; align-items: center; }
.panel-in { padding: 56px clamp(28px, 3.5vw, 64px) 56px clamp(16px, 4.5vw, 92px); max-width: 600px; }
.panel.dark { color: var(--ink-d); }
.panel.dark .loc, .panel.dark dt { color: var(--mute-d); }
.panel.dark dl, .panel.dark dt, .panel.dark dd { border-color: var(--rule-d); }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.g { position: relative; overflow: hidden; background: #2b2723; height: 46vh; min-height: 300px; grid-column: span 3; }
.g a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g a:hover img { transform: scale(1.025); }
.g figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 6px 10px; font-size: 14px; line-height: 1.3;
                background: rgba(236,231,223,.94); color: var(--ink); border-radius: 2px; pointer-events: none; }
.proj:has(.panel.dark) .g figcaption { background: rgba(36,34,31,.92); color: var(--ink-d); }
/* layouts by number of photos */
.n2 .g { height: calc(100vh - 57px); }
.n3 .g:nth-child(1) { grid-column: span 4; grid-row: span 2; height: auto; }
.n3 .g:nth-child(n+2) { grid-column: span 2; }
.n4 .g:nth-child(1) { grid-column: span 4; grid-row: span 2; height: auto; }
.n4 .g:nth-child(2), .n4 .g:nth-child(3) { grid-column: span 2; }
.n4 .g:nth-child(4) { grid-column: span 6; height: 56vh; }
.n5 .g:nth-child(1) { grid-column: span 6; height: 72vh; }
.n6 .g:nth-child(1) { grid-column: span 4; height: 72vh; }
.n6 .g:nth-child(2) { grid-column: span 2; height: 72vh; }
.n6 .g:nth-child(n+3) { grid-column: span 3; height: 50vh; }
.n6 .g:nth-child(n+5) { grid-column: span 3; }

/* mica: store count and logos */
.count { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.count b { font-family: Newsreader, serif; font-weight: 400; font-size: 88px; line-height: .9; }
.count span { font-size: 16px; line-height: 1.35; color: var(--mute); max-width: 160px; }
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.logos li { height: 70px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; background: rgba(255,255,255,.5);
            border: 1px solid rgba(38,34,30,.16); border-radius: 2px; }
.logos img { max-width: 100%; max-height: 38px; object-fit: contain; }
.logos li.t { font-family: Newsreader, serif; font-size: 19px; line-height: 1.05; text-align: center; }

/* project record */
.record { padding: clamp(56px, 7vw, 100px) clamp(16px, 6vw, 92px); background-size: cover; border-top: var(--gap) solid var(--wall); }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 36px; }
.yr { display: grid; grid-template-columns: 110px 1fr; border-top: 1px solid var(--rule); padding: 16px 0 20px; break-inside: avoid; }
.yr-n { font-family: Newsreader, serif; font-size: 32px; line-height: 1; padding-top: 3px; }
.yr ul { list-style: none; }
.yr li { font-size: 16px; line-height: 1.35; padding: 5px 0; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center;
           padding: clamp(56px, 7vw, 100px) clamp(16px, 6vw, 92px); background-size: cover; border-top: 1px solid var(--rule); }
.steps { list-style: none; counter-reset: s; margin-top: 26px; border-top: 1px solid var(--rule); max-width: 560px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.45; }
.steps li::before { content: counter(s); font-family: Newsreader, serif; font-size: 28px; line-height: 1; color: var(--mute); }
.c-name { font-family: Newsreader, serif; font-size: 38px; margin-top: 40px; }
.c-role { font-size: 16px; line-height: 1.5; color: var(--mute); margin-top: 6px; }
.c-ig { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 28px; text-decoration: none; }
.c-ig .ico { width: 26px; height: 26px; }
.c-num { font-size: 22px; margin-top: 10px; } .c-num a { text-decoration: none; }
.contact .btns { margin-top: 18px; }
.c-studio { font-size: 15px; color: var(--mute); margin-top: 18px; }
.contact-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 6vw, 92px); font-size: 14px; color: var(--mute); border-top: 1px solid var(--rule); }

/* floating whatsapp (phones mostly) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 50%; display: none;
            align-items: center; justify-content: center; background: #26221e; color: #f5f1ea; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-float .ico { width: 26px; height: 26px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,18,16,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox p { color: #e9e2d7; font-size: 15px; margin-top: 14px; text-align: center; }
.lb-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #e9e2d7; font-size: 38px; cursor: pointer; line-height: 1; }

/* tablets and phones */
@media (max-width: 960px) {
  .nav { display: none; }
  section.hero { background-position: 72% center; align-items: flex-start; padding-top: 18vh; }
  .profile, .contact { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .panel { position: relative; top: 0; min-height: 0; margin-right: 0; clip-path: none; filter: none; }
  .panel-in { padding: 48px 20px 40px; max-width: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .g, .n2 .g, .n3 .g:nth-child(n), .n4 .g:nth-child(n), .n5 .g:nth-child(n), .n6 .g:nth-child(n) { grid-column: span 1; grid-row: auto; height: 62vw; min-height: 0; }
  .gallery .g.hero { grid-column: span 2; height: 92vw; }
  .wa-float { display: flex; }
}
@media (max-width: 520px) {
  dl { grid-template-columns: 96px 1fr; }
  .yr { grid-template-columns: 76px 1fr; }
  .hero-foot { display: none; }
  .logos li.t { font-size: 17px; }
  .g figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 7px; font-size: 12px; }
}
