.company-page {
  --company-dark: #241a16;
  --company-tint: #f1ebe4;
  --company-section-space: clamp(3rem, 6.4vw, 6.25rem);
  background: var(--light);
}

.company-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--light);
  background: var(--company-dark);
}

.company-masthead-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 67%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.company-masthead--about .company-masthead-photo { object-position: center 70%; }

.company-masthead::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, var(--company-dark) 27%, #241a16eb 39%, #241a1680 65%, #241a1624);
  pointer-events: none;
}

.company-masthead-copy {
  position: relative;
  z-index: 1;
  padding-block: clamp(2rem, 4.5vw, 4.8rem) clamp(2.4rem, 6vw, 5.6rem);
}

.company-masthead--contact .company-masthead-copy { padding-block: clamp(1.75rem, 4.5vw, 3.5rem); }

.company-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  margin-bottom: clamp(1.35rem, 2.9vw, 2.65rem);
  font-size: .83rem;
  font-weight: 600;
  color: #e6d4c7;
}

.company-breadcrumb a { text-underline-offset: .21em; }
.company-masthead :focus-visible,
.company-cta :focus-visible { outline-color: var(--brand-light); }

.company-masthead h1 {
  max-width: 15ch;
  font: 700 clamp(2.55rem, 6.2vw, 5.6rem)/1 var(--sans);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.company-masthead p {
  max-width: min(45ch, 52%);
  margin-top: .9rem;
  color: #f1e7df;
  font-size: clamp(.98rem, 1.5vw, 1.17rem);
}

.company-masthead .button { margin-top: 1.35rem; }
.company-section { padding-block: var(--company-section-space); }
.company-section--tint { background: var(--company-tint); }

.company-section-heading {
  max-width: 66ch;
  margin-bottom: clamp(1.2rem, 3vw, 2.35rem);
}

.company-section h2,
.company-cta h2 {
  font: 700 clamp(1.95rem, 4vw, 3.55rem)/1.06 var(--sans);
  letter-spacing: -.05em;
  text-wrap: balance;
}

.company-section-heading p,
.company-feature-copy > p { margin-top: .8rem; color: var(--muted); }
.company-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
}

.company-feature-photo {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
}

.company-feature-photo img,
.company-updates-card > img,
.company-development-card > img,
.company-contact-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.company-feature-photo figcaption {
  display: flex;
  justify-content: end;
  min-height: 2.6rem;
  padding: .55rem .85rem;
  background: var(--company-tint);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.company-feature-photo a { text-underline-offset: .22rem; }
.company-feature-copy .button { margin-top: 1.4rem; }

.company-range-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.45rem;
  border-top: 1px solid var(--line);
}

.company-range-facts > div { display: grid; padding-top: .75rem; }
.company-range-facts dt { grid-row: 2; color: var(--muted); font-weight: 600; font-size: .88rem; }
.company-range-facts dd { grid-row: 1; color: var(--brand-hover); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; line-height: 1.15; }

.company-updates-grid,
.company-development-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.65rem);
}

.company-development-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.company-updates-card,
.company-development-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--light);
  border: 1px solid var(--line);
}

.company-updates-card > div,
.company-development-card > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .5rem;
  padding: clamp(1rem, 2.45vw, 1.95rem);
}

.company-updates-card > img,
.company-development-card > img { aspect-ratio: 2 / 1; background: #fff; }
.company-updates-card h3,
.company-development-card h3,
.company-process h3 {
  font: 700 clamp(1.13rem, 2.3vw, 1.55rem)/1.16 var(--sans);
  letter-spacing: -.034em;
}

.company-updates-card h3 + p,
.company-development-card h3 + p,
.company-process p { color: var(--muted); }
.company-inline-link {
  font-size: .92rem;
  font-weight: 700;
  text-decoration-color: var(--brand);
  text-underline-offset: .25em;
  color: var(--brand-hover);
}

.company-inline-link:hover { color: var(--ink); }
.company-updates-card .company-inline-link,
.company-development-card .company-inline-link { margin-top: auto; padding-top: .55rem; }

.company-spec-table {
  border-color: #d4c9be;
  overscroll-behavior-inline: contain;
}

.company-spec-table :is(th, td) { width: 40%; }
.company-spec-table tr > :first-child { width: 20%; }
.company-spec-table thead { background: var(--company-dark); color: var(--light); }

.company-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2.5vw, 2rem);
  padding: 0;
  list-style: none;
  counter-reset: company-step;
}

.company-process li { counter-increment: company-step; border-top: 1px solid var(--line); padding-top: 1rem; }
.company-process li::before { content: counter(company-step, decimal-leading-zero); display: block; margin-bottom: .5rem; color: var(--brand-hover); font-size: .88rem; font-weight: 700; }
.company-process p { margin-top: .5rem; }

.company-cta {
  padding-block: clamp(2.2rem, 5.5vw, 4.6rem);
  background: var(--company-dark);
  color: var(--light);
}

.company-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.15rem 2.8rem; }
.company-cta h2 { font-size: clamp(1.72rem, 3.6vw, 3rem); }
.company-cta p { color: #e6d4c7; margin-top: .5rem; }

.company-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(1.2rem, 4.5vw, 4.3rem);
}

.company-contact .inquiry-form { padding: clamp(.9rem, 2.3vw, 1.85rem); }
.company-contact-aside { display: grid; gap: 1rem; }
.company-contact-panel { padding: clamp(1rem, 2.4vw, 2rem); background: var(--company-tint); border-top: 3px solid var(--brand); }
.company-contact-panel h2 { margin-bottom: .9rem; font-size: clamp(1.42rem, 2.3vw, 1.85rem); }
.company-contact-panel dl { margin-bottom: 1rem; }
.company-contact-panel dl > div { padding-block: .6rem; }
.company-contact-panel dl > div + div { border-top: 1px solid var(--line); }
.company-contact-panel dt { font-weight: 700; }
.company-contact-panel dd { margin-top: .2rem; color: var(--muted); font-size: .91rem; }
.company-contact-photo { display: block; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.company-contact-photo img { aspect-ratio: 2 / 1; }
.company-contact-photo > span { display: flex; padding: .6rem .8rem; justify-content: space-between; gap: .5rem; background: var(--company-tint); font-size: .86rem; font-weight: 700; }
.company-contact-photo:hover > span { color: var(--brand-hover); }

@media (max-width: 800px) {
  .company-masthead-photo { width: 100%; }
  .company-masthead::after { background: linear-gradient(90deg, #241a16f2, #241a16af 68%, #241a1659); }
  .company-masthead p { max-width: 42ch; }
  .company-split, .company-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .company-feature-photo img { aspect-ratio: 2 / 1; }
  .company-updates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .company-masthead::after { background: linear-gradient(90deg, #241a16ee, #241a16b8 75%, #241a1680); }
  .company-updates-grid, .company-development-grid { grid-template-columns: minmax(0, 1fr); }
}
