/* Azad Atelier: public site
   Palette built around rgb(187,175,169) / #BBAFA9. Warm, low-chroma neutrals only. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ------------------------------------------------------------ */

:root {
  --bg: #BBAFA9;
  --bg-alt: #C4B9B3;
  --surface: #CDC4BF;
  --ink: #1F1D1B;
  --ink-soft: #2F2B28;
  --muted: #463F3B;
  --line: rgba(31, 29, 27, 0.2);
  --line-strong: rgba(31, 29, 27, 0.45);
  --accent: #6B5F58;
  --error: #7E2F22;
  --success: #2F4A35;
  --on-media: #F4F0ED;
  --media-bg: #A79B95;

  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 72px;
  --section: clamp(88px, 12vw, 184px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --logo-ratio: 2.1136;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #24211F;
  --bg-alt: #2B2725;
  --surface: #34302D;
  --ink: #DCD3CE;
  --ink-soft: #C9BFB9;
  --muted: #A0968F;
  --line: rgba(220, 211, 206, 0.16);
  --line-strong: rgba(220, 211, 206, 0.4);
  --accent: #BBAFA9;
  --error: #E3A595;
  --success: #A9C4AE;
  --media-bg: #34302D;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #24211F;
    --bg-alt: #2B2725;
    --surface: #34302D;
    --ink: #DCD3CE;
    --ink-soft: #C9BFB9;
    --muted: #A0968F;
    --line: rgba(220, 211, 206, 0.16);
    --line-strong: rgba(220, 211, 206, 0.4);
    --accent: #BBAFA9;
    --error: #E3A595;
    --success: #A9C4AE;
    --media-bg: #34302D;
    color-scheme: dark;
  }
}

/* Base -------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

img, video, picture { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }

h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button { font: inherit; color: inherit; }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

::selection { background: var(--ink); color: var(--bg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type -------------------------------------------------------------- */

