/* Rory Jenkins — Visual Designer
   Built on Bootstrap 5.3. Edit colours and fonts in the :root block below. */

:root {
  --ink: #17141f;
  --muted: #5b5668;
  --paper: #ffffff;
  --surface: #f5f4f9;
  --line: #e3e0ec;
  --violet: #3a2c8f;
  --violet-dark: #2a1f70;
  --sun: #f5c518;
  /* Three families throughout: Montserrat, Poppins and Playfair Display.
     System fonts below are fallbacks only. Font files and licenses are local. */
  --font-ui: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --font-hero: var(--font-ui);
  --font-btn: var(--font-body);
  --font-art: var(--font-head);
  --font-display: var(--font-ui);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; }
a:hover { color: var(--violet-dark); }

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.01em; }
.lead-text { font-size: 1.25rem; color: var(--muted); max-width: 38rem; }
.prose { max-width: 40rem; }
.muted { color: var(--muted); }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: .5rem 1rem; z-index: 2000; border-radius: 4px;
}
.skip-link:focus { left: 8px; color: #fff; }



/* ---------- Buttons ---------- */
.btn { font-family: var(--font-display); font-weight: 600; border-radius: 999px; padding: .8rem 1.7rem; font-size: 1rem; letter-spacing: 0; }
.btn-ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-line:hover, .btn-line:focus { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); border: 2px solid var(--sun); }
.btn-sun:hover { background: #ffd84a; border-color: #ffd84a; color: var(--ink); }

/* ---------- Navigation ---------- */
.site-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--ink); }
.brand-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; font-family: var(--font-display); }
.brand:hover .brand-name { color: var(--violet); }
.site-nav .nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  color: var(--ink); padding: .5rem .9rem;
}
.site-nav .nav-link:hover { color: var(--violet); }
.site-nav .nav-link.active { color: var(--violet); box-shadow: inset 0 -3px 0 var(--sun); }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; padding: .5rem; box-shadow: 0 12px 30px rgba(23,20,31,.12); }
.site-nav .dropdown-item { font-family: var(--font-display); border-radius: 8px; padding: .55rem .9rem; }
.site-nav .dropdown-item:hover { background: var(--surface); color: var(--violet); }
.navbar-toggler { border: 0; }
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--violet); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tint { background: var(--surface); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kicker { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--violet); margin-bottom: .75rem; display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-role { font-family: var(--font-display); font-weight: 600; color: var(--violet); font-size: 1.1rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.hero-role::before { content: ""; width: 2.5rem; height: 3px; background: var(--sun); }
.hero h1 { margin-bottom: 1.5rem; }
.hero-sub { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 1rem; letter-spacing: -0.01em; }
.hero-art { position: relative; padding: 0 0 2rem 2rem; }
.hero-art::before {
  content: ""; position: absolute; inset: 2rem 2rem 0 0; background: var(--sun); border-radius: 6px;
}
.hero-art img { position: relative; border-radius: 6px; box-shadow: 0 24px 60px rgba(23,20,31,.22); width: 100%; }
.hero-art .hero-inset {
  position: absolute; width: 34%; left: -2%; bottom: 0; z-index: 2;
  border: 6px solid #fff; border-radius: 6px; box-shadow: 0 14px 34px rgba(23,20,31,.25);
}

/* hero entrance (the one orchestrated moment) */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .reveal { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .reveal:nth-child(2) { animation-delay: .08s; }
.hero .reveal:nth-child(3) { animation-delay: .16s; }
.hero .reveal:nth-child(4) { animation-delay: .24s; }
.hero .reveal:nth-child(5) { animation-delay: .32s; }
.hero .hero-art { opacity: 0; animation: rise 1s .15s cubic-bezier(.2,.7,.2,1) forwards; }

/* ---------- About / stats ---------- */
.about-img { border-radius: 6px; width: 100%; object-fit: cover; aspect-ratio: 4/5; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -0.03em; }
.stat-label { color: var(--muted); font-size: 1rem; margin-top: .35rem; }

/* ---------- Feature rows (home) ---------- */
.feature { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature-media { background: var(--surface); border-radius: 8px; padding: clamp(1rem, 3vw, 2rem); display: block; }
.feature-media img { width: 100%; border-radius: 4px; }
.feature h3 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.text-link { font-family: var(--font-display); font-weight: 600; text-decoration: none; border-bottom: 3px solid var(--sun); color: var(--ink); padding-bottom: 2px; }
.text-link:hover { color: var(--violet); border-color: var(--violet); }

/* ---------- Project cards (grid) ---------- */
.work-grid { --gap: 1.5rem; }
.card-work { display: block; text-decoration: none; color: inherit; height: 100%; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.card-work .thumb { background: var(--surface); border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.card-work .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-work:hover .thumb img { transform: scale(1.04); }
.card-work .thumb.contain img { object-fit: contain; padding: 6%; }
.card-work h3 { font-size: 1.3rem; margin: 1rem 0 .25rem; }
.card-work p { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.5; }
.card-work:hover h3 { color: var(--violet); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.filter-btn { font-family: var(--font-display); font-weight: 500; background: transparent; border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5rem 1.2rem; font-size: .98rem; }
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.work-item[hidden] { display: none !important; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.meta dt { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--muted); }
.meta dd { margin: 0; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery-item { margin: 0; }
.gallery-item .frame { background: var(--surface); border-radius: 8px; overflow: hidden; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.gallery-item img { width: 100%; }
.gallery-item figcaption { font-size: .98rem; color: var(--muted); margin-top: .65rem; line-height: 1.45; }
.frame.pad { padding: clamp(.75rem, 2vw, 1.5rem); }
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox .modal-body { padding: 0; text-align: center; }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; background: #fff; }
.lightbox .lb-caption { color: #fff; margin-top: .75rem; font-size: 1rem; }
.lightbox .btn-close { position: absolute; top: -2.4rem; right: 0; filter: invert(1); opacity: 1; }

.pull { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -0.015em; max-width: 44rem; }

.next-project { display: block; text-decoration: none; padding: 3rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.next-project span { font-family: var(--font-display); font-size: .95rem; color: var(--muted); display: block; }
.next-project strong { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
.next-project:hover strong { color: var(--violet); }

/* ---------- Modal (project details) ---------- */
.modal-content { border-radius: 12px; border: 0; }
.modal-title { font-family: var(--font-display); font-weight: 700; }
.carousel-inner { background: var(--surface); border-radius: 8px; }
.carousel-item img { width: 100%; max-height: 62vh; object-fit: contain; padding: 1rem; }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1); background-color: rgba(0,0,0,.0); }
.carousel-control-prev, .carousel-control-next { width: 12%; }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(23,20,31,.75); border-radius: 50%; background-size: 55%; width: 2.6rem; height: 2.6rem; filter: none; }

/* ---------- Certification / resume ---------- */
.doc-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 14px 40px rgba(23,20,31,.08); }
.doc-frame img { width: 100%; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--muted); display: block; }
.contact-list a { color: var(--ink); font-size: 1.15rem; word-break: break-word; }
.contact-list a:hover { color: var(--violet); }
.form-label { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.form-control, .form-select { border: 1.5px solid #cfcbdb; border-radius: 10px; padding: .8rem 1rem; font-family: var(--font-body); font-size: 1.05rem; }
.form-control:focus, .form-select:focus { border-color: var(--violet); box-shadow: 0 0 0 .2rem rgba(58,44,143,.18); }

.cta-band { background: var(--violet); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-band h2 { color: #fff; max-width: 36rem; }
.cta-band p { color: #dcd8f5; max-width: 38rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c5d6; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #a9a4ba; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 1rem; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid #332e44; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .92rem; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-top: 1rem; }
  .hero-art { padding: 0 0 1.5rem 1.5rem; margin-top: 1rem; }
  .hero-art::before { inset: 1.5rem 1.5rem 0 0; }
}
@media (max-width: 575.98px) {
  body { font-size: 1.06rem; }
  .hero-art .hero-inset { width: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .reveal, .hero .hero-art { animation: none; opacity: 1; }
  .card-work .thumb img { transition: none; }
  .card-work:hover .thumb img { transform: none; }
}


/* =====================================================================
   Font system, logo navbar, category sections (update)
   ===================================================================== */
body { font-size: 1rem; line-height: 1.85; }
h1 { font-family: var(--font-hero); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2, h3, .modal-title { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; line-height: 1.18; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.h3 { font-family: var(--font-head); font-weight: 700; }
.stat-num { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; }
.lead-text { font-family: var(--font-art); font-size: 1.5rem; line-height: 1.5; font-weight: 500; color: var(--muted); }
.hero-sub { font-family: var(--font-art); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: 0; }
.pull { font-family: var(--font-art); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; letter-spacing: 0; font-style: italic; }
.btn, .filter-btn, .text-link, .card-work p, .gallery-item figcaption, .cat-card span { font-family: var(--font-btn); }
.btn { font-weight: 500; }
.card-work h3 { font-family: var(--font-ui); font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
.site-nav .nav-link { font-size: .9rem; font-weight: 600; letter-spacing: .01em; }
.site-nav .dropdown-item { font-family: var(--font-btn); font-size: .92rem; }
.site-footer h4 { font-family: var(--font-ui); }
.gallery-item figcaption { font-size: .92rem; }

.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 54px; width: auto; }
.site-nav { padding: .6rem 0; }
@media (max-width: 575.98px) { .brand-logo img { height: 42px; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: .6rem .9rem; }
.footer-logo img { height: 46px; width: auto; }

.hero-art .hero-inset { display: none; }
.about-photo { width: 100%; max-width: 280px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: 0 18px 44px rgba(23,20,31,.16); }

.cat-card { display: block; text-align: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2rem 1rem 1.6rem; height: 100%; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; position: relative; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.cat-card img { width: 212px; max-width: 100%; height: auto; margin: 0 auto 1.25rem; transition: transform .45s ease; }
.cat-card h3 { font-family: var(--font-ui); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; margin: 0 0 .3rem; line-height: 1.3; }
.cat-card span { font-size: .85rem; color: var(--muted); display: block; line-height: 1.4; }
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(23,20,31,.13); border-color: var(--violet); color: var(--ink); }
.cat-card:hover::after, .cat-card:focus-visible::after { transform: scaleX(1); }
.cat-card:hover img { transform: scale(1.04); }
.cat-card:hover h3 { color: var(--violet); }

.feature-media img { aspect-ratio: 3/2; object-fit: cover; }
.feature-num { font-family: var(--font-head); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--sun); -webkit-text-stroke: 1px var(--ink); display: block; margin-bottom: .5rem; }
.feature .muted { font-family: var(--font-body); font-size: 1rem; }

.frame.dark { background: #000; }
.poster-feature { max-width: 520px; margin-left: auto; margin-right: auto; }
.gallery-item .frame img { transition: transform .5s ease; }
.gallery-item .frame:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .cat-card, .cat-card img, .cat-card::after, .gallery-item .frame img { transition: none; } }


/* =====================================================================
   Image fix: no cropping, slightly smaller, neatly aligned (update)
   ===================================================================== */

/* Home page: category rows. Equal-size frames, whole image always visible. */
.feature-media {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 520px; margin-left: auto; margin-right: auto;
  aspect-ratio: 3 / 2;
  padding: clamp(.6rem, 1.6vw, 1rem);
}
.feature-media img {
  width: 100%; height: 100%;
  aspect-ratio: auto; object-fit: contain;
}

/* Work grid cards: show the full artwork instead of cropping it */
.card-work .thumb img { object-fit: contain; padding: 5%; }

/* Inner-page galleries: a touch smaller and centred, never cropped */
.gallery-item { max-width: 94%; margin-left: auto; margin-right: auto; }
.col-12 > .gallery-item { max-width: 820px; }
.gallery-item .frame img { height: auto; object-fit: contain; }
.poster-feature { max-width: 460px; }
.poster-feature .gallery-item { max-width: 100%; }

/* Category icon cards, project modal slider, resume/certificate */
.cat-card img { width: 190px; }
.carousel-item img { max-height: 56vh; }
.doc-frame { max-width: 94%; margin-left: auto; margin-right: auto; }

/* Side-by-side gallery items: matching frames so rows line up */
.col-md-6 > .gallery-item .frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.col-md-6 > .gallery-item .frame img { width: 100%; height: 100%; object-fit: contain; }


/* =====================================================================
   Elegant refresh: smaller images, larger logo, hover + scroll motion
   (appended; the page structure and markup are unchanged)
   ===================================================================== */

:root {
  --ease: cubic-bezier(.22,.8,.24,1);
  --shadow-soft: 0 10px 30px rgba(23,20,31,.08);
  --shadow-lift: 0 26px 56px rgba(42,31,112,.20);
}

/* ---------- Navbar + larger, clearer logo ---------- */
.site-nav {
  padding: .7rem 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: padding .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.site-nav.is-scrolled { padding: .35rem 0; box-shadow: 0 8px 28px rgba(23,20,31,.09); background: rgba(255,255,255,.97); }
.brand-logo img {
  height: 78px; width: auto;
  image-rendering: -webkit-optimize-contrast;
  transition: height .35s var(--ease), transform .35s var(--ease), filter .35s var(--ease);
}
.site-nav.is-scrolled .brand-logo img { height: 64px; }
.brand-logo:hover img { transform: scale(1.04); filter: drop-shadow(0 6px 12px rgba(58,44,143,.22)); }
.footer-logo img { height: 56px; }
@media (max-width: 991.98px) { .brand-logo img { height: 64px; } .site-nav.is-scrolled .brand-logo img { height: 54px; } }
@media (max-width: 575.98px) { .brand-logo img { height: 52px; } .site-nav.is-scrolled .brand-logo img { height: 46px; } }

/* animated underline on nav links */
.site-nav .nav-link { position: relative; transition: color .25s ease; }
.site-nav .nav-link:not(.dropdown-toggle)::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 3px;
  background: var(--sun); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav .nav-link:not(.dropdown-toggle):hover::after { transform: scaleX(1); }
.site-nav .nav-link.active { box-shadow: none; }
.site-nav .nav-link.active:not(.dropdown-toggle)::after { transform: scaleX(1); }
.site-nav .nav-link.dropdown-toggle.active { box-shadow: inset 0 -3px 0 var(--sun); }
.site-nav .dropdown-menu { animation: menuIn .28s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.site-nav .dropdown-item { transition: background .2s ease, color .2s ease, padding-left .25s var(--ease); }
.site-nav .dropdown-item:hover { padding-left: 1.2rem; }

/* ---------- Atmosphere ---------- */
body { background: #fff; }
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(245,197,24,.16), transparent 60%),
    radial-gradient(760px 420px at -5% 105%, rgba(58,44,143,.09), transparent 60%);
}
.section-tint { background: linear-gradient(180deg, #f7f6fb 0%, #f1effa 100%); }
.kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.section-head h2::after, .page-head h1::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--sun), var(--violet));
}
.section-head.text-center h2::after { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(58,44,143,.22); }
.btn:active { transform: translateY(-1px); }
.text-link { transition: color .25s ease, border-color .25s ease, letter-spacing .3s var(--ease); }
.text-link:hover { letter-spacing: .02em; }

/* ---------- Hero image: smaller, gently floating ---------- */
.hero-art { max-width: 440px; margin-left: auto; margin-right: auto; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-art img { transition: transform .6s var(--ease), box-shadow .6s var(--ease); animation: floaty 7s ease-in-out 1.4s infinite; }
.hero-art:hover img { transform: scale(1.025) rotate(-.6deg); box-shadow: 0 34px 70px rgba(42,31,112,.30); animation-play-state: paused; }
.hero-art::before { transition: transform .6s var(--ease); }
.hero-art:hover::before { transform: translate(-8px, 8px); }

/* ---------- Home: category icon cards (smaller, livelier) ---------- */
.cat-card { border-radius: 18px; padding: 1.7rem 1rem 1.4rem; background: linear-gradient(180deg, #fff, #fbfaff); box-shadow: var(--shadow-soft); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s ease; }
.cat-card img { width: 160px; margin-bottom: 1rem; transition: transform .6s var(--ease), filter .6s var(--ease); }
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-9px); box-shadow: var(--shadow-lift); }
.cat-card:hover img, .cat-card:focus-visible img { transform: scale(1.09) translateY(-4px) rotate(-1.5deg); filter: drop-shadow(0 12px 14px rgba(58,44,143,.22)); }
.cat-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.cat-card:hover::before { transform: translateX(120%); }

/* ---------- Home: "Every category in detail" image rows ---------- */
.feature-media {
  position: relative; overflow: hidden; max-width: 430px; border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #efecf9);
  box-shadow: var(--shadow-soft);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.feature-media img { border-radius: 8px; transition: transform .9s var(--ease), filter .6s ease; }
.feature-media:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.feature-media:hover img { transform: scale(1.07); filter: saturate(1.08) contrast(1.02); }
/* sweeping highlight */
.feature-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-130%); transition: transform 1s var(--ease);
}
.feature-media:hover::before { transform: translateX(130%); }
/* "View category" chip that slides up on hover */
.feature-media::after {
  content: "View category \2192"; position: absolute; left: 50%; bottom: 1rem; z-index: 3;
  font-family: var(--font-btn); font-weight: 500; font-size: .85rem; letter-spacing: .02em; white-space: nowrap;
  background: var(--ink); color: #fff; padding: .5rem 1.15rem; border-radius: 999px;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s ease, background .25s ease;
}
.feature-media:hover::after { transform: translate(-50%, 0); opacity: 1; }
.feature-num { transition: transform .5s var(--ease); }
.feature:hover .feature-num { transform: translateX(8px); }
.feature h3 { transition: color .3s ease; }
.feature:hover h3 { color: var(--violet); }
.feature-media, .feature-media img { will-change: transform; }

/* ---------- Project grid cards (work page) ---------- */
.card-work .thumb { border-radius: 14px; box-shadow: var(--shadow-soft); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card-work:hover .thumb { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---------- Inner pages: smaller images ---------- */
.gallery-item { max-width: 82%; }
.col-12 > .gallery-item { max-width: 660px; }
.poster-feature { max-width: 400px; }
.gallery-item .frame { border-radius: 14px; box-shadow: var(--shadow-soft); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.gallery-item .frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.gallery-item .frame img { transition: transform .8s var(--ease); }
.gallery-item .frame:hover img { transform: scale(1.035); }
.doc-frame { max-width: 78%; border-radius: 14px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.doc-frame:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.carousel-item img { max-height: 46vh; }
.about-photo { max-width: 240px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.about-photo:hover { transform: scale(1.05) rotate(1.5deg); box-shadow: 0 26px 56px rgba(42,31,112,.28); }
.about-img { max-width: 420px; display: block; margin-left: auto; margin-right: auto; }
.lightbox img { max-height: 78vh; }
.lightbox .modal-content, .modal.fade .modal-dialog { transition: transform .4s var(--ease); }

/* ---------- Misc polish ---------- */
.stat-num { background: linear-gradient(120deg, var(--violet), #6a58d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-list li { transition: padding-left .3s var(--ease), background .3s ease; }
.contact-list li:hover { padding-left: .6rem; }
.next-project strong { transition: letter-spacing .4s var(--ease), color .3s ease; }
.next-project:hover strong { letter-spacing: .01em; }
.site-footer a { transition: color .25s ease; }
.cta-band { background: linear-gradient(120deg, var(--violet-dark), var(--violet) 55%, #5a47c8); }
.form-control, .form-select { transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease); }
.form-control:focus, .form-select:focus { transform: translateY(-1px); }

/* ---------- Scroll reveal (activated only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="left"]  { transform: translateX(-34px); }
.js [data-reveal="right"] { transform: translateX(34px); }
.js [data-reveal="zoom"]  { transform: scale(.94); }
.js [data-reveal].in-view { opacity: 1; transform: none; }

@media (max-width: 575.98px) {
  .hero-art { max-width: 340px; }
  .gallery-item { max-width: 90%; }
  .doc-frame { max-width: 92%; }
  .feature-media { max-width: 360px; }
  .cat-card img { width: 128px; }
}
@media (hover: none) { .feature-media::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
  .site-nav, .brand-logo img, .btn, .cat-card, .cat-card img, .cat-card::before, .feature-media, .feature-media img,
  .feature-media::before, .feature-media::after, .gallery-item .frame, .doc-frame, .about-photo, .card-work .thumb { transition: none; }
}


/* =====================================================================
   FINAL LAYER: smaller images everywhere + eye-catching look
   (wins over everything above; delete this block to go back one step)
   ===================================================================== */
:root {
  --violet: #4a35c9;
  --violet-dark: #2a1f70;
  --sun: #ffc800;
  --pink: #ff4d8d;
  --aqua: #19c3e6;
  --grad: linear-gradient(120deg, #4a35c9 0%, #8a3fe0 45%, #ff4d8d 100%);
}

/* ----- Image sizes: smaller across the whole site ----- */
.hero-art { max-width: 390px; }
.feature-media { max-width: 380px; }
.cat-card img { width: 140px; }
.cat-card { padding: 1.4rem .8rem 1.2rem; }
.gallery-item { max-width: 72%; }
.col-12 > .gallery-item { max-width: 560px; }
.poster-feature { max-width: 340px; }
.doc-frame { max-width: 70%; }
.about-photo { max-width: 210px; }
.about-img { max-width: 360px; }
.carousel-item img { max-height: 40vh; }
.card-work .thumb { aspect-ratio: 5 / 4; }
.card-work .thumb img { padding: 9%; }
.lightbox img { max-height: 74vh; }
@media (max-width: 575.98px) {
  .hero-art { max-width: 300px; }
  .feature-media { max-width: 320px; }
  .cat-card img { width: 110px; }
  .gallery-item { max-width: 86%; }
  .doc-frame { max-width: 88%; }
  .poster-feature { max-width: 290px; }
}

/* ----- Top accent bar + colourful hero ----- */
body::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 3000;
  background: var(--grad); background-size: 200% 100%; animation: slide 6s linear infinite;
}
@keyframes slide { to { background-position: 200% 0; } }

.hero {
  background:
    radial-gradient(520px 320px at 85% 8%, rgba(255,77,141,.20), transparent 65%),
    radial-gradient(560px 360px at 95% 90%, rgba(255,200,0,.28), transparent 65%),
    radial-gradient(620px 380px at 0% 100%, rgba(74,53,201,.16), transparent 65%),
    #fff;
}
.hero h1 {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  background-size: 160% 100%; animation: hue 8s ease-in-out infinite alternate;
}
@keyframes hue { to { background-position: 100% 0; } }
.hero-role { color: var(--pink); }
/*.hero-art::before { background: linear-gradient(135deg, var(--sun), var(--pink)); }
.hero-art::after {
  content: ""; position: absolute; width: 74px; height: 74px; right: -14px; top: -14px; z-index: 0;
  border: 4px solid var(--aqua); border-radius: 50%; animation: spin 14s linear infinite; border-style: dashed;
}*/
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Colour on headings, kickers, nav ----- */
.kicker { color: var(--pink); }
.section-head h2::after, .page-head h1::after { background: var(--grad); width: 80px; }
.site-nav .nav-link:not(.dropdown-toggle)::after { background: var(--grad); }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--violet); }
.text-link { border-bottom-color: var(--pink); }
.btn-ink { background: var(--grad); border-color: transparent; background-size: 150% 100%; transition: background-position .5s ease, transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn-ink:hover, .btn-ink:focus { background: var(--grad); background-size: 150% 100%; background-position: 100% 0; border-color: transparent; box-shadow: 0 14px 28px rgba(138,63,224,.35); }
.btn-line { border-color: var(--violet); color: var(--violet); }
.btn-line:hover, .btn-line:focus { background: var(--violet); border-color: var(--violet); }

/* ----- Category cards: colourful glow on hover ----- */
.cat-card { border: 1px solid transparent; background: #fff; }
.cat-card::after { background: var(--grad); height: 5px; }
.cat-card:hover, .cat-card:focus-visible { border-color: rgba(138,63,224,.35); box-shadow: 0 26px 50px rgba(138,63,224,.25), 0 0 0 4px rgba(255,200,0,.25); }
.cat-card:hover h3 { color: var(--pink); }

/* ----- Feature rows: bolder frames + hover ----- */
.feature-media { background: linear-gradient(145deg, #fff7d6, #ffe3f0 55%, #e4defa); border: 2px solid #fff; box-shadow: 0 14px 34px rgba(138,63,224,.16); }
.feature-media:hover { box-shadow: 0 30px 60px rgba(255,77,141,.28); transform: translateY(-10px) rotate(-.6deg); }
.feature-media:hover img { transform: scale(1.1); }
.feature-media::after { background: var(--grad); }
.feature-num { color: var(--sun); -webkit-text-stroke: 1px var(--violet-dark); font-size: 3.2rem; }
.feature:hover h3 { color: var(--pink); }

/* ----- Galleries & cards: pop on hover ----- */
.gallery-item .frame { box-shadow: 0 10px 28px rgba(74,53,201,.14); }
.gallery-item .frame:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 28px 54px rgba(255,77,141,.26); }
.card-work:hover .thumb { box-shadow: 0 28px 54px rgba(138,63,224,.26); }
.card-work:hover h3 { color: var(--pink); }
.doc-frame:hover { box-shadow: 0 28px 54px rgba(138,63,224,.24); }
.about-photo { border: 5px solid #fff; box-shadow: 0 0 0 4px var(--sun), 0 18px 44px rgba(74,53,201,.25); }

/* ----- Stats, CTA, footer ----- */
.stat-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band { background: linear-gradient(120deg, #2a1f70, #6a3fd8 55%, #ff4d8d); }
.section-tint { background: linear-gradient(180deg, #fbf8ff 0%, #f3eefe 55%, #fff4f8 100%); }
.site-footer { background: linear-gradient(180deg, #17141f, #221a45); }
.site-footer a:hover { color: var(--sun); }
.next-project:hover strong { color: var(--pink); }

/* ----- Scroll progress bar (created by main.js) ----- */
.scroll-progress { position: fixed; top: 4px; left: 0; height: 3px; width: 0; z-index: 3000; background: var(--sun); }

@media (prefers-reduced-motion: reduce) {
  body::before, .hero h1, .hero-art::after { animation: none; }
}


/* RIGHT IMAGE */

.culture-side-image img {
  width: min(100%, 300px);
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .culture-side-image img {
    width: min(100%, 260px);
    height: auto;
  }
}

/* ---------- Client revision: larger type and centred text ---------- */
body { font-size: clamp(1.125rem, 1rem + .25vw, 1.25rem); line-height: 1.75; }
main, .site-footer { text-align: center; }
.hero h1 { font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.1; }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.12; max-width: 62rem; margin-inline: auto; }
h2 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); }
.feature h3 { font-size: clamp(2rem, 3.8vw, 3rem); }
.kicker { font-size: 1rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 1rem; color: var(--violet); }
.hero-role { color: var(--violet); font-size: 1.25rem; justify-content: center; }
.hero-sub { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 600; line-height: 1.35; margin-bottom: 1.25rem; }
.lead-text { font-family: var(--font-body); font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); font-weight: 400; line-height: 1.75; color: #3a3550; max-width: 48rem; }
.page-head .lead-text, .hero .lead-text { padding-left: 0; border-left: 0; }
.page-head .lead-text { margin-top: 1.5rem; }
#categories .lead-text { max-width: 48rem; padding-left: 0; border: 0; }
.prose { max-width: 44rem; }
.prose, .lead-text, .pull, .cta-band h2, .cta-band p, .site-footer p { margin-inline: auto; }
.feature .muted { font-size: 1.125rem; }
.meta, .stats, .filters { justify-content: center; }
.meta dd { font-size: 1.125rem; }
.meta dt { font-size: 1rem; }
.stat-num { font-size: 3.25rem; }
.stat-label { font-size: 1.0625rem; }
.section-head h2::after, .page-head h1::after { margin-inline: auto; }
.card-work { text-align: center; }
.card-work h3 { font-size: 1.375rem; line-height: 1.35; }
.card-work p, .gallery-item figcaption { font-size: 1.0625rem; line-height: 1.65; }
.cat-card h3 { font-size: 1.25rem; }
.cat-card span { font-size: 1rem; line-height: 1.6; }
.btn, .filter-btn, .form-label { font-size: 1.0625rem; }
.site-nav .nav-link, .site-nav .dropdown-item { font-size: 1rem; text-align: center; }
.contact-list .label { font-size: 1rem; }
.contact-list a { font-size: 1.25rem; }
.form-control, .form-select { font-size: 1.125rem; text-align: center; }
.site-footer { font-size: 1.0625rem; }
.site-footer h4 { font-size: 1.2rem; }
.footer-bottom { font-size: 1rem; }

/* Natural word spacing helps scanning at every screen width. */
p, .prose, .lead-text, .muted, .card-work p, .cta-band p, .gallery-item figcaption {
  text-align: center;
  hyphens: none;
  overflow-wrap: break-word;
}
.text-center p, .text-center .lead-text, .section-head.text-center .lead-text { text-align: center; }
.cat-card span, .btn, .lightbox .lb-caption { text-align: center; }
.hero-role, .kicker { text-align: center; }
.text-center .kicker { text-align: center; }

/* Centre artwork within its columns; keep the original images uncropped. */
.hero-art { max-width: 440px; margin-inline: auto; }
.feature-media { max-width: 520px; }
.gallery-item { width: 100%; max-width: 94%; margin-inline: auto; }
.col-12 > .gallery-item, .container > div > .gallery-item { max-width: 820px; }
.poster-feature .gallery-item { max-width: 100%; }
.doc-frame { max-width: 94%; }
.illustration-grid .gallery-item { max-width: 100%; }
.illustration-grid .frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.illustration-grid .frame img { width: 100%; height: 100%; object-fit: contain; }
.illustration-grid figcaption { min-height: 1.5em; }
.footer-logo { max-width: 100%; }
.footer-logo img { max-width: 100%; height: auto; width: 180px; }
.site-footer a { overflow-wrap: anywhere; }
.lightbox .modal-body { padding-top: 2.75rem; }
.lightbox .btn-close { top: .25rem; right: .25rem; z-index: 1; }
.site-nav .dropdown-menu { max-height: calc(100dvh - 8rem); overflow-y: auto; }

@media (max-width: 575.98px) {
  .hero-art { max-width: 360px; }
  .kicker { font-size: .9375rem; letter-spacing: .06em; }
  .brand-logo img, .site-nav.is-scrolled .brand-logo img { height: auto; width: min(60vw, 230px); }
  .gallery-item, .doc-frame { max-width: 100%; }
  .cat-card img { width: 130px; }
}

/* Supplied final corrections, 16 November 2026. */
.brand-logo img { height: 86px; }
.site-nav.is-scrolled .brand-logo img { height: 72px; }
.about-photo { max-width: 340px; object-position: 50% 55%; }
.artwork-story, .illustration-opening, .publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}
.illustration-opening { grid-template-columns: 1.35fr 1fr; }
.illustration-opening .gallery-item, .artwork-story .gallery-item,
.culture-cover .gallery-item, .culture-process .gallery-item,
.publication-grid .gallery-item { max-width: 100%; }
.illustration-opening .frame img { width: 100%; max-height: 440px; object-fit: contain; }
.artwork-story { max-width: 1100px; margin-inline: auto; }
.artwork-copy h2, .project-description h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.artwork-copy p, .project-description p, .publication-copy p {
  font-size: 1.125rem;
  line-height: 1.8;
}
.artwork-copy p:last-child, .project-description p:last-child,
.publication-copy p:last-child { margin-bottom: 0; }
.illustration-additional { max-width: 460px; margin-inline: auto; }
.project-description { max-width: 820px; margin-inline: auto; }
.culture-cover { max-width: 820px; margin-inline: auto; }
.culture-process { max-width: 1000px; margin: 3rem auto 0; }
.publication-grid { max-width: 1060px; margin-inline: auto; gap: 2.5rem 3rem; }
.publication-left { display: grid; gap: 2rem; }
.publication-copy h2 { font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.35; margin-bottom: 1rem; }
.publication-left .publication-copy h2 { margin-top: 1rem; }
.publication-poster { align-self: stretch; display: flex; align-items: center; }
.publication-poster .frame img { max-height: 850px; width: 100%; object-fit: contain; }
.publication-book { max-width: 460px; width: 100%; justify-self: center; }

@media (max-width: 991.98px) {
  .brand-logo img { height: 72px; }
  .site-nav.is-scrolled .brand-logo img { height: 62px; }
  .artwork-story, .publication-grid { gap: 2rem; }
  .artwork-copy p, .publication-copy p { font-size: 1.0625rem; }
}
@media (max-width: 767.98px) {
  .artwork-story, .illustration-opening, .publication-grid { grid-template-columns: 1fr; }
  .illustration-opening { max-width: 560px; margin-inline: auto; }
  .illustration-opening > div:last-child { max-width: 400px; width: 100%; justify-self: center; }
  .artwork-story > div:first-child { max-width: 560px; width: 100%; justify-self: center; }
  .publication-poster { grid-row: 1; max-width: 440px; width: 100%; justify-self: center; }
  .publication-book-copy { margin-top: 1rem; }
}
@media (max-width: 575.98px) {
  .brand-logo img, .site-nav.is-scrolled .brand-logo img { height: auto; width: min(64vw, 250px); }
  .about-photo { max-width: 290px; }
  /* Keep large Bootstrap row gutters inside the phone-sized container. */
  .container > .row.g-5 { --bs-gutter-x: 1.5rem; }
}
