/* Shared site styles (all pages) */
:root{
  --cream:#f8f0da; --sky:#b2e1ea; --line:#c9b27f; --slate:#3a4352; --ink:#1f2733;
  --s0:#ceb691; --s1:#eee1b9; --s2:#ace2eb; --s3:#ffdde9; /* rotating section colours, set by JS */
  --display:'Vampiro One',cursive; --body:'Hind',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--cream);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.65;overflow-x:hidden;
  padding-bottom:env(safe-area-inset-bottom,0px)}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--slate);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
h2{font-family:var(--display);font-weight:400;color:var(--slate);font-size:clamp(2rem,4.2vw,3.1rem);line-height:1.15;margin-bottom:1rem}
h3{font-size:1.05rem;font-weight:700;color:var(--slate)}
.lead{font-weight:700;color:var(--slate);margin-bottom:.8rem}
.col{width:92%;max-width:1320px;margin:0 auto}
.txt{max-width:64ch;margin:0 auto 1.4rem}
#services .txt,#process .txt{max-width:860px}
section{position:relative;padding:4.5rem 0;text-align:center;border-top:1px solid var(--line)}
section::before{content:"";position:absolute;inset:4px 0 auto;border-top:1px solid var(--line)}
.s0{background:var(--s0)}.s1{background:var(--s1)}.s2{background:var(--s2)}.s3{background:var(--s3)}

/* buttons & pills */
.btn{display:inline-block;background:#fff;color:var(--slate);border:1px solid transparent;border-radius:999px;padding:.55rem 1.6rem;font:inherit;cursor:pointer;transition:background .2s,color .2s}
.btn:hover{background:var(--slate);color:#fff}
.btn.line{background:transparent;border-color:var(--slate)}
.btn.solid{background:var(--slate);color:#fff}.btn.solid:hover{background:var(--ink)}

/* header */
header{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  padding:.9rem 4vw;padding-top:calc(.9rem + env(safe-area-inset-top,0px));background:var(--cream);transition:box-shadow .25s}
header.scrolled{box-shadow:0 3px 14px rgba(31,39,51,.14)}
header nav{display:flex;gap:2.2rem;align-items:center;font-size:1.1rem;font-weight:600;letter-spacing:.01em;color:var(--slate)}
header nav.r{justify-self:end}
header nav a:hover{text-decoration:underline;text-underline-offset:5px}
.logo img{height:46px;width:auto}
.ig{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2}
.menu{display:none;background:none;border:1px solid var(--slate);border-radius:999px;padding:.3rem .9rem;font:inherit;color:var(--slate)}

/* hero */
.hero{padding:0;border-top:0;height:86vh;height:86svh;min-height:420px;overflow:hidden;background:var(--sky)}
.hero::before{display:none}
.layer{position:absolute;inset:-40% 0 -2px 0;animation:rise 1.5s cubic-bezier(.2,.7,.2,1) var(--d,0s) both}
.layer img{width:100%;height:100%;object-fit:cover;object-position:center bottom;will-change:transform}
@keyframes rise{from{opacity:0;transform:translateY(90px)}to{opacity:1;transform:none}}
.mark{position:absolute;z-index:5;left:50%;top:50%;width:calc(min(53.1vh,82.8vw) * 1.0316);width:calc(min(53.1svh,82.8svw) * 1.0316);aspect-ratio:1;transform:translate(-50%,-50%)}  /* the visible ring is 53.1% of the viewport height (59% scaled down 10%) (the ring file has a ~3% margin, hence 1.0316); both SVGs are cropped tight to their artwork */
.mark img{position:absolute}
.ring{left:0;top:0;width:100%;height:100%;will-change:transform}
.jc{left:50%;top:50%;width:35%;height:auto;transform:translate(-50%,-50%)}
.sep{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:auto;z-index:6;pointer-events:none}

/* featured: tile + lightbox styles live in css/portfolio-grid.css */
.more{display:inline-block;font-weight:700;color:var(--slate);border-bottom:2px solid var(--slate);margin-bottom:1.3rem}
.pills{display:flex;flex-wrap:wrap;gap:1rem 3.5%;justify-content:center}
.pills .btn{min-width:150px;background:#fff}.pills .btn.line{background:transparent}

/* bio */
.bio{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(2rem,6vw,6rem);align-items:center;text-align:left;max-width:1000px;margin:2.2rem auto 0}
.bio p{margin-bottom:1rem}
.portrait{width:100%;max-width:340px;height:auto;justify-self:center}

/* services & process */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin:2.4rem 0 2rem}
.card{display:block}
.card .ico{display:block;color:var(--slate);margin:0 auto .8rem}
.card p{font-size:.95rem;margin-top:.3rem}
.process{margin-bottom:0}
#process{background-color:#ace2eb}  /* always light blue, whatever the rotation gives the other bands */
.grid-bg{background-image:linear-gradient(rgba(255,255,255,.45) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.45) 1px,transparent 1px);background-size:40px 40px}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;margin-top:2.4rem}
.steps h3{border-bottom:2px solid var(--slate);padding-bottom:.3rem;margin-bottom:.6rem}
.steps .ico{display:block;color:var(--slate);margin:0 auto .8rem}
.steps p{font-size:.95rem}

/* contact */
form{width:60%;min-width:min(100%,340px);margin:2rem auto 0;display:grid;grid-template-columns:1fr 1fr;gap:1rem;text-align:left}
form .full{grid-column:1/-1}
label{display:grid;gap:.25rem;font-size:.9rem;font-weight:700;color:var(--slate)}
input,select,textarea{font:inherit;color:var(--ink);background:#fff;border:1px solid rgba(31,39,51,.35);border-radius:8px;padding:.7rem .8rem}
textarea{min-height:140px;resize:vertical}
.mail{text-decoration:underline;text-underline-offset:4px}

/* pattern masks (bio + contact): black-on-transparent art used as a mask, filled with a lighter tint of the section colour */
#about{--tint:var(--t0)}#contact{--tint:var(--t3)}
.pat{isolation:isolate}
.pat::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--tint);-webkit-mask:var(--pat) center/cover no-repeat;mask:var(--pat) center/cover no-repeat}
@media(max-width:768px){.pat::after{-webkit-mask:var(--pat) center top/auto repeat-y;mask:var(--pat) center top/auto repeat-y}}

footer{padding:3rem 4vw 2.5rem;text-align:center;border-top:1px solid var(--line)}
footer nav{display:flex;flex-wrap:wrap;gap:1rem 2.4rem;justify-content:center;margin:1.2rem 0 2rem;font-size:.92rem;color:var(--slate)}
footer .txt{max-width:min(92ch,100%)}  /* wide enough that the footer message sits on two lines on medium and larger screens */
footer .logo img{height:64px;margin:0 auto}

.js .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s,transform .7s}
.js .reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.layer{animation:none}.js .reveal{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}

@media(max-width:860px){
  header{grid-template-columns:auto 1fr}
  .logo{order:1}.menu{display:block;order:2;justify-self:end}
  header nav{display:none;order:3;grid-column:1/-1;flex-direction:column;align-items:flex-start;gap:.8rem;padding:1rem 0 .4rem}
  header nav.r{justify-self:start;order:4}
  header.open nav{display:flex}
  .bio{grid-template-columns:1fr}.portrait{order:-1;max-width:240px}
  .cards,.steps{grid-template-columns:repeat(2,1fr)}
  form{width:100%;grid-template-columns:1fr}
}
@media(max-width:480px){.cards,.steps{grid-template-columns:1fr}}