.display {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.75rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rich { color: var(--ink-soft); }
.rich > * + * { margin-top: 1em; }
.rich a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rich h3, .rich h4 { font-weight: 500; font-size: 1em; color: var(--ink); }
.rich ul, .rich ol { padding-left: 1.2em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich blockquote { margin: 0; padding-left: 1em; border-left: 1px solid var(--line-strong); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.link-arrow .icon { transition: transform 0.4s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Logo (CSS mask, so it takes the current text colour in any theme) -- */

.logo-mark {
  display: block;
  aspect-ratio: var(--logo-ratio);
  background-color: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}

/* Brand kit logo: SVG files in light and dark versions. With the `auto` tone both are in the page
   and the theme decides which one shows. Height is set where it is used; the width follows. */
.brand-logo { display: block; }
.brand-logo--logo { aspect-ratio: 302 / 176; }
.brand-logo--symbol { aspect-ratio: 215 / 138; }
.brand-logo__img { display: block; width: 100%; height: 100%; }
.brand-logo--auto .brand-logo__img--dark { display: none; }
:root[data-theme="dark"] .brand-logo--auto .brand-logo__img--light,
.site-header.is-overlay .brand-logo--auto .brand-logo__img--light { display: none; }
:root[data-theme="dark"] .brand-logo--auto .brand-logo__img--dark,
.site-header.is-overlay .brand-logo--auto .brand-logo__img--dark { display: block; }

/* Header ------------------------------------------------------------ */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-overlay {
  color: var(--on-media);
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: block; color: inherit; }
.brand:hover { color: inherit; opacity: 0.75; }
.brand .logo-mark { height: 26px; }
.brand .brand-logo { height: 34px; }

.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
  position: relative;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  padding-block: 6px;
}
.site-nav a:hover { color: inherit; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }

main { display: block; padding-top: var(--header-h); }
.page-home main { padding-top: 0; }

/* Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  color: var(--on-media);
  background: #2A2624;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero picture.hero__video img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 18, 17, 0.35), rgba(20, 18, 17, 0) 28%),
    rgba(20, 18, 17, var(--overlay, 0.2));
}
.hero__content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--header-h) var(--gutter);
  text-align: center;
}
/* Soft gradient shadow centred under the logo and slogan (strength set in the CMS). */
.hero__glow {
  position: absolute; left: 50%; top: 50%;
  width: min(1200px, 135vw); height: min(78vh, 760px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(18, 16, 15, var(--glow, 0.35)) 0%,
    rgba(18, 16, 15, calc(var(--glow, 0.35) * 0.6)) 45%,
    rgba(18, 16, 15, 0) 100%);
  pointer-events: none;
}
.hero__title, .hero__tagline { position: relative; }
.hero__title { font-weight: 300; line-height: 1; }
.hero__logo {
  width: clamp(220px, 34vw, 560px);
}
/* The kit logo with lettering is taller than the old mark, so it is set a little narrower. */
.hero__logo.brand-logo {
  width: clamp(200px, 26vw, 420px);
}
.hero__logo {
  filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.12));
  animation: rise 1.6s var(--ease) 0.2s both;
}
.hero__wordmark {
  font-size: clamp(2.5rem, 7vw, 6rem); letter-spacing: -0.03em;
  animation: rise 1.6s var(--ease) 0.2s both;
}
.hero__tagline {
  margin-top: clamp(24px, 3.2vw, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 0.7em;
  font-size: clamp(0.75rem, 0.68rem + 0.35vw, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: rise 1.6s var(--ease) 0.7s both;
}
.hero__name { font-weight: 500; }
.hero__slogan { text-transform: none; letter-spacing: 0.04em; font-size: 1.25em; font-weight: 300; }

.hero__cue {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 40px; height: clamp(56px, 9vh, 88px);
  display: flex; justify-content: center; overflow: hidden; color: var(--on-media);
}
.hero__cue span { width: 1px; height: 100%; background: currentColor; opacity: 0.8; animation: cue 2.4s var(--ease) infinite; }
.hero__cue:hover { color: var(--on-media); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* About ------------------------------------------------------------- */

.about { padding-block: var(--section); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 48px;
  align-items: center;
}
.about__text { grid-column: 1 / 7; }
.about__label { margin-bottom: clamp(24px, 3vw, 40px); }
.about__heading { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); }
.about__body { margin-top: clamp(28px, 3vw, 44px); max-width: 36em; font-size: 1.0625rem; }
.about__body p:first-child { font-size: 1.1875rem; color: var(--ink); }
/* Portrait photo (4:5) that fills 60% of the screen height; its width follows from the height. */
.about__figure {
  grid-column: 7 / 13; justify-self: end;
  height: 60vh; height: 60svh; min-height: 340px;
  width: auto; max-width: 100%; aspect-ratio: 4 / 5;
  background: var(--media-bg); overflow: hidden;
}
.about__figure picture, .about__figure img { width: 100%; height: 100%; }
.about__figure img { object-fit: cover; }
/* Parallax (set up by site.js): the photo is taller than its frame and drifts slower than the page. */
.about__figure.is-parallax { position: relative; }
.about__figure.is-parallax > * {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform;
}
.about__grid--text .about__text { grid-column: 3 / 11; }

/* Link to projects ---------------------------------------------------- */

.cta { padding-bottom: var(--section); }
.cta__inner {
  display: grid; justify-items: center; gap: 20px;
  padding-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta__heading { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em; }
.cta__text { max-width: 34em; color: var(--ink-soft); font-size: 1.0625rem; }
.cta .button { justify-self: center; margin-top: 12px; }

/* Testimonials ------------------------------------------------------ */

.testimonials {
  padding-block: clamp(80px, 10vw, 160px);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.testimonials__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
}
.testimonials__heading {
  margin-top: 14px;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -0.02em;
}
.testimonials__nav { display: flex; gap: 10px; }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: transparent; border: 1px solid var(--line-strong); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.testimonials__track { display: grid; gap: 64px; }
.testimonial {
  margin: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 104px); align-items: center;
}
.testimonial__photo {
  position: relative;
  width: clamp(180px, 20vw, 280px); aspect-ratio: 1;
  border-radius: 50%;
}
/* A fine ring set slightly off the portrait. */
.testimonial__photo::after {
  content: ""; position: absolute; inset: -14px -14px 14px 14px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  pointer-events: none;
}
.testimonial__photo picture, .testimonial__photo img, .testimonial__initial {
  position: relative; z-index: 1;
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.testimonial__initial {
  display: grid; place-items: center;
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; color: var(--ink);
  background: var(--surface);
}
.testimonial__body { position: relative; max-width: 46em; }
.testimonial__mark {
  display: block; width: clamp(40px, 4.4vw, 60px); height: auto;
  margin-bottom: clamp(18px, 2.4vw, 30px);
  fill: var(--accent); opacity: 0.5;
}
.testimonial__quote { margin: 0; }
.testimonial__quote p {
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.25rem);
  font-weight: 300; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink);
}
.testimonial--long .testimonial__quote p { font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem); line-height: 1.5; }
.testimonial__by {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin-top: clamp(24px, 3vw, 40px); padding-top: 20px;
  border-top: 1px solid var(--line);
}
.testimonial__name { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.testimonial__role { font-size: 0.9375rem; color: var(--muted); }

.testimonials__dots { display: flex; gap: 10px; margin-top: clamp(40px, 5vw, 64px); }
.testimonials__dot {
  width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--line-strong); transition: background-color 0.3s, width 0.4s var(--ease);
}
.testimonials__dot[aria-current="true"] { width: 52px; background: var(--ink); }
/* Enlarge the dots' click area without changing their look. */
.testimonials__dot { position: relative; }
.testimonials__dot::before { content: ""; position: absolute; inset: -12px -2px; }

/* With JavaScript, slides share one spot and cross-fade; without it they simply stack. */
.js [data-carousel] .testimonials__track { gap: 0; }
.js [data-carousel] .testimonial {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0s 0.8s;
}
.js [data-carousel] .testimonial.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0s;
}

