:root {
  --paper: #fff;
  --ink: #171717;
  --muted: #545454;
  --line: #d2d2d2;
  --red: #ca001b;
  --red-hover: #a30016;
  --gutter: max(clamp(1.125rem, 3.3vw, 3.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --section: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 2.5vw, 2.55rem); font-weight: 400; }
h3 { font-size: clamp(1.18rem, 1.6vw, 1.55rem); font-weight: 600; }
.shell { width: calc(100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; z-index: 4; top: .75rem; left: var(--gutter); padding: .75rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }

.header {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: max(.8rem, env(safe-area-inset-top)) .8rem;
}
.brand { display: block; width: clamp(9rem, 13.4vw, 13rem); }
.brand img { width: 100%; }
.header nav, .footer nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem clamp(1rem, 2.5vw, 2.5rem); }
.header nav a, .footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
.header nav a:hover, .footer nav a:hover, .contact a:hover { color: var(--red-hover); }
.button {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.05rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
}
.button:hover { background: var(--red-hover); border-color: var(--red-hover); }
.button:focus-visible { outline-color: var(--ink); }
.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-decoration-color: var(--line);
}
.text-link:hover { color: var(--red-hover); text-decoration-color: currentColor; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: end;
  gap: 1.5rem;
  padding: 8rem var(--gutter) max(2.6rem, env(safe-area-inset-bottom));
  background: #252322;
  color: #fff;
}
.hero-project { display: contents; }
.hero-project img, .hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-project img { z-index: -2; object-fit: cover; object-position: center 26%; }
.hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(247 251 255 / .64), transparent 18%),
    linear-gradient(0deg, rgb(0 0 0 / .78), rgb(0 0 0 / .45) 20%, transparent 48%);
}
.hero-copy { grid-area: 1 / 1; width: auto; margin: 0; }
h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 5.4vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: .94;
  text-shadow: 0 1px 12px rgb(0 0 0 / .52);
}
h1 span {
  display: block;
  margin-top: .17em;
  width: max-content;
  max-width: min(74vw, 19ch);
  font-size: .63em;
  line-height: 1.06;
  letter-spacing: -.025em;
}
figcaption {
  grid-area: 1 / 2;
  text-align: right;
  font-size: clamp(.8rem, 1vw, .95rem);
  line-height: 1.35;
  text-shadow: 0 1px 5px #000;
}
figcaption strong, figcaption span { display: block; }

.projects { padding-block: clamp(1.3rem, 1.75vw, 1.75rem) var(--section); }
.projects h2 { padding-bottom: .5rem; border-bottom: 2px solid var(--red); }
.project-gallery { display: grid; grid-template-columns: minmax(0, 2.13fr) repeat(2, minmax(0, 1fr)); gap: clamp(.8rem, 1.55vw, 1.5rem); margin-block: 1rem; }
.project-gallery article + article { position: relative; }
.project-gallery article + article::before { content: ""; position: absolute; inset: 0 auto 0 calc(clamp(.8rem, 1.55vw, 1.5rem) / -2); border-left: 1px solid var(--line); }
.project-gallery img { width: 100%; height: auto; }
.project-image { display: block; margin-bottom: .45rem; }
.project-image:hover { outline: 1px solid var(--red); }
.project-gallery p { margin-top: .35rem; }
.project-credit { color: var(--muted); font-size: .8125rem; }
.projects > .text-link { margin-top: .25rem; }
.enquiries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-block: var(--section); }
.enquiries section { padding-inline-end: clamp(1.5rem, 5vw, 5rem); }
.enquiries section + section { border-left: 1px solid var(--line); padding-inline: clamp(1.5rem, 5vw, 5rem) 0; }
.enquiries h2 { max-width: 19ch; margin-bottom: 1rem; }
.enquiries p { max-width: 55ch; color: var(--muted); }
.enquiries p + p { margin-top: .65rem; }
.enquiries .button { margin-top: 1.35rem; }
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  gap: 1rem 2.5rem;
  border-top: 1px solid var(--ink);
  padding-block: 1.6rem;
}
.contact address { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.6rem; font-style: normal; }
.contact address p { color: var(--muted); font-size: .875rem; }
.contact address strong { color: var(--ink); }
.contact a { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  padding-block: .8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
#projects, #samples { scroll-margin-top: 1rem; }

@media (max-width: 900px) {
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-gallery article:first-child { grid-column: 1 / -1; }
  .project-gallery article:nth-child(2)::before { display: none; }
}

@media (max-width: 680px) {
  .header { grid-template-columns: 1fr auto; gap: .15rem .6rem; }
  .header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .header-action { grid-column: 2; grid-row: 1; font-size: .8125rem; padding-inline: .65rem; }
  .brand { width: min(100%, 9.5rem); }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 1rem; padding-top: max(8rem, calc(env(safe-area-inset-top) + 7rem)); padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
  .hero-copy { grid-area: 1 / 1; }
  figcaption { grid-area: 2 / 1; text-align: left; }
  .hero-project img { object-position: 51% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgb(247 251 255 / .85), rgb(247 251 255 / .7) 13%, transparent 27%),
      linear-gradient(0deg, rgb(0 0 0 / .86), rgb(0 0 0 / .54) 30%, transparent 63%);
  }
  h1 { font-size: clamp(2.8rem, 10.5vw, 4.5rem); }
  h1 span { max-width: 100%; }
  .project-gallery, .enquiries, .contact { grid-template-columns: minmax(0, 1fr); }
  .project-gallery { gap: 1.35rem; }
  .project-gallery article + article::before { display: none; }
  .project-gallery article + article { border-top: 1px solid var(--line); padding-top: 1.35rem; }
  .enquiries section { padding-inline: 0; }
  .enquiries section + section { border-left: 0; border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 0; }
  .contact address { align-items: flex-start; flex-direction: column; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 359px) {
  .header-action { padding-inline: .45rem; font-size: .75rem; }
  .brand { width: min(100%, 8rem); }
  h1 { font-size: 2.5rem; }
}

@media (max-height: 480px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgb(247 251 255 / .88) 5rem, transparent 9rem),
      linear-gradient(0deg, rgb(0 0 0 / .86), rgb(0 0 0 / .5) 34%, transparent 75%);
  }
}
