@import url("fonts.css?v=gallerywalk");

/* ===========================================================================
   Raavi — "Gallery walk"
   Scandinavian minimalism with one bold idea. Warm birch paper, one light
   geometric sans (Albert Sans), a lot of air. The only colour outside the
   photographs is a low red sun: the old grease pencil, reduced to a dot.
   On the homepage the work hangs at eye level like an exhibition you walk
   through sideways as you scroll, while the sun crosses a horizon line.
   Square photographs, no shadows, calm motion.
   =========================================================================== */

:root {
  --paper: #f5f3ee;          /* page */
  --oat: #ebe7de;            /* soft blocks, image placeholders */
  --ink: #1e201f;            /* text */
  --grey: #6f736f;           /* secondary text (4.6:1 on paper) */
  --line: #d8d4cb;           /* hairlines */
  --sun: #c4372b;            /* the low sun */
  --error: #a8322a;

  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;

  --g: clamp(18px, 3.2vw, 56px);          /* page gutter */
  --head: 76px;
  --space: clamp(96px, 12vw, 200px);       /* between sections */
  --max: 1520px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

.container {
  width: min(100% - (var(--g) * 2), var(--max));
  margin-inline: auto;
}

.section {
  padding-top: var(--space);
}

.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
}

/* Links and buttons -------------------------------------------------------- */

.text-link,
.price-value a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.3s var(--ease);
}

.text-link:hover,
.price-value a:hover {
  text-decoration-color: var(--ink);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.arrow-link svg,
.button svg,
.nav-cta svg {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.arrow-link:hover svg,
.button:hover svg,
.nav-cta:hover svg {
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.button--solid {
  background: var(--ink);
  color: var(--paper);
}

.button--solid:hover {
  background: #000;
}

.button:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* The sun: a small red dot after the logo */
.logo-dot {
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--sun);
}

/* Quiet arrival: elements fade up a few pixels, once */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

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

.site-header {
  position: relative;
  z-index: 50;
}

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--head);
  padding-inline: var(--g);
}

.main-nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 32px);
  font-size: 15px;
}

.main-nav a {
  color: var(--grey);
  transition: color 0.3s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--grey);
}

.lang-switch a {
  padding: 4px 2px;
  transition: color 0.3s var(--ease);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--ink);
}

.lang-switch a[aria-current="true"] {
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 22px;
  height: 10px;
  margin: 0 auto;
}

.menu-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.menu-toggle-line--top {
  top: 0;
}

.menu-toggle-line--bottom {
  top: 8.5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line--top {
  top: 4.25px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line--bottom {
  top: 4.25px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ------------------------------------------------------------ Homepage -- */

.hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: clamp(10px, 2vw, 30px) var(--g) clamp(22px, 2.6vw, 38px);
}

.hero-head h1 {
  font-size: clamp(54px, 8.4vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 320px;
  padding-bottom: 8px;
}

.hero-side p {
  margin: 0;
  color: var(--grey);
}

/* Triptych: three tall photographs; the one you point at opens wider */
.tri {
  display: flex;
  gap: clamp(8px, 1vw, 16px);
  height: calc(100svh - var(--head) - var(--hero-head-h, 190px) - 64px);
  min-height: 380px;
  max-height: 980px;
  padding-inline: var(--g);
}

.panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  transition: flex 0.9s var(--ease);
}

/* A gentle widening: the photos are portrait, so the wider a panel gets the
   more its frame crops from top and bottom. Each hero image carries an
   object-position focal point so the crop stays on its subject. */
.tri:hover .panel {
  flex: 0.78;
}

.tri .panel:hover,
.tri .panel:focus-visible {
  flex: 1.45;
}

/* On very wide screens the frames are already landscape, so widen less */
@media (min-aspect-ratio: 2 / 1) {
  .tri:hover .panel {
    flex: 0.88;
  }

  .tri .panel:hover,
  .tri .panel:focus-visible {
    flex: 1.25;
  }
}

.panel-photo {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--oat);
}

.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}

.panel:hover .panel-photo img {
  transform: scale(1);
}

.panel-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.panel-label strong {
  font-weight: 500;
}

.panel-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--grey);
}

/* Intro statement */
.intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding: clamp(110px, 15vw, 240px) var(--g) clamp(80px, 10vw, 160px);
}