@media (max-width: 760px) {
  .testimonials__head { flex-direction: column; align-items: flex-start; }
  .testimonials__nav { display: none; }
  .testimonial { grid-template-columns: 1fr; justify-items: start; }
  .testimonial__photo { width: 140px; }
  .testimonial__photo::after { inset: -8px -8px 8px 8px; }
}

/* Page head (projects, contact) ------------------------------------- */

.page-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 28px;
  padding-top: clamp(64px, 10vw, 152px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.page-head .display { grid-column: 1 / 7; }
.page-head__aside { grid-column: 8 / 13; align-self: end; font-size: 1.0625rem; }
.page-head--404 { min-height: 60vh; align-content: center; }
/* Title with the introduction directly underneath (Contact page). */
.page-head--stacked .display, .page-head--stacked .page-head__aside { grid-column: 1 / -1; }
.page-head--stacked .page-head__aside { align-self: start; max-width: 40em; }

.empty { padding-bottom: var(--section); color: var(--muted); }

/* Project list -------------------------------------------------------- */

.plist { border-bottom: 1px solid var(--line-strong); }
.plist__item { border-top: 1px solid var(--line-strong); }
.plist__link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 20px;
  align-items: start;
  padding-block: clamp(24px, 3vw, 40px);
}
.plist__text { grid-column: 1 / 6; display: grid; grid-template-columns: 3.2em minmax(0, 1fr); align-content: start; row-gap: 14px; }
.plist__n { grid-row: 1; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.9em; }
.plist__title {
  grid-column: 2;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.875rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.02em;
  transition: transform 0.6s var(--ease);
}
.plist__meta, .plist__more { grid-column: 2; }
.plist__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.plist__fact { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plist__more {
  display: inline-flex; align-items: center; gap: 0.6em; margin-top: 10px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.6s var(--ease);
}
/* Up to two photos at one height, each in its own proportions; they scale down together when space runs out. */
.plist__thumbs {
  --h: clamp(150px, 17vw, 260px);
  grid-column: 6 / 13;
  display: flex; justify-content: flex-end; align-items: flex-start; gap: clamp(12px, 1.4vw, 20px);
}
.plist__thumb { flex: 0 1 calc(var(--h) * var(--r)); aspect-ratio: var(--r); min-width: 0; overflow: hidden; background: var(--media-bg); }
.plist__thumb picture, .plist__thumb img { display: block; width: 100%; height: 100%; }
.plist__thumb img { object-fit: cover; transition: transform 1.2s var(--ease); }
.plist__link:hover .plist__title, .plist__link:focus-visible .plist__title { transform: translateX(6px); }
.plist__link:hover .plist__more, .plist__link:focus-visible .plist__more { opacity: 1; transform: none; }
.plist__link:hover .plist__thumb img { transform: scale(1.03); }
.plist__link:focus-visible { outline-offset: 4px; }

.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--section);
}
.pager__step {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.pager__step.is-disabled { opacity: 0.35; }
.pager__pages { display: flex; align-items: center; gap: 4px; }
.pager__num, .pager__gap {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding-inline: 6px;
  font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--muted);
}
.pager__num { border: 1px solid transparent; border-radius: 999px; transition: border-color 0.3s, color 0.3s; }
a.pager__num:hover { color: var(--ink); border-color: var(--line-strong); }
.pager__num.is-current { color: var(--ink); border-color: var(--ink); }
.plist--end { margin-bottom: var(--section); }

