@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Light surfaces: stone and grout. */
  --bg: #f1efea;
  --surface: #e6e3dc;
  --surface-strong: #dad6cd;
  --ink: #14161a;
  --muted: #565b63;
  --line: #d3cfc6;
  --line-strong: #bdb8ad;
  /* Brand oxblood, sampled from the GLAZUR logo (#840c0c). */
  --accent: #8c1414;
  --accent-hover: #6e0e0e;
  --on-accent: #ffffff;
  /* Night surfaces: hero, header, contact. */
  --night: #101215;
  --night-2: #181b20;
  --night-line: #2b2f37;
  --on-night: #f1efea;
  --on-night-muted: #a6abb5;
  --accent-on-night: #e8705f;

  --radius: 6px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 84px;

  /* Motion. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --press: 160ms;
  --fast: 180ms;
  --base: 240ms;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-strong) var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open {
  overflow: hidden;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
select,
a,
summary {
  touch-action: manipulation;
}
button svg,
a svg {
  pointer-events: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(36px, 4.4vw, 64px);
}
h2 span {
  color: var(--accent);
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
img {
  display: block;
  max-width: 100%;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.wrap {
  width: min(100% - var(--gutter) * 2, 1360px);
  margin-inline: auto;
}
.section-space {
  padding-block: clamp(72px, 9vw, 128px);
}
.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform var(--fast) var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition:
    background-color var(--fast) ease,
    color var(--fast) ease,
    border-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.button:active {
  transform: scale(0.97);
}
.button .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--base) var(--ease-out);
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.button.ghost {
  border-color: var(--night-line);
  background: transparent;
  color: var(--on-night);
}
.button.is-done .icon {
  color: var(--accent);
}
.button.light {
  background: var(--on-night);
  color: var(--ink);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px
    no-repeat;
  transition: background-size var(--base) var(--ease-out);
}
.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--base) var(--ease-out);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-night);
  border-bottom: 1px solid var(--night-line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand-dot {
  color: var(--accent-on-night);
}
.brand-description {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 7px;
  color: var(--on-night-muted);
}
.desktop-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 15px;
}
.desktop-nav a {
  position: relative;
  padding-block: 12px;
  color: var(--on-night-muted);
  transition: color var(--fast) ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--accent-on-night);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--base) var(--ease-out);
}
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.header-contact:active {
  transform: scale(0.97);
}
.header-contact .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-on-night);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 11px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  margin: 6px 0;
  transition: transform var(--base) var(--ease-out);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}
.mobile-nav {
  padding-bottom: 20px;
  transition:
    opacity var(--base) var(--ease-drawer),
    transform var(--base) var(--ease-drawer);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--night-line);
  font-size: 20px;
}
@starting-style {
  .mobile-nav {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100svh - var(--header-h)), 920px);
  background: var(--night);
  color: var(--on-night);
}
.hero-visual {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -1;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, transparent 8%, #000 44%),
    linear-gradient(180deg, #000 78%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, transparent 8%, #000 44%),
    linear-gradient(180deg, #000 78%, transparent 96%);
  mask-composite: intersect;
}
.hero-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms var(--ease-out);
}
.hero-fallback {
  position: absolute;
  inset: -10%;
  background-color: var(--night-2);
  background-image:
    linear-gradient(90deg, var(--night-2) 6px, transparent 6px),
    linear-gradient(var(--night-2) 6px, transparent 6px),
    linear-gradient(135deg, #3a3e47 0%, #23262c 60%);
  background-size:
    84px 84px,
    84px 84px,
    100% 100%;
  transform: perspective(1000px) rotateY(-22deg) rotateX(8deg);
  opacity: 0.8;
  transition: opacity 900ms ease;
}
.hero-visual.is-ready canvas {
  opacity: 1;
}
.hero-visual.is-ready .hero-fallback {
  opacity: 0;
}
.hero-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(56px, 8vh, 96px) 48px;
}
.hero-copy {
  max-width: 660px;
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.052em;
}
.hero h1 .line {
  display: block;
}
.hero h1 .accent {
  color: var(--accent-on-night);
}
.hero-lead {
  margin-top: 28px;
  max-width: 30em;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--on-night-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 40px;
}
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--on-night);
  font-size: 15px;
  font-weight: 600;
}
.hero-secondary .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--base) var(--ease-out);
}
.hero-secondary-label {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px
    no-repeat;
  transition: background-size var(--base) var(--ease-out);
}
.hero-thumbs {
  display: inline-flex;
  padding-left: 10px;
}
.hero-thumbs img {
  width: 40px;
  height: 40px;
  margin-left: -10px;
  object-fit: cover;
  border: 2px solid var(--night);
  border-radius: var(--radius);
  transition: transform var(--base) var(--ease-out);
}
.hero-thumbs img:nth-child(1) {
  rotate: -6deg;
}
.hero-thumbs img:nth-child(3) {
  rotate: 6deg;
}
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
  border-top: 1px solid var(--night-line);
  font-size: 14px;
  color: var(--on-night-muted);
}
.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  padding: 0;
  list-style: none;
}
.hero-services li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-services li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1.5px;
  background: var(--accent-on-night);
}
.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: none;
  color: var(--on-night);
  font-weight: 600;
}
.hero-foot .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--base) var(--ease-out);
}

/* ---------- Section heading ---------- */
.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: end;
  gap: 64px;
  margin-bottom: 52px;
}
.section-heading > p,
.section-heading > div {
  max-width: 400px;
  justify-self: end;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Services ---------- */
.service-list {
  border-top: 1px solid var(--line);
}
.service {
  border-bottom: 1px solid var(--line);
}
.service summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
}
.service summary::-webkit-details-marker {
  display: none;
}
.service-symbol {
  display: flex;
  width: 60px;
  flex: none;
  color: var(--muted);
  transition: color var(--fast) ease;
}
.service[open] .service-symbol {
  color: var(--accent);
}
.service-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.2;
}
.service h3 {
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.25;
  transition: color var(--fast) ease;
}
.service-toggle {
  position: relative;
  margin-left: auto;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
}
.service-toggle::after {
  rotate: 90deg;
  transition: rotate var(--base) var(--ease-out);
}
.service[open] .service-toggle::after {
  rotate: 0deg;
}
.service-content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  padding: 0 0 32px 88px;
}
.service[open] .service-content {
  animation: content-in 320ms var(--ease-out);
}
.service-content p {
  font-size: 16px;
  color: var(--muted);
  max-width: 580px;
}
.service-content a {
  flex: none;
  color: var(--accent);
}
@keyframes content-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
  .service::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 320ms var(--ease-in-out),
      content-visibility 320ms allow-discrete;
  }
  .service[open]::details-content {
    block-size: auto;
  }
}

