@layer reset, base, components, utilities;

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

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p,
  figure,
  ol {
    margin: 0;
  }

  img {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }

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

@layer base {
  :root {
    --ink: #11110f;
    --ink-soft: #1a1a17;
    --paper: #e9e5dd;
    --paper-warm: #d9d1c5;
    --white: #f6f4ef;
    --copper: #bd7a46;
    --copper-light: #d79b69;
    --line-dark: rgba(17, 17, 15, 0.2);
    --line-light: rgba(255, 255, 255, 0.2);
    --page-padding: clamp(1.25rem, 4vw, 5rem);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  body {
    background: var(--ink);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
  }

  ::selection {
    background: var(--copper);
    color: var(--white);
  }

  h1,
  h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.96;
  }

  h1 em,
  h2 em {
    color: var(--copper-light);
    font-weight: 400;
  }

  h1 {
    font-size: clamp(3.75rem, 8.5vw, 9rem);
  }

  h2 {
    font-size: clamp(3rem, 6vw, 6.75rem);
  }

  .section {
    position: relative;
    padding: clamp(5rem, 10vw, 10rem) var(--page-padding);
  }

  .skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: var(--white);
    color: var(--ink);
    transform: translateY(-160%);
    transition: transform 180ms ease;
  }

  .skip-link:focus {
    transform: translateY(0);
  }
}