/* Projects ---------------------------------------------------------- */

.project { padding-bottom: var(--section); }
.project + .project { padding-top: 0; }

.project__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 24px;
  padding-top: 28px;
  margin-bottom: clamp(28px, 3.5vw, 52px);
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.project__title {
  grid-column: 1 / 6;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.875rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -0.02em;
}
.project--detail .project__title { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem); }
.facts { grid-column: 6 / 9; display: grid; gap: 10px; align-content: start; padding-top: 0.5em; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; font-size: 0.9375rem; }
.facts dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 0.25em; }
.project__summary { grid-column: 9 / 13; font-size: 0.9375rem; padding-top: 0.4em; }
.project__credits { grid-column: 1 / -1; margin-top: 8px; }

/* Salon hang: columns of photos in their true proportions, starting at staggered heights. */
.salon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
}
.salon__col { display: grid; row-gap: clamp(28px, 3.6vw, 56px); align-content: start; }
.salon--3 .salon__col--2 { padding-top: clamp(48px, 9vw, 150px); }
.salon--3 .salon__col--3 { padding-top: clamp(20px, 4vw, 64px); }
.salon--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.salon--2 .salon__col--2 { padding-top: clamp(40px, 7vw, 120px); }
.salon--1 { grid-template-columns: minmax(0, 960px); }
.photo__media { display: block; background: var(--media-bg); cursor: zoom-in; overflow: hidden; }
.photo__media img { transition: transform 1.2s var(--ease), opacity 0.4s; }
.photo__media:hover img { transform: scale(1.02); }
.photo__media:focus-visible { outline-offset: 3px; }
.photo__media img { width: 100%; height: auto; }
.photo__caption { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-soft); max-width: 44em; }

