/* ==========================================================================
   Design tokens — sourced directly from the Figma "portfolio 2026" file
   (Marty team) via its shared design variables and rendered node styles.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-text: #1e1e1e;
  --color-text-secondary: #303030;
  --color-text-faint: #757575;
  --color-text-tools: #45453d;
  --color-link-muted: rgba(30, 30, 30, 0.8);
  --color-card-copy: rgba(30, 30, 30, 0.85);
  --color-surface: #f5f5f5;
  --color-surface-tools: #f8f8f2;
  --color-border: #d9d9d9;
  --color-project-title-bg: rgba(224, 224, 224, 0.3);
  --color-hero-bg: #e0e0e0;
  --color-hero-panel: #414141;
  --color-trajekt-tint: rgba(131, 118, 189, 0.05);
  --color-trajekt-accent: #8274bf;
  --color-trajekt-bg: #f2f2e6;
  --color-trajekt-bg-alt: #e3e3db;
  --color-trajekt-improvement-text: #4b4b4b;

  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-hero-title-size: 64px;
  --text-hero-title-weight: 600;
  --text-hero-subtitle-size: 20px;
  --text-hero-subtitle-weight: 500;

  --text-heading-size: 24px;
  --text-heading-weight: 600;
  --text-heading-tracking: -0.02em;

  --text-subheading-size: 20px;
  --text-subheading-weight: 400;

  --text-home-subtitle-size: 32px;
  --text-home-subtitle-weight: 600;
  --text-home-subtitle-tracking: -0.02em;

  --text-body-size: 16px;
  --text-body-weight: 400;
  --text-body-weight-strong: 600;

  --space-200: 8px;
  --space-300: 12px;
  --space-400: 16px;
  --space-600: 24px;
  --space-800: 32px;
  --space-1200: 48px;
  --space-1600: 64px;
  --space-2400: 96px;
  --space-4000: 160px;

  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 10px;
  --stroke: 1px;

  --page-width: 1200px;

  --hover-darken: brightness(0.93);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.4;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--space-600);
}

.section {
  padding-block: var(--space-1600);
}

.section-heading {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight);
  letter-spacing: var(--text-heading-tracking);
}

.home-section-heading {
  font-size: var(--text-home-subtitle-size);
  font-weight: var(--text-home-subtitle-weight);
  letter-spacing: var(--text-home-subtitle-tracking);
}

.section-subheading {
  font-size: var(--text-subheading-size);
  font-weight: var(--text-subheading-weight);
  color: var(--color-link-muted);
}

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-400);
  margin-bottom: var(--space-600);
}

/* Underlined muted link used for "Learn more >", "Download PDF >" etc. */
.text-link {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--text-subheading-size);
  color: var(--color-link-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: var(--space-200) var(--space-400);
  margin: calc(var(--space-200) * -1) calc(var(--space-400) * -1);
  border-radius: var(--radius);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.button-full:hover,
.button-full:focus-visible {
  filter: var(--hover-darken);
}

/* ==========================================================================
   Hover: any clickable / interactive surface slightly darkens on hover
   ========================================================================== */

.interactive {
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.interactive:hover,
.interactive:focus-visible {
  filter: var(--hover-darken);
}

/* ==========================================================================
   Horizontal scroll rows — Prime-Video-style scroll affordance
   ========================================================================== */

.hscroll-wrap {
  position: relative;
}

.hscroll {
  display: flex;
  align-items: stretch;
  gap: var(--space-600);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.hscroll-wrap::before,
.hscroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.hscroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}

.hscroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg), transparent);
}

.hscroll-wrap.is-scrollable:not([data-at-start="true"])::before {
  opacity: 1;
}

.hscroll-wrap.is-scrollable:not([data-at-end="true"])::after {
  opacity: 1;
}

.hscroll-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, filter 0.15s ease;
  z-index: 3;
}

.hscroll-arrow svg {
  width: 18px;
  height: 18px;
}

.hscroll-arrow:hover {
  filter: var(--hover-darken);
}

.hscroll-wrap.is-scrollable:hover .hscroll-arrow {
  opacity: 1;
}

.hscroll-arrow--prev {
  left: var(--space-200);
}

.hscroll-arrow--next {
  right: var(--space-200);
}

.hscroll-wrap[data-at-start="true"] .hscroll-arrow--prev,
.hscroll-wrap[data-at-end="true"] .hscroll-arrow--next,
.hscroll-wrap:not(.is-scrollable) .hscroll-arrow {
  display: none;
}

