/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --paper: #F6F2EC;
  --paper-2: #EEE7DC;
  --sand: #E1D5C3;
  --ink: #262624;
  --ink-2: #3A3936;
  --muted: #77716A;
  --oak: #B8895A;
  --oak-d: #8D6641;
  --oak-l: #D8BC94;
  --line: rgba(38, 38, 36, .13);
  --line-2: rgba(38, 38, 36, .28);
  --white: #FDFBF8;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --maxw: 1360px;
  --header-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width:760px) {
  :root {
    --header-h: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--oak-l);
  color: var(--ink);
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.is-loading .js-hide {
  visibility: hidden;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -.01em;
  line-height: 1.02;
}

h1 em,
h2 em,
h3 em,
.quote em {
  font-style: italic;
  color: var(--oak-d);
}

.h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
}

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--ink-2);
  font-weight: 300;
  line-height: 1.7;
}

p {
  margin: 0 0 1.1em;
}

/* word splitting */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

.wi {
  display: inline-block;
  will-change: transform;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .9em;
  padding: 1.05em 1.7em;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .6s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--oak);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform .7s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn .arr {
  display: inline-block;
  transition: transform .7s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  color: var(--paper);
}

.btn--sm {
  padding: .75em 1.25em;
  font-size: .8rem;
}

.btn-label {
  position: relative;
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .7s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(246, 242, 236, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo svg {
  height: 34px;
  width: auto;
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav a.nl {
  position: relative;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  padding: 6px 0;
}

.nav a.nl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .7s var(--ease);
}

.nav a.nl:hover::after,
.nav a.nl.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a.nl.is-active {
  color: var(--ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .6s var(--ease), top .6s var(--ease);
}

.burger span:nth-child(1) {
  top: 18px;
}

.burger span:nth-child(2) {
  top: 25px;
}

.menu-open .burger span:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--paper);
  padding: calc(var(--header-h) + 30px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}

.menu-open .mnav {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.mnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mnav li {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.mnav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 2.1rem;
  padding: .32em 0;
}

.mnav a small {
  font-family: var(--sans);
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .15em;
}

.mnav-foot {
  font-size: .85rem;
  color: var(--muted);
}

@media (max-width:1020px) {
  .nav .nl {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav .btn {
    display: none;
  }
}

@media (min-width:1021px) {
  .mnav {
    display: none;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(var(--paper), rgba(246, 242, 236, 0) 18%, rgba(246, 242, 236, 0) 82%, var(--paper)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(38, 38, 36, .045) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(38, 38, 36, .045) 47px 48px),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-top: clamp(20px, 4vh, 48px);
  padding-bottom: clamp(40px, 8vh, 96px);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.3vw, 6.4rem);
  margin: .42em 0 .38em;
}

.hero .lead {
  max-width: 34em;
  margin-bottom: 2.2em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

.hero-meta {
  margin-top: clamp(28px, 6vh, 64px);
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  flex-wrap: wrap;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero-meta b {
  display: block;
  font-weight: 500;
  color: var(--ink);
  font-size: .82rem;
  margin-bottom: 2px;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-2);
  padding-top: 10px;
  margin-top: 6px;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint i {
  width: 1px;
  height: 44px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.scroll-hint i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--ink);
  animation: hint 2.4s var(--ease-io) infinite;
}

@media (max-height:940px) {
  .scroll-hint {
    display: none;
  }
}

@keyframes hint {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(260%);
  }
}

#cab .ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.05;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#cab .hid {
  fill: none;
  stroke: var(--ink);
  stroke-width: .9;
  stroke-dasharray: 5 4;
  opacity: .5;
  vector-effect: non-scaling-stroke;
}

#cab .dim line,
#cab .dim path {
  stroke: var(--ink);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
  fill: none;
}

#cab .dim text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  fill: var(--ink-2);
}

#cab .flat polygon {
  fill: #FBF9F5;
  stroke: var(--ink);
  stroke-width: .9;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#cab .mat polygon {
  stroke: rgba(30, 24, 18, .28);
  stroke-width: .5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (max-width:900px) {
  .hero {
    align-items: flex-start;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-art {
    order: -1;
    max-width: min(520px, 48vh);
    width: 100%;
    margin: 0 auto;
  }

  .hero-caption span:last-child {
    display: none;
  }

  .hero h1 {
    margin-top: .25em;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width:420px) {
  .hero-meta {
    gap: 16px 22px;
  }

  .hero-meta>div {
    flex: 1 1 40%;
  }
}

/* =========================================================
   SECTIONS
   ========================================================= */
section {
  position: relative;
}

.sec {
  padding: clamp(88px, 14vw, 180px) 0;
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 7vw, 96px);
}

.sec-head .eyebrow {
  margin-bottom: 1.6em;
}

.sec-head p {
  max-width: 31em;
  margin: 0;
  color: var(--ink-2);
  font-weight: 300;
}

@media (max-width:820px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 7vw, 120px);
}

.about-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-2);
}

