:root {
  color-scheme: light;
  --canvas: #f7f8fa;
  --surface: #fdfefe;
  --ink: #272d35;
  --muted: #626c78;
  --accent: #486b94;
  --line: #dce2e9;
  --soft: #edf2f8;
  --black: var(--ink);
  --white: var(--surface);
  --page-max-width: 1320px;
  --page-gutters: 112px;
  font-family: Satoshi, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-size: 18px;
  background: var(--canvas);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

button, a {
  touch-action: manipulation;
}

::selection {
  background: #dce7f6;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: calc(100% - var(--page-gutters));
  max-width: var(--page-max-width);
  margin-inline: auto;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 16px;
  padding: 6px 20px;
  border: 1px solid #ffffffb8;
  border-radius: 16px;
  background: #ffffffb8;
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 0 0 1px #272d3506, 0 8px 28px #272d3508, inset 0 1px 0 #fff;
}

.identity {
  display: inline-flex;
  align-items: center;
  font-family: Satoshi, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.06em;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.nav-link .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.nav-link:hover {
  background: #e9edf2b3;
}

.nav-link.is-current {
  background: #ffffffa6;
  box-shadow: 0 0 0 1px #272d3508, 0 2px 3px #272d3505;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff80;
  padding: 6px 10px;
  font-size: 14px;
}

.hero {
  padding-top: 106px;
  padding-bottom: 64px;
}

.hero h1 {
  max-width: 1160px;
  font-size: clamp(40px, 4.2vw, 64px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-wrap: pretty;
}

.experience-line {
  max-width: 620px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.experience-line span {
  color: var(--accent);
  font-weight: 500;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-contact .icon {
  width: 18px;
  height: 18px;
}

.selected-work {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.section-count {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 52px;
}

.work-card {
  min-width: 0;
  border-radius: 24px;
}

.work-image-frame {
  --glass-inset: 4px;
  --image-radius: 16px;
  position: relative;
  isolation: isolate;
  padding: var(--glass-inset);
  border: 1px solid transparent;
  border-radius: calc(var(--image-radius) + var(--glass-inset) + 1px);
  background: linear-gradient(145deg, #ffffff26, #ffffff08 55%, #e6edf51a);
  box-shadow: 0 1px 2px #263d5708, 0 4px 12px #263d5705, inset 0 1px 0 #ffffff80, inset 0 -1px 0 #506b8c14;
}

.work-image-frame::before,
.work-image-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* A clear rim picks up nearby image colors without frosting the artwork. */
.work-image-frame::after {
  z-index: 1;
  padding: calc(var(--glass-inset) + 1px);
  background: linear-gradient(145deg, #ffffff40, #ffffff05 32%, #6e91ba0d 68%, #ffffff26);
  -webkit-backdrop-filter: blur(3px) saturate(120%) brightness(1.02);
  backdrop-filter: blur(3px) saturate(120%) brightness(1.02);
  box-shadow: inset 1px 1px 1px #ffffff66, inset -1px -1px 1px #42668d14;
}

/* Opposing corner reflections follow the rounded edge of the material. */
.work-image-frame::before {
  z-index: 2;
  padding: 1px;
  background:
    radial-gradient(ellipse at 0% 0%, #fffffff2, #ffffff00 55%),
    radial-gradient(ellipse at 100% 100%, #ffffffb3, #ffffff00 50%),
    linear-gradient(135deg, #ffffff80, #54769b26 48%, #ffffff59);
  opacity: 0.75;
  transition: opacity 180ms ease;
}

.work-card:hover .work-image-frame::before,
.work-card:focus-visible .work-image-frame::before {
  opacity: 1;
}

.work-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--image-radius);
  isolation: isolate;
  background: var(--soft);
  aspect-ratio: 1227 / 840;
  box-shadow: inset 0 0 0 1px #272d3508;
}

.work-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.65,.3,1);
}

.image-action {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffffed;
  box-shadow: 0 2px 10px #272d3514;
  transition: transform 200ms ease, background-color 200ms ease;
}

.image-action .icon {
  width: 17px;
  height: 17px;
}

.work-card:hover .work-image > img, .work-card:focus-visible .work-image > img {
  transform: scale(1.025);
}

.work-card:hover .image-action {
  transform: translate(2px, -2px);
  background: #fff;
}

.work-caption {
  padding: 22px 10px 0;
}

.work-caption h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.project-description {
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}

.about-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 110px;
  padding-top: 104px;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}

.about-photo {
  position: relative;
  max-width: 360px;
}

.about-photo > img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 0.88;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy h2 {
  margin-bottom: 24px;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.about-copy > p {
  max-width: 520px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
}

/* The shared feature flag can enable case-study access from this homepage. */
.pw-gate-form {
  text-align: left;
}

.pw-gate-form .h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.pw-gate-form .utility-page-paragraph {
  margin-top: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.pw-gate-form .field-label-2 {
  margin-top: 24px;
  font-size: 14px;
}

.pw-gate-form .text-field-2 {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
}

.pw-gate-form .primary-button {
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font: inherit;
}

.pw-gate-form .primary-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pw-gate-form .w-form-fail {
  display: none;
  margin-top: 16px;
  color: #a63e32;
  font-size: 14px;
}

@media (min-width: 1600px) {
  .hero {
    padding-top: 126px;
    padding-bottom: 64px;
  }

}

@media (max-width: 1100px) {
  :root {
    --page-gutters: 80px;
  }

  .about-section {
    gap: 60px;
  }
}

@media (max-width: 900px) {
  :root {
    --page-gutters: 64px;
  }

  .site-header {
    min-height: 52px;
    gap: 20px;
    padding: 6px 20px;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(36px, 5.2vw, 48px);
  }

  .work-grid {
    column-gap: 22px;
  }

  .work-caption h3 {
    font-size: 23px;
  }

  .about-section {
    gap: 40px;
    padding-top: 70px;
  }
}

@media (max-width: 700px) {
  :root {
    --page-gutters: 40px;
  }

  .site-header {
    top: 12px;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 12px;
    padding: 6px 16px;
    min-height: 52px;
    border-radius: 16px;
  }

  .identity {
    font-size: 24px;
  }

  .site-header .nav-menu {
    flex-basis: 100%;
    flex-wrap: wrap;
    padding-top: 16px;
  }

  .site-header[data-enhanced] .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header[data-enhanced] .nav-menu {
    display: none;
  }

  .site-header[data-menu-open="true"] .nav-menu {
    display: flex;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(30px, 6.8vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.035em;
  }

  .experience-line {
    margin-top: 24px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 18px;
  }

  .work-grid {
    row-gap: 38px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 60px;
    padding-top: 60px;
  }

  .about-photo {
    max-width: 260px;
  }

  .about-photo > img {
    aspect-ratio: 1;
    object-position: center 25%;
  }

  .about-copy h2 {
    font-size: clamp(28px, 7.5vw, 38px);
  }


}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-image-frame {
    --glass-inset: 3px;
    --image-radius: 13px;
  }

  .work-caption {
    padding: 18px 8px 0;
  }

  .work-caption h3 {
    font-size: 24px;
  }

  .image-action {
    bottom: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .work-image-frame {
    background: var(--surface);
  }

  .work-image-frame::after {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more), (forced-colors: active) {
  .work-image-frame {
    border-color: currentColor;
    box-shadow: none;
  }

  .work-image-frame::before,
  .work-image-frame::after {
    display: none;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
  }
}