@media (hover: none) {
  .hscroll-arrow {
    display: none !important;
  }
}

/* ==========================================================================
   Pill nav (Header Pages) — shown on every page except Home
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: var(--stroke) solid var(--color-border);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-600);
  padding: var(--space-800) 5vw;
}

.site-nav__logo {
  padding: var(--space-200);
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.site-nav__logo:hover,
.site-nav__logo:focus-visible {
  background-color: var(--color-surface);
}

.site-nav__logo img {
  height: 98px;
  width: auto;
}

.site-nav__pills {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-400);
  min-width: 0;
}

.nav-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 106px;
  padding: var(--space-200);
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible,
.nav-pill[aria-current="page"] {
  background-color: var(--color-surface);
}

.nav-pill__thumb {
  width: 100%;
  height: 55px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.nav-pill__img--contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-pill__img--cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-pill__label {
  font-size: 13px;
  text-align: center;
  color: var(--color-text);
  line-height: 1.2;
}

.site-nav__about {
  flex-shrink: 0;
  font-size: var(--text-body-size);
  color: #2c2c2c;
  padding: var(--space-200) var(--space-400);
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.site-nav__about:hover,
.site-nav__about:focus-visible,
.site-nav__about[aria-current="page"] {
  background-color: var(--color-surface);
}

/* ==========================================================================
   Project title banner (used on every project page + About)
   ========================================================================== */

.project-title {
  background: var(--color-project-title-bg);
  text-align: center;
  padding: var(--space-1200) var(--space-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-200);
}

.project-title__heading {
  font-size: var(--text-hero-title-size);
  font-weight: var(--text-hero-title-weight);
  line-height: 1;
  color: var(--color-text);
}

.project-title__subtitle {
  font-size: var(--text-body-size);
  color: var(--color-text-faint);
  max-width: 640px;
}

/* ==========================================================================
   Home hero
   ========================================================================== */

.hero {
  background: var(--color-hero-bg);
  padding: var(--space-2400) var(--space-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__panel {
  background: var(--color-hero-panel);
  border-radius: 20px;
  display: flex;
  align-items: center;
  max-width: 845px;
  width: 100%;
  overflow: hidden;
}

.hero__intro {
  flex: 1 1 60%;
  padding: var(--space-1600) var(--space-2400);
  text-align: center;
}

.hero__name {
  font-size: var(--text-hero-title-size);
  font-weight: var(--text-hero-title-weight);
  line-height: 1;
  color: #fff;
}

.hero__role {
  margin-top: var(--space-200);
  font-size: var(--text-hero-subtitle-size);
  font-weight: var(--text-hero-subtitle-weight);
  color: #f2f2f2;
}

.hero__photo-wrap {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-600);
}

.hero__photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 300 / 228;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Project cards (Home grid) — gradient bg, tags, title, description, image
   ========================================================================== */

.project-card {
  --card-fg: var(--color-text);
  --card-copy: var(--color-card-copy);
  width: 300px;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card--dark {
  --card-fg: #ffffff;
  --card-copy: rgba(255, 255, 255, 0.85);
}

.project-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-400);
  padding: var(--space-600) var(--space-600) 0;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-200);
}

.project-card__tag {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.8);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.project-card--dark .project-card__tag {
  color: rgba(0, 0, 0, 0.85);
}

.project-card__title {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight);
  letter-spacing: var(--text-heading-tracking);
  color: var(--card-fg);
}

.project-card__description {
  font-size: var(--text-body-size);
  color: var(--card-copy);
}

.project-card__image {
  height: 218px;
  margin-top: var(--space-400);
}

.project-card__image img {
  width: 100%;
  height: 100%;
}

.project-card__image--cover img {
  object-fit: cover;
}

.project-card__image--contain img {
  object-fit: contain;
}

/* ==========================================================================
   Generic content cards
   ========================================================================== */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-600);
}

.card--outlined {
  background: transparent;
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-600);
}

.card--outlined .card {
  border-radius: var(--radius-lg);
}

.card h3 {
  font-size: var(--text-subheading-size);
  font-weight: var(--text-subheading-weight);
  margin-bottom: var(--space-300);
}

.card p {
  color: var(--color-text);
  white-space: pre-line;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-600);
}

/* Trajekt uses a project-specific tinted card instead of the plain #f5f5f5 one */
.card--trajekt {
  background: var(--color-trajekt-tint);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-600);
  width: 340px;
  height: 479px;
  overflow-y: auto;
}