/* ---------- Gallery ---------- */
.work-section {
  background: var(--surface);
}
.gallery-note {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color var(--fast) ease,
    color var(--fast) ease,
    border-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.filter:active {
  transform: scale(0.96);
}
.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.gallery-view-label {
  font-size: 14px;
  color: var(--muted);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 24px;
}
.gallery-card {
  grid-column: span 2;
  min-width: 0;
}
.gallery-card:nth-child(8n + 1),
.gallery-card:nth-child(8n + 2),
.gallery-card:nth-child(8n + 6),
.gallery-card:nth-child(8n + 7) {
  grid-column: span 3;
}
.gallery-card:nth-child(8n + 8) {
  grid-column: span 6;
}
.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
}
.gallery-card:nth-child(8n + 8) .gallery-image-wrap {
  aspect-ratio: 2.5 / 1;
}
.gallery-image-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: left;
}
.photo-open-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  transition:
    opacity var(--base) var(--ease-out),
    transform var(--base) var(--ease-out);
}
.gallery-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(16 18 21 / 0.28));
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.photo-open-icon .icon {
  width: 16px;
  height: 16px;
}
.gallery-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.gallery-card figcaption h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.gallery-card figcaption span {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: 56px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  margin-inline: auto;
}
.gallery-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}
.gallery-footer > div > p:first-child {
  font-size: 16px;
  color: var(--ink);
}
.round-link {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition:
    background-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.round-link:active {
  transform: scale(0.94);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding-bottom: clamp(56px, 6vw, 88px);
}
.about-signature {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: calc(var(--radius) * 2);
  background-color: #ffffff;
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 24px 48px -32px rgb(20 22 26 / 0.35);
}
.about-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
}
.about-copy h2 {
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.1;
}
.about-copy > p {
  margin-top: 24px;
  font-size: 17px;
  color: var(--muted);
}
.about-copy > p + p {
  margin-top: 14px;
}
.about-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.about-person-name strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.about-person-name small {
  display: block;
  font-size: 14px;
  color: var(--muted);
}
.about-person .text-link {
  margin-left: auto;
  color: var(--accent);
}
.area-line {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.area-line .icon {
  margin-top: 3px;
  color: var(--accent);
}
.area-line span {
  font-size: 16px;
  font-weight: 600;
}
.area-line small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process {
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 6vw, 88px);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 0;
  list-style: none;
}
.process-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.step-number {
  display: block;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.process-list h3 {
  margin-top: 14px;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.process-list p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-section {
  padding-block: clamp(72px, 9vw, 120px);
  padding-bottom: max(clamp(72px, 9vw, 120px), env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--on-night);
}
.site-header :focus-visible,
.hero :focus-visible,
.contact-section :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--accent-on-night);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
}
.contact-copy h2 {
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.02;
}
.contact-copy h2 span {
  color: var(--accent-on-night);
}
.contact-copy > p {
  margin-top: 26px;
  font-size: 17px;
  color: var(--on-night-muted);
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.contact-monogram {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
}
.contact-person strong {
  font-size: 16px;
  font-weight: 600;
}
.contact-person small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--on-night-muted);
}
.contact-copy .contact-note {
  margin-top: 28px;
  max-width: 400px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-night-muted);
}
.direct-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.direct-contact:empty {
  display: none;
}
/* Secondary contact routes under the main call card. */
.contact-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: -4px 0 0;
  padding: 0;
  list-style: none;
}
.contact-alt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  color: var(--on-night-muted);
  overflow-wrap: anywhere;
}
.contact-alt strong {
  font-weight: 600;
  color: var(--on-night);
  font-variant-numeric: tabular-nums;
}
.contact-alt .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent-on-night);
}
/* Contact cards: tap to call / write. */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 440px);
  min-height: 72px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--night-line);
  border-radius: calc(var(--radius) * 2);
  background: var(--night-2);
  color: var(--on-night);
  transition:
    border-color var(--fast) ease,
    background-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.contact-card:active {
  transform: scale(0.98);
}
.contact-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--night);
  color: var(--accent-on-night);
}
.contact-card.is-primary .contact-card-icon {
  background: var(--accent);
  color: var(--on-accent);
}
.contact-card-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-card-text small {
  font-size: 13px;
  color: var(--on-night-muted);
}
.contact-card-text strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact-card.is-primary .contact-card-text strong {
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.contact-card > .icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--on-night-muted);
  transition: transform var(--base) var(--ease-out);
}
.enquiry-form {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--night-line);
  border-radius: calc(var(--radius) * 2);
  background: var(--night-2);
}
.enquiry-form h3 {
  margin-bottom: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.form-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-size: 14px;
  color: var(--on-night-muted);
}
.form-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  counter-increment: step;
}
.form-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  color: var(--accent-on-night);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.enquiry-form label {
  display: block;
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.enquiry-form label span {
  font-weight: 400;
  font-size: 13px;
  color: var(--on-night-muted);
}
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--on-night);
  font-size: 16px;
  caret-color: var(--accent-on-night);
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}
.enquiry-form input:focus-visible,
.enquiry-form select:focus-visible,
.enquiry-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent-on-night);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-on-night) 30%, transparent);
}
.enquiry-form select {
  color-scheme: dark;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a6abb5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.enquiry-form :is(input, textarea, select):user-invalid {
  border-color: var(--accent-on-night);
}
.enquiry-form textarea[readonly] {
  background: var(--night-2);
}
.enquiry-form select option {
  color: var(--on-night);
  background: var(--night);
}
.enquiry-form textarea {
  resize: vertical;
  max-height: 400px;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: #7d838e;
  opacity: 1;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-hint {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-night-muted);
}
.enquiry-form > .button {
  width: 100%;
  margin-top: 22px;
}
.enquiry-result {
  margin-top: 28px;
  padding-top: 6px;
  border-top: 1px solid var(--night-line);
  transition:
    opacity var(--base) var(--ease-out),
    transform var(--base) var(--ease-out);
}
@starting-style {
  .enquiry-result {
    opacity: 0;
    transform: translateY(8px);
  }
}
.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}
.result-head .icon {
  color: var(--accent-on-night);
}
.result-head label {
  margin: 0;
  font-size: 15px;
}
.enquiry-result textarea {
  font-size: 15px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.result-actions .button {
  min-height: 48px;
  font-size: 14px;
}
.enquiry-result p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent-on-night);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.site-footer .brand-name {
  font-size: 26px;
}
.site-footer .brand-dot {
  color: var(--accent);
}
.site-footer .brand-description {
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 64px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--muted);
}
.footer-info {
  display: grid;
  /* Five details in 3 + 2: each value keeps its natural width, nothing squeezes. */
  grid-template-columns: repeat(3, max-content);
  justify-content: end;
  gap: 24px 48px;
  margin: 0;
}
.footer-info dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.footer-info dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  /* Five details need the full width: they move under the brand. */
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-info {
    justify-content: start;
  }
}
.footer-info a,
.footer-bottom a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--fast) ease;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.footer-credit {
  margin-left: auto;
  font-size: 13px;
}

