/* ==========================================================================
   RP Infrastructure & Supplier Pvt Ltd
   A single-page site. Edit colours and type in :root below.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --ink: #161513;
  --ink-2: #24221e;
  --ink-soft: #5a554c;
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --line: rgba(22, 21, 19, 0.16);
  --line-strong: rgba(22, 21, 19, 0.28);
  --line-dark: rgba(244, 241, 234, 0.16);
  --accent: #a8441e;
  --accent-light: #e3a184;
  --serif:
    "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --sans:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

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

p,
h1,
h2,
h3,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.88);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 241, 234, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.5px;
  width: 12px;
  height: 3px;
  background: var(--accent);
  transform: translateX(-50%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.brand-text span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 10px 16px !important;
  border: 1px solid var(--ink);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

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

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

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

.hero {
  padding-top: clamp(44px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: end;
  gap: clamp(32px, 6vw, 84px);
}

.hero-copy {
  padding-bottom: clamp(36px, 5vw, 64px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  max-width: 13ch;
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.4vw, 6.3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero h1 em,
.section-head h2 em,
.contact h2 em {
  color: var(--accent);
  font-style: italic;
}

.lede {
  max-width: 43ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.btn span {
  font-size: 13px;
  line-height: 1;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color 0.25s ease;
}

.text-link:hover,
.text-link:focus-visible {
  border-color: var(--ink);
}

.text-link span {
  transition: transform 0.25s var(--ease);
}

.text-link:hover span {
  transform: translateX(4px);
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 4.35;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-figure picture {
  position: absolute;
  inset: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 241, 234, 0.2);
  pointer-events: none;
}

.hero-figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 18px 15px;
  background: linear-gradient(to top, rgba(15, 14, 12, 0.7), transparent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-bar {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: 20px 0 21px;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact:not(:first-child) {
  padding-left: clamp(16px, 2.5vw, 32px);
}

.fact-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Shared section styles
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(72px, 10vw, 130px);
}

.services {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-index {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-index::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--accent);
}

.section-head .section-index {
  grid-row: span 2;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-note {
  grid-column: 2;
  max-width: 48ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.about-copy .lead {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.about-copy p:not(.lead) {
  max-width: 58ch;
  color: var(--ink-soft);
  line-height: 1.75;
  text-wrap: pretty;
}

.about-copy p:not(.lead) + p:not(.lead) {
  margin-top: 16px;
}

.principles {
  border-top: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.principles li > span {
  grid-row: span 2;
  padding-top: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.principles strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.principles p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-list {
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 40px;
  column-gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

.service-list li:hover {
  background: rgba(244, 241, 234, 0.55);
}

.service-num {
  padding-top: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.service-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  transition: color 0.25s ease;
}

.service-list li:hover h3 {
  color: var(--accent);
}

.service-body p {
  max-width: 58ch;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.service-arrow {
  justify-self: end;
  padding-top: 4px;
  font-size: 21px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.service-list li:hover .service-arrow {
  transform: translate(4px, -4px);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  columns: 3;
  column-gap: clamp(12px, 1.7vw, 20px);
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 clamp(12px, 1.7vw, 20px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  overflow: hidden;
}

.gallery-item picture {
  overflow: hidden;
  background: var(--paper-2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition:
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: saturate(1.04);
}

.gallery-view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(22, 21, 19, 0.82);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease);
  pointer-events: none;
}

.gallery-item:hover .gallery-view,
.gallery-item:focus-visible .gallery-view {
  opacity: 1;
  transform: translateY(0);
}

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

.contact {
  padding-block: clamp(80px, 10vw, 138px);
  background: var(--ink);
  color: var(--paper);
}

.contact .section-index {
  margin-bottom: clamp(34px, 5vw, 54px);
  color: rgba(244, 241, 234, 0.6);
}

.contact .section-index::before {
  background: var(--accent-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.2vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact h2 em {
  color: var(--accent-light);
}

.contact-lede {
  max-width: 44ch;
  margin: 28px 0 34px;
  color: rgba(244, 241, 234, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.btn-light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover,
.btn-light:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.contact-details {
  margin-top: 6px;
}

.detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 20px;
  padding: 20px 0 21px;
  border-top: 1px solid var(--line-dark);
}

.detail:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.detail-label {
  padding-top: 2px;
  color: rgba(244, 241, 234, 0.58);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  line-height: 1.6;
  text-transform: uppercase;
}

.detail address,
.detail p {
  color: rgba(244, 241, 234, 0.9);
  font-size: 0.97rem;
  line-height: 1.65;
}

.detail p + p {
  margin-top: 4px;
}

.detail a,
.footer-bottom a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail a:hover,
.detail a:focus-visible {
  color: var(--accent-light);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--paper);
}

.contact :focus-visible {
  outline-color: var(--accent-light);
}

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

.site-footer {
  padding: 30px 0 34px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244, 241, 234, 0.45);
  font-size: 14px;
}

.back-top {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--paper);
}

.back-top span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.25s var(--ease);
}

.back-top:hover span {
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 241, 234, 0.58);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  width: min(1120px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: var(--ink-2);
  color: var(--paper);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(13, 12, 10, 0.92);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-dark);
}

.lightbox-bar p {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
}

.lightbox-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-close span {
  margin-left: 6px;
  font-size: 12px;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  padding: 18px clamp(44px, 6vw, 70px);
}

.lightbox-stage img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  background: rgba(22, 21, 19, 0.55);
  color: var(--paper);
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7.6vw, 5.2rem);
  }

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-copy {
    padding-bottom: 32px;
  }

  .hero h1 {
    max-width: 15ch;
    font-size: clamp(3.1rem, 10vw, 5.4rem);
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .principles {
    max-width: 620px;
  }

  .gallery {
    columns: 2;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    align-self: flex-start;
    margin-top: 16px;
    padding: 12px 18px !important;
    border-bottom: 1px solid var(--ink) !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .section-head {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-details {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .brand-text strong {
    font-size: 13px;
  }

  .brand-text span {
    font-size: 8px;
  }

  .section-head {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .section-head .section-index {
    grid-row: auto;
    margin: 0;
  }

  .section-note {
    grid-column: 1;
    margin-top: 0;
  }

  .service-list li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .service-arrow {
    display: none;
  }

  .gallery {
    columns: 1;
  }

  .detail {
    grid-template-columns: 1fr;
    row-gap: 5px;
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    gap: 6px;
  }

  .lightbox-stage {
    padding: 12px 42px;
  }

  .lightbox-stage img {
    max-height: 70vh;
  }

  .lightbox-nav {
    width: 30px;
    height: 40px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .fact-value {
    font-size: 1rem;
  }

  .fact-label {
    font-size: 8px;
  }
}

@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;
  }
}

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

.error-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}

.error-page .brand {
  margin-bottom: 40px;
}

.error-page .section-index {
  display: inline-block;
  margin: 0 0 20px;
}

.error-page .section-index::before {
  margin-inline: auto;
}

.error-page h1 {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.error-page h1 em {
  color: var(--accent);
  font-style: italic;
}

.error-page p {
  max-width: 34ch;
  margin: 22px auto 30px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .hero-figure,
  .gallery,
  .lightbox,
  .back-top {
    display: none !important;
  }

  body,
  .contact,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .contact {
    padding-block: 24px;
    border-top: 1px solid #ccc;
  }

  .contact-lede,
  .detail address,
  .detail p {
    color: #333;
  }

  .contact .section-index,
  .detail-label,
  .footer-bottom {
    color: #555;
  }
}