.card--trajekt h3 {
  font-size: var(--text-subheading-size);
  font-weight: var(--text-subheading-weight);
  color: var(--color-text);
  margin-bottom: var(--space-300);
}

.card--trajekt p {
  color: var(--color-text-secondary);
  white-space: pre-line;
}

/* Trajekt's two full-width image showcases and its Improvements card share
   a purple-tinted background family, distinct from the rest of the site */
.trajekt-feature {
  background: var(--color-trajekt-bg);
  padding: var(--space-1200) var(--space-1600);
}

.trajekt-feature--alt {
  background: var(--color-trajekt-bg-alt);
}

.trajekt-feature__heading {
  color: var(--color-trajekt-accent);
}

.trajekt-improvements {
  background: var(--color-trajekt-bg);
  padding-block: var(--space-1600);
  /* Same horizontal text position as a centered 1200px container plus its
     own 64px inset, but on a box that spans the full screen width so the
     background fill has no side margins. */
  padding-inline: max(var(--space-1600), calc((100% - var(--page-width)) / 2 + var(--space-1600)));
}

.trajekt-improvements__heading {
  color: var(--color-trajekt-accent);
}

.trajekt-improvements .improvement-list li {
  color: var(--color-trajekt-improvement-text);
  font-weight: var(--text-heading-weight);
}

.about-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1200);
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: var(--space-600);
}

.about-card__photo {
  flex-shrink: 0;
  width: 315px;
  height: 296px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.about-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__photo--tall {
  width: 288px;
  height: 327px;
}

.about-card__body {
  flex: 1 1 320px;
  min-width: 240px;
}

.about-card__body h3 {
  font-size: var(--text-subheading-size);
  font-weight: var(--text-subheading-weight);
  margin-bottom: var(--space-300);
}

.image-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hscroll .image-card {
  width: 400px;
  height: 479px;
}

.hscroll .image-card--wide {
  width: 600px;
}

/* Stacked full-width case-study sections (Robson: inset with padding) */
.stacked-section {
  padding: var(--space-300) var(--space-1200);
}

.stacked-section .image-card {
  width: 100%;
}

/* Lodge Final Renders: single-column, uncropped, fixed-height cards */
.render-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
  padding: var(--space-600);
}

.render-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-img {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-600);
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: default;
}

.lightbox-overlay__close {
  position: absolute;
  top: var(--space-600);
  right: var(--space-600);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox-overlay__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-overlay__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 1;
}

.lightbox-overlay__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-overlay__nav--prev {
  left: var(--space-600);
}

.lightbox-overlay__nav--next {
  right: var(--space-600);
}

body.lightbox-open {
  overflow: hidden;
}

/* ==========================================================================
   Reference / testimonial cards (About page)
   ========================================================================== */

.reference-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-800);
  align-items: center;
}

.reference-card__photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.reference-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reference-card__body {
  flex: 1 1 320px;
  min-width: 240px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-400);
}

.reference-card__company {
  font-size: var(--text-subheading-size);
  color: var(--color-text);
}

.reference-card__source {
  font-size: 18px;
  color: var(--color-text);
  margin-top: var(--space-200);
}

.reference-card__quote {
  margin-top: var(--space-300);
  color: var(--color-text);
}

/* ==========================================================================
   Tools cards (Lodge)
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: var(--space-1200);
}

.tool-card {
  background: var(--color-surface-tools);
  border: var(--stroke) solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-300);
  text-align: center;
}

.tool-card__image {
  width: 100%;
  max-width: 160px;
  height: 120px;
}

.tool-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card__name {
  font-size: var(--text-subheading-size);
}

.tool-card__description {
  color: var(--color-text-tools);
}

/* ==========================================================================
   Improvements list (Trajekt)
   ========================================================================== */

.improvement-list li {
  padding-block: var(--space-300);
}

.improvement-list li::before {
  content: "\2713";
  display: inline-block;
  margin-right: var(--space-300);
  color: var(--color-trajekt-accent);
}

/* ==========================================================================
   Resume block (Home + About)
   ========================================================================== */

.resume-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-600);
}

.resume-preview {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--stroke) solid var(--color-border);
}

.resume-preview img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Video embeds (Video Edits page)
   ========================================================================== */

/* Video Edits uses dark media cards with white text, not the light .card */
.media-card {
  background: #303030;
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-600);
}

.media-card h3 {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight);
  color: #fff;
  margin-bottom: var(--space-300);
}

.media-card p {
  color: #ebebeb;
  white-space: pre-line;
}

.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 992 / 450;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-600);
}

