/* ==========================================================
   slatesdesign.com — site styles (redesign, December 2026)
   Every design decision lives in these variables: change a value
   here and it updates everywhere.
========================================================== */
/* Rokkitt, self-hosted (Regular only, Latin incl. macrons). Licence: assets/fonts/Rokkitt-OFL.txt */
@font-face{
    font-family:"Rokkitt";
    src:url("fonts/rokkitt-regular.woff2") format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
}

:root{
    /* Palette: slate (a nod to "Slates") */
    --white:#FFFFFF;
    --mist:#EFF3F6;
    --slate-light:#E0E7ED;
    --slate:#CFD9E2;
    --deep:#1F2A33;
    --denim:#3A5A8C;          /* buttons and links */
    --denim-dark:#2C466E;     /* hover */
    --sky:#8CB8F0;            /* links and buttons on deep slate */
    --text:#1F2A33;
    --text-soft:#46525E;

    /* Type */
    --font-head:"Rokkitt", Rockwell, "Roboto Slab", Georgia, serif;
    --font-body:"Helvetica Neue", Helvetica, Arial, sans-serif;
    --display:clamp(3.4rem, 9vw, 8rem);     /* VISUAL STORYTELLER */
    --h2:clamp(2rem, 3.4vw, 2.75rem);       /* section titles */
    --h3:clamp(1.5rem, 2.4vw, 1.9rem);      /* principle titles */
    --body:1.125rem;                        /* 18px */
    --small:0.95rem;                        /* example details */
    --lead:1.6;

    /* Layout (8px grid) */
    --content:1200px;
    --text-col:720px;
    --gutter:24px;
    --band-pad:clamp(40px, 4vw, 56px);
    --gap:24px;
    --hero-gap:.5rem;        /* space between name, headline and intro */
}

/* ---- Base ---- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
    margin:0;
    background:var(--white);
    color:var(--text);
    font:400 var(--body)/var(--lead) var(--font-body);
    -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:var(--denim); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover{ color:var(--denim-dark); }
p{ margin:0 0 1em; }
.wrap{ width:min(var(--content), 100% - 2 * var(--gutter)); margin-inline:auto; }
.col{ max-width:var(--text-col); }
.skip-link{ position:absolute; left:12px; top:-60px; padding:.6rem 1rem; background:var(--denim); color:#fff; border-radius:999px; z-index:10; }
.skip-link:focus{ top:12px; }

/* ---- Nav ---- */
.nav{
    display:flex; align-items:center; justify-content:space-between; gap:1rem;
    padding:20px 0;
}
.nav .home{
    font-family:var(--font-body); font-size:.95rem; font-weight:400;
    color:var(--text-soft); text-decoration:none; padding:10px 0;
}
.nav .home:hover{ color:var(--denim); }
.nav ul{ display:flex; gap:28px; margin:0; padding:0; list-style:none; font-size:.95rem; }
.nav a{ color:var(--text-soft); text-decoration:none; padding:10px 0; }
.nav a:hover, .nav a[aria-current]{ color:var(--denim); }
.nav .studio{ position:relative; margin-left:28px; }
.nav .studio::before{ content:""; position:absolute; left:-29px; top:50%; height:1.1em; transform:translateY(-50%); border-left:1px solid var(--slate); }

