@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/figtree-400.ttf") format("truetype");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/figtree-500.ttf") format("truetype");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/figtree-600.ttf") format("truetype");
}

:root {
  --color-background: #f0f0f0;
  --color-surface: #ffffff;
  --color-text: rgba(0, 0, 0, 0.8);
  --color-text-muted: #777777;
  --color-accent: #d3703d;
  --color-logo-accent: #e56930;
  --color-border: #dedede;
  --color-border-strong: #cccccc;
  --color-focus: #1f6feb;
  --font-body: "Figtree", Arial, Helvetica, sans-serif;
  --font-display: "Figtree", Arial, Helvetica, sans-serif;
  --page-max: 1440px;
  --container-max: 1152px;
  --page-gutter-desktop: 144px;
  --page-gutter: 24px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  --space-9: 128px;
  --radius-card: 8px;
  --radius-media: 12px;
  --header-height: 144px;
  --transition-fast: 160ms;
  --transition-standard: 280ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 40px;
  left: 48px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  transform: translateY(-180%);
  transition: transform var(--transition-fast) var(--ease-standard);
}

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

.page-shell {
  position: relative;
  z-index: 2;
  width: min(var(--page-max), calc(100% - 96px));
  margin: 48px auto;
  overflow: clip;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
}

.inner {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: var(--header-height);
  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand-link {
  display: block;
  width: 300px;
  min-height: 65px;
}

.brand-link img {
  width: 300px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.site-nav > a {
  transition: color var(--transition-fast) var(--ease-standard);
}

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

.email-copy {
  display: flex;
  color: var(--color-text-muted);
}

.email-copy__address {
  display: block;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.email-copy__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 9px 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  transition:
    color var(--transition-fast) var(--ease-standard),
    border-color var(--transition-fast) var(--ease-standard),
    background-color var(--transition-fast) var(--ease-standard);
}

.email-copy__button:hover,
.email-copy__button:focus-visible {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--color-text);
  transition:
    transform var(--transition-fast) var(--ease-standard),
    opacity var(--transition-fast) var(--ease-standard);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.intro-section {
  border-bottom: 1px solid #eeeeee;
}

.intro-inner {
  padding: 64px 0 63px;
}

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

h1,
h2 {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  line-height: 1.2;
}

h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

p,
li,
dt,
dd,
.text-link {
  font-size: 16px;
  line-height: 1.5;
}

.intro-copy {
  max-width: 800px;
  margin-top: 24px;
}

.intro-copy p,
.about-copy p,
.project-story p {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.6;
}

.intro-copy p + p,
.about-copy p + p,
.project-story p + p {
  margin-top: 24px;
}

.work-section {
  padding: 64px 0;
  border-bottom: 1px solid #eeeeee;
}

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

.section-heading a,
.text-link {
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
  transition:
    color var(--transition-fast) var(--ease-standard),
    border-color var(--transition-fast) var(--ease-standard);
}

.section-heading a:hover,
.section-heading a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--color-accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  min-width: 0;
  min-height: 399px;
  flex-direction: column;
  padding: 24px;
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  background: #f7f7f7;
  transition:
    transform var(--transition-standard) var(--ease-standard),
    border-color var(--transition-standard) var(--ease-standard),
    background var(--transition-standard) var(--ease-standard);
}

.project-card--featured {
  min-height: 459px;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  color: var(--color-text);
  border-color: var(--color-accent);
  background: #fbfbfb;
}

.project-card__media {
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: 4px;
  background: #eeeeee;
}

.project-card--featured .project-card__media {
  height: 300px;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-standard) var(--ease-standard);
}

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

.project-card__content {
  display: grid;
  gap: 10px;
  padding-top: 24px;
}

.project-card__title {
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.2;
}

.project-card__scope {
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.5;
}

.project-card__view {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
}

.project-card:hover .project-card__view,
.project-card:focus-visible .project-card__view {
  color: var(--color-accent);
}

.focus-section {
  padding: 64px 0;
  border-bottom: 1px solid #eeeeee;
}

.focus-list {
  display: grid;
  gap: 48px;
  margin-top: 58px;
}

.focus-item {
  display: grid;
  grid-template-columns: 360px minmax(0, 600px);
  gap: 192px;
}

.focus-item h3 {
  color: var(--color-accent);
}

.focus-item p {
  color: var(--color-text-muted);
}

.contact-section {
  min-height: 144px;
  border-bottom: 1px solid #eeeeee;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 64px;
  min-height: 144px;
}

.contact-kicker {
  color: var(--color-text);
}

.contact-email {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1.2;
}

.footer-nav {
  display: flex;
  gap: 32px;
  color: var(--color-text-muted);
}

.social-link {
  display: grid;
  width: 48px;
  height: 32px;
  place-items: center;
  color: var(--color-text);
}

.social-link img {
  width: 16px;
  height: 16px;
}

.site-footer {
  min-height: 48px;
}

.footer-inner {
  display: grid;
  min-height: 48px;
  place-items: center;
}

.site-footer p {
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.5;
}

.page-intro {
  padding: 64px 0 48px;
}

.page-intro h1 {
  font-size: 36px;
  line-height: 1.2;
}

.page-intro p {
  max-width: 600px;
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 20px;
  line-height: 1.6;
}

.projects-section {
  padding-bottom: 96px;
  border-bottom: 1px solid #eeeeee;
}