.video-tile {
  display: flex;
  gap: var(--space-600);
  align-items: center;
  background: #303030;
  border-radius: var(--radius-sm);
  padding: var(--space-600);
}

.video-tile__player {
  position: relative;
  flex-shrink: 0;
  width: 198px;
  aspect-ratio: 198 / 308;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-tile__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-tile > div:last-child {
  min-width: 0;
  flex: 1;
}

.video-tile__title {
  font-size: var(--text-heading-size);
  font-weight: var(--text-heading-weight);
  color: #fff;
  overflow-wrap: break-word;
}

.video-tile__meta {
  color: #ebebeb;
  font-style: italic;
  margin-top: var(--space-200);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: var(--stroke) solid var(--color-border);
  padding: var(--space-1200) var(--space-4000) var(--space-1600);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2400);
  justify-content: space-between;
}

.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: var(--space-1200);
  max-width: 350px;
  min-width: 240px;
}

.site-footer__blurb {
  color: var(--color-text);
}

.site-footer__blurb p + p {
  margin-top: var(--space-300);
}

.site-footer__social {
  width: 24px;
  height: 24px;
  color: var(--color-text);
}

.site-footer__contact {
  font-weight: var(--text-body-weight-strong);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: var(--space-400) var(--space-2400);
}

.site-footer__nav-title {
  grid-row: 1;
  font-weight: var(--text-body-weight-strong);
  margin-bottom: var(--space-400);
}

.site-footer__nav-list {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-footer__nav-list a {
  transition: color 0.15s ease;
}

.site-footer__nav-list a:hover {
  color: var(--color-text-faint);
}

.site-footer__copyright {
  margin-top: var(--space-1200);
  color: var(--color-text-faint);
  font-size: 14px;
}

/* ==========================================================================
   Responsive
   Figma only defines a fixed 1200px desktop frame — breakpoints below are
   original responsive adaptations for tablet and mobile.
   ========================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding-inline: var(--space-1200);
  }

  .hero {
    padding: var(--space-1600) var(--space-600);
  }

  .hero__intro {
    padding: var(--space-1200) var(--space-1200);
  }

  .site-footer {
    padding-inline: var(--space-1200);
  }
}

@media (max-width: 1024px) {
  :root {
    --text-hero-title-size: 48px;
    --text-home-subtitle-size: 28px;
  }

  .project-title {
    padding: var(--space-1200) var(--space-600);
  }

  .site-footer {
    padding-inline: var(--space-1600);
  }
}

@media (max-width: 768px) {
  :root {
    --text-hero-title-size: 36px;
    --text-home-subtitle-size: 24px;
    --text-heading-size: 20px;
  }

  .container {
    padding-inline: var(--space-400);
  }

  .site-nav {
    padding: var(--space-400);
    justify-content: center;
  }

  .site-nav__pills {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-200);
  }

  .nav-pill {
    flex-shrink: 0;
  }

  .hero {
    padding: var(--space-1200) var(--space-400);
  }

  .hero__panel {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .hero__intro {
    padding: var(--space-1200) var(--space-600);
    order: 2;
  }

  .hero__photo-wrap {
    order: 1;
    padding: var(--space-600) var(--space-600) 0;
  }

  .section {
    padding-block: var(--space-1200);
  }

  .project-card {
    width: 260px;
  }

  .about-card,
  .reference-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .about-card__photo,
  .about-card__photo--tall {
    width: 100%;
    height: auto;
    aspect-ratio: 315 / 296;
  }

  .reference-card__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 220px;
  }

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

  .hscroll .image-card {
    width: 280px;
    height: 335px;
  }

  .hscroll .image-card--wide {
    width: 380px;
  }

  .stacked-section {
    padding: var(--space-300) var(--space-400);
  }

  .render-card {
    height: 320px;
    padding: var(--space-400);
  }

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

  .trajekt-feature,
  .trajekt-improvements {
    padding: var(--space-1200) var(--space-400);
  }

  .video-tile {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .video-tile__player {
    width: 100%;
    max-width: 220px;
    margin-inline: auto;
  }

  .site-footer {
    padding: var(--space-1200) var(--space-400) var(--space-1200);
  }

  .site-footer__row {
    gap: var(--space-1200);
  }

  .site-footer__nav {
    gap: var(--space-400) var(--space-1600);
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 28px;
  }

  .project-card {
    width: 220px;
    min-height: 340px;
  }

  .project-card__image {
    height: 160px;
  }

  .card--trajekt {
    width: 260px;
  }

  .video-hero {
    aspect-ratio: 16 / 10;
  }
}