.about-visual .ph {
  position: absolute;
  inset: -8% 0;
}

.about-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(253, 251, 248, .9);
}

.about-text .h2 {
  margin: .55em 0 .7em;
}

.about-text .lead {
  max-width: 33em;
}

.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2em 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: .45em 1em;
  font-size: .8rem;
  color: var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line-2);
}

.stat {
  padding: 28px 20px 0 0;
}

.stat+.stat {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.stat .num {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.stat .num sup {
  font-size: .38em;
  vertical-align: top;
  position: relative;
  top: .35em;
  margin-left: .08em;
}

.stat p {
  font-size: .84rem;
  color: var(--muted);
  margin: .9em 0 0;
  max-width: 15em;
}

.note {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--paper-2);
  border-radius: 2px;
  font-size: .92rem;
  color: var(--ink-2);
  max-width: 760px;
}

.note svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

@media (max-width:900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    aspect-ratio: 4/3;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n+3) {
    margin-top: 28px;
    border-top: 1px solid var(--line);
  }
}

/* SERVICES */
.services {
  background: var(--white);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.card {
  position: relative;
  display: block;
  cursor: pointer;
}

.card-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-2);
}

.card-media .ph,
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.8s var(--ease);
}

.card:hover .card-media .ph,
.card:hover .card-media img {
  transform: scale(1.07);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 15, 0) 45%, rgba(20, 18, 15, .62));
  opacity: .75;
  transition: opacity 1s var(--ease);
}

.card:hover .card-media::after {
  opacity: 1;
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(18px, 2vw, 28px);
  color: var(--white);
  z-index: 2;
}

.card-idx {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(253, 251, 248, .85);
}

.card h3 {
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
}

.card-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .9s var(--ease);
}

.card-desc>div {
  overflow: hidden;
}

.card-desc p {
  margin: .7em 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(253, 251, 248, .86);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  max-width: 26em;
}

.card:hover .card-desc,
.card:focus-visible .card-desc {
  grid-template-rows: 1fr;
}

.card:hover .card-desc p,
.card:focus-visible .card-desc p {
  opacity: 1;
  transform: none;
  transition-delay: .08s;
}

.card-plus {
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(253, 251, 248, .5);
  display: grid;
  place-items: center;
  color: var(--white);
  transition: transform .9s var(--ease), background .6s;
}

.card:hover .card-plus {
  transform: rotate(90deg);
  background: rgba(253, 251, 248, .15);
}

@media (hover:none) {
  .card-desc {
    grid-template-rows: 1fr;
  }

  .card-desc p {
    opacity: 1;
    transform: none;
  }
}

@media (max-width:960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card-media {
    aspect-ratio: 5/4;
  }
}

/* PROCESS */
.process-wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(30px, 6vw, 100px);
}

