:root {
  color-scheme: light;
  --ink: #171918;
  --ink-raised: #232624;
  --ink-soft: #343835;
  --fog: #d7d8d3;
  --fog-light: #e4e5e0;
  --paper: #efefe9;
  --white: #f6f5ef;
  --red: #8f2634;
  --red-dark: #731c28;
  --red-light: #c77a83;
  --muted: #565b57;
  --line: rgba(23, 25, 24, 0.2);
  --line-light: rgba(246, 245, 239, 0.22);
  --font-sans: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --shell: 1320px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

main,
section,
article,
div,
header,
footer,
nav,
figure,
picture,
form,
label,
details {
  min-width: 0;
}

h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3,
p,
a,
span,
li,
label,
summary {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.06;
}

h1 {
  font-size: 4.25rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
}

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

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

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

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

:focus-visible {
  outline: 3px solid var(--red-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.shell {
  width: min(calc(100% - 4rem), var(--shell));
  margin-inline: auto;
}

.overline,
.caption-index,
.section-marker,
.service-strip span,
.service-title span,
.care-number,
.process-list > li > span,
.eyebrow,
.project-meta,
.field-label,
.page-index,
.detail-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.overline {
  color: var(--red-light);
}

.overline-light {
  color: rgba(246, 245, 239, 0.72);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}

.header-inner {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  white-space: nowrap;
}

.brand-name {
  position: relative;
  padding-left: 0.7rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-name::before {
  content: "";
  position: absolute;
  top: 0.1em;
  bottom: 0.1em;
  left: 0;
  width: 3px;
  background: var(--red);
}

.brand-detail {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  position: relative;
  padding-block: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-contact:hover {
  background: var(--red);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Buttons and links */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button-light:hover {
  background: var(--fog);
}

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

.button-dark:hover {
  background: var(--red);
}

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

.button-red:hover {
  background: var(--red-dark);
}

.button-quiet {
  border-color: var(--line-light);
  color: var(--white);
}

.button-quiet:hover {
  border-color: var(--white);
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  margin-top: 2rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--red);
  color: var(--ink);
  font-weight: 700;
}

.inline-link span {
  color: var(--red);
  transition: transform 160ms ease;
}

.inline-link:hover span {
  transform: translateX(4px);
}

.inline-link-light {
  border-color: rgba(246, 245, 239, 0.62);
  color: var(--white);
}

.inline-link-light span {
  color: var(--white);
}

/* Homepage hero */

.hero {
  padding: 4.4rem 0 2.2rem;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-copy > .overline {
  margin-bottom: 1.6rem;
}

.hero-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 5rem;
  align-items: end;
}

.hero h1 {
  max-width: 900px;
}

.hero-intro {
  padding-bottom: 0.35rem;
}

.hero-intro p {
  max-width: 480px;
  color: rgba(246, 245, 239, 0.72);
  font-size: 1.08rem;
}

.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.65fr 0.75fr;
  gap: 0.75rem;
  height: 284px;
  margin-top: 3.4rem;
  align-items: end;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
  transition: opacity 220ms ease, transform 420ms ease;
}

.hero-gallery:hover .hero-image img {
  opacity: 0.9;
}

.hero-image:hover img {
  transform: scale(1.025);
}

.hero-image-tall {
  height: 248px;
}

.hero-image-wide {
  height: 284px;
}

.hero-image-detail {
  height: 210px;
}

.hero-gallery-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: grid;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border-top: 3px solid var(--red);
  background: var(--ink);
}

.hero-gallery-caption strong {
  margin-block: 0.15rem;
  font-size: 1.15rem;
}

.hero-gallery-caption span:not(.caption-index) {
  color: rgba(246, 245, 239, 0.66);
  font-size: 0.82rem;
}

.caption-index {
  color: var(--red-light);
}

/* Core service strip */

.service-strip {
  border-bottom: 1px solid var(--line);
  background: var(--fog);
}

.service-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-strip a {
  display: grid;
  min-height: 154px;
  align-content: start;
  padding: 1.45rem 1.35rem 1.4rem 0;
  border-right: 1px solid var(--line);
}

.service-strip a:not(:first-child) {
  padding-left: 1.35rem;
}

.service-strip a:last-child {
  border-right: 0;
}

.service-strip span {
  margin-bottom: 1.1rem;
  color: var(--red);
}

.service-strip strong {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.service-strip small {
  max-width: 230px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-strip a:hover strong {
  color: var(--red);
}

/* Shared sections */

.section {
  padding: 6.8rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4.5rem;
}

.section-marker {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.6rem;
  color: var(--muted);
}

.section-marker span {
  color: var(--red);
}

.section-marker p {
  color: inherit;
  font: inherit;
}

.section-marker-light {
  color: rgba(246, 245, 239, 0.56);
}

.section-marker-light span {
  color: var(--red-light);
}

.section-heading {
  margin-bottom: 3.6rem;
}

.section-heading h2 {
  max-width: 790px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 4.5rem;
  align-items: end;
}

.split-heading p {
  max-width: 490px;
  font-size: 1.02rem;
}

.services-overview {
  background: var(--fog-light);
}

.service-rows {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}

.service-title {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: baseline;
}

.service-title span {
  color: var(--red);
}

.service-row p {
  max-width: 650px;
}

/* Lens Boy feature */

.work-feature {
  background: var(--ink-raised);
  color: var(--white);
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 2.6rem;
}

.work-heading .overline {
  margin-bottom: 0.75rem;
}

.work-heading h2 {
  font-size: 4.5rem;
}

.work-heading > p {
  max-width: 500px;
  color: rgba(246, 245, 239, 0.68);
  font-size: 1.03rem;
}

.lens-study {
  display: block;
  border: 1px solid var(--line-light);
  background: var(--paper);
  color: var(--ink);
}

.lens-study-header,
.lens-study-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.lens-study-header {
  border-bottom: 1px solid var(--line);
}

.lens-study-footer {
  border-top: 1px solid var(--line);
}

.lens-study-images {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1px;
  height: 550px;
  overflow: hidden;
  background: var(--ink);
}

.lens-study-images picture,
.lens-study-images img {
  width: 100%;
  height: 100%;
}

.lens-study-images img {
  object-fit: cover;
  object-position: top;
  transition: transform 500ms ease;
}

.lens-study:hover .lens-study-images img {
  transform: scale(1.012);
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.work-actions .inline-link {
  margin-top: 2.6rem;
}


.proof-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.6rem;
  border-top: 1px solid var(--line-light);
}

.proof-notes > div {
  padding: 1.35rem 1.4rem 0 0;
  border-right: 1px solid var(--line-light);
}

.proof-notes > div:not(:first-child) {
  padding-left: 1.4rem;
}

.proof-notes > div:last-child {
  border-right: 0;
}

.proof-notes span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--red-light);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.proof-notes p {
  color: rgba(246, 245, 239, 0.64);
  font-size: 0.9rem;
}

/* Managed care */

.care-section {
  background: var(--red-dark);
  color: var(--white);
}

.care-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
  gap: 4.5rem;
  align-items: end;
  margin-bottom: 3.6rem;
}

.care-heading p {
  color: rgba(246, 245, 239, 0.7);
  font-size: 1.02rem;
}

.care-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.care-list article {
  min-height: 250px;
  padding: 1.4rem 1.35rem;
  border-right: 1px solid var(--line-light);
}

.care-list article:last-child {
  border-right: 0;
}

.care-number {
  display: block;
  margin-bottom: 3.2rem;
  color: rgba(246, 245, 239, 0.58);
}

.care-list h3 {
  margin-bottom: 0.65rem;
}

.care-list p {
  color: rgba(246, 245, 239, 0.7);
  font-size: 0.92rem;
}

/* Process */

.process-section {
  background: var(--fog);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li {
  min-height: 235px;
  padding: 1.4rem 1.35rem;
  border-right: 1px solid var(--line);
}

.process-list li:last-child {
  border-right: 0;
}

.process-list > li > span {
  display: block;
  margin-bottom: 3rem;
  color: var(--red);
}

.process-list h3 {
  margin-bottom: 0.55rem;
}

.process-list p {
  font-size: 0.92rem;
}

/* About */

.about-section {
  border-top: 1px solid var(--line);
  background: var(--fog-light);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 5rem;
  align-items: start;
}

.portrait {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-raised);
}

.portrait picture,
.portrait img {
  width: 100%;
  height: 100%;
}

.portrait img {
  object-fit: cover;
  filter: grayscale(1) contrast(0.96);
}

.about-copy .overline {
  margin-bottom: 1rem;
  color: var(--red);
}

.about-copy h2 {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.about-copy > p:not(.overline) {
  max-width: 710px;
  margin-top: 1rem;
  font-size: 1.03rem;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

/* FAQ */

.faq-section {
  background: var(--fog);
}

.faq-list {
  max-width: 920px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  min-height: 72px;
  padding: 1.35rem 3rem 1.35rem 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 1.15rem;
  right: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  max-width: 760px;
  padding: 0 3rem 1.5rem 0;
}

/* CTA and footer */

.project-cta {
  padding: 5.5rem 0;
  background: var(--ink);
  color: var(--white);
}

.project-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: end;
}

.project-cta-grid .overline {
  grid-column: 1 / -1;
}

.project-cta h2 {
  font-size: 3.5rem;
}

.project-cta p:not(.overline) {
  max-width: 500px;
  color: rgba(246, 245, 239, 0.68);
}

.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--line-light);
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.4rem 4rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.25rem;
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand span,
.footer-legal {
  color: rgba(246, 245, 239, 0.55);
  font-size: 0.83rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.5rem;
}

.footer-nav a {
  color: rgba(246, 245, 239, 0.76);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}

/* Subpage hero */

.page-hero {
  padding: 5.8rem 0 4.8rem;
  background: var(--ink);
  color: var(--white);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4.5rem;
}

.page-index {
  padding-top: 0.65rem;
  color: var(--red-light);
}

.page-hero .overline {
  margin-bottom: 1.2rem;
}

.page-hero h1 {
  max-width: 980px;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-top: 2.4rem;
}

.page-intro > p {
  max-width: 650px;
  color: rgba(246, 245, 239, 0.7);
  font-size: 1.1rem;
}

.page-facts {
  display: grid;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
}

.page-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(246, 245, 239, 0.62);
  font-size: 0.84rem;
}

.page-facts dt,
.page-facts dd {
  margin: 0;
}

.page-facts dt {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.page-facts dd {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

/* Services page */

.service-detail-section {
  background: var(--fog-light);
}

.service-detail-list {
  border-top: 1px solid var(--line);
}

.service-detail {
  display: grid;
  grid-template-columns: 90px minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.service-detail-number {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.service-detail h2 {
  font-size: 2rem;
}

.service-detail-copy > p {
  max-width: 650px;
  margin-bottom: 1.25rem;
}

.tick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.5rem;
  list-style: none;
}

.tick-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 2px;
  background: var(--red);
}

.managed-band {
  background: var(--red-dark);
  color: var(--white);
}

.managed-band .split-heading p {
  color: rgba(246, 245, 239, 0.7);
}

.managed-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.managed-points article {
  min-height: 230px;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line-light);
}

.managed-points article:last-child {
  border-right: 0;
}

.managed-points h3 {
  margin-bottom: 0.7rem;
}

.managed-points p {
  color: rgba(246, 245, 239, 0.7);
}

.managed-points .detail-label {
  display: block;
  margin-bottom: 3rem;
  color: rgba(246, 245, 239, 0.55);
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.fit-list article {
  padding: 1.5rem 1.4rem 0 0;
  border-right: 1px solid var(--line);
}

.fit-list article:not(:first-child) {
  padding-left: 1.4rem;
}

.fit-list article:last-child {
  border-right: 0;
}

.fit-list h3 {
  margin-bottom: 0.65rem;
}

/* Portfolio page */

.case-study-section {
  background: var(--fog-light);
}

.case-study-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.case-study-intro h2 {
  font-size: 4.5rem;
}

.case-study-intro p {
  max-width: 540px;
  font-size: 1.04rem;
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-study-meta div {
  padding: 1.1rem 1rem 1.1rem 0;
  border-right: 1px solid var(--line);
}

.case-study-meta div:not(:first-child) {
  padding-left: 1rem;
}

.case-study-meta div:last-child {
  border-right: 0;
}

.case-study-meta dt {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.case-study-meta dd {
  font-weight: 600;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  grid-template-rows: 400px 260px;
  gap: 0.8rem;
  margin-top: 3rem;
}

.case-gallery figure {
  overflow: hidden;
  background: var(--ink-raised);
}

.case-gallery figure:first-child {
  grid-row: 1 / 3;
}

.case-gallery picture,
.case-gallery img {
  width: 100%;
  height: 100%;
}

.case-gallery img {
  object-fit: cover;
  object-position: top;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.case-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.case-notes article {
  padding: 1.5rem 1.5rem 0 0;
  border-right: 1px solid var(--line);
}

.case-notes article:not(:first-child) {
  padding-left: 1.5rem;
}

.case-notes article:last-child {
  border-right: 0;
}

.case-notes h3 {
  margin-bottom: 0.65rem;
}

.honesty-note {
  margin-top: 3rem;
  padding: 1.5rem 1.7rem;
  border-left: 4px solid var(--red);
  background: var(--fog);
}

.honesty-note p {
  max-width: 780px;
}

.work-index {
  background: var(--ink-raised);
  color: var(--white);
}

.work-index .split-heading p {
  color: rgba(246, 245, 239, 0.68);
}

.work-index-list {
  border-top: 1px solid var(--line-light);
}

.work-index-item {
  display: grid;
  grid-template-columns: 80px minmax(240px, 0.75fr) minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  min-height: 132px;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line-light);
}

.work-index-item > span {
  color: var(--red-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.work-index-item p {
  max-width: 540px;
  color: rgba(246, 245, 239, 0.65);
}

.work-index-item .item-link {
  color: var(--white);
  font-weight: 700;
}

/* Projects page */

.projects-section {
  background: var(--fog-light);
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-item {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.7fr) minmax(0, 1.3fr) auto;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.project-item > span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.project-item h2 {
  font-size: 1.75rem;
}

.project-copy {
  display: grid;
  gap: 0.75rem;
}

.project-meta {
  color: var(--muted);
}

.project-item > a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.github-band {
  background: var(--ink-raised);
  color: var(--white);
}

.github-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 4rem;
  align-items: end;
}

.github-summary p {
  color: rgba(246, 245, 239, 0.68);
}

/* Contact page */

.contact-section {
  background: var(--fog-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
  gap: 5rem;
}

.contact-sidebar {
  display: grid;
  align-content: start;
  gap: 2rem;
}

.contact-sidebar h2 {
  font-size: 2rem;
}

.contact-methods {
  display: grid;
  border-top: 1px solid var(--line);
}

.contact-methods div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-methods dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.contact-methods dd {
  font-weight: 600;
}

.contact-methods a {
  border-bottom: 1px solid var(--red);
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
}

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

.field-label {
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: 0;
  background: var(--paper);
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(143, 38, 52, 0.12);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-note {
  max-width: 440px;
  font-size: 0.82rem;
}

/* Responsive */

@media (max-width: 1120px) {
  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .hero-text-grid,
  .split-heading,
  .care-heading,
  .page-intro,
  .case-study-intro,
  .github-summary {
    gap: 2.8rem;
  }

  .section-grid,
  .page-hero-grid {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 2.7rem;
  }

  .care-list,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-list article:nth-child(2),
  .process-list li:nth-child(2) {
    border-right: 0;
  }

  .care-list article:nth-child(-n + 2),
  .process-list li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-light);
  }

  .process-list li:nth-child(-n + 2) {
    border-bottom-color: var(--line);
  }

  .project-cta-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .project-cta-grid > p:not(.overline) {
    grid-column: 1 / 2;
  }

  .project-cta-grid .button {
    grid-column: 2;
    grid-row: 2 / 4;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 70px;
  }

  .shell {
    width: min(calc(100% - 2.5rem), var(--shell));
  }

  .brand-detail {
    display: none;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-text-grid,
  .split-heading,
  .work-heading,
  .care-heading,
  .page-intro,
  .case-study-intro,
  .github-summary,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-intro p,
  .split-heading p,
  .work-heading > p,
  .care-heading p,
  .page-intro > p {
    max-width: 680px;
  }

  .service-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-strip a:nth-child(2) {
    border-right: 0;
  }

  .service-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 5.3rem 0;
  }

  .section-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-marker {
    padding-top: 0;
  }

  .lens-study-images {
    height: 470px;
  }

  .proof-notes,
  .managed-points,
  .fit-list,
  .case-study-meta,
  .case-notes {
    grid-template-columns: 1fr;
  }

  .proof-notes > div,
  .proof-notes > div:not(:first-child),
  .managed-points article,
  .fit-list article,
  .fit-list article:not(:first-child),
  .case-study-meta div,
  .case-study-meta div:not(:first-child),
  .case-notes article,
  .case-notes article:not(:first-child) {
    padding: 1.15rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-notes > div,
  .managed-points article {
    border-bottom-color: var(--line-light);
  }

  .proof-notes > div:last-child,
  .managed-points article:last-child,
  .fit-list article:last-child,
  .case-study-meta div:last-child,
  .case-notes article:last-child {
    border-bottom: 0;
  }

  .managed-points article {
    min-height: 0;
  }

  .managed-points .detail-label {
    margin-bottom: 1rem;
  }

  .about-grid {
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 2.8rem;
  }

  .service-detail {
    grid-template-columns: 60px minmax(210px, 0.7fr) minmax(0, 1.3fr);
    gap: 1.4rem;
  }

  .work-index-item,
  .project-item {
    grid-template-columns: 60px minmax(190px, 0.65fr) minmax(0, 1.35fr);
  }

  .work-index-item .item-link,
  .project-item > a {
    grid-column: 2 / -1;
    width: fit-content;
  }

  .contact-layout {
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .site-header {
    position: sticky;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    height: calc(100vh - var(--header-height));
    padding: 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--fog);
    overflow-y: auto;
  }

  .site-header[data-nav-open="true"] .site-nav {
    display: grid;
    align-content: start;
    gap: 0;
  }

  .site-nav a {
    min-height: 52px;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-contact {
    margin-top: 0.9rem;
    border-bottom: 0;
  }

  .hero-gallery {
    grid-template-columns: repeat(3, 78vw);
    height: 250px;
    margin-right: -1.25rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .hero-gallery::-webkit-scrollbar {
    display: none;
  }

  .hero-image-tall,
  .hero-image-wide,
  .hero-image-detail {
    height: 250px;
    scroll-snap-align: start;
  }

  .hero-gallery-caption {
    position: sticky;
    right: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    min-width: 210px;
    margin: 0 0 0.8rem 0.8rem;
  }

  .service-row,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-detail-number {
    margin-bottom: 0.4rem;
  }

  .service-title {
    grid-template-columns: 54px 1fr;
  }

  .work-heading h2,
  .case-study-intro h2 {
    font-size: 3.4rem;
  }

  .lens-study-images {
    grid-template-columns: 1.2fr 0.8fr;
    height: 400px;
  }

  .lens-study-title {
    font-size: 4.8rem;
  }

  .lens-study-header,
  .lens-study-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .care-list,
  .process-list {
    grid-template-columns: 1fr;
  }

  .care-list article,
  .care-list article:nth-child(2),
  .process-list li,
  .process-list li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .process-list li,
  .process-list li:nth-child(2) {
    border-bottom-color: var(--line);
  }

  .care-list article:last-child,
  .process-list li:last-child {
    border-bottom: 0;
  }

  .care-number,
  .process-list > li > span {
    margin-bottom: 1.2rem;
  }

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

  .portrait {
    max-width: 340px;
  }

  .page-hero {
    padding: 4rem 0 3.8rem;
  }

  .tick-list {
    grid-template-columns: 1fr;
  }

  .case-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 430px 220px;
  }

  .case-gallery figure:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .work-index-item,
  .project-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.8rem 1rem;
  }

  .work-index-item > p,
  .project-copy {
    grid-column: 2;
  }

  .work-index-item .item-link,
  .project-item > a {
    grid-column: 2;
  }

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

  .project-cta-grid > p:not(.overline),
  .project-cta-grid .button {
    grid-column: 1;
    grid-row: auto;
  }

  .project-cta-grid .button {
    width: fit-content;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

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

  .form-field-full,
  .form-actions {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-text-grid {
    gap: 2rem;
  }

  .button-row,
  .button-row .button,
  .project-cta .button,
  .form-actions .button {
    width: 100%;
  }

  .service-strip-grid {
    grid-template-columns: 1fr;
  }

  .service-strip a,
  .service-strip a:not(:first-child) {
    min-height: 0;
    padding: 1.15rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-strip a:last-child {
    border-bottom: 0;
  }

  .service-strip span {
    margin-bottom: 0.55rem;
  }

  .section {
    padding: 4.3rem 0;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .work-heading h2,
  .case-study-intro h2 {
    font-size: 2.8rem;
  }

  .lens-study-images {
    grid-template-columns: 1fr;
    height: 420px;
  }

  .lens-study-secondary {
    display: none;
  }

  .lens-study-title {
    font-size: 4.1rem;
  }

  .case-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 400px 240px 240px;
  }

  .case-gallery figure:first-child {
    grid-column: 1;
  }

  .faq-list summary {
    padding-right: 2.2rem;
  }

  .faq-list details p {
    padding-right: 1rem;
  }

  .project-cta h2 {
    font-size: 2.5rem;
  }
}

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

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