:root {
  --ink: #231f20;
  --ink-soft: #373334;
  --lime: #e5fa05;
  --paper: #f2f1ee;
  --white: #ffffff;
  --line: rgba(35, 31, 32, 0.16);
  --shell: min(1180px, calc(100% - 40px));
}

/* Vstup do samostatné galerie na hlavní stránce */
.realizations-entry {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 6vw, 76px);
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.realizations-entry span {
  max-width: 900px;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.realizations-entry i {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-size: 2rem;
  font-style: normal;
}

.realizations-entry:hover,
.realizations-entry:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.realizations-entry:hover i,
.realizations-entry:focus-visible i {
  border-color: var(--lime);
  color: var(--ink);
}

/* Samostatná stránka realizací */
.gallery-page-hero {
  padding: clamp(54px, 8vw, 110px) 0 clamp(44px, 7vw, 90px);
  background:
    linear-gradient(rgba(35, 31, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 32, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(42px, 7vw, 80px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  color: #707800;
}

.gallery-page-hero h1 {
  max-width: 1000px;
  margin: 12px 0 24px;
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  letter-spacing: -0.06em;
  line-height: 0.82;
}

.gallery-page-hero h1 em {
  color: #9bad00;
  font-style: normal;
}

.gallery-page-lead {
  max-width: 690px;
  margin: 0;
  color: #5f5a5c;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.gallery-projects {
  padding-block: clamp(52px, 8vw, 110px);
  background: var(--white);
}

.projects-list {
  display: grid;
  gap: 90px;
}

.portfolio-project {
  min-width: 0;
}

.portfolio-project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(34px, 8vw, 110px);
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.project-sequence {
  margin: 0 0 14px;
  color: #707800;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portfolio-project-heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-transform: uppercase;
}

.portfolio-project-heading h2 em {
  display: block;
  margin-top: 12px;
  color: #9bad00;
  font-size: 0.45em;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1.05;
}

.portfolio-project-copy strong {
  color: #707800;
  font-size: 0.86rem;
}

.portfolio-project-copy p {
  margin: 12px 0;
  color: #5f5a5c;
}

.portfolio-project-copy small {
  color: #858082;
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--lime) rgba(35, 31, 32, 0.12);
}

.project-rail .gallery-item {
  min-width: 0;
  background: #eae2d3;
  color: var(--ink);
}

.project-rail .gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #eae2d3;
}

.project-rail .gallery-item > span {
  justify-content: space-between;
  border-top: 1px solid rgba(35, 31, 32, 0.12);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.project-rail .gallery-item b {
  color: #91a300;
  font-size: 1rem;
}

.gallery-contact {
  padding-block: clamp(48px, 7vw, 90px);
  background: var(--ink);
  color: var(--white);
}

.gallery-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.gallery-contact h2 {
  margin: 6px 0 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
}

.gallery-contact .kicker {
  color: var(--lime);
}

@media (max-width: 820px) {
  .portfolio-project-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-rail {
    grid-template-columns: none;
    grid-auto-columns: minmax(260px, 78vw);
    grid-auto-flow: column;
    scroll-snap-type: x mandatory;
  }

  .project-rail .gallery-item {
    scroll-snap-align: start;
  }

  .gallery-contact-inner {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .realizations-entry {
    min-height: 190px;
    align-items: flex-end;
    padding: 28px 22px;
  }

  .realizations-entry span {
    font-size: clamp(2.3rem, 13vw, 3.8rem);
  }

  .realizations-entry i {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }

  .gallery-page-hero {
    background-size: 42px 42px;
  }

  .back-link {
    margin-bottom: 38px;
  }

  .gallery-page-hero h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .project-rail {
    margin-right: calc((100vw - var(--shell)) / -2);
    padding-right: 14px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
}

.header-inner {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 220px;
}

.brand img {
  width: 100%;
  height: auto;
}

.menu-wrap {
  display: flex;
  justify-content: center;
}

.menu-toggle {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.menu-icon {
  display: grid;
  width: 24px;
  gap: 5px;
}

.menu-icon i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  position: absolute;
  inset: 100% 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--ink);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.24);
}

.site-menu[hidden] {
  display: none;
}

.menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-links a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  text-decoration: none;
}

.menu-links a:hover,
.menu-links a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.menu-links span {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.menu-links strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.menu-symbol {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.menu-symbol::before,
.menu-symbol::after {
  content: "";
  position: absolute;
  background: var(--lime);
  border-radius: 99px;
}

.menu-symbol::before {
  top: 11px;
  left: 1px;
  width: 22px;
  height: 2px;
}

.menu-symbol::after {
  top: 1px;
  left: 7px;
  width: 2px;
  height: 22px;
}

.menu-links .menu-contact {
  background: var(--lime);
  color: var(--ink);
}

.menu-links .menu-contact span {
  color: var(--ink);
}

.menu-links .menu-contact .menu-symbol::before,
.menu-links .menu-contact .menu-symbol::after {
  background: var(--ink);
}

.menu-links > a:last-child {
  grid-column: 1 / -1;
}

.header-call {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--lime);
  text-decoration: none;
}

.header-call span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-call strong {
  font-size: 1rem;
}

.hero {
  overflow: hidden;
  background:
    linear-gradient(rgba(35, 31, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 32, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

.hero-visual {
  background: #e8e6e1;
  border-bottom: 1px solid var(--line);
}

.hero-visual img {
  width: 100%;
  height: auto;
}

.hero-copy {
  position: relative;
  padding-block: clamp(54px, 7vw, 100px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow span {
  width: 26px;
  height: 4px;
  background: var(--lime);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7.5vw, 7rem);
  text-transform: uppercase;
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  font-style: normal;
}

.hero-copy > p {
  max-width: 720px;
  margin: 30px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 8px 8px 0 var(--lime);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 5px 5px 0 var(--lime);
}

.text-link {
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

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

.section-light {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 48px;
}

.kicker {
  color: #667000;
}

.section-heading h2,
.about h2,
.contact h2 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.section-heading > p {
  margin: 0;
  color: #605b5d;
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 260px;
  padding: clamp(28px, 4vw, 50px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

.service-number {
  display: block;
  margin-bottom: 42px;
  color: #707800;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.service-card h3,
.process h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.service-card p,
.process p {
  max-width: 510px;
  margin: 0;
  color: #686365;
}

.realizations {
  background:
    linear-gradient(rgba(35, 31, 32, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 31, 32, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

.project-folder {
  background: var(--ink);
  color: var(--white);
}

.project-folder summary {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: 530px;
  cursor: pointer;
  list-style: none;
}

.project-folder summary::-webkit-details-marker {
  display: none;
}

.project-folder summary:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: 4px;
}

.project-cover {
  min-height: 100%;
  overflow: hidden;
  background: #d8d5ce;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition: transform 350ms ease;
}

.project-folder summary:hover .project-cover img {
  transform: scale(1.025);
}

.project-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(34px, 6vw, 74px);
}

.project-type {
  margin-bottom: auto;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-summary > strong {
  max-width: 620px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-summary > strong em {
  display: block;
  margin-top: 12px;
  color: var(--lime);
  font-size: 0.34em;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.project-location {
  margin-top: 20px;
  color: var(--lime);
  font-weight: 800;
}

.project-description {
  max-width: 640px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.65);
}

.project-open {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-open i {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--lime);
}

.project-open i::before,
.project-open i::after {
  content: "";
  position: absolute;
  background: var(--lime);
}

.project-open i::before {
  top: 12px;
  left: 6px;
  width: 14px;
  height: 2px;
}

.project-open i::after {
  top: 6px;
  left: 12px;
  width: 2px;
  height: 14px;
}

.project-folder[open] .project-open i::after,
.project-folder[open] .open-text,
.close-text {
  display: none;
}

.project-folder[open] .close-text {
  display: inline;
}

.project-content {
  padding: clamp(28px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.project-content-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: end;
  margin-bottom: 38px;
}

.project-content-heading .kicker {
  color: var(--lime);
}

.project-content-heading h3 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.project-content-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.gallery-item {
  position: relative;
  display: grid;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: opacity 160ms ease, transform 240ms ease;
}

.gallery-item > span {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 750;
}

.gallery-item b {
  color: var(--lime);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  opacity: 0.82;
  transform: scale(1.02);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -3px;
}

.gallery-dialog {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  height: min(92vh, 940px);
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.gallery-dialog::backdrop {
  background: rgba(20, 18, 18, 0.94);
}

.gallery-dialog-inner {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 16px;
}

.gallery-dialog figure {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}

.gallery-dialog figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-dialog figcaption {
  padding: 12px 0 4px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.gallery-close,
.gallery-prev,
.gallery-next {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover,
.gallery-close:focus-visible,
.gallery-prev:focus-visible,
.gallery-next:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

.gallery-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
}

.section-dark {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.045) 50%, transparent 50.1%),
    var(--ink);
  color: var(--white);
}

.section-heading-dark .kicker {
  color: var(--lime);
}

.section-heading-dark > p {
  color: rgba(255, 255, 255, 0.63);
}

.process {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.process li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 800;
}

.process p {
  color: rgba(255, 255, 255, 0.62);
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) minmax(250px, 0.42fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.about-mark {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  background: var(--lime);
}

.about-mark img {
  width: 72%;
}

.about-copy .lead {
  max-width: 650px;
  margin: 28px 0 16px;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}

.about-copy > p:last-child {
  max-width: 700px;
  margin: 0;
  color: #615d5e;
}

.area-card {
  padding: 28px;
  border-left: 4px solid var(--lime);
  background: var(--ink);
  color: var(--white);
}

.area-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.area-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.45;
}

.area-card span {
  display: block;
  margin-top: 18px;
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact {
  padding-block: clamp(72px, 9vw, 118px);
  background: var(--lime);
}

.contact .kicker {
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
}

.contact-grid > div:first-child > p:last-child {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: 1.05rem;
}

.contact-actions {
  border-top: 2px solid var(--ink);
}

.contact-actions a,
.service-base {
  display: block;
  padding: 24px 4px;
  border-bottom: 2px solid var(--ink);
}

.contact-actions a {
  text-decoration: none;
}

.contact-actions span,
.service-base span {
  display: block;
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-actions strong,
.service-base strong {
  font-size: clamp(1.2rem, 2.5vw, 1.85rem);
  line-height: 1.3;
}

.service-base {
  margin: 0;
  font-style: normal;
}

footer {
  padding-block: 36px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.58);
}

.footer-inner {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 30px;
  align-items: center;
}

.footer-inner img {
  width: 170px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-business {
  display: grid;
  gap: 2px;
}

.footer-business strong {
  color: rgba(255, 255, 255, 0.78);
}

.footer-business span {
  display: block;
}

.footer-partner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px 12px;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.footer-partner span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-partner strong {
  color: var(--lime);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.footer-partner small {
  justify-self: end;
  font-size: 0.82rem;
}

.footer-partner:hover strong,
.footer-partner:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .brand {
    width: 190px;
  }

  .menu-wrap {
    grid-column: 2;
    grid-row: 1;
  }

  .header-call {
    display: none;
  }

  .section-heading,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading > p {
    max-width: 680px;
  }

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

  .about-mark {
    width: 130px;
  }

  .area-card {
    grid-column: 2;
  }

  .project-folder summary {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
    min-height: 460px;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    width: 150px;
  }

  .menu-toggle {
    min-height: 42px;
    padding: 7px 11px;
  }

  .menu-label {
    display: none;
  }

  .site-menu {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 16px 0 24px;
  }

  .menu-links {
    grid-template-columns: 1fr;
  }

  .menu-links a {
    min-height: 62px;
    padding: 13px 16px;
  }

  .hero-copy {
    padding-block: 46px 62px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  h1 em {
    -webkit-text-stroke-width: 1.3px;
  }

  .hero-copy > p {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

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

  .project-folder summary {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-cover {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .project-cover img {
    object-position: center 21%;
  }

  .project-summary {
    padding: 28px 22px;
  }

  .project-type {
    margin-bottom: 48px;
  }

  .project-content {
    padding: 30px 14px 14px;
  }

  .project-content-heading,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow: hidden;
  }

  .gallery-dialog-inner {
    display: block;
    height: 100%;
  }

  .gallery-dialog figure {
    height: 100%;
    padding: max(12px, env(safe-area-inset-top)) 8px max(12px, env(safe-area-inset-bottom));
  }

  .gallery-dialog figure img {
    padding: 48px 0 8px;
  }

  .gallery-prev,
  .gallery-next {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 52px;
    height: 68px;
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(35, 31, 32, 0.9);
    color: var(--white);
    font-size: 1.8rem;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
  }

  .gallery-prev {
    left: max(8px, env(safe-area-inset-left));
  }

  .gallery-next {
    right: max(8px, env(safe-area-inset-right));
  }

  .gallery-close {
    z-index: 4;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    width: 50px;
    height: 50px;
    border-color: var(--lime);
    background: rgba(35, 31, 32, 0.94);
    color: var(--white);
    font-size: 1.75rem;
    -webkit-tap-highlight-color: transparent;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 30px;
  }

  .process li {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

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

  .about-mark {
    width: 104px;
  }

  .area-card {
    grid-column: 1;
  }

  .contact-actions strong {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-partner {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .footer-partner small {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
