:root {
  --blue: #c6e7ff;
  --cream: #fffdf5;
  --brown: #683600;
  --purple: #1c0068;
  --line: rgba(104, 54, 0, .3);
  --sans: Arial, Helvetica, sans-serif;
  --serif: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--brown); background: var(--cream); font-family: var(--sans); line-height: 1.6; }
body.blue { background: var(--blue); }
img, video { display: block; max-width: 100%; height: auto; }
img { width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(90%, 1360px); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 10; padding: .7rem 1rem; color: var(--cream); background: var(--purple); }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 1rem; }
.signature { display: block; flex: 0 0 84px; }
.signature img { mix-blend-mode: multiply; }
.site-header nav { display: flex; gap: .6rem; }
.site-header nav a { min-width: 94px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .55rem 1.25rem; border: 1px solid var(--brown); border-radius: 50px; background: var(--brown); color: var(--cream); text-align: center; font-size: .85rem; text-decoration: none; }
.site-header nav a[aria-current] { color: var(--brown); background: var(--cream); }
.site-header nav a:hover { background: var(--purple); color: var(--cream); border-color: var(--purple); }
.eyebrow { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.hero { padding-block: clamp(45px, 7vw, 110px) 80px; }
.hero > .eyebrow { display: flex; justify-content: space-between; margin-bottom: 1.1rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(4rem, 9.7vw, 9rem); font-weight: 400; letter-spacing: -.055em; line-height: .96; }
.hero-bottom { margin-top: 3rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.hero-bottom p { max-width: 37rem; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.5; }
.text-link { display: inline-flex; align-items: center; gap: .65rem; padding-block: .5rem; font-size: .9rem; }
.hero-bottom .text-link { flex-shrink: 0; }
.motif { overflow: hidden; white-space: nowrap; width: 100%; font-weight: 700; font-size: 1.5rem; letter-spacing: .06em; line-height: 1.4; color: var(--purple); }
.section-heading { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem; border-block: 1px solid var(--line); padding-block: 1rem; }
.section-heading h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.section-heading > span { font-size: .8rem; }
.projects { margin: 0; padding: 0; list-style: none; }
.projects > li { border-bottom: 1px solid var(--line); }
.projects > li:last-child { border-bottom: 0; }
.project-card { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(20px, 4vw, 64px); padding-block: clamp(32px, 4vw, 64px); color: var(--purple); text-decoration: none; }
.project-info { display: flex; flex-direction: column; align-items: start; }
.project-number { font-size: .8rem; margin-bottom: 1.6rem; color: var(--brown); }
.project-info h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.04em; line-height: 1.08; font-weight: 400; margin-bottom: 1.3rem; }
.project-meta { font-size: .85rem; color: var(--brown); }
.project-meta > span { display: block; margin-top: .25rem; }
.project-link { margin-top: auto; padding-top: 2.5rem; font-size: .9rem; display: flex; gap: 1rem; align-items: center; }
.project-link > span { font-size: 1.5rem; transition: transform .2s ease; }
.project-card:hover .project-link > span { transform: translate(3px, -3px); }
.project-card:hover h3 { text-decoration: underline; text-underline-offset: .12em; text-decoration-thickness: 1px; }
.project-cover { background: var(--cream); }
.project-cover img { aspect-ratio: 3 / 2; object-fit: contain; }
.work { padding-bottom: 4rem; }
.contact { padding-block: 3.5rem 2rem; background: var(--purple); color: var(--blue); }
.contact-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 3.5rem; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -.04em; line-height: 1; }
.email { font-size: clamp(1rem, 2vw, 1.7rem); display: inline-flex; gap: 1rem; align-items: center; }
.contact-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; font-size: .8rem; padding-top: 1.5rem; border-top: 1px solid rgba(198, 231, 255, .4); }
.contact-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.contact-bottom nav a { padding-block: .6rem; }
.contact-bottom p { margin-left: auto; }
.contact a:focus-visible { outline-color: var(--blue); }
.back-top { padding-block: .6rem; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 5rem; padding-block: 3rem 6rem; }
.about-heading { grid-column: 1; grid-row: 1; align-self: start; }
.about h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(4.2rem, 7vw, 7rem); line-height: .95; letter-spacing: -.055em; margin-top: 1.5rem; }
.about-art { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.about-art img { mix-blend-mode: multiply; }
.about-copy { grid-column: 1; grid-row: 2; margin-top: 3rem; max-width: 40rem; }
.about-copy > p { margin-bottom: 1.5rem; }
.standfirst { color: var(--purple); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.35; }
.case-study { padding-block: 2.5rem 5rem; }
.case-heading { margin-bottom: 3rem; }
.case-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; margin-block: 2.5rem 1.2rem; }
.case-meta p { display: flex; gap: 1.5rem; text-align: right; }
.case-heading h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 400; color: var(--purple); line-height: 1.03; letter-spacing: -.055em; max-width: 1120px; overflow-wrap: break-word; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.gallery figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(100%, 900px); justify-self: center; }
.artwork { display: block; background: var(--cream); }
.artwork:hover { outline: 1px solid var(--brown); outline-offset: 5px; }
.project-story { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; padding-block: 4rem; }
.project-story h2 { color: var(--purple); font-weight: 400; font-size: 1.7rem; margin-bottom: 1rem; }
.story-copy { max-width: 48rem; }
.story-copy > p + p { margin-top: 1.5rem; }
.voltage-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1000px; margin-inline: auto; align-items: start; }
.film video { width: 100%; background: var(--cream); }
.film figcaption { font-size: .8rem; margin-top: .8rem; line-height: 1.5; }
.film figcaption a { display: inline-block; padding-block: .4rem; }
.film-details { display: grid; gap: 1.5rem; }
.image-note { font-size: .8rem; margin-block: 1.5rem 3.5rem; }
.next-project { display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; align-items: end; }
.next-project > a:last-child { text-align: right; text-decoration: none; max-width: 70%; }
.next-project > a:last-child > span { display: block; font-size: .8rem; margin-bottom: .6rem; }
.next-project strong { display: block; color: var(--purple); font-size: clamp(1.3rem, 2.7vw, 2.5rem); font-weight: 400; line-height: 1.2; }
.next-project a:hover strong { text-decoration: underline; }