.process-aside {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  align-self: start;
}

.process-aside .h2 {
  margin: .55em 0 .6em;
}

.process-aside p {
  color: var(--ink-2);
  font-weight: 300;
  max-width: 24em;
}

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(44px, 6vw, 84px);
}

.steps-wrap {
  position: relative;
}

.steps-line {
  position: absolute;
  left: 12px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.steps-line i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
}

.step {
  position: relative;
  padding: 0 0 clamp(52px, 7vw, 92px);
}

.step:last-child {
  padding-bottom: 0;
}

.step-dot {
  position: absolute;
  left: calc(-1 * clamp(44px, 6vw, 84px) + 6px);
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line-2);
  transition: background .6s var(--ease), border-color .6s, transform .8s var(--ease);
}

.step.is-on .step-dot {
  background: var(--oak);
  border-color: var(--oak);
  transform: scale(1.25);
}

.step-num {
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--muted);
}

.step h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin: .3em 0 .45em;
}

.step p {
  color: var(--ink-2);
  font-weight: 300;
  max-width: 32em;
  margin: 0;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.1em;
}

.step-tags span {
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .3em .8em;
  border-radius: 100px;
}

@media (max-width:900px) {
  .process-wrap {
    grid-template-columns: 1fr;
  }

  .process-aside {
    position: relative;
    top: 0;
  }
}

/* MATERIALS */
.materials {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.materials .eyebrow {
  color: rgba(246, 242, 236, .6);
}

.materials .sec-head p {
  color: rgba(246, 242, 236, .72);
}

.materials h2 em {
  color: var(--oak-l);
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.mat {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: 360px;
}

.mat:nth-child(1) {
  grid-column: span 7;
  min-height: clamp(380px, 46vw, 620px);
}

.mat:nth-child(2) {
  grid-column: span 5;
}

.mat:nth-child(3) {
  grid-column: span 5;
}

.mat:nth-child(4) {
  grid-column: span 7;
}

.mat .tex {
  position: absolute;
  left: 0;
  right: 0;
  top: -14%;
  height: 128%;
  will-change: transform;
}

.mat-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 2.4vw, 34px);
  background: linear-gradient(180deg, transparent, rgba(18, 17, 15, .55));
}

.mat-info h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  color: var(--white);
}

.mat-info p {
  margin: .5em 0 0;
  font-size: .88rem;
  color: rgba(253, 251, 248, .82);
  max-width: 28em;
}

.mat-code {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(253, 251, 248, .85);
  mix-blend-mode: difference;
}

.tex--oak {
  background: #b88a5a;
}

.tex--mdf {
  background: linear-gradient(135deg, #55534e, #3b3a37 55%, #2f2e2b);
}

.tex--mdf::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .14), transparent 60%);
}

.tex--pal {
  background: linear-gradient(160deg, #dcd3c5, #cfc3b1);
}

.tex--hw {
  background: linear-gradient(115deg, #8c877f 0%, #c9c4bb 22%, #9f9a92 40%, #d9d5ce 58%, #8e8981 80%, #b7b2aa 100%);
}

.tex--hw svg {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 46%;
  height: auto;
  opacity: .9;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8.4vw, 9rem);
  line-height: .95;
  white-space: nowrap;
  margin: clamp(70px, 10vw, 140px) 0 0;
  color: var(--paper);
  will-change: transform;
}

.quote span {
  color: rgba(246, 242, 236, .32);
}

@media (max-width:820px) {
  .mat:nth-child(n) {
    grid-column: span 12;
    min-height: 300px;
  }

  .mat:nth-child(1) {
    min-height: 400px;
  }
}

/* PORTFOLIO */
.portfolio {
  background: var(--paper);
  overflow: hidden;
}

.pf-head {
  padding-top: clamp(88px, 14vw, 180px);
}

.pf-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  /* Cards stop aligned with the page margin, not glued to the screen edge */
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  padding-bottom: 12px;
}

