/* =================================================================
   Stuart Gray — UX Research / Design | Human Factors
   Fresh redesign — editorial, warm, human-centred
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --paper:        #F6F3EC;   /* warm paper background */
  --paper-2:      #FBF9F4;   /* lighter card surface  */
  --ink:          #1B1A22;   /* near-black text       */
  --ink-soft:     #4A4954;   /* secondary text        */
  --ink-faint:    #8B8A93;   /* muted / captions      */
  --line:         #E3DDD0;   /* hairline borders      */
  --accent:       #D6533C;   /* terracotta            */
  --accent-dark:  #B43C28;
  --lilac:        #ECE7F6;   /* soft section tint     */
  --lilac-deep:   #2A2447;   /* deep plum for footer  */
  --gold:         #C99A3F;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(27,26,34,.06);
  --shadow-md: 0 12px 32px rgba(27,26,34,.10);
  --shadow-lg: 0 30px 70px rgba(27,26,34,.16);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }
.serif { font-family: var(--serif); }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink); line-height: 1.55; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-tint { background: var(--lilac); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }
.eyebrow.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.brand .role { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper-2); padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .4s var(--ease); align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav-links .btn { margin-top: 1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .lead { max-width: 30ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-portrait { position: relative; }
.hero-portrait img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.hero-stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--serif); font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-stats .stat .lbl { font-size: .82rem; color: var(--ink-faint); margin-top: .35rem; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 360px; margin-inline: auto; order: -1; }
}

/* ---------- Section heading block ---------- */
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.skill-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.skill-card h3 { margin-bottom: .4rem; }
.skill-card .skill-kicker { color: var(--accent); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.skill-card ul { margin-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.skill-card li { font-size: .95rem; color: var(--ink-soft); padding-left: 1.4rem; position: relative; }
.skill-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.tag { font-size: .78rem; font-weight: 600; background: var(--lilac); color: var(--lilac-deep); padding: .35em .8em; border-radius: 100px; }

/* ---------- Project grid ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.8rem; }
.project-card {
  display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--lilac); position: relative; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .pc-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.project-card .pc-domain { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.project-card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.project-card p { font-size: .95rem; flex: 1; }
.project-card .pc-link { margin-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: .4em; }
.project-card .pc-link .arrow { transition: transform .3s var(--ease); }
.project-card:hover .pc-link .arrow { transform: translateX(5px); }

/* featured (larger) variant */
.project-card.feature .thumb { aspect-ratio: 16/10; }

/* ---------- Publications strip ---------- */
.pub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pub-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pub-card .pub-img { aspect-ratio: 16/10; overflow: hidden; background: var(--lilac); }
.pub-card .pub-img img { width: 100%; height: 100%; object-fit: cover; }
.pub-card .pub-body { padding: 1.4rem 1.5rem 1.6rem; }
.pub-card .pub-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pub-card h4 { font-family: var(--serif); font-size: 1.1rem; margin-top: .5rem; line-height: 1.25; }

/* ---------- Awards ---------- */
.awards-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.award {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease);
}
.award:hover { padding-left: .8rem; }
.award .a-title { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.award .a-org { color: var(--ink-soft); font-size: .95rem; }
.award .a-year { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .award { grid-template-columns: 1fr; gap: .3rem; } .award .a-year { order: -1; } }

/* ---------- About page ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 3rem; margin-bottom: 1.1rem; }
.prose h3 { margin-top: 2.2rem; margin-bottom: .8rem; color: var(--ink); }
.prose p { margin-bottom: 1.2rem; }
.prose ul.bullets { margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.prose ul.bullets li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.prose .pull { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 1.4rem; margin: 2rem 0; font-style: italic; }

.about-hero { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px,5vw,64px); align-items: center; }
.about-hero .portrait img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 820px){ .about-hero { grid-template-columns: 1fr; } .about-hero .portrait { max-width: 340px; } }

/* ---------- Resume ---------- */
.resume-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.timeline { border-left: 2px solid var(--line); padding-left: 2rem; display: flex; flex-direction: column; gap: 2.4rem; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: calc(-2rem - 7px); top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.tl-item .tl-when { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.tl-item h3 { margin: .35rem 0 .2rem; font-size: 1.35rem; }
.tl-item .tl-org { color: var(--ink-soft); font-weight: 600; margin-bottom: .6rem; }
.resume-cols { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(28px,4vw,56px); align-items: start; }
@media (max-width: 820px){ .resume-cols { grid-template-columns: 1fr; } }
.side-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; }
.side-card h4 { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.side-card ul { display: flex; flex-direction: column; gap: .55rem; }
.side-card li { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--lilac-deep); color: #fff; border-radius: var(--radius); padding: clamp(28px,4vw,48px); }
.contact-card h2 { color: #fff; }
.contact-card p { color: rgba(255,255,255,.78); }
.contact-link { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); transition: padding-left .3s var(--ease); }
.contact-link:hover { padding-left: .6rem; }
.contact-link .ci { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.contact-link .cl-label { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }
.contact-link .cl-value { font-weight: 600; }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; padding: .85em 1em;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink); transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .85rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- Publications page ---------- */
.pub-year { margin-top: 3rem; }
.pub-year .yr { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); display: flex; align-items: center; gap: 1rem; }
.pub-year .yr::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pub-list { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.pub-entry { padding: 1.3rem 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); transition: transform .3s var(--ease), box-shadow .3s; }
.pub-entry:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.pub-entry .pe-cite { color: var(--ink); font-size: .98rem; }
.pub-entry .pe-venue { color: var(--ink-soft); font-style: italic; }
.pub-entry .pe-doi { display: inline-flex; align-items: center; gap: .4em; font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: .6rem; }

/* ================================================================
   CASE STUDY pages
   ================================================================ */
.cs-hero { padding-block: clamp(40px,6vw,72px) clamp(36px,5vw,56px); }
.cs-back { font-size: .9rem; font-weight: 600; color: var(--ink-faint); display: inline-flex; align-items: center; gap: .4em; margin-bottom: 1.6rem; transition: color .2s, gap .2s; }
.cs-back:hover { color: var(--accent); gap: .7em; }
.cs-hero h1 { margin: .6rem 0 1.2rem; }
.cs-hero .cs-domain { color: var(--accent); }
.cs-hero .lead { max-width: 60ch; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cs-meta .m .m-l { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); margin-bottom: .3rem; }
.cs-meta .m .m-v { font-weight: 600; color: var(--ink); font-size: .96rem; }

.cs-cover { margin-block: clamp(28px,4vw,48px); }
.cs-cover img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); max-height: 560px; object-fit: cover; }

/* case study body */
.cs-body { max-width: 760px; margin: 0 auto; }
.cs-body h2 { margin-top: 3.4rem; margin-bottom: 1.1rem; }
.cs-body h3 { margin-top: 2.4rem; margin-bottom: .8rem; color: var(--ink); }
.cs-body p { margin-bottom: 1.25rem; }
.cs-body > p:first-of-type { font-size: 1.05rem; }
.cs-body ul.bullets, .cs-body ol.steps { margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.cs-body ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--ink-soft); }
.cs-body ul.bullets li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.cs-body ol.steps { counter-reset: s; }
.cs-body ol.steps li { position: relative; padding-left: 2.4rem; color: var(--ink-soft); counter-increment: s; }
.cs-body ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color:#fff; font-family: var(--sans); font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.cs-body li strong, .cs-body p strong { color: var(--ink); }

