/* =========================================================
   lookitsdiana.com — Diana Pereira portfolio
   Draft 09
   ========================================================= */

:root{
  /* warm near-black ground — the seamless-grey studio backdrops in the
     work sit on a warm neutral, so the site does too */
  --bg:        #0b0a09;
  --bg-elev:   #141210;
  --fg:        #f2efe9;
  --fg-dim:    #8f8a82;
  --fg-faint:  #57524b;
  --line:      rgba(242,239,233,.14);
  --line-soft: rgba(242,239,233,.07);

  /* Diana's brand pink — the one colour on the site */
  --brand:     #FF007A;
  --brand-dim: #ff4c9f;
  --accent:    #FF007A;

  --f-display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-body:    'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad:       clamp(18px, 4vw, 56px);
  --maxw:      1680px;
  --xl:        clamp(2.6rem, 8vw, 7rem);
  --ease:      cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--f-body);
  font-weight:300;
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  letter-spacing:-.005em;
}

body.is-locked{ overflow:hidden; }

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer; }

::selection{ background:var(--brand); color:#fff; }
:where(a,button):focus-visible{ outline:2px solid var(--brand); outline-offset:4px; border-radius:1px; }

/* ---------- type scale ---------- */
.h-mega{
  font-family:var(--f-display);
  font-variation-settings:'wdth' 108;
  font-weight:700;
  font-size:var(--mega);
  line-height:.86;
  letter-spacing:-.05em;
  margin:0;
  padding:0 .07em .17em 0;
  text-transform:uppercase;
}
.h-xl .mask > *{ padding-bottom:.28em; }
.h-xl{
  font-family:var(--f-display);
  font-variation-settings:'wdth' 104;
  font-weight:700;
  font-size:var(--xl);
  line-height:.92;
  letter-spacing:-.045em;
  margin:0;
  padding:0 .06em 0 0;
  text-transform:uppercase;
}
h1,h2,h3{ text-wrap:balance; }
.h-l{
  font-family:var(--f-display);
  font-variation-settings:'wdth' 100;
  font-weight:500;
  font-size:clamp(1.6rem, 3.4vw, 3rem);
  line-height:1.06;
  letter-spacing:-.035em;
  margin:0;
}
.lede{
  font-size:clamp(1.05rem, 1.75vw, 1.5rem);
  line-height:1.45;
  font-weight:300;
  letter-spacing:-.018em;
  color:var(--fg);
  margin:0;
}
.lede.accent{ color:var(--brand); }
.body-txt{ color:var(--fg-dim); max-width:64ch; font-size:1rem; line-height:1.65; }
.body-txt p{ margin:0 0 1.1em; }

.mono{
  font-family:var(--f-mono);
  font-size:.6875rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:400;
  color:var(--fg-dim);
}

/* ---------- layout ---------- */
#work{ scroll-margin-top:96px; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding-inline:var(--pad); }
.rule{ height:1px; background:var(--line); border:0; margin:0; }

/* =========================================================
   Preloader
   ========================================================= */
#loader{
  position:fixed; inset:0; z-index:200;
  background:var(--bg);
  display:grid; place-items:center;
  transition:opacity .7s var(--ease), visibility .7s;
}
#loader.done{ opacity:0; visibility:hidden; }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap:26px; }
.loader-star{ width:34px; height:34px; animation:spin 2.6s linear infinite; }
.loader-star svg{ width:100%; height:100%; fill:var(--brand); }
.loader-num{ font-family:var(--f-mono); font-size:.75rem; letter-spacing:.2em; color:var(--fg-faint); }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* =========================================================
   Cursor
   ========================================================= */
#cursor{
  position:fixed; top:0; left:0; z-index:190;
  width:12px; height:12px; margin:-6px 0 0 -6px;
  pointer-events:none; mix-blend-mode:difference;
  transition:width .32s var(--ease), height .32s var(--ease), margin .32s var(--ease), opacity .3s;
}
#cursor svg{ width:100%; height:100%; fill:#fff; animation:spin 6s linear infinite; }
#cursor.big{ width:56px; height:56px; margin:-28px 0 0 -28px; }
@media (hover:none), (max-width:900px){ #cursor{ display:none; } }

/* =========================================================
   Header
   ========================================================= */
header.site{
  position:fixed; top:0; left:0; right:0; z-index:120;
  padding:18px var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  transition:background .45s var(--ease), padding .45s var(--ease), backdrop-filter .45s;
}
header.site.scrolled{
  background:rgba(11,10,9,.82);
  backdrop-filter:blur(14px) saturate(1.2);
  border-bottom:1px solid var(--line-soft);
  padding-block:14px;
}

#progress{
  position:fixed; top:0; left:0; height:2px; width:0%; z-index:130;
  background:var(--brand); transition:width .12s linear; opacity:0;
}
#progress.on{ opacity:1; }
.brand{ display:flex; align-items:center; }
.brand svg{ width:24px; height:24px; fill:var(--brand); transition:transform .7s var(--ease), fill .4s; }
.brand:hover svg{ transform:rotate(180deg); fill:var(--fg); }

