:root {
  --ink: #2b2925;
  --muted: #746f65;
  --paper: #f4f0e7;
  --warm: #d8bd85;
  --clay: #b36f55;
  --moss: #6d7661;
  --charcoal: #241f1c;
  --mineral: #657b80;
  --line: rgba(43, 41, 37, 0.14);
  --white: #fbf7ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 240, 231, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
}

.brand-logo-wrap {
  position: relative;
  display: block;
  width: clamp(46px, 4.2vw, 62px);
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.brand-text {
  color: currentColor;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.brand-logo-dark {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-light,
.site-header.is-open .brand-logo-light {
  opacity: 0;
}

.site-header.is-scrolled .brand-logo-dark,
.site-header.is-open .brand-logo-dark {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a + a::before {
  position: absolute;
  top: 50%;
  left: calc(clamp(18px, 3vw, 36px) / -2);
  content: "/";
  color: currentColor;
  opacity: 0.58;
  transform: translate(-50%, -50%);
}

.nav a,
.text-link {
  position: relative;
}

.nav a::after,
.text-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.portfolio-link {
  justify-self: end;
  align-self: start;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.portfolio-link:hover {
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.header-tools {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
}

.header-action {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  color: currentColor;
  background: rgba(0, 0, 0, 0.08);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.site-header.is-scrolled .lang-toggle,
.site-header.is-open .lang-toggle {
  border-color: var(--line);
  background: transparent;
}

.lang-toggle:hover {
  border-color: currentColor;
  background: rgba(255, 250, 242, 0.1);
}

.lang-toggle [data-lang-option] {
  color: rgba(255, 250, 242, 0.48);
  opacity: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.lang-toggle [data-lang-option].is-active {
  color: var(--white);
}

.site-header.is-scrolled .lang-toggle [data-lang-option],
.site-header.is-open .lang-toggle [data-lang-option] {
  color: rgba(23, 23, 21, 0.46);
}

.site-header.is-scrolled .lang-toggle [data-lang-option].is-active,
.site-header.is-open .lang-toggle [data-lang-option].is-active {
  color: var(--ink);
}

.lang-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: var(--charcoal);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  backdrop-filter: blur(7px);
  -webkit-mask:
    radial-gradient(190px at 0 0, #000 0 42%, transparent 72%),
    radial-gradient(190px at 100% 0, #000 0 42%, transparent 72%),
    radial-gradient(190px at 0 100%, #000 0 42%, transparent 72%),
    radial-gradient(190px at 100% 100%, #000 0 42%, transparent 72%);
  mask:
    radial-gradient(190px at 0 0, #000 0 42%, transparent 72%),
    radial-gradient(190px at 100% 0, #000 0 42%, transparent 72%),
    radial-gradient(190px at 0 100%, #000 0 42%, transparent 72%),
    radial-gradient(190px at 100% 100%, #000 0 42%, transparent 72%);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  z-index: 1;
  background:
    radial-gradient(circle at 0 0, rgba(245, 241, 234, 0.16), transparent 26%),
    radial-gradient(circle at 100% 0, rgba(245, 241, 234, 0.1), transparent 24%),
    radial-gradient(circle at 0 100%, rgba(23, 23, 21, 0.34), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(23, 23, 21, 0.34), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: calc(100svh - 150px);
  max-width: 980px;
  flex-direction: column;
  justify-content: center;
  padding: 104px clamp(20px, 6vw, 88px) 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  color: var(--ink);
  background: var(--warm);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 250, 242, 0.64);
  background: transparent;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(940px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  align-self: end;
  margin: 0 0 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid rgba(255, 250, 242, 0.34);
}

.hero-stats div {
  padding: 18px 22px 0 0;
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.55rem, 2.65vw, 2.4rem);
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 250, 242, 0.74);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 88px);
}

.intro-grid,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 6vw, 84px);
}

.section h2,
.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
}

.intro-copy,
.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.services {
  background: #25221d;
  color: var(--white);
}

.services .section-heading p,
.services .service-card p {
  color: rgba(255, 250, 242, 0.7);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: rgba(255, 250, 242, 0.18);
}

.service-card {
  min-height: 280px;
  padding: 32px;
  background: #25221d;
}

.service-card span {
  color: var(--warm);
  font-weight: 800;
}

.service-card h3 {
  margin: 64px 0 16px;
  font-size: 1.35rem;
}

.projects {
  background: #fbf7ef;
  scroll-margin-top: 92px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
  margin-top: 46px;
}

.project-grid-extra {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  scroll-margin-top: 92px;
  transform: translateY(-10px);
  transition: max-height 640ms ease, margin-top 420ms ease, opacity 360ms ease, transform 420ms ease;
}

.projects.is-expanded .project-grid-extra {
  max-height: 1600px;
  margin-top: clamp(14px, 2vw, 22px);
  opacity: 1;
  transform: translateY(0);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  cursor: pointer;
}

.project-card-16x9 {
  aspect-ratio: 16 / 9;
}

.project-card-square {
  aspect-ratio: 1;
}

.project-card-4x3 {
  aspect-ratio: 4 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.project-card:nth-child(3n) img {
  object-position: 68% center;
}

.project-card:nth-child(4n) img {
  object-position: 28% center;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
}

.project-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  color: var(--white);
}

.project-card span {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 700;
}

.project-card em {
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.88rem;
  font-style: normal;
}

.project-card:hover img {
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.035);
}

.project-toggle {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  margin: 30px auto 0;
  padding: 8px 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color 180ms ease, text-decoration-color 180ms ease, transform 180ms ease;
}

.project-toggle:hover {
  color: #c07a5d;
  text-decoration-color: currentColor;
  transform: translateY(-2px);
}

.project-toggle-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.projects.is-expanded .project-toggle-arrow {
  transform: translateY(2px) rotate(225deg);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: clamp(34px, 7vw, 100px);
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 88px);
  color: var(--white);
  background: linear-gradient(135deg, #66705d, #5f7376);
}

.contact-intro {
  display: grid;
  align-content: start;
}

.contact-links {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.contact-links a,
.contact-links div {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
  color: rgba(255, 250, 242, 0.82);
  font-weight: 700;
}

.contact-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.contact-links svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 242, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 250, 242, 0.08);
  font: inherit;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 250, 242, 0.54);
}

.form-note {
  margin: 0;
  color: rgba(255, 250, 242, 0.7);
  font-size: 0.9rem;
}

.form-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 23, 21, 0.54);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.form-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.form-modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 30px 30px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  text-align: center;
  transform: translateY(8px);
  transition: transform 180ms ease;
}

.form-modal.is-visible .form-modal-panel {
  transform: translateY(0);
}

.form-modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.form-modal-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.form-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.project-modal {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(36, 31, 28, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-panel {
  position: relative;
  display: grid;
  width: min(100%, 880px);
  max-height: min(88vh, 820px);
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border-radius: 6px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.project-modal.is-visible .project-modal-panel {
  transform: translateY(0);
}

.project-carousel {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.project-carousel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.project-carousel-button {
  position: absolute;
  top: 0;
  bottom: 0;
  display: grid;
  width: clamp(54px, 9vw, 92px);
  place-items: center;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.project-carousel-button:hover {
  opacity: 1;
}

.project-carousel-button::before {
  display: block;
  width: 14px;
  height: 14px;
  content: "";
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.project-carousel-prev {
  left: 0;
  background: linear-gradient(90deg, rgba(36, 31, 28, 0.58), transparent);
}

.project-carousel-prev::before {
  transform: rotate(-45deg);
}

.project-carousel-next {
  right: 0;
  background: linear-gradient(270deg, rgba(36, 31, 28, 0.58), transparent);
}

.project-carousel-next::before {
  transform: rotate(135deg);
}

.project-modal-info {
  padding: clamp(22px, 4vw, 36px);
}

.project-modal-info h2 {
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.project-modal-info dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}

.project-modal-info div {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-modal-info dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-modal-info dd {
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
}

.project-modal-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(251, 247, 239, 0.86);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  background: var(--paper);
  font-size: 0.92rem;
}

.footer-brand {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
}

.footer-year {
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.64;
}

@media (max-width: 1080px) {
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav {
    display: none;
  }

  .header-action {
    display: none;
  }

  .header-tools {
    gap: 10px;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
  }

  .menu-button span {
    display: block;
    grid-area: 1 / 1;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .site-header.is-open .menu-button span:first-child {
    transform: rotate(45deg);
  }

  .site-header.is-open .menu-button span:last-child {
    transform: rotate(-45deg);
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0 clamp(20px, 6vw, 88px) 18px;
    background: rgba(244, 240, 231, 0.98);
  }

  .site-header.is-open .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a + a::before {
    display: none;
  }


  .hero-content {
    min-height: calc(100svh - 164px);
  }

  .hero-stats,
  .intro-grid,
  .section-heading,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .portfolio-link {
    justify-self: start;
  }

  .hero-stats {
    width: min(640px, calc(100% - 40px));
  }

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

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

  .service-card h3 {
    margin-top: 34px;
  }

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

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
  }

  .hero::after {
    -webkit-mask:
      radial-gradient(120px at 0 0, #000 0 42%, transparent 72%),
      radial-gradient(120px at 100% 0, #000 0 42%, transparent 72%),
      radial-gradient(120px at 0 100%, #000 0 42%, transparent 72%),
      radial-gradient(120px at 100% 100%, #000 0 42%, transparent 72%);
    mask:
      radial-gradient(120px at 0 0, #000 0 42%, transparent 72%),
      radial-gradient(120px at 100% 0, #000 0 42%, transparent 72%),
      radial-gradient(120px at 0 100%, #000 0 42%, transparent 72%),
      radial-gradient(120px at 100% 100%, #000 0 42%, transparent 72%);
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    justify-content: end;
    padding: 112px 24px 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.7vw, 2.55rem);
    line-height: 1.02;
  }

  h1 br {
    display: block;
  }

  .hero-copy {
    max-width: 32rem;
    margin-bottom: 22px;
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .hero-actions {
    width: min(100%, 340px);
    align-self: center;
    gap: 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 92px 1fr;
    align-items: end;
    gap: 14px;
    padding: 0;
  }

  .hero-stats span {
    margin-top: 0;
  }

  .button {
    max-width: 100%;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    text-align: center;
    white-space: normal;
  }

  .section,
  .contact-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .project-modal {
    padding: 16px;
  }

  .project-modal-info dl {
    grid-template-columns: 1fr;
  }

  .projects.is-expanded .project-grid-extra {
    max-height: 2600px;
  }

  .footer {
    display: grid;
  }
}

@media (max-height: 720px) and (min-width: 861px) {
  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-content {
    min-height: calc(100svh - 126px);
    padding-top: 86px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 4.6vw, 4.5rem);
  }

  .hero-copy {
    margin-bottom: 22px;
  }

  .button {
    min-height: 44px;
  }

  .hero-stats {
    margin-bottom: 22px;
  }
}
