:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --ink: #11110f;
  --muted: #62625d;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-errors:focus {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.wrap {
  width: min(85.4%, 1360px);
  margin-inline: auto;
}

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

.skip-link:focus {
  position: fixed;
  inset: 0.75rem auto auto 0.75rem;
  z-index: 10;
  padding: 0.8rem 1rem;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.site-header {
  min-height: 100px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  letter-spacing: -0.055em;
  font-size: 2.2rem;
  line-height: 1;
}

.wordmark strong {
  font-weight: 800;
}

.wordmark span {
  font-weight: 400;
}

.site-header nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 52px;
  max-width: 100%;
  min-width: 0;
  padding: 0.8rem 1.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.button span {
  font-size: 1.25em;
  line-height: 1;
}

a.button:hover {
  background: #30302b;
  text-decoration: none;
}

.header-cta {
  min-height: 42px;
  padding: 0.65rem 1.3rem;
  font-size: 0.88rem;
}

.landing {
  position: relative;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 43vw, 660px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding-block: 3.5rem 5rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 5.35vw, 5.35rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

.hero-tagline {
  margin: 1.1rem 0 0.6rem;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero-description {
  max-width: 410px;
  margin: 0 0 1.55rem;
  color: #3e3e39;
  font-size: 1rem;
  line-height: 1.55;
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: -5%;
  width: 80%;
  /* Keep the supplied paper background and drawing intact. */
  mix-blend-mode: multiply;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  /* Lift the raster paper to white before blending it into our cream paper.
     This removes rectangular crop edges without replacing any artwork. */
  filter: grayscale(1) brightness(1.055);
}

.services {
  position: relative;
  padding-top: 0;
  padding-bottom: 2.5rem;
  scroll-margin-top: 2rem;
}

.connector {
  position: absolute;
  top: calc(min(37.3vw, 594px) - clamp(500px, 43vw, 660px));
  left: -5%;
  width: 110%;
  height: 290px;
  overflow: hidden;
  pointer-events: none;
}

.connector-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.service-art {
  --art-width: 240%;
  --art-shift: -50%;
  position: relative;
  width: min(100%, 175px);
  height: 125px;
  margin: 0 auto 1.1rem;
  overflow: hidden;
  /* Crop only the supplied padding in CSS; source PNGs remain unchanged. */
}

.service-art img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--art-width);
  max-width: none;
  height: auto;
  filter: grayscale(1) brightness(1.055);
  mix-blend-mode: multiply;
  transform: translate(-50%, var(--art-shift));
}

.service-branding .service-art {
  --art-width: 225%;
}

.service-websites .service-art,
.service-motion .service-art,
.service-systems .service-art {
  --art-width: 200%;
}

.service h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.contact {
  padding-block: 4rem;
  margin-top: 3rem;
  border-top: 1px solid #d8d7cf;
  text-align: center;
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.contact p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact .button:disabled {
  color: var(--muted);
  border-color: #c4c3ba;
  background: transparent;
}

.contact > p {
  max-width: 650px;
  margin-inline: auto;
}

.contact-form {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: left;
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.form-field label span,
.field-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.8rem;
  border: 1px solid #85857b;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.form-field textarea {
  resize: vertical;
}

.form-field [aria-invalid="true"] {
  border-color: #8a2419;
}

.field-hint,
.field-error {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.field-error {
  color: #8a2419;
  font-size: 0.9rem;
}

.contact .form-privacy {
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.form-privacy a,
.form-errors a,
.legal-page a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: #eeede5;
}

.contact .form-state,
.form-errors {
  padding: 1rem;
  border: 1px solid #85857b;
  border-radius: 4px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact .form-state {
  margin: 1.5rem 0 0;
  color: var(--ink);
}

.form-errors {
  margin-bottom: 1.5rem;
  border-color: #8a2419;
  color: #8a2419;
}

.contact .form-state.form-errors {
  border-color: #8a2419;
  color: #8a2419;
}

.form-errors h3 {
  margin: 0;
  font-size: 1.1rem;
}

.form-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.form-errors a {
  display: inline-block;
  padding-block: 0.25rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
  border-top: 1px solid #d8d7cf;
  font-size: 0.85rem;
}

.site-footer .wordmark {
  font-size: 1.35rem;
}

.site-footer > a:last-child {
  padding-block: 0.75rem;
}

.site-footer nav {
  margin-left: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-page {
  max-width: 880px;
  padding-block: clamp(3rem, 6vw, 5rem);
  overflow-wrap: anywhere;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 5.3vw, 4.75rem);
  line-height: 1.05;
}

.legal-page section {
  margin-top: 2.5rem;
  scroll-margin-top: 1.5rem;
}

.legal-page h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.legal-page p,
.legal-page li {
  color: #3e3e39;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.65rem;
}

.draft-notice {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid #85857b;
  border-radius: 4px;
}

.draft-notice h2 {
  font-size: 1.1rem;
}

.draft-notice p {
  margin-bottom: 0;
}

.services-intro {
  max-width: 900px;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-intro h1 {
  font-size: clamp(2.5rem, 5.3vw, 4.75rem);
  line-height: 1.02;
}

.services-intro > p:last-child {
  max-width: 560px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.service-detail {
  display: grid;
  grid-template-columns: 200px minmax(0, 640px);
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  border-top: 1px solid #d8d7cf;
  text-align: left;
  scroll-margin-top: 1.5rem;
}

.service-detail .service-art {
  width: 200px;
  height: 145px;
  margin: 0;
}

.service-detail h2,
.coming-soon h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.service-detail-copy p {
  margin: 1rem 0 0.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.enquiry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding-block: 0.5rem;
  line-height: 1.5;
}

.coming-soon {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid #d8d7cf;
}

.coming-soon p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .connector-path {
    animation: draw-connector 2.4s ease-out both;
  }

  @keyframes draw-connector {
    from { stroke-dasharray: 1; stroke-dashoffset: 1; }
    to { stroke-dasharray: 1; stroke-dashoffset: 0; }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .service-art img {
    transition: transform 300ms ease;
  }

  .service:hover .service-art img {
    transform: translate(-50%, calc(var(--art-shift) - 3px));
  }
}

@media (max-width: 79.9375em) {
  .header-cta,
  .desktop-break {
    display: none;
  }

  .wrap {
    width: calc(100% - 2.5rem);
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding-block: 1.5rem 0.75rem;
  }

  .site-header .wordmark {
    font-size: 1.9rem;
  }

  .site-header nav {
    width: 100%;
    margin: 0;
  }

  .nav-list {
    justify-content: center;
    flex-wrap: wrap;
    column-gap: clamp(0.8rem, 4vw, 1.5rem);
    font-size: 0.85rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .hero-copy {
    padding-block: 2.25rem 1rem;
  }

  h1 {
    font-size: clamp(2.75rem, 9vw, 4.5rem);
    line-height: 0.98;
  }

  .hero-tagline {
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  }

  .hero-description {
    max-width: 31rem;
    font-size: 0.95rem;
  }

  .hero-art {
    position: relative;
    inset: auto;
    z-index: 0;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-top: 0.5rem;
  }

  .services {
    padding-top: 1.5rem;
  }

  .connector {
    display: none;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0.75rem;
  }

  .service-art {
    width: min(100%, 170px);
    height: 125px;
    margin-bottom: 0.75rem;
  }

  .service-list > .service:last-child {
    grid-column: 1 / -1;
    width: min(100%, 240px);
    justify-self: center;
  }

  .service h3 {
    font-size: 1rem;
  }

  .service p {
    font-size: 0.88rem;
  }

  .contact {
    margin-top: 0;
    padding-block: 3rem;
  }
}

@media (max-width: 37.5em) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .service-detail .service-art {
    width: min(100%, 200px);
    justify-self: center;
  }
}

@media (max-width: 47.5em) {
  .site-footer nav {
    order: 1;
    flex-basis: 100%;
    margin: 0;
  }
}