.cs-quote { font-family: var(--serif); font-size: clamp(1.3rem,2.5vw,1.7rem); font-style: italic; line-height: 1.4; color: var(--ink); border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1.6rem; margin: 2.2rem 0; }
.cs-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .9rem; font-weight: 600; color: var(--accent); margin-top: .8rem; }

/* phase / step strip */
.cs-phases { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 2.5rem auto; max-width: 820px; }
.cs-phases .phase { flex: 1; min-width: 120px; text-align: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem .6rem; position: relative; }
.cs-phases .phase .n { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.cs-phases .phase .t { font-size: .85rem; font-weight: 600; margin-top: .2rem; }

/* figures & galleries (full-bleed within content) */
.cs-figure { margin: 2.4rem 0; }
.cs-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.cs-figure figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .7rem; text-align: center; }
.cs-figure.wide { max-width: 1000px; margin-inline: auto; }

.cs-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2.4rem auto; max-width: 1000px; }
.cs-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.cs-gallery.two { grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); }

/* key takeaway callout */
.cs-callout { background: var(--lilac); border-radius: var(--radius); padding: clamp(24px,3vw,36px); margin: 2.6rem 0; }
.cs-callout h4 { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem; }
.cs-callout p:last-child { margin-bottom: 0; }

/* outcome stats */
.cs-outcomes { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 1.5rem; margin: 2.6rem 0; }
.cs-outcomes .oc { text-align: center; padding: 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.cs-outcomes .oc .ocn { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.cs-outcomes .oc .ocl { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }

/* video embed */
.cs-video { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); margin: 2.4rem auto; max-width: 1000px; background:#000; }
.cs-video video { width: 100%; display: block; }

/* next projects */
.cs-next { border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--lilac-deep); color: rgba(255,255,255,.8); padding-block: clamp(48px,6vw,80px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .f-brand .name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.site-footer .f-brand p { color: rgba(255,255,255,.6); margin-top: .8rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.1rem; }
.site-footer .f-links { display: flex; flex-direction: column; gap: .7rem; }
.site-footer .f-links a, .site-footer .f-contact a { color: rgba(255,255,255,.82); transition: color .2s; }
.site-footer .f-links a:hover, .site-footer .f-contact a:hover { color: var(--accent); }
.f-contact { display:flex; flex-direction:column; gap:.7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: rgba(255,255,255,.5); }
@media (max-width: 720px){ .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }
