@import url("./shared/analytics.css");

@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url(fonts/instrument-serif-italic.ttf) format("truetype");
  font-style: italic;
  font-display: swap;
}
:root {
  --paper: #f2f0ea;
  --ink: #182321;
  --line: #b9bab2;
  --gutter: clamp(23px, 4.25vw, 90px);
  --section-space: clamp(64px, 6.5vw, 124px);
  --heading-space: clamp(24px, 3vw, 56px);
  --disclosure-time: 440ms;
  --disclosure-ease: cubic-bezier(0.25, 0.66, 0.24, 1);
  --feedback-time: 220ms;
  --serif: "Instrument Serif", Georgia, serif;
}
/* The configurators and enquiry use the same pair of schedule controls. */
.item-fields {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  grid-template-areas: "quantity-label notes-label" "quantity notes";
  column-gap: 1rem;
  row-gap: 6px;
}
.item-fields > label:first-of-type { grid-area: quantity-label; }
.item-fields > label:last-of-type { grid-area: notes-label; }
:is(.quote-page, .config-page) .item-fields > label {
  align-self: end;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}
:is(.quote-page, .config-page) .item-fields > :is(input, textarea) {
  margin: 0;
  min-height: 46px;
  padding: 10px 11px;
  font-size: 16px;
  line-height: 24px;
}
.item-fields > input { grid-area: quantity; align-self: stretch; }
.item-fields > textarea { grid-area: notes; height: 46px; resize: vertical; }
.item-fields > .field-error { grid-column: 1 / -1; }
@supports (field-sizing: content) {
  .item-fields > textarea {
    height: auto;
    max-height: calc(6lh + 22px);
    field-sizing: content;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    400 16px/1.4 "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure,
ol {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
a.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
a.skip {
  position: fixed;
  z-index: 20;
  left: 12px;
  top: -80px;
  background: white;
  color: black;
  padding: 10px;
}
a.skip:focus {
  top: 12px;
}
em {
  font-family: var(--serif);
  font-weight: 400;
}
.hero {
  isolation: isolate;
  position: relative;
  background: #303430;
  color: #fff;
  min-height: 660px;
  height: 92svh;
  max-height: 1120px;
  display: flex;
  flex-flow: column;
}
.hero-media,
.hero-shot,
.hero-media::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media {
  z-index: -1;
  overflow: hidden;
}
.hero-shot {
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0;
  transition: opacity 0.85s ease;
  filter: saturate(0.73);
  transform: scale(1.012);
}
.hero-shot.current {
  opacity: 1;
  animation: camera 6s cubic-bezier(0.18, 0.47, 0.38, 1) both;
}
.hero-media::after {
  content: "";
  background:
    linear-gradient(
      0deg,
      rgb(8 17 17 / 88%),
      rgb(9 18 18 / 68%) 14%,
      rgb(10 19 19 / 39%) 36%,
      transparent 64%
    ),
    linear-gradient(
      90deg,
      rgb(13 22 22 / 61%),
      rgb(13 22 22 / 39%) 35%,
      rgb(13 22 22 / 8%) 64%,
      transparent 81%
    ),
    linear-gradient(180deg, rgb(11 19 19 / 53%), transparent 18%);
}
@keyframes camera {
  from {
    transform: scale(1.058);
  }
  to {
    transform: scale(1.012);
  }
}
.mast,
.hero-foot {
  margin-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mast {
  height: clamp(75px, 7vw, 105px);
  position: relative;
  flex: none;
  z-index: 3;
  border-bottom: 1px solid #ffffff55;
}
.wordmark-shape {
  width: clamp(119px, 10.35vw, 175px);
  display: block;
  aspect-ratio: 488 / 111;
  background: currentColor;
  mask: url("media/environ-wordmark.svg") center / contain no-repeat;
}
.desk-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(23px, 3vw, 57px);
  font-size: 14px;
  font-weight: 500;
}
.quote-btn,
.dark-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 17px;
  border: 1px solid #ffffffa8;
  transition:
    background 0.2s,
    color 0.2s;
}
.quote-btn:hover {
  background: white;
  color: var(--ink);
}
.quote-btn span,
.dark-link span {
  font-size: 20px;
  line-height: 1;
}
.hero-copy {
  margin: auto var(--gutter) clamp(25px, 4.5vh, 63px);
  align-self: flex-start;
}
h1 {
  font-size: clamp(86px, 8.9vw, 176px);
  letter-spacing: -0.056em;
  line-height: 0.86;
  font-weight: 500;
}
.product-title-block h1 i, .quote-heading h1 i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.035em;
}
h1 em {
  font-size: 1.15em;
  letter-spacing: -0.036em;
  display: inline-block;
  margin-top: 0.015em;
}
.hero-copy p {
  font-size: clamp(16px, 1.26vw, 22px);
  max-width: 46ch;
  letter-spacing: -0.022em;
  line-height: 1.42;
  margin-top: clamp(21px, 2vw, 35px);
}
.hero-copy p a {
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 60%);
  background: linear-gradient(currentColor, currentColor) left calc(100% - .03em) / 0% 1px no-repeat;
  text-underline-offset: .18em;
  transition: background-size .42s var(--disclosure-ease), text-decoration-color var(--feedback-time) ease;
}
.hero-copy p a:is(:hover, :focus-visible) {
  background-size: 100% 1px;
  text-decoration-color: transparent;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.018em;
}
.text-link span {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.25s;
}
.text-link:hover span {
  transform: translate(2px, -2px);
}
.hero-copy .text-link {
  margin-top: 23px;
}
.hero-foot {
  height: clamp(78px, 6.5vw, 112px);
  border-top: 1px solid #ffffff66;
  flex: none;
}
.feature-link,
.hero-controls,
.count {
  display: flex;
  align-items: center;
}
.feature-link {
  gap: 14px;
}
.feature-link img {
  width: 64px;
  height: 43px;
  object-fit: cover;
}
.feature-link small,
.index,
.count,
.system-figure figcaption {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.feature-link small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  color: #e4e6de;
}
.feature-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.feature-arrow {
  margin-left: 4px;
  opacity: 0.8;
}
.hero-controls {
  gap: 19px;
}
.hero-controls button {
  border: 1px solid #ffffff75;
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  transition:
    background 0.2s,
    color 0.2s;
}
.hero-controls button:hover {
  background: #fff;
  color: var(--ink);
}
.count {
  font-size: 12px;
  gap: 7px;
  letter-spacing: 0.03em;
}
.count b {
  font-weight: 600;
}
.count span {
  opacity: 0.6;
}
.menu-btn,
.mobile-nav {
  display: none;
}
.paper {
  padding-inline: var(--gutter);
}
.systems {
  padding-top: var(--section-space);
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: var(--heading-space);
}
h2 {
  font-size: clamp(58px, 6.7vw, 134px);
  line-height: 0.96;
  font-weight: 450;
  letter-spacing: -0.049em;
}
h2 span {
  color: #7d887f;
}
.section-heading p,
.enquiry p {
  font-size: clamp(15px, 1.2vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.section-heading p {
  max-width: 340px;
  padding-bottom: 3px;
}
.systems-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6.8vw, 130px);
  align-items: stretch;
}
.system-figure {
  position: relative;
  overflow: hidden;
  background: #333c39;
  min-height: 300px;
}
.system-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.23s;
}
.system-photo.changing {
  opacity: 0.55;
}
.system-figure figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: #1b2424df;
  padding: 6px 10px;
  font-size: 12px;
}
.frame-mark {
  height: 9px;
  width: 9px;
  border: 1px solid #fff;
}
.system-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.system-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: clamp(54px, 5vw, 93px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.31vw, 43px);
  line-height: 1.15;
  letter-spacing: -0.034em;
  transition:
    padding 0.25s,
    background 0.25s;
}
.system-row:hover,
.system-row:focus-visible {
  padding-inline: 10px;
  background: #e6e6de;
}
.index {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #5a605a;
}
.row-arrow,
.ne {
  font-size: 0.68em;
  font-style: normal;
  font-family: Arial, sans-serif;
}
.works {
  padding-block: var(--section-space);
}
.works .section-heading .text-link {
  margin-bottom: 4px;
}
.works-grid {
  display: grid;
  grid-template-columns: 1.56fr 1fr;
  align-items: start;
  gap: clamp(20px, 3vw, 60px);
}
.project-frame {
  position: relative;
  aspect-ratio: 1.7;
  background: #d3d2ca;
  overflow: hidden;
}
.project:nth-child(2) .project-frame {
  aspect-ratio: 1.09;
}
.photo-gallery {
  isolation: isolate;
  cursor: ew-resize;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.photo-gallery:focus-visible {
  outline-offset: 4px;
}
.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-photo:first-child,
.gallery-photo.is-current {
  opacity: 1;
}
.gallery-guide {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 45px;
  padding: 16px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(12, 20, 21, 0.5));
  color: white;
}
.gallery-position {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.045em;
}
.gallery-segments {
  flex: 1;
  display: flex;
  gap: 4px;
}
.gallery-segments span {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.43);
  transition: background-color 0.25s;
}
.gallery-segments .is-current {
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .gallery-photo,
  .gallery-segments span {
    transition: none;
  }
}
.work-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  gap: 14px;
}
.work-link h3 {
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 52px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}
.work-link p {
  font-size: 13px;
  margin-top: 7px;
  color: #515952;
}
.ne {
  font-size: 26px;
}
.workshop {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 40vw, 740px);
  color: white;
  background: #1c2828;
}
.shop-photo,
.shop-film,
.workshop::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shop-photo,
.shop-film {
  object-fit: cover;
  object-position: center 49%;
  z-index: -2;
}
.workshop::after {
  content: "";
  background: linear-gradient(
    90deg,
    #0d181be5,
    rgba(13, 24, 27, 0.52) 43%,
    transparent 78%
  );
  z-index: -1;
}
.shop-copy {
  padding: clamp(45px, 5.7vw, 112px) var(--gutter);
}
.shop-copy h2 em {
  font-size: 1.13em;
  letter-spacing: -0.045em;
}
.shop-copy .text-link {
  margin-top: 24px;
}
.shop-film {
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.shop-film.is-playing {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .shop-film {
    display: none;
  }
}
.enquiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: clamp(65px, 6.5vw, 130px);
}
.enquiry h2 {
  font-size: clamp(44px, 5vw, 90px);
}
.enquiry h2 em {
  white-space: nowrap;
}
.enquiry p {
  margin-top: 17px;
}
.dark-link {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
  flex-shrink: 0;
  padding: 15px 20px;
}
.dark-link:hover {
  background: #394441;
}
@media (max-width: 740px) {
  :root {
    --gutter: 22px;
  }
  .hero {
    height: 93svh;
    min-height: 630px;
    max-height: 950px;
  }
  .mast {
    height: 79px;
  }
  .wordmark-shape {
    width: 105px;
  }
  .desk-nav {
    display: none;
  }
  .mast-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .quote-btn {
    font-size: 12px;
    padding: 8px 10px;
    gap: 7px;
  }
  .quote-btn span {
    font-size: 16px;
  }
  .menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
  }
  .hamb {
    width: 16px;
    height: 7px;
    border-block: 1px solid;
  }
  .mobile-nav {
    position: absolute;
    flex-direction: column;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding: 14px var(--gutter) 24px;
    background: #1d2727;
    box-shadow: 0 15px 35px #0003;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
  }
  .mobile-nav a {
    padding: 11px 0;
    font-size: 23px;
    letter-spacing: -0.035em;
    border-bottom: 1px solid #ffffff38;
  }
  .hero-copy {
    margin-bottom: 31px;
  }
  h1 {
    font-size: clamp(71px, 13vw, 100px);
  }
  .hero-copy p {
    font-size: 16px;
  }
  .hero-media::after {
    background: linear-gradient(
      0deg,
      rgb(8 17 17 / 93%) 0%,
      rgb(9 18 18 / 74%) 24%,
      rgb(11 20 20 / 42%) 48%,
      rgb(14 22 22 / 8%) 76%,
      rgb(10 19 19 / 52%) 100%
    );
  }
  .hero-shot {
    object-position: 57% center;
  }
  .hero-foot {
    height: 76px;
  }
  .hero-controls {
    gap: 9px;
  }
  .hero-controls button {
    width: 36px;
    height: 36px;
  }
  .feature-link {
    gap: 9px;
  }
  .feature-link img {
    width: 48px;
    height: 37px;
  }
  .feature-title {
    font-size: 16px;
  }
  .feature-arrow {
    display: none;
  }
  h2 {
    font-size: clamp(53px, 10vw, 73px);
  }
  .section-heading {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .systems .section-heading {
    flex-direction: column;
    gap: 14px;
  }
  .desktop-br {
    display: none;
  }
  .section-heading p {
    max-width: 310px;
  }
  .systems-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .system-figure {
    min-height: 0;
    aspect-ratio: 1.85;
  }
  .system-figure figcaption {
    bottom: 10px;
    left: 10px;
  }
  .system-row {
    font-size: 25px;
    min-height: 55px;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .project-frame,
  .project:nth-child(2) .project-frame {
    aspect-ratio: 1.45;
  }
  .works .section-heading {
    align-items: flex-end;
    gap: 10px;
  }
  .works .section-heading .text-link {
    font-size: 13px;
    gap: 7px;
    white-space: nowrap;
  }
  .works .section-heading h2 {
    font-size: clamp(43px, 9.3vw, 68px);
  }
  .workshop {
    min-height: 430px;
  }
  .shop-photo,
  .shop-film {
    object-position: 58% center;
  }
  .workshop::after {
    background: linear-gradient(0deg, #101918e6, #10191867 66%, #10191821);
  }
  .enquiry {
    align-items: flex-start;
    flex-flow: column;
    gap: 22px;
  }
  .enquiry h2 {
    max-width: 450px;
  }

}
@media (max-width: 365px) {
  :root {
    --gutter: 16px;
  }
  .mast-actions {
    gap: 9px;
  }
  .hero-controls {
    gap: 6px;
  }
  h1 {
    font-size: 65px;
  }
  .feature-link img {
    width: 36px;
  }
  .hero-copy p {
    max-width: 250px;
  }
}
@media (max-height: 650px) and (min-width: 741px) {
  .hero {
    min-height: 550px;
  }
  .hero-copy {
    margin-bottom: 17px;
  }
  h1 {
    font-size: 86px;
  }
  .mast {
    height: 70px;
  }
  .hero-foot {
    height: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* iOS's native select chrome otherwise shrinks the visible control to 26px. */
@media (pointer: coarse) {
  html :is(.application-picker, .config-page, .quote-page) select {
    appearance: none;
    min-height: 46px;
    padding-inline-end: 2.25rem;
    background-image:
      linear-gradient(45deg, transparent 48%, currentColor 50% 65%, transparent 67%),
      linear-gradient(-45deg, transparent 48%, currentColor 50% 65%, transparent 67%);
    background-position: right 18px center, right 12px center;
    background-size: 6px 7px;
    background-repeat: no-repeat;
  }
}
@media (forced-colors: active) {
  html :is(.application-picker, .config-page, .quote-page) select {
    appearance: auto;
  }
}

/* The previous page wipes away in the same blades as the homepage hero. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition {
    pointer-events: none;
  }
  ::view-transition-group(root) {
    animation: none;
  }
  ::view-transition-image-pair(root) {
    isolation: isolate;
    background: var(--ink);
  }
  ::view-transition-old(root), ::view-transition-new(root) {
    mix-blend-mode: normal;
    mask-size: 12.5% 100%;
  }
  ::view-transition-old(root) {
    z-index: 1;
    mask-image: linear-gradient(90deg, transparent var(--blade-cut), #000 var(--blade-cut));
    animation: shutter 440ms cubic-bezier(.6,.03,.21,1) both;
  }
  ::view-transition-new(root) {
    mask-image: linear-gradient(90deg, #000 var(--blade-cut), transparent var(--blade-cut));
    animation: shutter 570ms 130ms cubic-bezier(.37,.03,.23,1) both;
  }
}
@media (max-width: 740px) {
  ::view-transition-old(root), ::view-transition-new(root) {
    mask-size: 25% 100%;
  }
}

/* Use a live shutter when the browser cannot capture both pages. */
@media (prefers-reduced-motion: no-preference) {
  html.route-arrival::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background: var(--ink);
    opacity: 0;
    mask-image: linear-gradient(90deg, transparent var(--blade-cut), #000 var(--blade-cut));
    mask-size: 12.5% 100%;
    animation: arrival-shutter 620ms cubic-bezier(.45,.03,.23,1);
  }
  @keyframes arrival-shutter {
    from { opacity: .92; --blade-cut: 0%; }
    to { opacity: 0; --blade-cut: 100%; }
  }
}
@media (max-width: 740px) {
  html.route-arrival::after { mask-size: 25% 100%; }
}