.intro h2 {
  grid-column: 3 / 12;
  font-size: clamp(32px, 4.4vw, 72px);
  line-height: 1.08;
  text-wrap: balance;
}

.intro-more {
  grid-column: 3 / 8;
  margin: 40px 0 0;
  color: var(--grey);
}

.intro-actions {
  grid-column: 9 / 13;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Gallery walk: vertical scroll moves the exhibition sideways */
.walk {
  position: relative;
}

.walk-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.walk-track {
  display: flex;
  align-items: center;
  gap: clamp(60px, 7vw, 130px);
  height: 74svh;
  padding: 0 var(--g);
  will-change: transform;
}

.walk-intro,
.walk-end {
  flex: none;
  width: clamp(240px, 24vw, 380px);
}

.walk-intro h2 {
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1;
}

.walk-intro p {
  margin: 18px 0 0;
  color: var(--grey);
}

.walk-end p {
  margin: 0 0 18px;
  color: var(--grey);
}

.walk-end .arrow-link {
  display: flex;
  width: fit-content;
  margin-top: 8px;
}

.hang {
  position: relative;
  flex: none;
}

.hang img {
  width: auto;
  max-width: none;
  height: var(--h);
  background: var(--oat);
}

.hang--l { --h: 58svh; }
.hang--m { --h: 44svh; }
.hang--s { --h: 33svh; }

.hang figcaption {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  font-size: 14px;
  line-height: 1.45;
}

.hang figcaption strong {
  display: block;
  font-weight: 500;
}

.hang figcaption span {
  color: var(--grey);
}

.hang a:hover + figcaption strong,
.hang a:focus-visible + figcaption strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.horizon {
  position: absolute;
  left: var(--g);
  right: var(--g);
  bottom: 9svh;
  height: 1px;
  background: var(--line);
}

.horizon-sun {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 0) * 100%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sun);
  transform: translate(-50%, -50%);
}

.horizon-hint {
  position: absolute;
  right: 0;
  bottom: 12px;
  font-size: 13px;
  color: var(--grey);
}

/* Projects: two staggered columns */
.projects {
  padding: var(--space) var(--g) 0;
}

.projects-head,
.page-title-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.projects-head h2 {
  font-size: clamp(32px, 3.4vw, 54px);
}

.projects-head p {
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 5vw, 96px);
  row-gap: clamp(60px, 7vw, 110px);
  padding-top: clamp(40px, 5vw, 72px);
}

.project {
  display: block;
}

.project:nth-child(even) {
  margin-top: clamp(80px, 12vw, 200px);
}

.project-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--oat);
}