/* ---------- Dialogs ---------- */
.lightbox {
  border: 0;
  border-radius: calc(var(--radius) * 2);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}
.lightbox[open] {
  transition-duration: 260ms;
}
@starting-style {
  .lightbox[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}
.lightbox:not([open]) {
  opacity: 0;
  transform: scale(0.98);
}
.lightbox::backdrop {
  background: rgb(8 9 11 / 0.86);
  transition:
    opacity 260ms ease,
    overlay 260ms allow-discrete,
    display 260ms allow-discrete;
}
@starting-style {
  .lightbox[open]::backdrop {
    opacity: 0;
  }
}
.lightbox {
  width: min(1200px, 94vw);
  max-width: 94vw;
  max-height: 94dvh;
  padding: 18px 22px;
  overflow: auto;
  background: var(--night);
  color: var(--on-night);
}
.lightbox-top,
.lightbox-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.lightbox-top {
  padding-bottom: 14px;
  font-weight: 600;
}
.lightbox-bottom {
  padding-top: 18px;
  color: var(--on-night-muted);
}
#lightbox-counter {
  font-variant-numeric: tabular-nums;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  transition:
    background-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.icon-button:active {
  transform: scale(0.94);
}
.lightbox-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  min-height: 120px;
}
.lightbox-stage img {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: auto;
  max-width: 100%;
  max-height: 72dvh;
  min-height: 80px;
  object-fit: contain;
  border-radius: var(--radius);
}
#previous-photo {
  grid-column: 1;
  grid-row: 1;
}
#next-photo {
  grid-column: 3;
  grid-row: 1;
}
.lightbox-stage .icon-button {
  background: var(--night-2);
}
.lightbox-stage.single-photo {
  grid-template-columns: 0 minmax(0, 1fr) 0;
  gap: 0;
}
.noscript-message {
  padding: 20px;
  background: var(--surface);
  font-size: 15px;
}