.pf-viewport::-webkit-scrollbar {
  display: none;
}

.pf-track {
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
  padding: 0 var(--gutter);
  width: max-content;
  align-items: flex-end;
}

.pf-item {
  flex: none;
  width: min(78vw, 520px);
  scroll-snap-align: start;
  cursor: pointer;
}

.pf-media {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/5;
  background: var(--paper-2);
}

.pf-item:nth-child(3n+2) .pf-media {
  aspect-ratio: 1/1;
}

.pf-item:nth-child(3n) .pf-media {
  aspect-ratio: 3/4;
}

.pf-media .ph,
.pf-media img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8%;
  width: 116%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.pf-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid transparent;
}

.pf-cap h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.pf-cap span {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.pf-idx {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: .72rem;
  letter-spacing: .18em;
  color: rgba(253, 251, 248, .9);
  z-index: 2;
}

.pf-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(246, 242, 236, .85);
  color: var(--ink);
  padding: .35em .7em;
  border-radius: 100px;
}

.pf-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px var(--gutter) clamp(80px, 10vw, 140px);
  max-width: var(--maxw);
  margin: 0 auto;
}

.pf-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}

.pf-progress i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(.08);
}

.pf-foot small {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
}

@media (min-width:1021px) {
  .anim .pf-viewport {
    overflow: visible;
    scroll-snap-type: none;
  }

  .pf-item {
    width: clamp(340px, 34vw, 560px);
  }

  .pf-item:nth-child(3n+2) {
    width: clamp(300px, 28vw, 460px);
  }

  .pf-item:nth-child(3n) {
    width: clamp(320px, 30vw, 500px);
  }

  .pf-track {
    padding-right: calc(var(--gutter) + 8vw);
  }
}

.pf-end {
  flex: none;
  width: min(70vw, 380px);
  align-self: center;
  padding: 20px;
  /* A stop of its own, so a swipe can rest on the closing call to action */
  scroll-snap-align: end;
}

.pf-end h3 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: .7em;
}

/* AREA / MAP */
.area {
  background: var(--paper-2);
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 6vw, 96px);
  align-items: center;
}

.area .h2 {
  margin: .55em 0 .6em;
}

.area p {
  color: var(--ink-2);
  font-weight: 300;
}

.cities {
  columns: 2;
  column-gap: 30px;
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
}

.cities li {
  break-inside: avoid;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: .6em 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

.cities li span {
  color: var(--muted);
  font-size: .78rem;
}

.map-box {
  position: relative;
}

#map {
  width: 100%;
  height: auto;
  overflow: visible;
}

#map .contour {
  fill: none;
  stroke: rgba(38, 38, 36, .12);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#map .county {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .38em;
  fill: rgba(38, 38, 36, .28);
}

#map .river {
  fill: none;
  stroke: #9fb2ae;
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

#map .river-l {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  fill: #7f9692;
}

#map .route {
  fill: none;
  stroke: var(--oak-d);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
  opacity: .7;
}

#map .city circle.dot {
  fill: var(--ink);
}

#map .city text {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--ink);
  letter-spacing: .02em;
}

#map .hq circle.dot {
  fill: var(--oak);
}

#map .hq text {
  font-weight: 600;
}

#map .ring {
  fill: none;
  stroke: var(--oak);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#map .radius {
  fill: rgba(184, 137, 90, .06);
  stroke: rgba(184, 137, 90, .35);
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.map-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  margin-right: 8px;
  vertical-align: middle;
}

.map-legend i.o {
  background: var(--oak);
}

@media (max-width:900px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:420px) {
  .cities {
    columns: 1;
  }
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 120px);
}

.contact .h2 {
  margin: .55em 0 .6em;
}

.info {
  list-style: none;
  padding: 0;
  margin: 2.4em 0 0;
}

.info li {
  padding: 1.1em 0;
  border-top: 1px solid var(--line);
}

