/* Inner pages — extends the home design system */

body:not(.home) {
  background: var(--night);
  color: var(--text);
}

body:not(.home) .nav {
  --navc: 238 242 236;
}

.page {
  position: relative;
  z-index: 1;
  padding: calc(env(safe-area-inset-top, 0px) + 120px) var(--pad) 10vh;
  min-height: var(--vh);
}

.page-hero {
  max-width: min(920px, 100%);
  margin-bottom: clamp(48px, 8vh, 96px);
}

.page-kicker {
  color: var(--leaf);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(40px, 7vw, 104px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
  font-variation-settings: "wdth" 125;
  max-width: 14ch;
}

.page-hero .lede {
  margin-top: 28px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
}

.page-hero .actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
}

.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.svc-card {
  background: var(--night);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: background .4s var(--ease);
}

.svc-card:hover {
  background: #04140d;
}

.svc-card h2 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -.03em;
  font-variation-settings: "wdth" 118;
  line-height: 1.05;
}

.svc-card p {
  color: var(--muted);
  flex: 1;
  max-width: 42ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin: clamp(48px, 10vh, 120px) 0;
}

.split h2 {
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 300;
  letter-spacing: -.02em;
  font-variation-settings: "wdth" 112;
  line-height: 1.12;
}

.split .copy p {
  color: var(--muted);
  max-width: 58ch;
}

.split .copy p + p {
  margin-top: 16px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px 32px;
  margin-top: clamp(40px, 7vh, 80px);
}

.feature-list article {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.feature-list h3 {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -.015em;
  font-variation-settings: "wdth" 112;
  margin-bottom: 12px;
}

.feature-list p {
  color: var(--muted);
  font-size: 15px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(22px, 3vw, 40px);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card .thumb {
  aspect-ratio: 4 / 3;
  background: #0a1a12;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}

.project-card h3 {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  letter-spacing: -.015em;
}

.project-card small {
  color: var(--muted);
  font-size: 14px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
}

.news-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.news-item h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
  font-variation-settings: "wdth" 112;
  line-height: 1.15;
}

.news-item p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 52ch;
}

.news-item time {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-details .block span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.contact-details .block a,
.contact-details .block p {
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: -.015em;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--paper);
  font: inherit;
  padding: 12px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--leaf);
}

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

.contact-form .submit-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 12px;
}

.btn-go {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

#contactStatus {
  font-size: 14px;
  color: var(--muted);
}

#contactStatus[data-state="ok"] { color: var(--leaf); }
#contactStatus[data-state="err"] { color: #ff8f8f; }

.cta-band {
  margin-top: clamp(64px, 12vh, 140px);
  padding-top: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  align-items: end;
}

.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 56px);
  font-weight: 400;
  letter-spacing: -.03em;
  font-variation-settings: "wdth" 118;
  max-width: 14ch;
  line-height: 1.05;
}

@media (max-width: 860px) {
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .page {
    padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
  }
}
