:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --ink: #181a1c;
  --muted: #555b60;
  --line: #dddfdf;
  --surface: #f2f3f3;
  --focus: #38675b;
  --gutter: clamp(1.125rem, 4.8vw, 4.5rem);
  --ease: cubic-bezier(0.2, 0.72, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.05; letter-spacing: -0.042em; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(81rem, 100% - var(--gutter) * 2); margin-inline: auto; }
[id] { scroll-margin-block-start: 5rem; }

.visually-hidden, .skip-link:not(:focus), .form-message:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #dedfdfbd;
  background: #fbfbfaf2;
}
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: #fbfbfac7; backdrop-filter: saturate(125%) blur(18px); }
}
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.brand-mark {
  display: grid;
  position: relative;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  background: #25282d;
  flex: none;
}
.brand-mark::before, .brand-mark::after {
  position: absolute;
  width: 0.15rem;
  height: 0.78rem;
  border-radius: 1rem;
  background: #fff;
  content: "";
  transform: rotate(35deg);
}
.brand-mark::before { translate: -0.16rem 0.06rem; }
.brand-mark::after { translate: 0.16rem -0.06rem; }
.site-nav { display: flex; align-items: center; gap: clamp(0.8rem, 3vw, 2rem); }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 620;
}
.site-nav a:hover { color: #366256; }
.site-nav .nav-contact { padding-inline: 1rem; border: 1px solid var(--line); border-radius: 2rem; }

.hero {
  text-align: center;
  padding-block: clamp(2.75rem, 4.25vw, 4rem) clamp(2.6rem, 3.9vw, 3.5rem);
}
.hero h1 {
  font-size: clamp(3.3rem, 6.4vw, 5.85rem);
  font-weight: 690;
  letter-spacing: -0.058em;
  word-spacing: 0.045em;
  line-height: 0.98;
}
.hero h1 span {
  display: block;
  color: #51665e;
  background: linear-gradient(106deg, #456658, #65717b 55%, #596378);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero > p {
  margin: 1.15rem auto 1.3rem;
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  line-height: 1.45;
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.8rem; }
.hero .actions { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.64rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 220ms var(--ease), transform 220ms var(--ease);
}
.button-primary { background: #24272a; color: #fff; }
.button-primary:hover { background: #3d4a45; }
.button-quiet { border-color: var(--line); background: #fff; }
.button-quiet:hover { background: #eef2ef; }
.button:active { transform: scale(0.965); }
.button:disabled { opacity: 0.65; cursor: default; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #365e50;
  font-weight: 650;
  font-size: 0.94rem;
  text-underline-offset: 0.25em;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: 1rem;
}
.section-title h2 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -0.05em; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) repeat(2, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.35rem);
}
.work-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #e2e3e1;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 0.15rem 0.7rem #232c2405;
  transition: box-shadow 430ms var(--ease), border-color 430ms var(--ease);
}
.work-card:is(:hover, :focus-within) {
  border-color: #c8ceca;
  box-shadow: 0 1rem 2.75rem #273c2e15;
}
.work-copy { flex: 1; padding: 1.12rem clamp(1rem, 2vw, 1.5rem); }
.project-type { color: #53645b; font-size: 0.87rem; font-weight: 680; }
.work-copy h3 { margin-block: 0.28rem 0.36rem; font-size: clamp(1.55rem, 2.6vw, 2.35rem); font-weight: 690; }
.work-copy > p:last-child { color: var(--muted); line-height: 1.35; }

.work-image {
  position: relative;
  height: clamp(12.75rem, 17.6vw, 17.5rem);
  margin-inline: 0.55rem;
  border-radius: 0.95rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 40% 25%, #fff4e6, #e4c9b7);
}
.work-card--saruzay .work-image { background: #241b16; }
.work-card--acp-toolkit .work-image { background: radial-gradient(ellipse at 45% 10%, #edf7f7, #bfd5d7); }
.work-shot { position: absolute; inset: 0; }
.shot-desktop, .shot-phone, .visual-main, .visual-detail {
  position: absolute;
  overflow: hidden;
  transition: transform 580ms var(--ease), opacity 480ms var(--ease);
}
.shot-desktop, .shot-phone, .visual-detail { box-shadow: 0 1rem 2rem #222a2b40; }
.shot-desktop {
  left: 7%;
  top: 15%;
  width: 75%;
  border: 0.23rem solid #312e2d;
  border-radius: 0.65rem;
  background: #fff;
}
.shot-desktop img, .shot-phone img, .visual-detail img { width: 100%; }
.shot-phone {
  right: 9%;
  bottom: 14%;
  width: min(20%, 6.25rem);
  border: 0.22rem solid #353131;
  border-radius: 0.72rem;
  background: #fff;
  transition: right 580ms var(--ease), transform 580ms var(--ease);
}
.work-card--sunrise-sugaring:is(:hover, :focus-within) .shot-desktop {
  transform: translateY(-4px) scale(1.025);
}
.work-card--sunrise-sugaring:is(:hover, :focus-within) .shot-phone {
  transform: translate(3px, -7px);
}
.work-card--sunrise-sugaring[data-view="mobile"] .shot-desktop {
  opacity: 0.40;
  transform: translateX(-9%) scale(0.92);
}
.work-card--sunrise-sugaring[data-view="mobile"] .shot-phone {
  right: 50%;
  transform: translate(50%, -4%) scale(1.13);
}
.device-controls {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.12rem;
  padding: 0.16rem;
  border: 1px solid #e6ddda;
  border-radius: 2rem;
  background: #fffffff2;
  transform: translateX(-50%);
  box-shadow: 0 0.2rem 0.85rem #42302425;
}
.device-controls[hidden] { display: none; }
.device-controls button {
  border: 0;
  border-radius: 2rem;
  background: transparent;
  color: #414547;
  padding: 0.22rem 0.56rem;
  font-size: 0.875rem;
  font-weight: 650;
  min-height: 1.85rem;
  cursor: pointer;
  transition: background-color 200ms, color 200ms;
}
.device-controls button:hover { background: #edf0ee; }
.device-controls button[aria-pressed="true"] { background: #27292a; color: #fff; }
.work-card--saruzay .visual-main { inset: 0; }
.work-card--saruzay .visual-main img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.work-card--saruzay .visual-detail {
  right: 6%;
  bottom: 8%;
  width: 61%;
  border: 1px solid #ac9669ad;
  border-radius: 0.55rem;
}
.work-card--acp-toolkit .visual-main {
  top: 13%;
  left: 8%;
  width: 85%;
  border: 0.21rem solid #2a3839;
  border-radius: 0.58rem;
  box-shadow: 0 0.85rem 1.85rem #152d332f;
}
.work-card--acp-toolkit .visual-detail {
  right: 6%;
  bottom: 9%;
  width: 58%;
  border: 1px solid #adc7cc;
  border-radius: 0.55rem;
}
.work-card:is(:hover, :focus-within) .visual-main { transform: scale(1.037); }
.work-card:is(:hover, :focus-within) .visual-detail { transform: translateY(-8px) scale(1.045); }

.card-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 2.75rem;
  margin: 0.45rem clamp(1rem, 2vw, 1.5rem) 0.32rem;
  color: #365f51;
  font-size: 0.95rem;
  font-weight: 670;
  text-decoration: none;
  text-underline-offset: 0.25em;
}
.card-action::after { position: absolute; inset: 0; z-index: 2; content: ""; }
.card-action:is(:hover, :focus-visible) { text-decoration: underline; }

.contact, .project-contact {
  margin-top: clamp(3.75rem, 7.75vw, 7.25rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 15% 30%, #e9eeeb, transparent 60%), #f2f3f2;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.65rem, 7.5vw, 8rem);
  padding-block: clamp(2.75rem, 6.8vw, 6rem);
}
.contact-copy h2 { max-width: 12ch; margin-bottom: 0.85rem; font-size: clamp(2.7rem, 5.7vw, 5.75rem); font-weight: 680; }
.contact-copy p, .form-note, .project-figure figcaption { color: var(--muted); }
.enquiry-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.75rem #273c2e08;
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.94rem; font-weight: 635; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  min-height: 2.95rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c9cdca;
  border-radius: 0.62rem;
  background: #f9faf9;
  color: var(--ink);
}
.field textarea { resize: vertical; }
.enquiry-form button { justify-self: start; }
.form-note, .form-message { font-size: 0.88rem; }
.form-message { border-inline-start: 2px solid var(--focus); padding-inline-start: 0.7rem; }
.form-error { color: #923d36; border-inline-start-color: currentColor; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: 0.9rem; }
.project-intro { padding-block: clamp(2rem, 4.3vw, 4.25rem) clamp(1.65rem, 3vw, 2.75rem); }
.back-link { margin-bottom: 1.1rem; }
.project-intro h1 { margin-block: 0.35rem 0.65rem; font-size: clamp(3rem, 8.1vw, 7.8rem); font-weight: 680; }
.project-lede { max-width: 53ch; margin-bottom: 1.3rem; color: var(--muted); font-size: clamp(1.12rem, 2.1vw, 1.55rem); }
.case-media {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 5vw, 4.5rem);
  border-radius: 1.3rem;
  background: #dcd1c5;
}
.case-media > img {
  width: min(100%, 65rem);
  margin-inline: auto;
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2.5rem #21313330;
}
.case-media--acp-toolkit { background: #dce9e8; }
.case-media--sunrise { padding: 5% 19% 5% 7%; background: #eddfd4; }
.case-media--sunrise .shot-desktop { position: relative; top: auto; left: auto; width: 100%; }
.case-media--sunrise .shot-phone { right: 8%; bottom: 10%; width: 21%; max-width: 14rem; }
.project-figure figcaption { margin-top: 0.6rem; font-size: 0.88rem; }

.project-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.55rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 5rem);
}
.project-details h2 { margin-bottom: 0.7rem; font-size: clamp(1.5rem, 2.55vw, 2.25rem); }
.project-details p, .built-list { color: var(--muted); }
.built-list { display: grid; gap: 0.55rem; margin: 0; padding-inline-start: 1.15rem; }
.built-list li::marker { color: var(--focus); }
.proof { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.proof .text-link { margin-top: 0.35rem; }
.project-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.project-contact h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.missing-page { padding-block: 5rem; }
.missing-page h1 { font-size: clamp(3rem, 6vw, 6rem); margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero > p, .hero .actions, .work-card.arriving {
    animation: settle 720ms var(--ease) backwards;
  }
  .hero > p { animation-delay: 80ms; }
  .hero .actions { animation-delay: 135ms; }
  .work-card.arriving:nth-child(2) { animation-delay: 85ms; }
  .work-card.arriving:nth-child(3) { animation-delay: 155ms; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 60rem) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card--sunrise-sugaring { grid-column: 1 / -1; }
  .work-card--sunrise-sugaring .work-image { height: clamp(13rem, 39vw, 22rem); }
  .work-card--sunrise-sugaring .shot-desktop { width: min(76%, 35rem); left: 11%; }
  .work-card--sunrise-sugaring .shot-phone { width: min(17%, 8rem); right: 14%; }
  .project-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-column: 1 / -1; }
}
@media (max-width: 43rem) {
  .header-inner { min-height: 3.7rem; }
  .hero h1 { font-size: clamp(2.65rem, 10.7vw, 4.75rem); }
  .hero { padding-block: 3rem 2.35rem; }
  .contact-inner, .project-details { grid-template-columns: minmax(0, 1fr); }
  .project-contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; padding-block: 0.65rem; }
  .footer-inner p { order: 3; flex-basis: 100%; margin-top: -0.4rem; }
}
@media (max-width: 33rem) {
  .work-card:not(.work-card--sunrise-sugaring) .work-image { height: auto; aspect-ratio: 1.23; }
  .work-copy { padding: 0.85rem; }
  .work-copy h3 { font-size: clamp(1.23rem, 5vw, 1.75rem); }
  .work-copy > p:last-child { font-size: 0.91rem; }
  .work-card:not(.work-card--sunrise-sugaring) .card-action { margin-inline: 0.85rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
