:root {
  color-scheme: light;
  --ink: #171918;
  --muted: #626660;
  --paper: #f7f4ee;
  --paper-deep: #ece8df;
  --white: #fffefa;
  --accent: #244f5a;
  --accent-soft: #dfe9e8;
  --green: #3f806f;
  --line: rgba(23, 25, 24, .17);
  --shadow: 0 24px 70px rgba(26, 31, 29, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

a { color: inherit; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px clamp(26px, 5.5vw, 80px);
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 114px;
  height: auto;
  mix-blend-mode: multiply;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
}

.site-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

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

.site-nav a[aria-current="page"] { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
}

.display-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 7.4vw, 108px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .93;
}

.section-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1;
}

.body-copy {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
}

.body-copy p { margin: 0 0 1.2em; }

.body-copy p:last-child { margin-bottom: 0; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 208px;
  padding: 17px 20px 17px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.primary-button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-2px);
}

.text-link {
  padding: 8px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.arrow { font-size: 20px; line-height: 1; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(26px, 5.5vw, 80px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  gap: clamp(54px, 7vw, 108px);
  align-items: center;
  padding: clamp(76px, 8vw, 124px) clamp(28px, 7vw, 106px);
}

.home-copy { max-width: 700px; }

.home-copy .display-title { max-width: 780px; }

.home-copy .body-copy {
  max-width: 670px;
  margin-top: 34px;
}

.hero-project {
  position: relative;
  margin: 0;
}

.hero-project::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 72%;
  height: 76%;
  border: 1px solid rgba(36, 79, 90, .22);
  background: var(--accent-soft);
}

.hero-project img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 25, 24, .12);
  box-shadow: 0 28px 55px rgba(23, 25, 24, .16);
}

.capability-band {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) minmax(0, 1.15fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
  padding: clamp(58px, 6vw, 88px) clamp(28px, 7vw, 106px);
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 250, .52);
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.capability-list li:nth-child(odd) { margin-right: 18px; }

.capability-list li:nth-child(even) { margin-left: 18px; }

/* Portfolio */
.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(46px, 8vw, 120px);
  align-items: end;
  padding: clamp(72px, 8vw, 118px) clamp(28px, 7vw, 106px) clamp(58px, 6vw, 84px);
}

.portfolio-intro .display-title { max-width: 840px; }

.portfolio-intro .body-copy { margin: 0; }

.portfolio-section {
  padding: 0 clamp(28px, 7vw, 106px) clamp(74px, 8vw, 118px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 46px);
}

.project-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 254, 250, .58);
  text-align: left;
  cursor: zoom-in;
}

.project-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e6e7e6;
}

.project-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.project-image-wrap::after {
  content: 'View project ↗';
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(23, 25, 24, .9);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

.project-card:hover .project-image-wrap img { transform: scale(1.025); }

.project-card:hover .project-image-wrap::after,
.project-card:focus-visible .project-image-wrap::after {
  opacity: 1;
  transform: translateY(0);
}

.project-caption {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 19px 20px 21px;
}

.project-caption strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  font-weight: 400;
}

.project-caption span {
  max-width: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.lightbox {
  width: min(1180px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: #111312;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .45);
}

.lightbox::backdrop {
  background: rgba(9, 11, 10, .78);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  max-height: calc(100vh - 28px);
}

.lightbox-image-area {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 26px;
  background: #1a1d1c;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
}

.lightbox-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
}

.lightbox-title {
  margin: 0 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px;
  font-weight: 400;
}

.lightbox-type {
  margin: 0;
  color: #aeb6b2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox-controls { display: flex; gap: 8px; }

.lightbox-control {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.lightbox-control:hover { background: rgba(255,255,255,.1); }

/* Contact */
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(52px, 8vw, 118px);
  align-items: center;
  min-height: calc(100vh - 176px);
  padding: clamp(72px, 9vw, 138px) clamp(28px, 7vw, 106px);
}

.contact-main .display-title { max-width: 830px; }

.contact-main .body-copy {
  max-width: 650px;
  margin-top: 30px;
}

.details-card {
  position: relative;
  padding: clamp(28px, 3.4vw, 46px);
  border: 1px solid rgba(36, 79, 90, .2);
  background: rgba(255, 254, 250, .7);
}

.details-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 68px;
  height: 4px;
  background: var(--accent);
}

.card-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.details-card .section-title { font-size: clamp(30px, 3vw, 43px); }

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.availability {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.availability::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
}

.site-nav a:focus-visible,
.primary-button:focus-visible,
.text-link:focus-visible,
.project-card:focus-visible,
.lightbox-control:focus-visible,
.identity:focus-visible {
  outline: 3px solid rgba(36, 79, 90, .38);
  outline-offset: 4px;
}

@media (max-width: 920px) {
  .home-hero,
  .portfolio-intro,
  .contact-main {
    grid-template-columns: 1fr;
  }

  .home-hero { padding-bottom: 86px; }

  .hero-project {
    width: min(680px, 95%);
    margin: 20px auto 0;
  }

  .capability-band { grid-template-columns: 1fr; align-items: start; }

  .portfolio-intro .body-copy { max-width: 650px; }

  .contact-main { min-height: auto; }
}

@media (max-width: 680px) {
  .page-shell { box-shadow: none; }

  .site-header {
    align-items: flex-end;
    gap: 16px;
    padding: 18px 20px;
  }

  .brand-logo { width: 96px; }

  .site-nav { gap: 13px; font-size: 9px; }

  .home-hero,
  .portfolio-intro,
  .contact-main {
    padding: 58px 22px 62px;
  }

  .display-title { font-size: clamp(49px, 15vw, 68px); line-height: .96; }

  .body-copy { font-size: 16px; }

  .hero-project { width: calc(100% - 14px); }

  .hero-project::before { top: -14px; right: -14px; }

  .capability-band { padding: 52px 22px; }

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

  .capability-list li:nth-child(n) { margin: 0; }

  .portfolio-section { padding: 0 22px 72px; }

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

  .project-caption { align-items: flex-start; }

  .project-image-wrap::after { opacity: 1; transform: none; }

  .lightbox { width: calc(100% - 16px); max-height: calc(100vh - 16px); }

  .lightbox-inner { max-height: calc(100vh - 16px); }

  .lightbox-image-area { padding: 10px; }

  .lightbox-image { max-height: calc(100vh - 142px); }

  .lightbox-bar { padding: 14px; }

  .details-card { padding: 30px 25px; }

  .site-footer { flex-direction: column; padding: 20px 22px; }
}

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