nav.site-nav{ display:flex; gap:clamp(22px,2.8vw,42px); align-items:center; }
nav.site-nav a{
  font-family:var(--f-mono); font-size:.8125rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--brand); position:relative; padding-bottom:3px;
  transition:color .3s var(--ease);
}
nav.site-nav a:hover, nav.site-nav a:focus-visible{ color:var(--fg); }
nav.site-nav a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:currentColor; transform:scaleX(0); transform-origin:right;
  transition:transform .5s var(--ease);
}
nav.site-nav a:hover::after, nav.site-nav a:focus-visible::after{ transform:scaleX(1); transform-origin:left; }



/* =========================================================
   Page transition + reveal
   ========================================================= */
#curtain{
  position:fixed; inset:0; z-index:150; background:var(--bg);
  transform:translateY(100%); pointer-events:none;
}
#curtain.in{ animation:curtainIn .55s var(--ease) forwards; }
#curtain.out{ animation:curtainOut .55s var(--ease) forwards; }
@keyframes curtainIn{ from{ transform:translateY(100%);} to{ transform:translateY(0);} }
@keyframes curtainOut{ from{ transform:translateY(0);} to{ transform:translateY(-100%);} }

.rv{ opacity:0; transform:translateY(26px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.rv.on{ opacity:1; transform:none; }

.mask{ overflow:hidden; display:block; }
.mask > *{ display:block; transform:translateY(105%); transition:transform 1.05s var(--ease); }
.mask.on > *{ transform:none; }

@media (prefers-reduced-motion:reduce){
  .rv,.mask>*{ opacity:1 !important; transform:none !important; transition:none !important; }
  #cursor{ display:none; }
  html{ scroll-behavior:auto; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  min-height:100svh; display:flex; flex-direction:column; justify-content:space-between;
  padding:calc(var(--pad) + 48px) var(--pad) 0;
  position:relative;
}
.hero-top{ display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.hero-top .mono{ max-width:30ch; line-height:1.7; }
.hero-name{ margin:auto 0 0; --mega:clamp(4.6rem, 17.4vw, 19rem); }
.hero-name .mask{ margin-bottom:calc(var(--mega) * -.30); }
.hero-name .h-mega{ display:block; color:var(--brand); }

.name-block{ display:inline-block; position:relative; cursor:default; }
.look{ display:block; overflow:hidden; }
.h-look{
  display:block;
  font-family:var(--f-display); font-variation-settings:'wdth' 108; font-weight:700;
  text-transform:uppercase; color:var(--fg);
  font-size:clamp(1.95rem, 6.9vw, 7.6rem);
  line-height:1; letter-spacing:-.045em; padding-right:.06em;
  transform:translateY(112%); opacity:0;
  transition:transform .78s var(--ease), opacity .5s var(--ease);
}
.name-block:hover .h-look,
.name-block:focus-visible .h-look,
.name-block.reveal .h-look{ transform:none; opacity:1; }
@media (hover:none){ .h-look{ transform:none; opacity:1; } }
@media (prefers-reduced-motion:reduce){ .h-look{ transform:none; opacity:1; } }
.hero-foot{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  padding:0 0 clamp(14px,2.2vh,24px); flex-wrap:wrap;
  justify-content:flex-end; margin-top:clamp(0px,.5vh,8px);
}
.scroll-cue{ display:flex; align-items:center; gap:10px; }
.scroll-cue i{
  width:1px; height:34px; background:linear-gradient(var(--fg),transparent); display:block;
  animation:cue 2s var(--ease) infinite;
}
@keyframes cue{ 0%{transform:scaleY(.2); transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* marquee */
.marquee{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:14px 0; }
.marquee-track{ display:flex; width:max-content; animation:slide 38s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-track span{
  font-family:var(--f-display); font-weight:500; text-transform:uppercase;
  font-size:clamp(1rem,2.1vw,1.7rem); letter-spacing:-.03em; padding-right:.7em;
  display:flex; align-items:center; gap:.55em; white-space:nowrap; color:var(--fg-dim);
}
.marquee-track span b{ font-weight:500; color:var(--fg); }
.marquee-track svg{ width:.45em; height:.45em; fill:var(--brand); flex:none; }
@keyframes slide{ to{ transform:translateX(-50%); } }

/* =========================================================
   Work index
   ========================================================= */
.section-head{
  display:flex; justify-content:space-between; align-items:baseline; gap:20px;
  padding:clamp(56px,9vh,110px) 0 26px; flex-wrap:wrap;
}
.work-list{ border-top:1px solid var(--line); }
.work-row{
  display:grid; grid-template-columns:64px 1fr auto; gap:clamp(14px,3vw,40px);
  align-items:center; padding:clamp(20px,3.4vh,36px) 0;
  border-bottom:1px solid var(--line); position:relative; isolation:isolate;
}
.work-row::before{
  content:''; position:absolute; inset:0 calc(var(--pad) * -.5); z-index:-1;
  background:var(--brand); opacity:0; transition:opacity .5s var(--ease);
}
.work-row .idx{ font-family:var(--f-mono); font-size:.6875rem; letter-spacing:.12em; color:var(--fg-faint); transition:color .4s; }
.work-row .name{
  font-family:var(--f-display); font-weight:600; text-transform:uppercase;
  font-size:clamp(1.7rem,4.8vw,4rem); line-height:.95; letter-spacing:-.045em;
  font-variation-settings:'wdth' 104;
  transition:transform .6s var(--ease), color .4s;
}
.work-row .meta{ text-align:right; display:flex; flex-direction:column; gap:4px; }
.work-row .meta .mono{ transition:color .4s; }
.work-row .thumb{ display:none; }

@media (hover:hover) and (min-width:901px){
  .work-row:hover .name{ transform:translateX(22px); color:var(--brand); }
  .work-row:hover .idx, .work-row:hover .meta .mono{ color:var(--brand); }
}
@media (max-width:900px){
  .work-row{ grid-template-columns:1fr; gap:14px; padding:22px 0 26px; }
  .work-row .meta{ text-align:left; flex-direction:row; gap:14px; }
  .work-row .thumb{ display:block; overflow:hidden; border-radius:2px; background:var(--bg-elev); }
  .work-row .thumb img{ width:100%; aspect-ratio:16/9; object-fit:cover; }
}

/* hover preview */
#preview{
  position:fixed; top:0; left:0; z-index:100; width:clamp(240px,24vw,420px);
  aspect-ratio:16/9; pointer-events:none; overflow:hidden; border-radius:2px;
  opacity:0; transform:translate(-50%,-50%) scale(.94); transition:opacity .45s var(--ease), transform .45s var(--ease);
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}
#preview.on{ opacity:1; transform:translate(-50%,-50%) scale(1); }
#preview img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:900px){ #preview{ display:none; } }

/* =========================================================
   Studio / about strip on home
   ========================================================= */
.split{
  display:grid; grid-template-columns:1fr 1.25fr; gap:clamp(24px,5vw,80px);
  padding:clamp(70px,12vh,150px) 0;
}
.split.tight{ padding-block:0 clamp(34px,5vh,64px); }
@media (max-width:900px){ .split{ grid-template-columns:1fr; gap:26px; } }
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:44px; }
.stat{ background:var(--bg); padding:22px 20px; }
.stat b{ display:block; font-family:var(--f-display); font-weight:500; font-size:1.6rem; letter-spacing:-.03em; margin-bottom:4px; }

/* =========================================================
   About band — the break between the index and the footer
   ========================================================= */
.about-band{
  background:var(--bg);
  color:var(--brand);
  margin-top:clamp(52px,9vh,110px);
  padding:clamp(44px,8vh,96px) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.about-band .mono{ color:var(--brand); opacity:.7; }
.band-lede{
  font-family:var(--f-display); font-variation-settings:'wdth' 100; font-weight:400;
  font-size:clamp(1.05rem, 1.75vw, 1.5rem);
  line-height:1.35; letter-spacing:-.022em;
  margin:clamp(14px,2vh,20px) 0 0; max-width:48ch;
}
.band-link{
  display:inline-block; margin-top:clamp(30px,5vh,58px);
  font-family:var(--f-mono); font-size:.6875rem; letter-spacing:.14em; text-transform:uppercase;
  border-bottom:1px solid rgba(255,0,122,.4); padding-bottom:4px;
  transition:border-color .35s var(--ease), color .35s var(--ease);
}
.band-link{ margin-top:clamp(20px,3vh,32px); }
.band-link:hover{ border-color:var(--fg); color:var(--fg); }

/* =========================================================
   Project page
   ========================================================= */
.proj-hero{ padding-block:calc(var(--pad) + 68px) 0; }
/* eyebrow → tagline → title */
.proj-summary{
  display:block; color:var(--brand); max-width:64ch;
  margin-top:9px; line-height:1.75;
}
.proj-hero .h-xl{ margin-top:clamp(20px,3.4vh,34px); }
.proj-hero .mask{ margin-bottom:calc(var(--xl) * -.17); }

/* half the width for the facts, half for the overview */
.proj-info{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr));
  gap:clamp(24px,3vw,48px);
  border-top:1px solid var(--line);
  margin-top:clamp(30px,5vh,54px);
  padding:clamp(30px,5vh,54px) 0 clamp(44px,8vh,90px);
}
.proj-credits{ display:flex; flex-direction:column; gap:clamp(18px,2.6vh,28px); }
.proj-credits div span{ display:block; }
.proj-credits .v{ font-size:.95rem; color:var(--fg); margin-top:7px; line-height:1.45; }
.proj-overview > .mono{ display:block; margin-bottom:16px; }
.proj-overview .body-txt{ max-width:none; color:var(--fg); }
@media (max-width:820px){
  .proj-info{ grid-template-columns:1fr; gap:34px; }
}

.media{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  column-gap:clamp(12px,1.7vw,26px);
  row-gap:clamp(20px,2.6vw,40px);
  align-items:start;
  padding-bottom:clamp(60px,10vh,120px);
}
.media .fig{ grid-column:span 12; }
@media (max-width:820px){
  .media{ grid-template-columns:1fr; row-gap:clamp(18px,4.5vw,36px); }
  .media .fig{ grid-column:span 1 !important; }
}
.fig{ margin:0; position:relative; cursor:pointer; border-radius:2px; background:var(--bg-elev); overflow:hidden; }
.fig img{ width:100%; aspect-ratio:16/9; object-fit:cover; opacity:0; transition:opacity .9s var(--ease), transform 1.2s var(--ease); transform:scale(1.03); }
.fig img.loaded{ opacity:1; transform:none; }
.fig video{ width:100%; aspect-ratio:16/9; object-fit:cover; display:block; background:var(--bg-elev); }
.fig.is-video{ cursor:default; }
.fig.is-embed{ aspect-ratio:16/9; }
.fig.is-embed iframe{ width:100%; height:100%; display:block; border:0; }
.next{
  border-top:1px solid var(--line); padding:clamp(48px,9vh,110px) 0 clamp(48px,9vh,110px);
  display:block; position:relative; overflow:hidden;
}
.next .mono{ margin-bottom:16px; display:block; }
.next .h-xl{ transition:transform .7s var(--ease); }
.next:hover .h-xl{ transform:translateX(24px); color:var(--brand); }
.next .h-xl{ transition:transform .7s var(--ease), color .4s; }

/* =========================================================
   About
   ========================================================= */
.about-hero{ padding-block:calc(var(--pad) + 88px) clamp(50px,9vh,110px); }
.about-name{ display:block; }
.about-text{ padding:clamp(26px,4.5vh,52px) 0 clamp(48px,9vh,100px); }
.about-text p{
  font-family:var(--f-display); font-variation-settings:'wdth' 100; font-weight:400;
  font-size:clamp(1.15rem, 1.9vw, 1.7rem);
  line-height:1.3; letter-spacing:-.025em; color:var(--fg-dim);
  margin:0 0 1em; max-width:75%;            /* 9 of 12 columns */
}
@media (max-width:820px){ .about-text p{ max-width:none; } }
/* the opening line runs the full width of the page */
.about-text > p:first-child{
  font-weight:500; color:var(--fg);
  font-size:clamp(1.9rem, 5.35vw, 5.2rem);
  line-height:1.03; letter-spacing:-.045em;
  margin-bottom:.62em; max-width:none; text-wrap:pretty;
}
/* the remaining two run side by side underneath */
.about-open{
  display:block; color:var(--brand);
  margin-top:clamp(26px,4vh,44px); line-height:1.85; max-width:64ch;
}
.about-text > p:last-child{ margin-bottom:0; }
.about-text p.accent{ color:var(--brand); }


.about-foot{
  display:grid; grid-template-columns:1.4fr 1fr; gap:clamp(24px,5vw,70px);
  border-top:1px solid var(--line); padding-top:clamp(24px,4vh,44px);
}
@media (max-width:760px){ .about-foot{ grid-template-columns:1fr; gap:30px; } }
.about-foot > div > .mono{ display:block; margin-bottom:16px; }

/* contact + external link lists — secondary hierarchy */
.contact{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px clamp(20px,3vw,44px); }
.contact li{ color:var(--fg); }
.contact a:hover{ color:var(--brand); }
.ext{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px clamp(20px,3vw,44px); }
.ext a{
  font-family:var(--f-mono); font-size:.6875rem; letter-spacing:.14em; text-transform:uppercase;
  border-bottom:1px solid var(--line); padding-bottom:3px; transition:color .35s, border-color .35s;
}
.ext a:hover{ color:var(--brand); border-color:var(--brand); }

.link-u{ border-bottom:1px solid var(--line); padding-bottom:4px; color:var(--fg); transition:color .35s, border-color .35s; }
.link-u:hover{ color:var(--brand); border-color:var(--brand); }
.svc{ border-top:1px solid var(--line); }
.svc-row{ display:grid; grid-template-columns:56px 1fr 1.4fr; gap:clamp(14px,3vw,40px); padding:24px 0; border-bottom:1px solid var(--line); align-items:start; }
.svc-row h3{ font-family:var(--f-display); font-weight:500; font-size:clamp(1.15rem,2.2vw,1.7rem); letter-spacing:-.03em; margin:0; }
@media (max-width:760px){ .svc-row{ grid-template-columns:40px 1fr; } .svc-row p{ grid-column:2; } }

/* =========================================================
   Footer
   ========================================================= */
footer.site{ border-top:1px solid var(--line); padding:clamp(56px,10vh,120px) 0 30px; }
.foot-mail{
  font-family:var(--f-display); font-weight:600; text-transform:uppercase;
  font-size:clamp(1.7rem,7.2vw,5.6rem); line-height:.95; letter-spacing:-.05em;
  display:inline-block; position:relative; word-break:break-word;
  padding-bottom:.13em;
}
.foot-mail::after{ content:''; position:absolute; left:0; right:0; bottom:.06em; height:2px; background:currentColor; transform:scaleX(0); transform-origin:right; transition:transform .6s var(--ease); }
.foot-mail:hover::after{ transform:scaleX(1); transform-origin:left; }
.foot-mail:hover{ color:var(--brand); }
.foot-base{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;
  padding-top:clamp(40px,7vh,80px);
}
.foot-right{ display:flex; align-items:center; gap:clamp(18px,2.6vw,36px); flex-wrap:wrap; }
.to-top{ transition:color .35s; }
.to-top:hover{ color:var(--brand); }
.foot-fine{
  display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;
  border-top:1px solid var(--line-soft); margin-top:clamp(28px,4vh,48px); padding-top:20px;
}

/* =========================================================
   Lightbox
   ========================================================= */
#lb{ position:fixed; inset:0; z-index:170; background:rgba(8,7,6,.95); backdrop-filter:blur(10px);
  display:grid; place-items:center; padding:clamp(16px,5vw,70px); opacity:0; visibility:hidden;
  transition:opacity .45s var(--ease), visibility .45s; }
#lb.on{ opacity:1; visibility:visible; }
#lb img{ max-width:100%; max-height:86vh; object-fit:contain; }
#lb .close{ position:absolute; top:20px; right:calc(var(--pad)); }
#lb .nav{ position:absolute; bottom:22px; left:0; right:0; display:flex; justify-content:center; gap:26px; align-items:center; }

/* disciplines / contact lists */
.disc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.disc-list li{
  border-top:1px solid var(--line); padding:16px 0;
  font-family:var(--f-display); font-variation-settings:'wdth' 100; font-weight:500;
  font-size:clamp(1.1rem,2vw,1.6rem); letter-spacing:-.03em;
}
.disc-list li:last-child{ border-bottom:1px solid var(--line); }
.disc-list a:hover{ color:var(--fg-dim); }

/* placeholder note */
.note{
  border:1px dashed var(--line); padding:14px 16px; margin-top:26px;
  font-family:var(--f-mono); font-size:.625rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--fg-faint); line-height:1.9;
}