/* ---- Hero ---- */
.hero{ padding:clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero .name{
    margin:0 0 var(--hero-gap); font-family:var(--font-head); font-size:var(--h2); font-weight:400; line-height:1;
    letter-spacing:.06em; text-transform:uppercase; color:var(--denim);
}
.hero h1{
    margin:0; font-family:var(--font-head); font-weight:400;
    font-size:var(--display); line-height:.78; letter-spacing:-.01em; text-transform:uppercase;
    padding-left:clamp(0px, 5vw, 64px);
}
.hero .intro{
    max-width:30rem; margin:var(--hero-gap) 0 0 auto;
    font-size:1.2rem; color:var(--text-soft);
}
.hero .down{
    display:flex; align-items:center; justify-content:center;
    width:64px; height:64px; margin:clamp(40px, 6vw, 72px) auto 0;
    border:1.5px solid var(--text); border-radius:50%; color:var(--text);
}
.hero .down:hover{ border-color:var(--denim); color:var(--denim); }

/* ---- Bands ---- */
.band{ padding:var(--band-pad) 0; }
.band--white{ background:var(--white); }
.band--mist{ background:var(--mist); }
.band--slate-light{ background:var(--slate-light); }
.band--slate{ background:var(--slate); }
.band--deep{ background:var(--deep); color:#fff; }
.band--deep p{ color:#D5DDE5; }
.band--deep a{ color:var(--sky); }

h2{
    margin:0 0 .4em; font-family:var(--font-head); font-weight:400;
    font-size:var(--h2); line-height:1.1; color:var(--denim);
}
.band--deep h2{ color:#fff; }
h3{
    display:flex; gap:.3em; align-items:baseline;
    margin:0 0 .5em; font-family:var(--font-head); font-weight:400;
    font-size:var(--h3); line-height:1.15;
}
h3 .num{ font-family:var(--font-body); font-weight:700; font-size:.7em; color:var(--text); }
h3 .t{ color:var(--denim); }
.principle{ font-size:1.2rem; color:var(--text-soft); }

/* ---- About ---- */
.about{ display:grid; grid-template-columns:minmax(0, 260px) minmax(0, var(--text-col)); gap:40px; align-items:start; }
.about img{ width:100%; aspect-ratio:4 / 5; object-fit:cover; object-position:top; }
.lead{ font-family:var(--font-body); font-weight:700; font-size:1.25rem; line-height:1.4; color:var(--text); margin-bottom:.8em; }

/* ---- Work examples ---- */
.how-intro{ margin-top:0; margin-bottom:0; }
.figure{ margin:24px 0; }
.figure img{ width:100%; }
.figure--framed img{ border:1px solid var(--slate); }
.pair{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); margin:24px 0; }
.split{ display:grid; grid-template-columns:minmax(0, 380px) minmax(0, 1fr); gap:48px; align-items:center; margin-top:24px; }
.example{ max-width:var(--text-col); font-size:var(--small); }
.example .label{ margin:0 0 .6em; font-weight:700; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color:var(--denim); }
.example dl{ margin:0; display:grid; grid-template-columns:max-content 1fr; gap:.4em 1em; }
.example dt{ font-weight:700; }
.example dd{ margin:0; color:var(--text-soft); }

/* ---- Buttons ---- */
.btn{
    display:inline-flex; align-items:center; gap:.5rem;
    margin-top:1.4rem; padding:.75rem 1.4rem; border-radius:999px;
    background:var(--denim); color:#fff; text-decoration:none; font-size:1rem;
    transition:background .2s ease;
}
.btn:hover{ background:var(--denim-dark); color:#fff; }
.btn--ghost{ background:transparent; color:var(--denim); box-shadow:inset 0 0 0 1.5px var(--denim); }
.btn--ghost:hover{ background:var(--denim); color:#fff; }
.band--deep .btn{ background:var(--sky); color:var(--deep); }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; }
.btn-row .btn{ margin-top:0; }
.btn:focus-visible, .nav a:focus-visible{ outline:2px solid var(--denim); outline-offset:3px; }

/* ---- Footer ---- */
.foot{ padding:32px 0; font-size:.9rem; color:var(--text-soft); border-top:1px solid var(--slate-light); }

/* ---- Phones ---- */
@media (max-width:760px){
    :root{ --gutter:20px; --body:1.0625rem; }
    .nav{ flex-wrap:wrap; }
    .nav ul{ gap:18px; font-size:.9rem; }
    .nav .studio{ margin-left:18px; }
    .nav .studio::before{ left:-10px; }
    .hero h1{ padding-left:0; }
    .hero .intro{ margin-left:0; }
    .about, .split, .pair{ grid-template-columns:1fr; }
    .about img{ max-width:220px; }
    .figure, .pair{ margin:24px 0; }
    .example dl{ grid-template-columns:1fr; gap:.1em; }
    .example dd{ margin-bottom:.6em; }
}


/* ---- Hero fills the first screen ----
   The hero takes the whole window (minus the nav), so About me starts just
   below the fold; the arrow sits at the bottom edge. */
.hero{
    position:relative;
    min-height:calc(100svh - 72px);
    display:flex; flex-direction:column; justify-content:center;
    padding:48px 0 120px;
}
.hero .down{
    position:absolute; left:50%; bottom:32px; margin:0;
    transform:translateX(-50%);
}

/* ---- Centred text column ----
   Headings and text sit in a centred column; images keep the full width. */
.band h2, .band h3, .principle, .how-intro, .example, .band .col{
    max-width:var(--text-col);
    margin-left:auto; margin-right:auto;
}
/* About: photo and text centred together, heading aligned with them */
#about h2, .about{ max-width:1020px; margin-left:auto; margin-right:auto; }
/* Side-by-side layouts: centred as a block, text left-aligned inside */
.split{ max-width:1020px; margin-left:auto; margin-right:auto; }
.split .example, .split .col, .split h2{ margin-left:0; margin-right:0; }

/* Buttons left-aligned with the text above them */
.example > .btn{ margin-top:1.8rem; }

/* Images that sit at the text-column width instead of full width */
.figure--col{ max-width:var(--text-col); margin-left:auto; margin-right:auto; }

/* Live 3D model (the same viewer the Portfolio uses) */
.model3d{ aspect-ratio:16 / 9; background:#111 url('portfolio/thumbs/wellington.jpg') center / cover no-repeat; overflow:hidden; }
.model3d iframe{ display:block; width:100%; height:100%; border:0; }

/* A tall image above its text, narrower than the text column */
.figure--portrait{ max-width:420px; margin-left:auto; margin-right:auto; }

/* Small "See my work" link under the hero intro */
.hero-link{ max-width:30rem; margin:.6rem 0 0 auto; font-size:1rem; }
.hero-link a{ display:inline-flex; align-items:center; gap:.4rem; font-weight:700; text-decoration:none; }
.hero-link a svg{ transition:transform .2s ease; }
.hero-link a:hover{ text-decoration:underline; }
.hero-link a:hover svg{ transform:translateX(3px); }
@media (max-width:760px){ .hero-link{ margin-left:0; } }

/* ==========================================================
   Inner pages (Portfolio, CV, Contact, Studio)
========================================================== */
.page-head{ padding:clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); }
.page-head h1{
    margin:0 0 .3em; font-family:var(--font-head); font-weight:400;
    font-size:clamp(3rem, 7vw, 6rem); line-height:.9; text-transform:uppercase;
}
.page-lead{ max-width:var(--text-col); margin:0; }
.page-intro{ max-width:var(--text-col); color:var(--text-soft); }
.page-head .btn{ margin-top:.6rem; }

/* Jump links under the Portfolio title */
.jump{ display:flex; flex-wrap:wrap; gap:8px 12px; margin:28px 0 0; padding:0; list-style:none; }
.jump a{
    display:inline-block; padding:.45rem .95rem; border-radius:999px;
    box-shadow:inset 0 0 0 1px var(--slate); color:var(--text); text-decoration:none; font-size:.95rem;
}
.jump a:hover{ box-shadow:inset 0 0 0 1.5px var(--denim); color:var(--denim); }

/* Portfolio groups and cards */
.group-title{ margin-bottom:.2em; }
.group-lead{ max-width:var(--text-col); color:var(--text-soft); margin:0 0 28px; }
.band .group-title, .band .group-lead{ margin-left:0; margin-right:0; }
.cards{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:32px var(--gap); }
.card{ display:flex; flex-direction:column; color:var(--text); text-decoration:none; }
.card--wide{ grid-column:span 2; }
.card-media{ display:block; aspect-ratio:16 / 9; overflow:hidden; background:var(--slate-light); }
.card--wide .card-media{ aspect-ratio:auto; height:100%; max-height:none; }
.card-media img, .card-media video{ width:100%; height:100%; object-fit:cover; object-position:top; transition:transform .5s ease; }
.card--framed .card-media{ box-shadow:inset 0 0 0 1px var(--slate); }
.card:hover .card-media img, .card:hover .card-media video{ transform:scale(1.03); }
.card-tag{ margin-top:14px; font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--denim); }
.card-title{ margin-top:4px; font-family:var(--font-head); font-size:1.5rem; line-height:1.15; }
.card:hover .card-title{ color:var(--denim); }
.card-line{ margin-top:4px; font-size:.95rem; color:var(--text-soft); line-height:1.5; }
.card-note{ margin-top:6px; font-size:.85rem; color:var(--text-soft); font-style:italic; }
.slideshow{ position:relative; aspect-ratio:16 / 9; overflow:hidden; }
.slideshow iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* CV */
.col-wrap > h2, .roles, .moments > *{ max-width:var(--text-col); margin-left:auto; margin-right:auto; }
.roles .role{ padding:28px 0; border-top:1px solid var(--slate); }
.roles .role:first-child{ border-top:0; padding-top:8px; }
.role-title{ display:block; margin:0 0 .15em; font-family:var(--font-head); font-size:1.75rem; color:var(--denim); }
.roles .meta{ margin:0 0 .8em; color:var(--text); }
.roles .meta .dot{ display:inline-block; width:4px; height:4px; margin:0 8px 3px; border-radius:50%; background:var(--text-soft); }
.roles .body-copy, .moments .body-copy{ color:var(--text-soft); }
.roles ul{ margin:.4em 0 0; padding-left:1.2em; color:var(--text-soft); }
.roles li{ margin-bottom:.3em; }
.roles a, .moments a{ color:var(--denim); }
.moments h3{ display:block; margin:1.6em auto .4em; font-size:1.5rem; color:var(--denim); }
.moments h2 + h3{ margin-top:.6em; }
.center-col{ max-width:var(--text-col); margin-left:auto; margin-right:auto; }
.skills{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:32px; max-width:1020px; margin:0 auto; }
.skill h3{ display:block; margin:0 0 .5em; font-size:1.4rem; color:var(--denim); }
.skill .body-copy{ font-size:1rem; color:var(--text-soft); }

/* Contact */
.contact-list{ display:grid; gap:0; max-width:var(--text-col); }
.contact-item{
    display:flex; align-items:baseline; justify-content:space-between; gap:24px; flex-wrap:wrap;
    padding:24px 0; border-top:1px solid var(--slate); color:var(--text); text-decoration:none;
}
.contact-item:last-child{ border-bottom:1px solid var(--slate); }
.ci-label{ font-size:.8rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-soft); }
.ci-value{ font-family:var(--font-head); font-size:clamp(1.4rem, 2.6vw, 2rem); color:var(--denim); }
.contact-item:hover .ci-value{ text-decoration:underline; text-underline-offset:4px; }

/* Studio: the current gallery and viewer, restyled darker in the new look */
.rd-studio{
    --paper:#fcfcfa; --ink:#1F2A33; --steel:#5C6373; --line:#D9DDE2; --transition:300ms ease;
    --accent:var(--sky); --accent-light:var(--sky);
    --st-bg:#18212A; --st-text:#E6EBF0; --st-soft:#AEB9C4;
    background:var(--st-bg); color:var(--st-text);
}
.rd-studio .nav .home, .rd-studio .nav a{ color:var(--st-soft); }
.rd-studio .nav a:hover, .rd-studio .nav a[aria-current]{ color:#fff; }
.rd-studio .nav .studio::before{ border-color:rgba(255,255,255,.25); }
.rd-studio .page-head h1{ color:#fff; }
.rd-studio .pf-strapnav{ background:#10171E; }
.rd-studio .pf-strapnav ul{ width:min(var(--content), 100% - 2 * var(--gutter)); margin:0 auto; }
.rd-studio .pf-title, .rd-studio .st-intro h2, .rd-studio .st-cta h2{ font-family:var(--font-head); font-weight:400; }
.rd-studio .project-button{
    display:inline-flex; align-items:center; gap:.5rem; padding:.75rem 1.4rem; border-radius:999px;
    background:var(--sky); color:var(--deep); text-decoration:none;
}
.rd-studio .project-button:hover{ background:#B5D2F6; color:var(--deep); }
.rd-studio .st-intro{ width:min(var(--content), 100% - 2 * var(--gutter)); margin:0 auto; }
.rd-studio .st-cta{ background:#10171E; }
.rd-studio .foot{ color:var(--st-soft); border-color:rgba(255,255,255,.12); }
.rd-studio .visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

@media (max-width:1000px){
    .cards{ grid-template-columns:1fr 1fr; }
    .skills{ grid-template-columns:1fr; }
}
.band h2.skills-title{ max-width:1020px; margin-left:auto; margin-right:auto; }

/* Skills as simple lists, one per line */
.skill-list{ margin:0; padding:0; list-style:none; }
.skill-list li{ padding:.55em 0; border-top:1px solid var(--slate); color:var(--text); font-size:1rem; line-height:1.4; }
.skill-list li:last-child{ border-bottom:1px solid var(--slate); }
.skill-note{ display:block; margin-top:.2em; font-size:.85rem; color:var(--text-soft); }

/* ---- Site footer: a black strip ---- */
.site-foot{ background:#000; color:#C9D2DB; font-size:.95rem; }
.site-foot a{ color:#fff; text-decoration:none; }
.site-foot a:hover{ color:var(--sky); text-decoration:underline; }
.foot-inner{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding:56px 0 40px; }
.foot-name{ font-family:var(--font-head); font-size:1.75rem; text-transform:uppercase; letter-spacing:.04em; }
.foot-brand p{ margin:.2em 0 0; color:#9AA6B2; }
.foot-links{ display:flex; gap:64px; }
.foot-links ul{ margin:0; padding:0; list-style:none; }
.foot-links li{ margin-bottom:.6em; }
.foot-base{ display:flex; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; padding:20px 0 28px; border-top:1px solid rgba(255,255,255,.14); font-size:.85rem; color:#9AA6B2; }
.foot-base p{ margin:0; }
.rd-studio .site-foot{ background:#000; }
@media (max-width:760px){ .foot-links{ gap:40px; } }
.rd-studio .st-cta .project-button{ margin-top:1.8rem; }

/* ---- Phones: hero ---- */
@media (max-width:760px){
    :root{ --display:12vw; }                       /* STORYTELLER fits with margin to spare */
    .nav{ padding:12px 0 4px; row-gap:0; }
    .hero{ justify-content:flex-start; padding-top:clamp(32px, 9vh, 72px); }
    .hero .intro{ font-size:1.05rem; }
}

/* ---- Phones: a slimmer footer ---- */
@media (max-width:760px){
    .site-foot{ font-size:.9rem; }
    .foot-inner{ gap:20px; padding:36px 0 24px; }
    .foot-name{ font-size:1.35rem; }
    .foot-brand p{ font-size:.85rem; }
    .foot-links{ display:block; }
    .foot-links ul{ display:flex; flex-wrap:wrap; gap:4px 18px; }
    .foot-links ul + ul{ margin-top:10px; }
    .foot-links li{ margin:0; }
    .foot-base{ display:block; padding:16px 0 20px; font-size:.78rem; }
    .foot-base p + p{ margin-top:.3em; }
}

/* A card spanning the full row */
.card--full{ grid-column:1 / -1; }
.card--full .card-media{ aspect-ratio:21 / 9; }
@media (max-width:760px){ .card--full .card-media{ aspect-ratio:16 / 9; } }

/* ---- Phones: one project per row ---- */
@media (max-width:760px){
    .cards{ grid-template-columns:1fr; gap:36px; }
    .card--wide, .card--full{ grid-column:auto; }
    .card--wide .card-media{ aspect-ratio:16 / 9; height:auto; }
    .card-title{ font-size:1.35rem; }
    .card-line{ font-size:.95rem; }
}

/* Contact: label directly above each link, all left-aligned */
.contact-item{ flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; padding:20px 0; }

/* Page intros: the same light style as the homepage intro */
.page-head .page-lead, .page-head .page-intro{
    max-width:var(--text-col); margin:0;
    font-family:var(--font-body); font-weight:400; font-size:1.2rem; line-height:1.6; color:var(--text-soft);
}
@media (max-width:760px){
    .page-head .page-lead, .page-head .page-intro{ font-size:1.05rem; }
}

/* Studio: the main nav doesn't stay pinned on this site, so the section strip
   pins to the very top of the window */
.rd-studio{ --nav-h:0px; }
.rd-studio .pf-strapnav{ top:0; }