.credits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.credit dt {
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.credit dd { font-size: 0.875rem; margin-top: 2px; }

.crumbs { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; gap: 0.6em; align-items: center; }

.next-project { padding-bottom: var(--section); }
.next-project .eyebrow { padding-top: 24px; border-top: 1px solid var(--line-strong); }
.next-project__link {
  display: inline-block; margin-top: 12px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.75rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1;
}

/* Contact ----------------------------------------------------------- */

.contact {
  display: grid;
  /* Form takes 65% of the content width, contact details the rest. */
  grid-template-columns: 65% minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 80px);
  row-gap: 56px;
  padding-bottom: var(--section);
}
.contact__info { display: grid; gap: 28px; align-content: start; }
.contact__info dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.contact__info dd { margin-top: 6px; font-size: 1.125rem; }
.contact__info dd .link-arrow { margin-top: 12px; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Social media logos */
.social-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.social-links a { display: inline-flex; color: var(--ink); transition: color 0.3s, transform 0.3s var(--ease); }
.social-links a:hover { color: var(--accent); transform: translateY(-2px); }
.social-icon { width: 20px; height: 20px; }
.social-links--lg { gap: 22px; margin-top: 4px; }
.social-links--lg .social-icon { width: 24px; height: 24px; }

.contact-form { display: grid; gap: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field label { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 0;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.6; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field__error { margin-top: 6px; font-size: 0.8125rem; color: var(--error); }
.captcha__row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.captcha__img { width: 190px; height: 64px; border: 1px solid var(--line); background: #EDE8E4; }
.captcha__refresh {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 6px 0;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); background: none; border: 0; cursor: pointer;
}
.captcha__refresh:hover { color: var(--accent); }
.captcha input { max-width: 240px; letter-spacing: 0.2em; text-transform: uppercase; }
.field__hint { margin-top: 8px; font-size: 0.8125rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.button {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 0.8em;
  padding: 15px 30px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: transparent;
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.button:hover { background: var(--ink); color: var(--bg); }

.notice { padding: 14px 16px; font-size: 0.9375rem; border: 1px solid currentColor; }
.notice--success { color: var(--success); }
.notice--error { color: var(--error); }

/* Footer ------------------------------------------------------------ */

.site-footer {
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  background: var(--bg-alt);
  transition: background-color 0.5s var(--ease);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: 40px;
}
.site-footer__brand { grid-column: 1 / 6; }
.site-footer__col { grid-column: span 2; }
.site-footer__col .eyebrow { margin-bottom: 14px; }
.site-footer__col p + p { margin-top: 4px; }
.site-footer__logo.logo-mark { height: 34px; }
.site-footer__logo.brand-logo { height: clamp(72px, 7vw, 96px); }
.site-footer__line { margin-top: 18px; color: var(--muted); max-width: 26em; }

.site-footer__base {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  font-size: 0.8125rem; color: var(--muted);
}
.theme-switch { display: inline-flex; align-items: center; gap: 4px; }
.theme-switch__label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-right: 8px; }
.theme-switch button {
  padding: 6px 12px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { color: var(--ink); border-color: var(--line-strong); }
.to-top:hover { color: var(--ink); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* Photo viewer ----------------------------------------------------- */

.lightbox-open, .lightbox-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 8vw, 120px);
  background: rgba(20, 18, 17, 0.97);
  color: #F4F0ED;
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 14px; max-height: 100%; min-height: 0; }
.lightbox__img {
  max-width: 100%; max-height: calc(100vh - 2 * clamp(56px, 7vw, 96px) - 40px);
  width: auto; height: auto; object-fit: contain;
  transition: opacity 0.25s;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.lightbox.is-loading .lightbox__img { opacity: 0.35; }
.lightbox__caption { font-size: 0.875rem; color: rgba(244, 240, 237, 0.75); text-align: center; max-width: 60ch; }
.lightbox__count {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; letter-spacing: 0.16em; color: rgba(244, 240, 237, 0.75); font-variant-numeric: tabular-nums;
}
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  color: #F4F0ED; background: rgba(244, 240, 237, 0.08);
  border: 1px solid rgba(244, 240, 237, 0.25); cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.lightbox__btn:hover { background: rgba(244, 240, 237, 0.18); border-color: rgba(244, 240, 237, 0.6); }
.lightbox__btn[hidden] { display: none; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: clamp(8px, 2.5vw, 36px); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(8px, 2.5vw, 36px); top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
  .lightbox { padding: 64px 12px 88px; }
  .lightbox__img { max-height: calc(100vh - 170px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* Reveal on scroll ---------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive -------------------------------------------------------- */

@media (max-width: 1024px) {
  .about__text { grid-column: 1 / 7; }
  .about__figure { grid-column: 7 / 13; }
  .project__title { grid-column: 1 / 7; }
  .facts { grid-column: 7 / 13; }
  .project__summary { grid-column: 1 / -1; max-width: 40em; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__col { grid-column: span 4; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .brand .logo-mark { height: 22px; }
  .brand .brand-logo { height: 28px; }
  .site-nav { gap: 20px; }

  .hero__tagline { letter-spacing: 0.18em; }

  .about__text, .about__figure, .about__grid--text .about__text { grid-column: 1 / -1; }
  .about__figure { justify-self: start; min-height: 0; }

  .page-head .display, .page-head__aside { grid-column: 1 / -1; }

  .project__title, .facts { grid-column: 1 / -1; }

  .plist__text, .plist__thumbs { grid-column: 1 / -1; }
  .plist__thumbs { --h: 44vw; order: -1; justify-content: flex-start; }
  .plist__text { grid-template-columns: 2.6em minmax(0, 1fr); }
  .plist__more { display: none; }
  .pager__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pager__step { min-width: 40px; height: 40px; justify-content: center; }
  .pager { gap: 8px; }
  /* One column in the original order: the column wrappers dissolve and `order` restores the sequence. */
  .salon { display: flex; flex-direction: column; gap: 32px; }
  .salon__col { display: contents; }
  .salon .salon__col { padding-top: 0 !important; }
  .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: 1fr; }

  .site-footer__col { grid-column: span 6; }
  .site-footer__base { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