@layer components {
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.75rem;
    padding: 0.75rem var(--page-padding);
    color: var(--white);
    border-bottom: 1px solid transparent;
    transition: background-color 300ms ease, border-color 300ms ease, min-height 300ms ease;
  }

  .site-header.is-scrolled,
  .site-header.is-open {
    min-height: 4.75rem;
    background: rgba(17, 17, 15, 0.94);
    border-color: var(--line-light);
    backdrop-filter: blur(12px);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
  }

  .brand-mark {
    position: relative;
    display: grid;
    width: 2.7rem;
    aspect-ratio: 1;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.55rem;
  }

  .brand-mark::before {
    position: absolute;
    inset: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    content: "";
    transform: rotate(45deg);
  }

  .brand-mark > span {
    position: relative;
    z-index: 1;
  }

  .brand-copy {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--serif);
    font-size: 1.2rem;
    letter-spacing: 0.01em;
  }

  .brand-copy small {
    font-family: var(--sans);
    font-size: 0.54rem;
    letter-spacing: 0.18em;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.7vw, 3.5rem);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .site-nav a {
    position: relative;
    padding: 0.7rem 0;
  }

  .site-nav a:not(.nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: 0.35rem;
    left: 0;
    height: 1px;
    background: var(--copper-light);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
  }

  .site-nav a:hover::after,
  .site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-cta {
    padding: 0.75rem 1rem !important;
    color: var(--ink);
    background: var(--white);
  }

  .menu-toggle {
    display: none;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .menu-toggle-lines {
    display: grid;
    gap: 0.38rem;
    width: 1.6rem;
  }

  .menu-toggle-lines i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .menu-toggle-lines i:last-child {
    width: 70%;
    justify-self: end;
  }

  .site-header.is-open .menu-toggle-lines i:first-child {
    transform: translateY(0.22rem) rotate(45deg);
  }

  .site-header.is-open .menu-toggle-lines i:last-child {
    width: 100%;
    transform: translateY(-0.22rem) rotate(-45deg);
  }

  .hero {
    position: relative;
    display: flex;
    min-height: max(47rem, 100svh);
    align-items: flex-end;
    isolation: isolate;
    overflow: hidden;
    color: var(--white);
    background: #18202a;
  }

  .hero-image {
    position: absolute;
    z-index: -4;
    inset: 0;
    background: url("assets/images/home-before-after.webp") center center / cover no-repeat;
    scale: 1.015;
    animation: hero-in 1.3s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }

  .hero::after {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, transparent 23%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 45%);
    content: "";
  }

  .hero-before-shade {
    position: absolute;
    z-index: -3;
    inset: 0 50% 0 0;
    background: rgba(7, 8, 9, 0.44);
    backdrop-filter: blur(1.7px) saturate(0.62);
  }

  .hero-content {
    width: min(48%, 46rem);
    margin: 0 0 clamp(6rem, 12vh, 9rem) var(--page-padding);
    animation: copy-in 900ms 250ms ease both;
  }

  .hero h1 {
    max-width: 9ch;
  }

  .hero-intro {
    max-width: 36rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.65;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--copper-light);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .eyebrow > span {
    display: block;
    width: 2.5rem;
    height: 1px;
    background: currentColor;
  }

  .eyebrow--dark {
    color: #91603d;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
  }

  .button {
    display: inline-flex;
    min-height: 3.55rem;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0.85rem 1.45rem;
    border: 1px solid transparent;
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  }

  .button--light {
    color: var(--ink);
    background: var(--white);
  }

  .button--light:hover,
  .button--light:focus-visible {
    color: var(--white);
    background: transparent;
    border-color: var(--white);
  }

  .button--accent {
    width: 100%;
    color: var(--ink);
    background: var(--copper-light);
    border: 0;
    cursor: pointer;
  }

  .button--accent:hover,
  .button--accent:focus-visible {
    background: var(--white);
  }

  .button--accent:disabled {
    color: rgba(17, 17, 15, 0.55);
    background: #c9b8a4;
    cursor: wait;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
  }

  .text-link span {
    transition: transform 180ms ease;
  }

  .text-link:hover span,
  .text-link:focus-visible span {
    transform: translate(0.18rem, 0.18rem);
  }

  .text-link--dark {
    color: var(--ink);
  }

  .split-line {
    position: absolute;
    z-index: 5;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.68);
    pointer-events: none;
  }

  .split-line span {
    position: absolute;
    top: 54%;
    left: 50%;
    display: grid;
    width: 2.25rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(17, 17, 15, 0.45);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(8px);
  }

  .split-line span::before,
  .split-line span::after {
    position: absolute;
    width: 0.35rem;
    height: 0.35rem;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
    content: "";
  }

  .split-line span::before {
    left: 0.55rem;
    transform: rotate(45deg);
  }

  .split-line span::after {
    right: 0.55rem;
    transform: rotate(225deg);
  }

  .split-line--hero {
    inset-block: 5.75rem 0;
  }

  .split-label {
    position: absolute;
    z-index: 2;
    top: 8rem;
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-size: 0.62rem;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .split-label b {
    font-family: var(--serif);
    font-size: 0.8rem;
    font-weight: 400;
  }

  .split-label--before {
    right: calc(50% + 1.25rem);
  }

  .split-label--after {
    left: calc(50% + 1.25rem);
  }

  .hero-scroll {
    position: absolute;
    right: var(--page-padding);
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.61rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .hero-scroll span {
    width: 3.25rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.65);
  }

  .intro {
    display: grid;
    min-height: 45rem;
    align-items: start;
    grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.75fr);
    gap: 8vw;
    color: var(--ink);
    background: var(--paper);
  }

  .section-number {
    position: absolute;
    top: 2rem;
    right: var(--page-padding);
    color: rgba(17, 17, 15, 0.42);
    font-family: var(--serif);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }

  .intro-heading h2 {
    max-width: 11ch;
  }

  .intro-copy {
    align-self: end;
    max-width: 34rem;
    padding-bottom: 0.65rem;
  }

  .intro-copy .lead {
    margin-bottom: 1.5rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1.25;
  }

  .intro-copy > p:not(.lead) {
    max-width: 30rem;
    color: rgba(17, 17, 15, 0.68);
  }

  .intro-copy .text-link {
    margin-top: 2.5rem;
  }

  .transformation {
    padding-top: 0;
    color: var(--white);
    background: var(--ink);
  }

  .transformation-frame {
    position: relative;
    min-height: min(70vw, 49rem);
    margin-inline: calc(var(--page-padding) * -1);
    overflow: hidden;
  }

  .transformation-frame > img {
    width: 100%;
    height: 100%;
    min-height: min(70vw, 49rem);
    object-fit: cover;
  }

  .transformation-shadow {
    position: absolute;
    inset: 0 50% 0 0;
    background: rgba(9, 9, 8, 0.48);
    backdrop-filter: blur(1.2px) saturate(0.7);
  }

  .transformation-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 52%);
    content: "";
    pointer-events: none;
  }

  .split-line--project {
    inset-block: 0;
  }

  .transformation-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--page-padding);
    width: min(36%, 33rem);
    transform: translateY(-50%);
  }

  .transformation-copy h2 {
    font-size: clamp(2.8rem, 5vw, 5.8rem);
  }

  .transformation-copy > p:last-child {
    max-width: 27rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.7);
  }

  .image-status {
    position: absolute;
    z-index: 2;
    top: 2rem;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .image-status--left {
    right: calc(50% + 1.5rem);
  }

  .image-status--right {
    left: calc(50% + 1.5rem);
  }

  .project-details {
    display: grid;
    align-items: end;
    padding-top: 1.5rem;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--line-light);
  }

  .project-details p {
    min-height: 4.5rem;
    padding: 0 1rem 1.5rem 0;
  }

  .project-details p + p {
    padding-left: 1rem;
    border-left: 1px solid var(--line-light);
  }

  .project-index,
  .project-scope {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .project-title {
    font-family: var(--serif);
    font-size: 1.55rem;
  }

  .services {
    display: grid;
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
    gap: 8vw;
    color: var(--white);
    background: var(--ink);
  }

  .services-heading {
    position: sticky;
    top: 8rem;
    align-self: start;
  }

  .services-heading h2 {
    font-size: clamp(3rem, 5vw, 5.8rem);
  }

  .service {
    display: grid;
    min-height: 11.5rem;
    align-items: center;
    padding: 2rem 0;
    grid-template-columns: 3.25rem 1fr auto;
    gap: 1rem;
    border-top: 1px solid var(--line-light);
    transition: padding 220ms ease, color 220ms ease;
  }

  .service:last-child {
    border-bottom: 1px solid var(--line-light);
  }

  .service:hover {
    padding-inline: 1rem;
    color: var(--copper-light);
  }

  .service-number {
    align-self: start;
    padding-top: 0.55rem;
    color: var(--copper-light);
    font-family: var(--serif);
    font-size: 0.72rem;
  }

  .service h3 {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 2.8vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
  }

  .service p:not(.service-number) {
    max-width: 34rem;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.52);
  }

  .service-arrow {
    font-size: 1.5rem;
  }

  .portfolio {
    color: var(--ink);
    background: var(--paper);
  }

  .portfolio-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
  }

  .portfolio-heading > p {
    max-width: 26rem;
    padding-bottom: 0.5rem;
    color: rgba(17, 17, 15, 0.62);
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(1.5rem, 3vw, 3.5rem);
  }

  .project-card--wide {
    grid-column: 1 / -1;
  }

  .project-card figure {
    overflow: hidden;
    background: #c7c1b7;
  }

  .project-card--large figure {
    aspect-ratio: 4 / 3;
  }

  .project-card--tall figure {
    aspect-ratio: 3 / 4;
  }

  .project-card--wide figure {
    aspect-ratio: 16 / 7;
  }

  .project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.8);
    transition: scale 700ms cubic-bezier(0.2, 0.65, 0.3, 1), filter 500ms ease;
  }

  .project-card:hover img {
    scale: 1.035;
    filter: saturate(1);
  }

  .project-card--tall img {
    object-position: 54% center;
  }

  .project-card-copy {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.1rem 0 2rem;
    border-bottom: 1px solid var(--line-dark);
  }

  .project-card-copy h3 {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 400;
  }

  .project-card-copy p,
  .project-card-copy > span {
    margin-top: 0.3rem;
    color: rgba(17, 17, 15, 0.52);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .process {
    display: grid;
    grid-template-columns: minmax(17rem, 0.65fr) minmax(0, 1.35fr);
    gap: 8vw;
    color: var(--white);
    background: #20201c;
  }

  .process-intro h2 {
    max-width: 7ch;
    font-size: clamp(3.2rem, 5.2vw, 5.8rem);
  }

  .process-intro > p:last-child {
    max-width: 28rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.55);
  }

  .process-list {
    list-style: none;
    border-top: 1px solid var(--line-light);
  }

  .process-list li {
    display: grid;
    min-height: 8.5rem;
    align-items: center;
    grid-template-columns: 3rem minmax(10rem, 0.6fr) 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--line-light);
  }

  .process-list span {
    color: var(--copper-light);
    font-family: var(--serif);
    font-size: 0.72rem;
  }

  .process-list h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2.6rem);
    font-weight: 400;
  }

  .process-list p {
    color: rgba(255, 255, 255, 0.5);
  }

  .contact {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(25rem, 1.15fr);
    gap: 10vw;
    color: var(--white);
    background: var(--ink);
  }

  .contact-copy {
    display: flex;
    flex-direction: column;
  }

  .contact-copy h2 {
    max-width: 10ch;
  }

  .contact-copy > p:not(.eyebrow) {
    max-width: 32rem;
    margin-top: 1.75rem;
    color: rgba(255, 255, 255, 0.55);
  }

  .contact-note {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-top: auto;
    padding-top: 4rem;
  }

  .contact-note > span {
    color: rgba(255, 255, 255, 0.08);
    font-family: var(--serif);
    font-size: clamp(5rem, 9vw, 10rem);
    line-height: 0.7;
  }

  .contact-note p {
    padding-bottom: 0.1rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    line-height: 1.8;
    text-transform: uppercase;
  }

  .contact-form {
    display: grid;
    align-self: start;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    gap: 1.4rem;
    color: var(--ink);
    background: var(--paper);
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .contact-form label {
    display: grid;
    gap: 0.5rem;
  }

  .contact-form label > span {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .contact-form label small {
    color: rgba(17, 17, 15, 0.45);
    font-weight: 400;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 0.9rem 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(17, 17, 15, 0.35);
    border-radius: 0;
    outline: none;
    transition: border-color 180ms ease;
  }

  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    border-color: var(--copper);
  }

  .contact-form textarea {
    min-height: 7.5rem;
    resize: vertical;
  }

  .contact-form select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, currentColor 50%),
      linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 0.85rem) 50%, calc(100% - 0.55rem) 50%;
    background-repeat: no-repeat;
    background-size: 0.3rem 0.3rem;
  }

  .form-honey {
    position: absolute !important;
    left: -9999px !important;
  }

  .form-status {
    min-height: 1em;
    color: #89572f;
    font-size: 0.75rem;
  }

  .form-status.is-error {
    color: #9a3f2f;
  }

  .success-modal[hidden] {
    display: none;
  }

  .success-modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    padding: 1.25rem;
    place-items: center;
    opacity: 0;
    transition: opacity 240ms ease;
  }

  .success-modal.is-open {
    opacity: 1;
  }

  .success-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 6, 0.82);
    border: 0;
    cursor: pointer;
    backdrop-filter: blur(10px);
  }

  .success-modal-dialog {
    position: relative;
    width: min(100%, 38rem);
    padding: clamp(2rem, 6vw, 4.75rem);
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.38);
    opacity: 0;
    transform: translateY(1.5rem) scale(0.98);
    transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.65, 0.3, 1);
  }

  .success-modal.is-open .success-modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .success-modal-dialog::before {
    position: absolute;
    inset: 0.65rem;
    border: 1px solid rgba(17, 17, 15, 0.14);
    content: "";
    pointer-events: none;
  }

  .success-modal-close {
    position: absolute;
    z-index: 2;
    top: 1.4rem;
    right: 1.4rem;
    width: 2.5rem;
    aspect-ratio: 1;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(17, 17, 15, 0.25);
    border-radius: 50%;
    cursor: pointer;
  }

  .success-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.9rem;
    height: 1px;
    background: currentColor;
  }

  .success-modal-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .success-modal-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .success-modal-mark {
    position: relative;
    display: grid;
    width: 4rem;
    aspect-ratio: 1;
    margin-bottom: 2.25rem;
    place-items: center;
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.6rem;
  }

  .success-modal-mark::before {
    position: absolute;
    inset: 0.4rem;
    z-index: -1;
    background: var(--copper);
    content: "";
    transform: rotate(45deg);
  }

  .success-modal-dialog .eyebrow {
    margin-bottom: 1rem;
  }

  .success-modal-dialog h2 {
    font-size: clamp(3rem, 8vw, 5.25rem);
  }

  .success-modal-dialog > p:not(.eyebrow) {
    position: relative;
    max-width: 29rem;
    margin-top: 1.5rem;
    color: rgba(17, 17, 15, 0.66);
  }

  .button--modal {
    position: relative;
    margin-top: 2rem;
    color: var(--white);
    background: var(--ink);
    cursor: pointer;
  }

  .button--modal:hover,
  .button--modal:focus-visible {
    color: var(--ink);
    background: var(--copper-light);
  }

  .success-modal-number {
    position: absolute;
    right: -0.2rem;
    bottom: -2.2rem;
    color: rgba(17, 17, 15, 0.045);
    font-family: var(--serif);
    font-size: 8rem;
    line-height: 1;
    pointer-events: none;
  }

  .site-footer {
    padding: 4rem var(--page-padding) 1.5rem;
    color: var(--white);
    background: #090908;
  }

  .footer-top {
    display: grid;
    align-items: end;
    padding-bottom: 4rem;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--line-light);
  }

  .footer-top > p {
    justify-self: center;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--serif);
    font-size: 1.25rem;
  }

  .back-to-top {
    justify-self: end;
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .back-to-top span {
    margin-left: 0.5rem;
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @keyframes hero-in {
    from { opacity: 0; scale: 1.08; }
    to { opacity: 1; scale: 1.015; }
  }

  @keyframes copy-in {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@layer utilities {
  :focus-visible {
    outline: 2px solid var(--copper-light);
    outline-offset: 4px;
  }

  @media (max-width: 980px) {
    .site-header {
      min-height: 4.75rem;
    }

    .menu-toggle {
      display: flex;
      z-index: 2;
    }

    .site-nav {
      position: absolute;
      top: 0;
      right: 0;
      display: grid;
      width: min(26rem, 100%);
      min-height: 100svh;
      align-content: center;
      padding: 7rem var(--page-padding) 3rem;
      gap: 0;
      background: rgba(17, 17, 15, 0.98);
      transform: translateX(105%);
      transition: transform 320ms cubic-bezier(0.2, 0.65, 0.3, 1);
    }

    .site-nav.is-open {
      transform: translateX(0);
    }

    .site-nav a {
      padding: 1.1rem 0;
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 400;
      letter-spacing: -0.02em;
      text-transform: none;
      border-bottom: 1px solid var(--line-light);
    }

    .site-nav .nav-cta {
      margin-top: 2rem;
      padding: 1rem !important;
      font-family: var(--sans);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-align: center;
      text-transform: uppercase;
      border: 0;
    }

    .hero {
      min-height: max(43rem, 100svh);
    }

    .hero-content {
      width: min(46%, 32rem);
    }

    .hero-actions {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.75rem;
    }

    .intro,
    .services,
    .process,
    .contact {
      grid-template-columns: 1fr;
    }

    .intro {
      min-height: auto;
    }

    .intro-copy {
      max-width: 40rem;
    }

    .services-heading {
      position: static;
    }

    .process-intro > p:last-child {
      max-width: 40rem;
    }

    .contact-copy > p:not(.eyebrow) {
      max-width: 40rem;
    }

    .contact-note {
      display: none;
    }
  }

  @media (max-width: 700px) {
    :root {
      --page-padding: 1.15rem;
    }

    h1 {
      font-size: clamp(3.45rem, 17vw, 5.2rem);
    }

    h2 {
      font-size: clamp(2.85rem, 14vw, 4.5rem);
    }

    .brand-mark {
      width: 2.25rem;
      font-size: 1.2rem;
    }

    .brand-copy {
      font-size: 1rem;
    }

    .hero {
      min-height: 100svh;
      align-items: flex-end;
    }

    .hero-image {
      background-position: center center;
    }

    .hero-before-shade {
      right: 50%;
      background: rgba(7, 8, 9, 0.55);
      backdrop-filter: blur(2.2px) saturate(0.55);
    }

    .hero::after {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 47%);
    }

    .hero-content {
      width: calc(50% - 1.4rem);
      margin: 0 0 2.5rem var(--page-padding);
    }

    .hero-content .eyebrow {
      max-width: 10rem;
      font-size: 0.55rem;
      line-height: 1.5;
    }

    .hero-content .eyebrow > span {
      display: none;
    }

    .hero h1 {
      max-width: 6ch;
      font-size: clamp(3.2rem, 15vw, 4.75rem);
    }

    .hero-intro {
      margin-top: 1.25rem;
      font-size: 0.84rem;
      line-height: 1.55;
    }

    .hero-actions {
      margin-top: 1.25rem;
    }

    .hero-actions .button {
      width: 100%;
      min-height: 3rem;
      padding-inline: 0.7rem;
      font-size: 0.58rem;
    }

    .hero-actions .text-link {
      display: none;
    }

    .split-line--hero {
      left: 50%;
      inset-block: 4.75rem 0;
    }

    .split-label {
      top: 6.5rem;
      font-size: 0.53rem;
    }

    .split-label--before {
      right: calc(50% + 0.85rem);
    }

    .split-label--after {
      left: calc(50% + 0.85rem);
    }

    .split-label b,
    .hero-scroll {
      display: none;
    }

    .section-number {
      display: none;
    }

    .intro {
      gap: 3.5rem;
    }

    .intro-copy .lead {
      font-size: 1.45rem;
    }

    .transformation {
      padding-inline: 0;
    }

    .transformation-frame {
      min-height: 39rem;
      margin: 0;
    }

    .transformation-frame > img {
      min-height: 39rem;
      object-position: center;
    }

    .transformation-copy {
      top: auto;
      bottom: 3rem;
      left: var(--page-padding);
      width: calc(50% - 2rem);
      transform: none;
    }

    .transformation-copy h2 {
      font-size: clamp(2.35rem, 11vw, 3.5rem);
    }

    .transformation-copy > p:last-child {
      font-size: 0.76rem;
    }

    .image-status {
      top: 1rem;
    }

    .project-details {
      margin-inline: var(--page-padding);
      grid-template-columns: 1fr 1fr;
    }

    .project-details .project-scope {
      display: none;
    }

    .service {
      min-height: 10rem;
      grid-template-columns: 2.25rem 1fr auto;
    }

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

    .service p:not(.service-number) {
      font-size: 0.85rem;
    }

    .portfolio-heading {
      display: block;
    }

    .portfolio-heading > p {
      margin-top: 1.5rem;
    }

    .project-grid {
      grid-template-columns: 1fr;
    }

    .project-card--wide {
      grid-column: auto;
    }

    .project-card--large figure,
    .project-card--tall figure,
    .project-card--wide figure {
      aspect-ratio: 4 / 3;
    }

    .process-list li {
      min-height: 9rem;
      grid-template-columns: 2rem 1fr;
    }

    .process-list p {
      grid-column: 2;
      padding-bottom: 1.5rem;
      font-size: 0.88rem;
    }

    .contact {
      gap: 3.5rem;
    }

    .form-row {
      grid-template-columns: 1fr;
    }

    .contact-form {
      margin-inline: calc(var(--page-padding) * -1);
      padding: 2rem var(--page-padding);
    }

    .footer-top {
      align-items: start;
      grid-template-columns: 1fr auto;
      gap: 2rem;
    }

    .footer-top > p {
      display: none;
    }

    .footer-bottom {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.75rem;
    }
  }

  @media (max-width: 410px) {
    .hero-content {
      width: calc(55% - 1.4rem);
    }

    .hero h1 {
      font-size: 3.05rem;
    }

    .hero-intro {
      font-size: 0.78rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }

    .reveal {
      opacity: 1;
      transform: none;
    }
  }
}