@media (max-width: 900px) {
  .about { gap: 2rem; }
  .project-story { gap: 2rem; }
  .contact-top { align-items: start; flex-direction: column; }
  .contact-bottom p { margin-left: 0; }
  .back-top { margin-left: auto; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 1rem; }
  .wrap { width: 90%; }
  .site-header { min-height: 90px; gap: .5rem; }
  .signature { flex-basis: 65px; }
  .site-header nav { gap: .3rem; }
  .site-header nav a { min-width: 0; padding: .65rem .85rem; font-size: .75rem; }
  .hero { padding-block: 3rem 3.5rem; }
  .hero h1 { font-size: clamp(3.8rem, 15vw, 6.5rem); max-width: 9ch; }
  .hero-bottom { flex-direction: column; align-items: start; margin-top: 2rem; gap: 1.2rem; }
  .hero-bottom p { max-width: 28rem; }
  .section-heading { gap: .75rem; }
  .section-heading .motif { font-size: 1.2rem; }
  .project-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-info { display: grid; grid-template-columns: 1fr auto; }
  .project-number { margin-bottom: .8rem; grid-column: 1; }
  .project-info h3 { grid-column: 1 / -1; font-size: clamp(1.9rem, 7.5vw, 3rem); margin-bottom: 1rem; max-width: 20ch; }
  .project-meta { grid-column: 1; }
  .project-meta > span { display: inline; margin-left: .6rem; }
  .project-link { grid-column: 2; align-self: end; padding-top: 0; font-size: .8rem; gap: .6rem; }
  .work { padding-bottom: 2rem; }
  .contact { padding-block: 2.5rem 1.5rem; }
  .contact-top { padding-bottom: 2rem; gap: 1.5rem; }
  .email { font-size: clamp(.9rem, 4.4vw, 1.4rem); gap: .5rem; }
  .contact-bottom { align-items: start; gap: 1rem; }
  .contact-bottom nav { width: 100%; }
  .about { grid-template-columns: 1fr; padding-block: 2.5rem 3rem; gap: 2rem; }
  .about-heading { grid-column: 1; grid-row: 1; }
  .about-art { grid-column: 1; grid-row: 2; max-width: 420px; justify-self: center; }
  .about-art img { max-height: 490px; object-fit: contain; }
  .about-copy { grid-column: 1; grid-row: 3; margin-top: 0; }
  .case-study { padding-block: 1.5rem 3rem; }
  .case-heading { margin-bottom: 2rem; }
  .case-meta { margin-top: 1.5rem; }
  .case-meta p { max-width: 75%; gap: .6rem; }
  .case-heading h1 { font-size: clamp(2.7rem, 10vw, 4.5rem); }
  .gallery, .voltage-gallery { grid-template-columns: 1fr; gap: 1.2rem; }
  .gallery figure:last-child:nth-child(odd) { grid-column: 1; }
  .film { max-width: 450px; justify-self: center; }
  .film-details { gap: 1.2rem; }
  .project-story { grid-template-columns: 1fr; padding-block: 2.5rem; gap: 1.5rem; }
  .project-story h2 { margin-bottom: .4rem; }
  .next-project { gap: 1rem; }
  .next-project > a:last-child { max-width: 68%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