.project--wide .project-photo {
  aspect-ratio: 4 / 3;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project:hover .project-photo img {
  transform: scale(1.03);
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  margin-top: 18px;
}

.project h3 {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-tag {
  align-self: center;
  font-size: 13px;
  color: var(--grey);
}

.project-meta p {
  grid-column: 1 / -1;
  max-width: 44ch;
  margin: 0;
  font-size: 16px;
  color: var(--grey);
}

/* Client logos: one row across the full width that drifts slowly sideways
   (main.js copies the logos so the loop is seamless) and pauses while
   pointed at. Each logo has an optical width (--w) so wide and compact
   marks look equally heavy. Without JS, or with reduced motion, the row
   stands still with the logos spread evenly across the width. */
.clients {
  margin: var(--space) var(--g) 0;
  padding: 30px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients > p {
  margin: 0 0 26px;
}

.client-marquee {
  overflow: hidden;
}

.client-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.client-logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.client-logo img {
  width: calc(var(--w, 100px) * var(--logo-scale, 1));
  height: auto;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.6;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}

.client-logo img:hover {
  filter: none;
  opacity: 1;
}

.client-marquee.is-scrolling {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.client-marquee.is-scrolling .client-track {
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  animation: client-drift var(--marquee-duration, 40s) linear infinite;
}

.client-marquee.is-scrolling .client-logo {
  padding-inline: clamp(34px, 4.6vw, 76px);
}

.client-marquee.is-scrolling:hover .client-track {
  animation-play-state: paused;
}

@keyframes client-drift {
  to {
    transform: translateX(-50%);
  }
}

/* About, short version on the homepage */
.home-about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: end;
  padding: var(--space) var(--g) 0;
}

.home-about-photo {
  grid-column: 1 / 5;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oat);
}

.home-about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.home-about-text {
  grid-column: 6 / 12;
}

.home-about-text h2 {
  font-size: clamp(28px, 3.2vw, 50px);
  line-height: 1.12;
}

.home-about-text p {
  max-width: 46ch;
  margin: 24px 0 0;
  color: var(--grey);
}

.home-about-text .arrow-link {
  margin-top: 30px;
}

/* Contact band with the low sun, used at the end of most pages */
.contact-band {
  position: relative;
  overflow: hidden;
  margin-top: var(--space);
  padding: clamp(80px, 10vw, 160px) var(--g) clamp(130px, 17vw, 280px);
  background: var(--oat);
}

.contact-band h2 {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  font-size: clamp(44px, 6.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-band-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
  margin-top: 44px;
}

.contact-band-mail {
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
}

.contact-band-row .small {
  margin: 0;
}

.low-sun {
  position: absolute;
  right: 9vw;
  bottom: 0;
  width: clamp(200px, 26vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(46%);
  transition: transform 2.4s var(--ease);
}

.js .contact-band:not(.is-in) .low-sun {
  transform: translateY(60%);
}

/* ---------------------------------------------------------- Page title -- */

.page-title {
  padding: clamp(40px, 6vw, 96px) var(--g) 0;
}

.page-title .container {
  width: auto;
  max-width: none;
  margin: 0;
}

.page-title h1 {
  font-size: clamp(48px, 7vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.page-title + .section {
  padding-top: clamp(40px, 5vw, 72px);
}

.page-lead {
  max-width: 54ch;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--grey);
}

/* ----------------------------------------------------- Portfolio index -- */

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
  padding: clamp(40px, 5vw, 72px) var(--g) 0;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--oat);
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease);
}

.cat:hover .cat-photo img {
  transform: scale(1);
}

.cat-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.cat-text strong {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.cat-text span {
  max-width: 34ch;
  font-size: 15px;
  color: var(--grey);
  text-align: right;
}

/* ------------------------------------------------------------ Galleries -- */

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: clamp(36px, 4vw, 56px) var(--g) 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.gallery-filter-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--grey);
  font: 400 16px/1.2 var(--font);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.gallery-filter-tab::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}

.gallery-filter-tab:hover {
  color: var(--ink);
}

.gallery-filter-tab[aria-pressed="true"] {
  color: var(--ink);
}

.gallery-filter-tab[aria-pressed="true"]::before {
  transform: scale(1);
}

.gallery-category {
  padding: clamp(56px, 7vw, 110px) var(--g) 0;
}

.gallery-category.is-hidden {
  display: none;
}

.gallery-category-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.gallery-category-head h2 {
  font-size: clamp(30px, 3.2vw, 50px);
}

.gallery-category-head p {
  max-width: 44ch;
  margin: 0;
  color: var(--grey);
  text-align: right;
}

/* Calm masonry: no frames, no tilt, generous gaps */
.gallery-masonry {
  column-count: 3;
  column-gap: clamp(14px, 1.6vw, 28px);
}

main > .gallery-masonry {
  margin: clamp(40px, 5vw, 72px) var(--g) 0;
}

.gallery-masonry > * {
  display: block;
  break-inside: avoid;
  margin-bottom: clamp(14px, 1.6vw, 28px);
}

.gallery-masonry figure {
  margin-bottom: clamp(26px, 2.6vw, 40px);
}

.gallery-masonry a {
  display: block;
  overflow: hidden;
  background: var(--oat);
  cursor: zoom-in;
}

.gallery-masonry img {
  width: 100%;
  transition: transform 1.2s var(--ease), opacity 0.6s var(--ease);
}

.gallery-masonry a:hover img {
  transform: scale(1.025);
}

.gallery-masonry figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--grey);
}

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