/* ---------- Hover (fine pointers only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover {
    color: var(--on-night);
  }
  .desktop-nav a:hover::after {
    transform: scaleX(1);
  }
  .header-contact:hover {
    background: var(--night-2);
    border-color: #3c414b;
  }
  .button.primary:hover {
    background: var(--accent-hover);
  }
  .button.light:hover {
    background: #dcd8d0;
  }
  .button:hover .icon,
  .text-link:hover .icon {
    transform: translate(2px, -2px);
  }
  .text-link:hover {
    background-size: calc(100% - 26px) 1px;
  }
  .hero-secondary:hover .icon,
  .hero-foot a:hover .icon {
    transform: translateY(3px);
  }
  .hero-secondary:hover .hero-secondary-label {
    background-size: 100% 1px;
  }
  .hero-secondary:hover .hero-thumbs img:nth-child(1) {
    transform: translateX(-4px);
  }
  .hero-secondary:hover .hero-thumbs img:nth-child(3) {
    transform: translateX(4px);
  }
  .button.ghost:hover {
    background: var(--night-2);
    border-color: #3c414b;
  }
  .enquiry-form :is(input, textarea, select):hover {
    border-color: #3c414b;
  }
  .service summary:hover h3 {
    color: var(--accent);
  }
  .service summary:hover .service-symbol {
    color: var(--accent);
  }
  .filter:not(.active):hover {
    border-color: var(--ink);
  }
  .photo-open-icon {
    opacity: 0;
    transform: translateY(6px);
  }
  .gallery-open:hover img {
    transform: scale(1.04);
  }
  .gallery-open:hover::after {
    opacity: 1;
  }
  .gallery-open:hover .photo-open-icon,
  .gallery-open:focus-visible .photo-open-icon {
    opacity: 1;
    transform: translateY(0);
  }
  .round-link:hover {
    background: var(--accent-hover);
  }
  .icon-button:hover {
    background: var(--night-line);
  }
  .footer-info a:hover,
  .footer-bottom a:hover {
    text-decoration-color: currentColor;
  }
  .contact-alt a:hover strong {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line,
  .hero-lead,
  .hero-actions {
    animation: rise 900ms var(--ease-out) both;
  }
  .hero h1 .line:nth-child(2) {
    animation-delay: 70ms;
  }
  .hero h1 .line:nth-child(3) {
    animation-delay: 140ms;
  }
  .hero-lead {
    animation-delay: 240ms;
  }
  .hero-actions {
    animation-delay: 320ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.4em);
      filter: blur(6px);
    }
  }
  /* Scroll reveal (class set by app.js, so content stays visible without JS). */
  .js .reveal {
    transition:
      opacity 700ms var(--ease-out),
      transform 800ms var(--ease-out);
  }
  .js .reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(14px);
  }
  .js .delay-1 {
    transition-delay: 80ms;
  }
  .js .delay-2 {
    transition-delay: 160ms;
  }
  .js .gallery-card.reveal .gallery-image-wrap {
    transition: clip-path 900ms var(--ease-in-out);
  }
  .js .gallery-card.reveal:not(.is-in) .gallery-image-wrap {
    clip-path: inset(0 0 100% 0 round var(--radius));
  }
  .js .gallery-card.reveal.is-in .gallery-image-wrap {
    clip-path: inset(0 0 0 0 round var(--radius));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Keep gentle fades, drop movement. */
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  .mobile-nav,
  .enquiry-result,
  .lightbox {
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 22px;
  }
  .hero-visual {
    inset: 0 0 0 40%;
  }
  .hero-copy {
    max-width: 560px;
  }
  .hero-services li:nth-child(2) {
    display: none;
  }
  .service-content {
    display: block;
  }
  .service-content a {
    margin-top: 16px;
  }
  .section-heading {
    gap: 40px;
  }
  .gallery-view-label {
    display: none;
  }
}
@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }
  .desktop-nav,
  .header-contact {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .brand-name {
    font-size: 27px;
  }
  .brand-description {
    font-size: 11px;
    margin-top: 6px;
  }
  /* Phone and small tablet: offer and contact first, then the 3D wall. */
  .hero {
    min-height: 0;
  }
  .hero-inner {
    order: 1;
    padding-block: 44px 36px;
  }
  .hero-visual {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(360px, 112vw, 580px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent);
    mask-composite: add;
  }
  .hero-foot {
    order: 3;
  }
  .hero h1 {
    font-size: clamp(40px, 11.5vw, 76px);
  }
  .hero-actions {
    margin-top: 32px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
  }
  .section-heading > p,
  .section-heading > div {
    justify-self: start;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about-signature {
    max-width: 460px;
    padding: 28px 32px;
  }
  .about-logo {
    max-width: 300px;
  }
  .process-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .process-list h3 {
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.3;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}
@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-foot {
    font-size: 13px;
  }
  .hero-services {
    gap: 6px 18px;
  }
  .hero-services li:nth-child(2) {
    display: inline-flex;
  }
  .hero-foot a {
    display: none;
  }
  .service summary {
    gap: 16px;
    padding: 22px 0;
  }
  .service-symbol {
    width: 30px;
  }
  .service-icon {
    width: 28px;
    height: 28px;
  }
  .service-toggle {
    width: 36px;
    height: 36px;
  }
  .service-content {
    padding: 0 0 24px 0;
  }
  .gallery-toolbar {
    margin-bottom: 22px;
    padding-top: 18px;
  }
  .filter {
    padding: 0 14px;
    font-size: 13px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }
  .gallery-card,
  .gallery-card:nth-child(n) {
    grid-column: span 1;
  }
  .gallery-card:first-child,
  .gallery-card:nth-child(8n + 8) {
    grid-column: span 2;
  }
  .gallery-card .gallery-image-wrap {
    aspect-ratio: 4 / 5;
  }
  .gallery-card:first-child .gallery-image-wrap {
    aspect-ratio: 1.2 / 1;
  }
  .gallery-card:nth-child(8n + 8) .gallery-image-wrap {
    aspect-ratio: 1.5 / 1;
  }
  .gallery-card figcaption {
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
  }
  .gallery-card figcaption h3 {
    font-size: 15px;
  }
  .round-link {
    width: 48px;
    height: 48px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .footer-credit {
    margin-left: 0;
  }
  .about-person .text-link {
    margin-left: 0;
    flex-basis: 100%;
  }
  .gallery-grid.has-photos .photo-open-icon {
    width: 34px;
    height: 34px;
    right: 8px;
    bottom: 8px;
  }
  .enquiry-form {
    padding: 22px 18px;
  }
  .form-steps {
    flex-direction: column;
    gap: 8px;
  }
  .lightbox {
    width: 96vw;
    max-width: 96vw;
    padding: 12px;
  }
  .lightbox-stage {
    gap: 4px;
  }
}

/* ---------- Gallery with real photos: masonry, natural proportions ---------- */
.gallery-grid.has-photos {
  display: block;
  columns: 3 280px;
  column-gap: 20px;
}
.gallery-grid.has-photos .gallery-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 28px;
  break-inside: avoid;
}
.gallery-grid.has-photos .gallery-card:nth-child(n) .gallery-image-wrap {
  aspect-ratio: auto;
}
.gallery-grid.has-photos .gallery-image-wrap > img {
  height: auto;
}
.gallery-grid.has-photos .gallery-empty {
  column-span: all;
}

/* ---------- Reels ---------- */
.reels-section {
  background: var(--night);
  color: var(--on-night);
}
.reels-section :focus-visible {
  outline-color: var(--accent-on-night);
}
.reels-section h2 span {
  color: var(--accent-on-night);
}
.reels-section .section-heading > p {
  color: var(--on-night-muted);
}
.reel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
}
.reel-link {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  max-height: 78svh;
  overflow: hidden;
  border-radius: calc(var(--radius) * 2);
  background: var(--night-2);
  isolation: isolate;
  transition: transform var(--press) var(--ease-out);
}
.reel-link:active {
  transform: scale(0.98);
}
.reel-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 700ms var(--ease-out);
}
.reel-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(16 18 21 / 0) 45%, rgb(16 18 21 / 0.92) 100%);
}
.reel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 88%, transparent);
  color: #fff;
  transition: transform var(--base) var(--ease-out);
}
.reel-play .icon {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: currentColor;
  stroke: none;
}
.reel-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reel-tag {
  font-weight: 600;
  color: var(--on-night);
}
.reel-meta strong {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.reel-cta {
  display: block;
  font-size: 14px;
  color: var(--on-night-muted);
}
.reel-cta .icon {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
}
.reels-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--night-line);
}
.reels-footer p {
  color: var(--on-night-muted);
}
@media (hover: hover) and (pointer: fine) {
  .reel-link:hover img {
    transform: scale(1.04);
  }
  .reel-link:hover .reel-play {
    transform: scale(1.08);
  }
  .reel-link:hover .reel-cta {
    color: var(--on-night);
  }
}
@media (max-width: 860px) {
  .reel-list {
    grid-auto-flow: column;
    grid-auto-columns: min(72vw, 320px);
    grid-template-columns: none;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reel-list::-webkit-scrollbar {
    display: none;
  }
  .reel {
    scroll-snap-align: start;
  }
  .reel-link {
    max-height: none;
  }
}
@media (max-width: 620px) {
  .gallery-grid.has-photos {
    columns: 2;
    column-gap: 12px;
  }
  .gallery-grid.has-photos .gallery-card {
    margin-bottom: 20px;
  }
  .reels-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .reels-footer .button {
    width: 100%;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 380px) {
  .hero-actions .button {
    gap: 8px;
    padding-inline: 12px;
    font-size: 14px;
    letter-spacing: -0.005em;
  }
  .hero-secondary-verb {
    display: none;
  }
  .hero-thumbs img {
    width: 34px;
    height: 34px;
  }
  .hero-thumbs img:nth-child(3) {
    display: none;
  }
  .contact-copy h2 {
    font-size: 36px;
  }
  .section-heading h2,
  .reels-section h2 {
    font-size: 34px;
  }
  .filter {
    padding: 0 12px;
  }
}

/* ---------- Gallery: framing and photo zoom ---------- */
.gallery-grid.has-photos .gallery-card:nth-child(n) .gallery-image-wrap.is-tall {
  aspect-ratio: 3 / 4;
}
.gallery-grid.has-photos .is-tall > img {
  height: 100%;
}
.vt-photo {
  view-transition-name: glazur-photo;
}
::view-transition-group(glazur-photo) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}
::view-transition-old(glazur-photo),
::view-transition-new(glazur-photo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation-duration: 420ms;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
}
.lightbox.is-morphing,
.lightbox.is-morphing::backdrop {
  transition: none;
}

/* ---------- Hero: photo currently assembled on the tile wall ---------- */
.hero-now {
  position: absolute;
  right: max(var(--gutter), calc((100% - 1360px) / 2));
  bottom: 88px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: min(420px, calc(100% - var(--gutter) * 2));
  padding: 0 16px 0 14px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgb(16 18 21 / 0.86);
  color: var(--on-night);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  pointer-events: none;
  transition:
    opacity 360ms var(--ease-out),
    transform 360ms var(--ease-out),
    filter 360ms var(--ease-out),
    border-color var(--fast) ease;
}
.hero-now.is-on {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.hero-now:active {
  transform: scale(0.97);
}
.hero-now-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--accent-on-night);
}
.hero-now-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--on-night-muted);
}
.hero-now-text span {
  color: var(--on-night);
  font-weight: 600;
}
.hero-now .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--accent-on-night);
}
@media (hover: hover) and (pointer: fine) {
  .hero-now:hover {
    border-color: #3c414b;
  }
}
@media (max-width: 860px) {
  .hero-now {
    position: relative;
    right: auto;
    bottom: auto;
    order: 2;
    align-self: flex-start;
    margin: 4px 0 14px var(--gutter);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-now {
    transform: none;
    filter: none;
  }
}

/* ---------- 404 ---------- */
.not-found {
  background: var(--night);
  color: var(--on-night);
}
.not-found-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  min-height: 100svh;
  padding-block: 48px;
}
.not-found h1 {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.not-found h1 span {
  color: var(--accent-on-night);
}
.not-found p {
  color: var(--on-night-muted);
  font-size: 17px;
}
.not-found .brand-dot {
  color: var(--accent-on-night);
}
.not-found :focus-visible {
  outline-color: var(--accent-on-night);
}

/* ---------- Header call button ---------- */
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  transition:
    background-color var(--fast) ease,
    transform var(--press) var(--ease-out);
}
.header-call:active {
  transform: scale(0.97);
}
.header-call .icon {
  width: 18px;
  height: 18px;
}
.desktop-nav + .header-call {
  margin-left: 12px;
}
.hero-foot a.is-call .icon {
  color: var(--accent-on-night);
}

