:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #63676c;
  --pale: #f6f6f7;
  --line: #e7e7e9;
  --gutter: clamp(20px, 5.5vw, 84px);
  --radius: 24px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: white;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid #546c9f; outline-offset: 5px; }
[id] { scroll-margin-top: 32px; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 10px; left: 10px; background: white; padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 78px; }
.header nav { display: flex; align-items: center; gap: clamp(18px, 3.1vw, 46px); font-size: 14px; }
.header nav a:hover { color: var(--muted); }
.header > .pill { justify-self: end; }
.wordmark { justify-self: start; width: fit-content; font-size: 29px; font-weight: 700; line-height: 1; letter-spacing: -.085em; }
.wordmark span { margin-left: .025em; }

.pill { display: inline-flex; width: fit-content; gap: 15px; align-items: center; justify-content: center; padding: 0 20px; min-height: 48px; border: 0; border-radius: 100px; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pill.small { min-height: 41px; padding-inline: 16px; font-size: 13px; }
.pill.dark { background: var(--ink); color: white; }
.pill.dark:hover { background: #383838; }
.pill.white { background: white; color: var(--ink); }
.pill span { font-size: 16px; line-height: 1; }

.text-link {
  width: fit-content;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.text-link:hover { color: #52614d; }

h1 { max-width: 820px; font-size: clamp(40px, 5.1vw, 68px); line-height: 1.01; letter-spacing: -.052em; font-weight: 650; text-wrap: balance; }
.media { position: relative; isolation: isolate; overflow: hidden; background: #3b4037; border-radius: var(--radius); }
.media::after { content: ""; z-index: 0; position: absolute; inset: 44% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .68)); pointer-events: none; }
.media-caption { position: absolute; z-index: 1; bottom: 0; left: 0; right: 0; padding: clamp(17px, 2.5vw, 34px); display: flex; align-items: end; justify-content: space-between; gap: 15px; color: white; }
.round { display: inline-grid; flex: none; place-items: center; width: 45px; height: 45px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-size: 20px; }
a.round:hover { background: #e5e5e5; }
.round.light { background: var(--pale); }

.section { margin-top: clamp(74px, 9.3vw, 132px); }
.section-intro { margin-bottom: clamp(26px, 3.4vw, 43px); }
.label { font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: 12px; }
h2 { font-size: clamp(33px, 4.15vw, 54px); font-weight: 630; line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
.muted { color: var(--muted); }
.lead { margin-top: 16px; max-width: 480px; font-size: 16px; color: var(--muted); line-height: 1.55; }
h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.15; font-weight: 620; }

.media-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 14px; }
.media-link { display: block; }
.media-link:focus-visible { outline-offset: -5px; }
.media img { height: clamp(280px, 34vw, 480px); }
.media-caption p { color: rgb(255 255 255 / .86); font-size: 13px; margin-top: 5px; }

.portfolio { padding-block: clamp(53px, 7.4vw, 105px); background: var(--pale); }
.image-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-featured { grid-column: span 2; }
.project { overflow: hidden; border-radius: var(--radius); background: white; }
.project img { aspect-ratio: 1.55; height: auto; }
.project-featured img { aspect-ratio: 3.16; object-position: center 53%; }
.project-caption { display: flex; justify-content: space-between; align-items: center; min-height: 87px; gap: 10px; padding: 15px 20px; }
.project-caption p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.project-link { display: block; }
.project-link:focus-visible { outline-offset: -5px; }
.project-link:hover .round, .media-link:hover .round { background: #e7e7e9; }

html:has(.image-dialog[open]) { overflow: hidden; }
.image-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}
.image-dialog::backdrop { background: rgb(15 17 14 / .76); }
.image-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px clamp(12px, 3vw, 24px); }
.image-dialog-bar h2 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
.image-dialog-bar .round { background: var(--pale); cursor: pointer; font-size: 24px; }
.image-dialog img { max-height: calc(100dvh - 100px); object-fit: contain; background: var(--ink); }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audience-card { padding: clamp(24px, 4.2vw, 52px); border-radius: var(--radius); background: var(--pale); }
.audience-card p, .steps p { max-width: 365px; color: var(--muted); line-height: 1.55; margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 21px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.faq { display: grid; grid-template-columns: .85fr 1fr; align-items: start; gap: 30px; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding-block: 12px; list-style: none; font-weight: 550; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 28px 18px 0; color: var(--muted); line-height: 1.55; }

.contact { border-radius: var(--radius); background: var(--ink); color: white; display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 35px; padding: clamp(26px, 6.4vw, 85px); }
.contact p { margin-top: 16px; max-width: 330px; line-height: 1.55; color: #c3c3c5; }
.contact-fields { display: grid; gap: 10px; }
.contact-fields label { font-size: 14px; }
.contact-fields input { min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid #757575; background: #282828; color: white; border-radius: 8px; }
.contact-fields :focus-visible { outline-color: white; }
.contact-fields .pill { margin-top: 4px; cursor: pointer; }
.contact-fields .pill:hover { background: #e7e7e9; }
.contact-fields .pill:disabled { cursor: wait; opacity: .7; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-fields .form-status { margin: 0; color: white; }
.form-status:empty { margin-top: -10px; }

.footer { padding-top: clamp(62px, 9vw, 122px); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.footer-nav h2 { font-size: .875rem; font-weight: 650; line-height: 1.4; letter-spacing: normal; }
.footer-nav ul { margin: 5px 0 0; padding: 0; list-style: none; }
.footer-nav a { display: flex; align-items: center; min-height: 34px; width: fit-content; font-size: .875rem; color: var(--muted); }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; }

.footer-mark {
  display: block;
  container-type: inline-size;
  width: min(100%, 66.4vw, 925px);
  margin-block: clamp(42px, 6vw, 84px) clamp(18px, 3vw, 36px);
}
.footer-lettering {
  display: flex;
  align-items: baseline;
  gap: .035em;
  font-size: 17cqi;
  font-weight: 650;
  line-height: .82;
  letter-spacing: -.06em;
}
.footer-o {
  display: inline-block;
  flex: 1;
  height: 1ex;
  border: .09em solid currentColor;
  border-radius: 999px;
}
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-block: 16px 24px; font-size: 13px; color: var(--muted); }

@media (max-width: 950px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  :root { --radius: 19px; }
  .header { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 14px; }
  .header nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; margin-top: 18px; }
  .header > .pill { grid-column: 2; grid-row: 1; }
  h1 { text-wrap: initial; }
  .media-grid, .audience-grid, .steps, .faq, .contact { grid-template-columns: 1fr; }
  .media img { height: auto; aspect-ratio: 1.36; }
  .round { width: 41px; height: 41px; }
  .steps { gap: 24px; }
  .steps li::before { margin-bottom: 12px; }
  .contact { gap: 25px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
  .project-featured { grid-column: auto; }
  .project-featured img { aspect-ratio: 1.55; }
}
