:root {
  --background: #3f3f36;
  --foreground: #f9f0e6;
  --font-portfolio: 'Arial', 'Helvetica Neue', sans-serif;
  --page-inset: 8.7vw;
  --heading-size: 4.75rem;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-portfolio); -webkit-font-smoothing: antialiased; }
.page { min-height: 100svh; padding: 224px var(--page-inset) 80px; }
.page-title { margin: 0; font-size: var(--heading-size); line-height: 1.21; font-weight: 500; letter-spacing: -.025em; }
.body-copy { font-size: 1.5rem; line-height: 1.18; font-weight: 400; letter-spacing: .005em; }
.biography { margin: 34px 0 0; max-width: 495px; }
.navigation-wrap { margin-top: 132px; }
.home-navigation { display: grid; grid-template-columns: 25.2% 40.2% 1fr; align-items: start; }
.text-action { width: fit-content; display: inline-block; border: 0; padding: 4px 0; margin: 0; background: transparent; color: inherit; font: inherit; font-size: 2rem; line-height: 1.25; text-decoration: none; cursor: pointer; text-underline-offset: 8px; transition: opacity 140ms ease, transform 140ms ease; }
.text-action:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.text-action:active { opacity: .7; transform: translateY(1px); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; border-radius: 1px; }
.navigation-message { margin: 20px 0 0; min-height: 24px; font-size: 1rem; }
.works-page { padding-left: 8.45vw; padding-right: 8.45vw; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 137px; }
.project-card h2 { margin: 0; font-size: 2rem; line-height: 1.25; font-weight: 400; }
.project-card p { margin: 15px 0 0; max-width: 320px; }
.home-link { display: inline-block; margin-top: 100px; font-size: 1rem; color: inherit; text-underline-offset: 5px; }
@media (min-width: 1000px) { .home-link { margin-top: 410px; } }
@media (min-width: 1600px) { .page { max-width: 1600px; margin-inline: auto; } }
@media (max-width: 900px) {
  :root { --heading-size: 4rem; --page-inset: 8vw; }
  .page { padding-top: 150px; }
  .home-navigation { grid-template-columns: 1fr 1.5fr 1fr; gap: 24px; }
  .text-action, .project-card h2 { font-size: 1.65rem; }
  .projects { gap: 40px; margin-top: 100px; }
}
@media (max-width: 600px) {
  :root { --heading-size: clamp(2.5rem, 9.4vw, 3.5rem); --page-inset: 8vw; }
  .page { padding: 100px var(--page-inset) 48px; }
  .page-title { line-height: 1.22; }
  .body-copy { font-size: 1.2rem; line-height: 1.4; }
  .biography { margin-top: 30px; }
  .navigation-wrap { margin-top: 72px; }
  .home-navigation { grid-template-columns: 1fr; gap: 22px; }
  .projects { grid-template-columns: 1fr; gap: 56px; margin-top: 76px; }
  .project-card p { margin-top: 14px; max-width: 290px; }
}
@media (prefers-reduced-motion: reduce) { .text-action { transition: none; } }