/* ---------- Phone quick-contact bar ---------- */
.action-bar {
  display: none;
}
@media (max-width: 860px) {
  .header-contact {
    display: none;
  }
  .header-call {
    margin-left: auto;
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .header-inner {
    gap: 8px;
  }
  .header-call:not([hidden]) ~ .menu-toggle {
    margin-left: 0;
  }
  .header-call-number {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--night-line);
    background: rgb(16 18 21 / 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%);
    visibility: hidden;
    transition:
      transform 320ms var(--ease-drawer),
      visibility 0s linear 320ms;
  }
  .action-bar.is-on {
    transform: translateY(0);
    visibility: visible;
    transition:
      transform 380ms var(--ease-drawer),
      visibility 0s;
  }
  .action-bar .button {
    justify-content: center;
    gap: 10px;
    min-height: 50px;
  }
  .action-bar #action-call[hidden] + #action-write {
    grid-column: 1 / -1;
  }
  .action-bar .icon {
    width: 18px;
    height: 18px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .header-call:hover {
    background: var(--accent-hover);
  }
  .contact-card:hover {
    border-color: #3c414b;
    background: #1d2026;
  }
  .contact-card:hover > .icon {
    transform: translate(2px, -2px);
    color: var(--on-night);
  }
}
@media (prefers-reduced-motion: reduce) {
  .action-bar,
  .action-bar.is-on {
    transition: visibility 0s;
  }
}

/* ---------- Privacy policy page ---------- */
.legal {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 96px);
}
.legal h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
}
.legal-lead {
  margin-top: 24px;
  font-size: 18px;
  color: var(--muted);
}
.legal-updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.legal h2 {
  margin-top: 48px;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.025em;
}
.legal p,
.legal ul {
  margin-top: 14px;
  font-size: 16px;
}
.legal ul {
  max-width: 65ch;
  padding-left: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.legal code {
  font-size: 0.92em;
}
.legal .todo {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fde9a8;
  color: #4a3a00;
}
.legal-back {
  margin-left: auto;
}
.legal-page .site-header .header-contact {
  display: inline-flex;
}
