/* Font Faces */
@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdTh.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdLt.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdRg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdMd.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdBd.woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Martian Grotesk';
  src: url('/fonts/MartianGrotesk-StdUlt.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HomeVideo';
  src: url('/fonts/HomeVideo-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sentient-Variable';
  src: url('../fonts/Sentient-Variable.woff2') format('woff2'),
       url('../fonts/Sentient-Variable.woff') format('woff'),
       url('../fonts/Sentient-Variable.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Sentient-VariableItalic';
  src: url('../fonts/Sentient-VariableItalic.woff2') format('woff2'),
       url('../fonts/Sentient-VariableItalic.woff') format('woff'),
       url('../fonts/Sentient-VariableItalic.ttf') format('truetype');
  font-weight: 200 700;
  font-display: swap;
  font-style: italic;
}
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
}

/* Layout */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Header */
.header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0;
}

.logo {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

/* Typography */
/* Body text in paragraphs - use Sentient-Variable, except for paragraphs starting with <strong> */
p {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 21px;
}

/* Exclude paragraphs that start with <strong> from Sentient-Variable font */
p:has(> strong:first-child) {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-description {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 300px;
  margin-bottom: 16px;
  color: #737378;
}

/* Hero Section */
.hero {
  padding: 200px 20px 20px;
  text-align: left;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 120px;
  justify-items: stretch;
  align-items: start;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.59, 0.02, 0.44, 1);
}

.portfolio-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;       
  background-color: #f5f5f5;
  margin-bottom: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;         
  display: block;
}

.portfolio-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.portfolio-client {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: #737378;
  font-weight: 400;
  margin-bottom: 40px;
}

/* About Page */
.about {
  padding: 200px 20px 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 24px;
  align-items: start;
}

.about-image,
.hero-image {
  width: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img,
.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-image {
  grid-column: 1;
  grid-row: 3;
  max-width: 500px;
  justify-self: start;
  margin-top: 80px;
}

.about-grid > .masthead-text {
  grid-column: 1;
  grid-row: 1;
}

.masthead-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
}

.masthead-text p {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  color: #737378;
}