/* Shared motion: only opacity and transforms animate, avoiding layout shifts. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
html { scroll-behavior: smooth; }
.page-transition { animation: page-enter 420ms var(--motion-ease) both; }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.text-action, .home-link, .project-link {
  -webkit-tap-highlight-color: transparent;
  transition: opacity 220ms ease, transform 260ms var(--motion-ease), text-decoration-color 220ms ease;
}
.text-action, .home-link, .project-link h2 {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 8px;
}
.project-link { display: block; width: fit-content; max-width: 100%; color: inherit; text-decoration: none; }
.project-link h2 { transition: text-decoration-color 220ms ease; }
@media (hover: hover) {
  .text-action:hover, .home-link:hover { text-decoration-color: currentColor; transform: translateY(-2px); }
  .project-link:hover { transform: translateY(-3px); }
  .project-link:hover h2 { text-decoration-color: currentColor; }
}
.text-action:active, .home-link:active, .project-link:active { opacity: .7; transform: translateY(0); }
.ux-project-list { list-style: none; padding: 0; margin: 137px 0 0; display: grid; gap: 64px; }
.ux-page .home-link { margin-top: 112px; }
@media (max-width: 900px) { .ux-project-list { margin-top: 100px; } }
@media (max-width: 600px) {
  .ux-project-list { margin-top: 76px; gap: 48px; }
  .ux-page .home-link { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-transition { animation: none; }
  .text-action, .home-link, .project-link, .project-link h2 { transition: none; transform: none; }
}

/* Homepage: compact navigation, broad introduction, two-column portfolio. */
.homepage-shell { max-width: 1600px; margin-inline: auto; }
.site-header { padding: 28px var(--page-inset) 0; display: flex; justify-content: flex-end; }
.site-header .navigation-wrap { margin: 0; position: relative; }
.site-header .home-navigation { display: flex; justify-content: flex-end; gap: 32px; }
.site-header .text-action { font-size: 1.0625rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-header .navigation-message { position: absolute; top: 100%; right: 0; margin: 8px 0 0; white-space: nowrap; font-size: .875rem; }
.home-page { padding-top: 120px; }
.home-intro .page-title { font-size: clamp(2.5rem, 5.65vw, 4.75rem); }
.home-intro .biography { max-width: 1040px; line-height: 1.45; margin-top: 30px; }
.featured-projects { margin-top: 140px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.project-placeholder { aspect-ratio: 4 / 3; background: #4a4a40; display: grid; place-items: center; }
.featured-project:nth-child(2) .project-placeholder, .featured-project:nth-child(3) .project-placeholder { background: #505046; }
.project-placeholder h2 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: 1; font-weight: 400; color: var(--foreground); }
@media (max-width: 900px) {
  .home-page { padding-top: 96px; }
  .featured-projects { margin-top: 100px; gap: 28px; }
}
@media (max-width: 600px) {
  .site-header { padding-top: 18px; }
  .site-header .home-navigation { gap: 24px; }
  .site-header .text-action { font-size: .9375rem; }
  .home-page { padding-top: 76px; }
  .home-intro .biography { margin-top: 24px; }
  .featured-projects { margin-top: 64px; grid-template-columns: 1fr; gap: 28px; }
}

/* Case-study surfaces share the portfolio typography and color tokens. */
.featured-link { display: block; color: inherit; text-decoration: none; }
.featured-cover { aspect-ratio: 4 / 3; background: #69665c; overflow: hidden; display: flex; justify-content: center; }
.featured-cover img { height: 100%; width: 100%; object-fit: contain; transition: transform 400ms var(--motion-ease); }
.featured-link h2 { font-size: 2rem; font-weight: 400; margin: 24px 0 10px; }
.featured-link p { margin: 0; max-width: 480px; font-size: 1.125rem; line-height: 1.6; }
@media (hover: hover) { .featured-link:hover img { transform: scale(1.035); } .featured-link:hover h2 { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; } }
.case-header { justify-content: space-between; align-items: center; gap: 24px; }
.case-back { color: inherit; font-size: 1rem; text-underline-offset: 6px; display: inline-block; padding-block: 12px; }
.case-page { padding: 112px var(--page-inset) 64px; }
.case-eyebrow { font-size: .875rem; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 24px; opacity: .8; }
.case-intro h1 { font-size: clamp(4rem, 9vw, 8rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; margin: 0 0 32px; }
.case-deck { font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.3; margin: 0 0 32px; }
.case-summary, .case-section > p:not(.case-eyebrow) { max-width: 760px; font-size: 1.1875rem; line-height: 1.75; margin-bottom: 24px; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 56px 0; padding-top: 28px; border-top: 1px solid #f9f0e633; }
.case-facts dt { font-size: .875rem; opacity: .7; margin-bottom: 12px; }
.case-facts dd { margin: 0; font-size: 1rem; line-height: 1.6; }
.case-hero { background: #69665c; display: flex; justify-content: center; padding: 40px; }
.case-hero img { max-height: 620px; width: auto; max-width: 100%; object-fit: contain; }
.case-section { margin-top: 112px; }
.case-section h2 { max-width: 900px; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 32px; }
.case-section h3 { font-size: 1.375rem; font-weight: 400; line-height: 1.4; margin: 0 0 14px; }
.case-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.case-insights p, .case-findings p { font-size: 1.0625rem; line-height: 1.7; margin: 0; }
.case-insights article { border-top: 1px solid #f9f0e633; padding-top: 24px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin: 48px 0; }
.case-figure { margin: 0; min-width: 0; }
.case-image { background: #eeece6; height: 460px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.case-image img { width: 100%; height: 100%; object-fit: contain; }
.case-figure figcaption { font-size: .9375rem; line-height: 1.6; margin-top: 16px; opacity: .8; }
.case-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-phones .case-image { height: 520px; padding: 16px; }
.case-comparison { max-width: 800px; }
.case-comparison .case-image { height: 560px; }
.case-findings { padding-left: 24px; max-width: 780px; display: grid; gap: 32px; margin-block: 40px; }
.case-footer { border-top: 1px solid #f9f0e633; margin-top: 80px; padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; }
@media (max-width: 700px) {
 .case-page { padding-top: 72px; }
 .case-header { align-items: flex-start; flex-wrap: wrap; }
 .case-facts, .case-insights { grid-template-columns: 1fr; gap: 24px; }
 .case-section { margin-top: 72px; }
 .case-gallery { gap: 32px; grid-template-columns: 1fr; }
 .case-image, .case-phones .case-image, .case-comparison .case-image { height: 460px; }
 .case-hero { padding: 20px; }
 .case-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .featured-cover img { transition: none; } .featured-link:hover img { transform: none; } }