.about-page-intro {
  padding-top: clamp(40px, 6vw, 96px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: start;
}

.about-photo {
  grid-column: 1 / 6;
}

.about-photo .print,
.contact-photo .print {
  display: block;
  overflow: hidden;
  background: var(--oat);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-text {
  grid-column: 7 / 13;
  padding-top: 8px;
}

.about-text h1 {
  margin-bottom: 34px;
  font-size: clamp(48px, 7vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.about-text p {
  max-width: 54ch;
  color: var(--grey);
}

.about-text p:first-of-type {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink);
}

/* "At a glance" continues the right-hand column of the intro above */
.services-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}

.service-block {
  grid-column: 7 / 13;
}

.service-header h2 {
  padding-bottom: 18px;
  font-size: clamp(28px, 2.8vw, 44px);
  border-bottom: 1px solid var(--line);
}

.price-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.price-label {
  color: var(--grey);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: 48px;
  align-items: start;
}

.contact-panel {
  grid-column: 1 / 6;
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.contact-text {
  margin-top: 36px;
}

.contact-text h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
}

.contact-lead {
  margin: 16px 0 0;
  color: var(--grey);
}

.contact-details {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-detail {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-detail > span:first-child {
  color: var(--grey);
}

.contact-detail a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.contact-form-card {
  grid-column: 7 / 13;
  padding: clamp(28px, 3.4vw, 56px);
  background: var(--oat);
}

.form-intro h2 {
  margin-bottom: 30px;
  font-size: clamp(28px, 2.6vw, 40px);
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--grey);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
  margin-bottom: 28px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #c7c2b7;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 17px/1.4 var(--font);
  transition: border-color 0.3s var(--ease);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9a9d98;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.contact-form .option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 9px 18px;
  border: 1px solid #c7c2b7;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.option-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill:hover {
  border-color: var(--ink);
}

.option-pill:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.option-pill:has(input:focus-visible) {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}

.form-message {
  margin-bottom: 28px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.form-actions .button {
  background: var(--ink);
  color: var(--paper);
}

.form-actions .button:hover {
  background: #000;
}

.form-note {
  font-size: 14px;
  color: var(--grey);
}

.form-feedback {
  min-height: 1.5em;
  margin: 18px 0 0;
  font-size: 15px;
}

.form-feedback[data-status="success"] {
  color: var(--ink);
}

.form-feedback[data-status="error"] {
  color: var(--error);
}

/* ----------------------------------------------------------------- 404 -- */

.container.not-found {
  max-width: 60ch;
  margin-inline: var(--g) auto;
  color: var(--grey);
}

.not-found ul {
  margin: 0 0 36px;
  padding-left: 1.2em;
}

.not-found li {
  margin-bottom: 8px;
}

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

.footer {
  margin-top: var(--space);
}

.contact-band + .footer,
main:has(> .contact-band:last-child) + .footer {
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px var(--g) 30px;
  font-size: 14px;
  color: var(--grey);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}

.footer-brand a:hover {
  color: var(--ink);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--grey);
  transition: color 0.3s var(--ease);
}

.social-link:hover {
  color: var(--ink);
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

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

@media (max-width: 1100px) {
  .gallery-masonry {
    column-count: 2;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .nav-right .lang-switch {
    display: none;
  }

  .nav-bar {
    grid-template-columns: auto 1fr;
  }

  .site-logo {
    order: -1;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 12px var(--g) 36px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a {
    display: block;
    padding: 8px 0;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -0.03em;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--ink);
  }

  .mobile-nav .lang-switch {
    margin-top: 18px;
  }

  .mobile-nav .lang-switch a {
    display: inline;
    font-size: 16px;
    letter-spacing: 0;
  }

  .contact-panel,
  .contact-form-card {
    grid-column: 1 / -1;
  }

  .contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--g);
    align-items: end;
  }

  .contact-text {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --head: 64px;
  }

  .nav-cta {
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
  }

  .nav-cta svg {
    display: none;
  }

  .hero-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-side {
    max-width: none;
    padding: 0;
  }

  .hero-side .arrow-link {
    display: none;
  }

  .tri {
    height: 56svh;
    min-height: 0;
    touch-action: pan-y;   /* sideways swipes go to the triptych, up and down scrolls the page */
  }

  .tri .panel,
  .tri:hover .panel {
    flex: 0.6;
  }

  .tri .panel.is-open,
  .tri:hover .panel.is-open {
    flex: 2.6;
  }

  /* The open photo sits in the middle with a strip on each side;
     main.js moves a tapped strip into the middle */
  .panel {
    order: var(--order, 0);
  }

  .panel:nth-child(1) { view-transition-name: tri-panel-1; }
  .panel:nth-child(2) { view-transition-name: tri-panel-2; }
  .panel:nth-child(3) { view-transition-name: tri-panel-3; }

  .tri.is-swapping .panel {
    transition: none;
  }

  .panel-label {
    justify-content: center;
  }

  .panel-label span {
    display: none;
  }

  .panel:not(.is-open) .panel-label strong {
    visibility: hidden;
  }

  .intro h2,
  .intro-more,
  .intro-actions {
    grid-column: 1 / -1;
  }

  .intro-actions {
    margin-top: 32px;
  }

  .walk-sticky {
    position: static;
    height: auto;
    padding: 20px 0 70px;
  }

  .walk-track {
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--g);   /* snap inside the page margin, not at the screen edge */
    gap: 28px;
    padding-bottom: 64px;
    scrollbar-width: none;
    transform: none !important;
  }

  .walk-track::-webkit-scrollbar {
    display: none;
  }

  .walk-intro,
  .walk-end {
    width: 72vw;
    scroll-snap-align: start;
  }

  .hang {
    scroll-snap-align: center;
  }

  .hang img {
    max-width: 82vw;
    height: auto;
    max-height: var(--h);
    object-fit: cover;
  }

  .hang--l { --h: 52svh; }
  .hang--m { --h: 42svh; }
  .hang--s { --h: 34svh; }

  .horizon {
    bottom: 34px;
  }

  .horizon-hint {
    display: none;
  }

  .project-grid,
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) {
    margin-top: 0;
  }

  .clients {
    --logo-scale: 0.8;
  }

  .client-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 36px;
  }

  .client-marquee.is-scrolling .client-track {
    flex-wrap: nowrap;
  }

  .client-marquee.is-scrolling .client-logo {
    padding-inline: 22px;
  }

  .client-logo {
    height: 56px;
  }

  .home-about-photo,
  .home-about-text,
  .about-photo,
  .about-text,
  .service-block {
    grid-column: 1 / -1;
  }

  .home-about-text,
  .about-text {
    margin-top: 28px;
  }

  .cat-text,
  .gallery-category-head,
  .projects-head {
    flex-direction: column;
    gap: 6px;
  }

  .cat-text span,
  .gallery-category-head p {
    text-align: left;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .price-row,
  .contact-detail {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .gallery-masonry {
    column-count: 1;
  }
}

/* Smooth swap when a triptych strip moves into the middle (phones) */
::view-transition-group(tri-panel-1),
::view-transition-group(tri-panel-2),
::view-transition-group(tri-panel-3) {
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

::view-transition-image-pair(tri-panel-1),
::view-transition-image-pair(tri-panel-2),
::view-transition-image-pair(tri-panel-3) {
  overflow: hidden;
}

::view-transition-old(tri-panel-1),
::view-transition-old(tri-panel-2),
::view-transition-old(tri-panel-3),
::view-transition-new(tri-panel-1),
::view-transition-new(tri-panel-2),
::view-transition-new(tri-panel-3) {
  height: 100%;
  object-fit: cover;
  overflow: clip;
}

@media (max-width: 380px) {
  .nav-cta {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .walk-sticky {
    position: static;
    height: auto;
    padding: 40px 0 70px;
  }

  .walk-track {
    height: auto;
    overflow-x: auto;
    padding-bottom: 70px;
    transform: none !important;
  }
}

/* ------------------------------------------- Gallery notes + questions -- */
/* A quiet text block after the photos: intro left, questions right. */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.notes-text {
  grid-column: 1 / 7;
}

.notes-text h2 {
  margin: 0 0 26px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.notes-text p {
  max-width: 56ch;
  margin: 0 0 16px;
  color: var(--grey);
}

.notes-faq {
  grid-column: 8 / 13;
}

.notes-faq h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
}

.notes-faq details {
  border-bottom: 1px solid var(--line);
}

.notes-faq summary {
  position: relative;
  padding: 18px 32px 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  line-height: 1.4;
}

.notes-faq summary::-webkit-details-marker {
  display: none;
}

/* plus sign that turns into a minus */
.notes-faq summary::before,
.notes-faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.notes-faq summary::after {
  transform: rotate(90deg);
}

.notes-faq details[open] summary::after {
  transform: rotate(0deg);
}

.notes-faq summary:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 4px;
}

.notes-faq details p {
  max-width: 54ch;
  margin: 0;
  padding: 0 32px 20px 0;
  color: var(--grey);
}

@media (max-width: 760px) {
  .notes-text,
  .notes-faq {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notes-faq summary::after {
    transition: none;
  }
}