.info small {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35em;
}

.info a,
.info span {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
}

.info a {
  background: linear-gradient(currentColor, currentColor) 0 100%/0 1px no-repeat;
  transition: background-size .8s var(--ease);
}

.info a:hover {
  background-size: 100% 1px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 28px;
}

.field {
  position: relative;
  padding-top: 22px;
}

.field.full {
  grid-column: 1/-1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  padding: 10px 0 12px;
  font-size: 1rem;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field label {
  position: absolute;
  left: 0;
  top: 32px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .6s var(--ease), color .4s;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field select+label {
  transform: translateY(-26px) scale(.74);
  color: var(--ink-2);
  letter-spacing: .06em;
}

.field .bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}

.field :focus~.bar {
  transform: scaleX(1);
}

.check {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 18px;
}

.check input {
  margin-top: 4px;
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: none;
}

.form-actions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.form-msg {
  font-size: .9rem;
  color: var(--oak-d);
  min-height: 1.4em;
}

@media (max-width:900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:560px) {
  .form {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
.footer {
  background: var(--ink);
  color: rgba(246, 242, 236, .75);
  padding: clamp(70px, 9vw, 120px) 0 28px;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: clamp(50px, 7vw, 90px);
}

.footer h4 {
  margin: 0 0 1.2em;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246, 242, 236, .45);
  font-weight: 500;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: .45em 0;
  font-size: .92rem;
}

.footer a:hover {
  color: var(--white);
}

.footer-claim {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--paper);
  line-height: 1.15;
  max-width: 15em;
}

.footer-big {
  font-family: var(--serif);
  font-size: clamp(4rem, 19vw, 19rem);
  line-height: .8;
  color: rgba(246, 242, 236, .07);
  letter-spacing: -.03em;
  white-space: nowrap;
  margin: 0 0 20px -.04em;
  user-select: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(246, 242, 236, .12);
  padding-top: 22px;
  font-size: .78rem;
}

.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(246, 242, 236, .22);
  border-radius: 100px;
  padding: .55em 1.05em;
  background: none;
  color: rgba(246, 242, 236, .75);
  cursor: pointer;
  font-size: .75rem;
  letter-spacing: .06em;
  transition: border-color .5s, color .5s;
}

.portal-btn:hover {
  border-color: var(--oak-l);
  color: var(--white);
}

.portal-btn svg {
  width: 13px;
  height: 13px;
}

@media (max-width:760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top>div:first-child {
    grid-column: 1/-1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--paper);
  color: var(--ink);
  padding: .9em 1.4em;
  border-radius: 100px;
  font-size: .85rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .4);
  transition: transform .8s var(--ease), opacity .6s;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-on {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* placeholders */
.ph {
  background: var(--paper-2);
}

.ph svg {
  width: 100%;
  height: 100%;
}

/* CURSOR */
.cursor,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}

.cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(38, 38, 36, .45);
  display: grid;
  place-items: center;
  transition: width .6s var(--ease), height .6s var(--ease), margin .6s var(--ease), background-color .6s, border-color .6s, opacity .4s;
}

.cursor span {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  transition: opacity .4s;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--ink);
  transition: opacity .4s;
}

.cursor.is-hover {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(184, 137, 90, .8);
}

.cursor.is-label {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--ink);
  border-color: var(--ink);
}

.cursor.is-label span {
  opacity: 1;
}

.has-cursor .cursor,
.has-cursor .cursor-dot {
  opacity: 1;
}

.on-dark .cursor {
  border-color: rgba(246, 242, 236, .5);
}

.on-dark .cursor-dot {
  background: var(--paper);
}

@media (hover:none),
(pointer:coarse) {

  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (max-width:760px) {
  body::after {
    display: none;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .scroll-hint i::after {
    display: none;
  }
}
/* The quote's width is its text, so the script can measure how far to slide it */
.quote {
  width: max-content;
}