.masthead-text a,
.meta-grid a {
  color: #737378;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.masthead-text a:hover,
.meta-grid a:hover {
  color: #F54F00;
  text-decoration-style: solid;
}

.body-content p {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 18px;
  line-height: 1.4;
  color: #737378;
}

.body-content a {
  color: #737378;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.body-content a:hover {
  color: #F54F00;
  text-decoration-style: solid;
}

.meta-grid {
  grid-column: 1 / span 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 24px;
  padding: 20px 0 0;
}

.meta-grid .masthead-text {
  gap: 8px;
}

.meta-grid .masthead-text p strong {
  font-weight: 700;
  color: #000 !important;
}

.about-image {
  grid-column: 1 / span 1;
  grid-row: 3;
  max-width: 500px;
  justify-self: center;
  margin-top: 80px;
}

.gallery-grid {
  margin-top: 40px;
}

/* Playground */
.playground {
  padding: 200px 20px 20px;
}

.playground-intro {
  margin-bottom: 16px;
}

.playground-subtitle {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #737378;
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 120px;
  align-items: start;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-decoration: none;
  color: #000;
}

.category-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.category-description {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 10px;
  line-height: 1.3;
  margin: 0;
  color: #8a8a8a;
}

.category-card:hover .category-title {
  color: #F54F00;
}

.category-photo .category-media {
  background-image: linear-gradient(145deg, #DAD7CD 0%, #81795F 100%);
}

.category-gear .category-media {
  background-image: linear-gradient(145deg, #A3B18A 0%, #616E49 100%);
}

.category-uses .category-media {
  background-image: linear-gradient(145deg, #B7CDB6 0%, #588157 100%);
}

.category-reviews .category-media {
  background-image: linear-gradient(145deg, #6AA074 0%, #3A5A40 100%);
}

.category-inspiration .category-media {
  background-image: linear-gradient(145deg, #A9C6B8 0%, #344E41 100%);
}

/* Gear (/gear) and Uses (/uses) — gallery sections */
.gear-uses {
  padding: 200px 20px 20px;
}

.gear-uses-intro {
  margin-bottom: 32px;
}

.gear-uses-title {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  margin: 0 0 8px;
  color: #000;
}

.gear-uses-subtitle {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.4;
  color: #737378;
  margin: 0;
  max-width: 36em;
}

.gear-uses-empty {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.4;
  color: #737378;
}

.gear-uses-empty code {
  font-size: 12px;
}

.gear-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  /* Max 5 columns so tiles read larger; generous gutters; extra row rhythm below captions */
  column-gap: clamp(20px, 3.5vw, 40px);
  row-gap: clamp(28px, 4.5vw, 52px);
  background: #fff;
  margin-bottom: 120px;
  align-items: start;
}

.gear-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gear-tile-surface {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ececec;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gear-tile-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gear-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gear-tile-caption {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 300;
  color: #000;
  margin: 0;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.gear-tile-caption--meta {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 14px;
  font-weight: 200;
  line-height: 1.25;
  color: #737378;
  margin-top: -2px;
}

@media (max-width: 1200px) {
  .gear-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(18px, 3vw, 32px);
    row-gap: clamp(24px, 4vw, 44px);
  }
}

@media (max-width: 900px) {
  .gear-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(16px, 2.8vw, 28px);
    row-gap: clamp(22px, 3.5vw, 40px);
  }
}

@media (max-width: 600px) {
  .gear-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 28px;
  }
}

@media (max-width: 380px) {
  .gear-gallery {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 24px;
  }
}

/* Gallery items will be positioned by Masonry */
.gallery-item {
  width: 32%;              /* 3 columns desktop */
  margin-bottom: 16px;
  display: inline-block;
  vertical-align: top;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.image-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 6px;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .gallery-item {
    width: 48%;   /* 2 columns tablet */
  }
}

@media (max-width: 600px) {
  .gallery-item {
    width: 100%;  /* 1 column mobile */
  }
}

/* Footer */
.footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 200px 20px;
}

.footer-left {
  font-size: 14px;
  color: #737378;
}

.footer-right {
  color: #737378;
}

.footer-copyright,
.footer-message {
  font-size: 14px;
  color: #666;
}

.footer-message {
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer a {
  text-decoration: none;
  color: #000;
}

.footer a:hover {
  color: #000;
  text-decoration: none;
}

/* Interactive States */
@media (hover: hover) and (min-width: 769px) {
  .portfolio-item:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  .portfolio-thumbnail {
    aspect-ratio: 4/3;   /* More square-ish thumbnails on mobile */
  }
}


/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 40px 12px;
  }

  .header-inner {
    padding: 40px 0;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 12px;
  }

  .hero {
    padding: 12px 0 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .portfolio-thumbnail {
    height: 200px;
  }

  .about {
    padding: 40px 12px;
  }

  .playground {
    padding: 40px 12px;
  }

  .gear-uses {
    padding: 40px 12px;
  }

  .gear-gallery {
    margin-bottom: 60px;
    column-gap: 16px;
    row-gap: 28px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 60px;
  }

  .category-title {
    font-size: 12px;
  }

  .category-description {
    font-size: 10px;
  }

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

  .hero-image {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    justify-self: center;
  }

  .about-grid > .masthead-text {
    grid-column: 1;
  }

  .meta-grid {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-image {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    justify-self: center;
    margin-top: 40px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 12px;
  }

  .portfolio-title {
    font-size: 11px;
  }

  .portfolio-client {
    font-size: 21px;
  }

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

@media (min-width: 769px) and (max-width: 1199px) {
  .hero-image {
    max-width: 400px;
  }
  
  .about-image {
    max-width: 400px;
  }
}

@media (min-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Project Detail Pages */
.project-detail {
  padding: 80px 0 20px;
  width: 100%;
}

.project-detail .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.project-header {
  margin-bottom: 60px;
  max-width: 100%;
}

.project-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #000;
}

.project-meta {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 21px;
  color: #737378;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.4;
}

.project-year {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 21px;
  color: #737378;
  font-weight: 400;
  line-height: 1.4;
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.project-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.project-description {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 21px;
  line-height: 1.7;
  color: #737378;
  max-width: 100%;
  word-wrap: break-word;
}

/* Ensure paragraphs inside project-description use Sentient-Variable */
.project-description p {
  font-family: 'Sentient-Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, serif;
  font-size: 21px;
}

/* Exclude paragraphs in project-description that start with <strong> */
.project-description p:has(> strong:first-child) {
  font-family: 'Martian Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-container {
  width: 100%;
  margin: 0;
}

.video-container lite-youtube,
.video-container lite-vimeo {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  background-color: #f5f5f5;
}

.project-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-image {
  width: 100%;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
}


.project-nav {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.prev-project,
.next-project {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.next-project {
  margin-left: auto;
}

.prev-project:hover,
.next-project:hover {
  color: #F54F00;
  text-decoration-style: solid;
}

/* Project Detail - Responsive */
@media (max-width: 768px) {
  .project-detail {
    padding: 60px 0 20px;
  }

  .project-detail .container {
    padding: 0 20px;
  }

  .project-header {
    margin-bottom: 40px;
  }

  .project-title {
    font-size: 22px;
  }

  .project-meta,
  .project-year {
    font-size: 21px;
  }

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

  .project-left {
    gap: 30px;
  }

  .project-description {
    font-size: 21px;
    line-height: 1.6;
  }

  .project-right {
    gap: 16px;
  }

  .project-nav {
    margin-top: 60px;
    padding-top: 30px;
    gap: 16px;
  }

  .prev-project,
  .next-project {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .project-detail {
    padding: 40px 0 20px;
  }

  .project-detail .container {
    padding: 0 16px;
  }

  .project-title {
    font-size: 20px;
  }

  .project-meta,
  .project-year {
    font-size: 21px;
  }

  .project-description {
    font-size: 21px;
    line-height: 1.6;
  }

  .project-nav {
    margin-top: 40px;
    padding-top: 20px;
  }

  .prev-project,
  .next-project {
    font-size: 12px;
  }
}

/* Tablet landscape and medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .project-detail .container {
    padding: 0 30px;
  }

  .project-content {
    gap: 50px;
  }
}