.profile-hero {
  padding-top: 64px;
}

.profile-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 35%;
}

.about-section {
  padding: 48px 0 64px;
}

.about-copy {
  max-width: var(--container-max);
}

.about-copy h1 {
  font-size: 36px;
  line-height: 1.2;
}

.about-copy p {
  max-width: 800px;
}

.about-copy p:first-of-type {
  margin-top: 18px;
}

.experience-section {
  padding: 0 0 96px;
  border-bottom: 1px solid #eeeeee;
}

.experience-section h2 {
  margin-bottom: 65px;
}

.experience-list {
  display: grid;
  gap: 72px;
}

.experience-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 600px);
  gap: 76px;
}

.experience-meta h3 {
  color: var(--color-accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.experience-meta h3 span {
  display: block;
  color: inherit;
}

.experience-meta p {
  margin-top: 4px;
  color: var(--color-text-muted);
}

.experience-detail {
  display: grid;
  gap: 20px;
}

.experience-role h4 {
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.experience-role h4 span {
  color: inherit;
}

.experience-role ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding-left: 21px;
}

.experience-role li {
  color: var(--color-text-muted);
  padding-left: 0;
}

.project-hero-text {
  padding: 64px 0 80px;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 600px 245px;
  justify-content: space-between;
  gap: 80px;
}

.project-story h1 {
  color: var(--color-text);
  font-size: 36px;
  line-height: 1.2;
}

.project-story p:first-of-type {
  margin-top: 18px;
}

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

.project-note a {
  color: var(--color-text);
  border-bottom: 1px solid currentColor;
}

.project-meta {
  display: grid;
  align-content: start;
  gap: 24px;
  margin: 0;
  text-align: right;
}

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

.project-meta dd {
  margin: 4px 0 0;
  color: var(--color-text-muted);
}

.project-gallery {
  padding-bottom: 96px;
  border-bottom: 1px solid #eeeeee;
}

.media-stack {
  display: grid;
  gap: 72px;
}

.media-block {
  margin: 0;
}

.case-study-image {
  width: 100%;
  aspect-ratio: 1152 / 550;
  height: auto;
  border-radius: var(--radius-media);
  object-fit: cover;
  background: #eeeeee;
}

.not-found {
  min-height: 520px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 780ms var(--ease-standard) var(--reveal-delay, 0ms),
    transform 780ms var(--ease-standard) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(var(--page-max), calc(100% - 48px));
  }

  .site-nav {
    gap: 24px;
  }

  .project-hero-grid,
  .experience-item,
  .focus-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .project-meta {
    max-width: 600px;
    text-align: left;
  }

  .contact-inner {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 88px;
  }

  .skip-link {
    top: 24px;
    left: 14px;
  }

  .page-shell {
    width: calc(100% - 12px);
    margin: 28px 6px;
  }

  .inner {
    width: calc(100% - 48px);
  }

  .site-header {
    min-height: var(--header-height);
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand-link,
  .brand-link img {
    width: min(300px, calc(100vw - 84px));
  }

  .menu-toggle {
    display: block;
    flex: 0 0 44px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    left: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a {
    padding-top: 0;
  }

  .intro-inner {
    padding: 32px 0 48px;
  }

  h1 {
    max-width: none;
    font-size: 30px;
    line-height: 1.18;
  }

  h2,
  .page-intro h1,
  .about-copy h1,
  .project-story h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  h3,
  .project-card__title,
  .contact-email {
    font-size: 18px;
    line-height: 1.25;
  }

  .intro-copy p,
  .about-copy p,
  .project-story p,
  .page-intro p {
    font-size: 14px;
    line-height: 1.55;
  }

  p,
  li,
  dt,
  dd,
  .project-card__scope,
  .project-card__view,
  .section-heading a {
    font-size: 13px;
    line-height: 1.5;
  }

  .work-section,
  .focus-section,
  .page-intro,
  .about-section,
  .project-hero-text {
    padding: 48px 0;
  }

  .section-heading {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-card,
  .project-card--featured {
    min-height: 0;
    padding: 24px;
  }

  .project-card__media,
  .project-card--featured .project-card__media {
    height: 240px;
  }

  .project-card__content {
    padding-top: 24px;
  }

  .focus-list {
    gap: 32px;
    margin-top: 36px;
  }

  .focus-item {
    gap: 12px;
  }

  .profile-hero {
    padding-top: 32px;
  }

  .profile-image {
    height: 240px;
  }

  .experience-section {
    padding-bottom: 72px;
  }

  .experience-section h2 {
    margin-bottom: 40px;
  }

  .experience-list {
    gap: 48px;
  }

  .experience-meta h3 {
    font-size: 18px;
  }

  .project-hero-grid {
    gap: 32px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-gallery,
  .projects-section {
    padding-bottom: 72px;
  }

  .media-stack {
    gap: 48px;
  }

  .case-study-image {
    aspect-ratio: 329 / 240;
    border-radius: var(--radius-card);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    min-height: 216px;
    padding: 36px 0;
    text-align: center;
  }

  .footer-nav {
    gap: 32px;
  }
}

@media (max-width: 370px) {
  .inner {
    width: calc(100% - 32px);
  }

  .project-card__media,
  .project-card--featured .project-card__media {
    height: 210px;
  }

  h1 {
    font-size: 28px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
