:root {
  color-scheme: dark;
  --black: #050505;
  --cream: #f6f2ea;
  --cream-soft: rgba(246, 242, 234, 0.72);
  --cream-muted: rgba(246, 242, 234, 0.46);
  --cream-line: rgba(246, 242, 234, 0.18);
  --verde: #9be36d;
  --page-pad: clamp(1rem, 4vw, 3rem);
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--cream);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Inter", sans-serif;
}

body.section-focus-ready {
  min-height: var(--focus-height, calc(var(--focus-count, 7) * 220svh));
}

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

a:hover,
a:focus-visible {
  color: var(--verde);
  text-decoration: none;
}

.page-shell {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: var(--page-pad);
}

.section-panel {
  display: grid;
  min-height: min(88svh, 56rem);
  border-top: 1px solid var(--cream-line);
}

body.section-focus-ready .page-shell > .section-panel,
body.section-focus-ready .site-footer {
  opacity: var(--section-opacity, 0);
  pointer-events: none;
  will-change: opacity;
}

body.section-focus-ready .page-shell > .section-panel.is-active,
body.section-focus-ready .site-footer.is-active {
  pointer-events: auto;
}

body.section-focus-ready .page-shell {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1;
  width: min(100%, 1520px);
  height: 100svh;
  overflow: hidden;
  transform: translateX(-50%);
}

body.section-focus-ready .page-shell > .section-panel {
  position: absolute;
  inset: var(--page-pad);
  min-height: 0;
}

body.section-focus-ready .site-footer {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(100%, 1520px);
  height: 100svh;
  margin: 0;
  align-content: center;
  transform: translateX(-50%);
}

body.section-focus-ready .hero {
  min-height: 0;
}

.hero {
  min-height: calc(100svh - (var(--page-pad) * 2));
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2.5rem, 7vw, 7rem);
  border-top: 0;
}

.hero-copy {
  align-self: end;
  max-width: 76rem;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--cream-muted);
  font-size: clamp(0.74rem, 0.9vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 0;
  font-size: clamp(4rem, 6.7vw, 10.5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.name-verde,
.text-verde {
  color: var(--verde);
}

.hero-location {
  margin: clamp(0.75rem, 1.2vw, 1.1rem) 0 clamp(1rem, 2vw, 1.8rem);
  color: var(--cream-muted);
  font-size: clamp(0.78rem, 0.92vw, 0.96rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero-line {
  max-width: 54rem;
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(1.35rem, 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.about,
.works,
.businesses,
.hobbies,
.fun {
  grid-template-columns: minmax(4rem, 0.28fr) minmax(18rem, 0.95fr) minmax(24rem, 1.35fr);
  gap: clamp(1.4rem, 4vw, 5rem);
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.works {
  grid-template-columns: minmax(4rem, 0.22fr) minmax(5rem, 0.24fr) minmax(0, 2.65fr);
  gap: clamp(1.2rem, 2.5vw, 3rem);
}

.section-number {
  color: var(--cream);
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.82;
}

h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.8vw, 6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.section-copy {
  align-self: end;
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(1.2rem, 2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.about-copy {
  display: grid;
  max-width: 58rem;
  gap: clamp(0.95rem, 1.4vw, 1.35rem);
  font-size: clamp(1rem, 1.45vw, 1.65rem);
  line-height: 1.16;
}

.about-copy p {
  margin-bottom: 0;
}

.business-list {
  display: grid;
  align-self: stretch;
  gap: 1px;
  background: var(--cream-line);
  border: 1px solid var(--cream-line);
}

.business-switcher {
  --business-gap: clamp(0.35rem, 1vw, 0.9rem);
  --business-motra-row: clamp(2.65rem, 6.9vw, 8.3rem);

  align-self: center;
  position: relative;
  min-height: clamp(12rem, 22vw, 18rem);
  gap: 0;
  background: transparent;
  border: 0;
}

.business-option {
  display: contents;
}

.business-switcher.is-selected .business-option.is-hidden .business-choice {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.business-choice {
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: clamp(3.4rem, 8.8vw, 10.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.78;
  text-align: left;
  text-transform: uppercase;
  transition: color 180ms ease, opacity 180ms ease, visibility 180ms ease;
  white-space: nowrap;
}

.business-option[data-business-option="motra"] .business-choice {
  top: 0;
}

.business-option[data-business-option="printing"] .business-choice {
  top: calc(var(--business-motra-row) + var(--business-gap));
  font-size: clamp(2.25rem, 5.7vw, 6.9rem);
}

.business-choice:hover,
.business-choice:focus-visible,
.business-option.is-active .business-choice {
  color: var(--verde);
}

.business-choice:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.06em;
}

.business-detail {
  position: absolute;
  left: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  max-width: 48rem;
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.15rem, 1.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.02;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.business-option[data-business-option="motra"] .business-detail {
  top: calc(var(--business-motra-row) + var(--business-gap));
}

.business-option[data-business-option="printing"] .business-detail {
  top: 0;
}

.business-option.is-active .business-detail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.business-detail a {
  color: var(--verde);
}

.work-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-self: center;
  min-height: 0;
  margin-left: 0;
}

.job-table {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-self: start;
  gap: 1px;
  min-width: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--cream-line);
  border: 1px solid var(--cream-line);
}

.project-image-grid {
  display: grid;
  column-gap: clamp(1.35rem, 2vw, 2.2rem);
  row-gap: clamp(1.35rem, 2.4vw, 2.4rem);
  align-self: center;
  min-width: 0;
}

.job-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.22rem;
  align-items: end;
  min-width: 0;
  align-content: end;
  padding: clamp(0.36rem, 0.52vw, 0.52rem);
  background: var(--black);
}

.job-row h3 {
  margin-bottom: 0.16rem;
  color: var(--cream);
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-row p,
.job-row time {
  margin: 0;
  color: var(--cream-muted);
  font-size: clamp(0.52rem, 0.58vw, 0.58rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.job-row time {
  color: var(--cream-soft);
  text-align: left;
  white-space: nowrap;
}

.project-image-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  align-items: center;
}

.project-image-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--black);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.project-image-card:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: -2px;
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 0.75rem;
  padding: clamp(0.9rem, 1.6vw, 1.35rem);
  background: rgba(5, 5, 5, 0.78);
  opacity: 0;
  transition: opacity 160ms ease;
}

.project-image-card:hover .image-overlay,
.project-image-card:focus .image-overlay {
  opacity: 1;
}

.image-overlay span:first-child {
  color: var(--verde);
  font-size: clamp(1.1rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.image-overlay span:last-child {
  max-width: 18rem;
  color: var(--cream);
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 800;
  line-height: 1.1;
}

.hobby-board {
  display: grid;
  grid-column: 2 / -1;
  grid-template-columns: repeat(3, minmax(12rem, 1fr));
  align-self: start;
  gap: clamp(1.7rem, 4.5vw, 5.5rem) clamp(2rem, 5.5vw, 7rem);
  padding-top: clamp(1rem, 4vh, 3rem);
}

.hobby-intro {
  grid-column: 1 / -1;
  max-width: 55rem;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  color: var(--cream);
  font-size: clamp(1.05rem, 1.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.05;
}

.hobby-project {
  display: grid;
  grid-template-rows: auto minmax(clamp(6.5rem, 10vw, 9rem), auto);
  align-content: start;
}

.hobby-choice {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.55rem, 2.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-align: left;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.hobby-choice:hover,
.hobby-choice:focus-visible,
.hobby-project.is-active .hobby-choice {
  color: var(--verde);
}

.hobby-choice:focus-visible {
  outline: 0;
}

.hobby-copy {
  max-width: 22rem;
  margin: clamp(0.75rem, 1.2vw, 1rem) 0 0;
  color: var(--cream-soft);
  font-size: clamp(0.88rem, 1vw, 1.02rem);
  font-weight: 700;
  line-height: 1.16;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.hobby-project.is-active .hobby-copy {
  opacity: 1;
  visibility: visible;
}

.fun-list {
  display: grid;
  align-self: center;
  gap: clamp(1.35rem, 3vw, 2.8rem);
  margin: 0;
}

.fun-list div {
  display: grid;
  grid-template-columns: minmax(7rem, 0.36fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

.fun-list dt {
  color: var(--cream-muted);
  font-size: clamp(0.72rem, 0.85vw, 0.86rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.fun-list dd {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.4rem, 3.2vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.fun-list a {
  color: inherit;
}

.fun-list a:hover,
.fun-list a:focus-visible {
  color: var(--verde);
}

.site-footer {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1rem, 2vw, 1.65rem);
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--page-pad);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.22rem, 0.55vw, 0.42rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  min-width: 0;
  color: var(--cream);
  font-size: clamp(0.78rem, 1.08vw, 1.05rem);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.footer-photo {
  --footer-photo-size: clamp(9rem, 15vw, 12rem);

  display: block;
  width: var(--footer-photo-size);
  max-width: 100%;
  aspect-ratio: 1;
  height: var(--footer-photo-size);
  object-fit: cover;
}

@media (max-width: 1040px) {
  .hero,
  .about,
  .works,
  .businesses,
  .hobbies,
  .fun {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-panel {
    min-height: min(80svh, 48rem);
  }

  .hero {
    min-height: calc(100svh - (var(--page-pad) * 2));
  }

  .section-copy {
    align-self: start;
  }

  .work-gallery {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    margin-left: 0;
  }

  .project-image-card {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 0.85rem;
  }

  .hero,
  .about,
  .works,
  .businesses,
  .hobbies,
  .fun {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .about,
  .works,
  .businesses,
  .hobbies,
  .fun {
    grid-template-columns: clamp(2.9rem, 12vw, 4rem) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(0.75rem, 2.5vw, 1rem) 0.8rem;
    align-content: start;
    padding-top: 1.65rem;
    padding-bottom: 1.65rem;
  }

  .section-number {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section-heading {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 0.12rem;
  }

  .kicker {
    margin-bottom: 0;
  }

  .section-copy,
  .work-gallery,
  .business-list,
  .hobby-board,
  .fun-list {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  h1 {
    font-size: clamp(2.9rem, 12vw, 4.5rem);
  }

  h2 {
    max-width: 9ch;
    font-size: clamp(2.5rem, 12vw, 4.4rem);
  }

  .hero-line,
  .section-copy {
    font-size: clamp(1.22rem, 6vw, 2rem);
  }

  .about-copy {
    gap: 0.85rem;
    font-size: clamp(0.98rem, 4.3vw, 1.18rem);
    line-height: 1.2;
  }

  .hobby-board,
  .project-image-grid {
    grid-template-columns: 1fr;
  }

  .works .project-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-self: start;
  }

  .works .project-image-card,
  .works .job-table {
    aspect-ratio: 1;
  }

  .works .job-row {
    gap: 0.08rem;
    padding: 0.2rem;
  }

  .works .job-row h3 {
    margin-bottom: 0.04rem;
    font-size: clamp(0.42rem, 2.2vw, 0.55rem);
    line-height: 0.9;
  }

  .works .job-row p,
  .works .job-row time {
    font-size: clamp(0.31rem, 1.55vw, 0.42rem);
    line-height: 1;
  }

  .works .image-overlay {
    align-content: end;
    padding: 0.45rem;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0) 35%, rgba(5, 5, 5, 0.82) 100%);
    opacity: 1;
  }

  .works .image-overlay span:first-child {
    font-size: clamp(0.48rem, 2.4vw, 0.66rem);
    line-height: 0.9;
  }

  .fun-list div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .job-row h3 {
    font-size: clamp(0.94rem, 4.2vw, 1.12rem);
  }

  .job-row time {
    text-align: left;
  }

  .project-image-card {
    min-height: 0;
  }

  .image-overlay {
    padding: 0.65rem;
  }

  .image-overlay span:first-child {
    font-size: clamp(0.78rem, 3.6vw, 0.95rem);
  }

  .image-overlay span:last-child {
    display: none;
  }

  .business-choice,
  .business-option[data-business-option="printing"] .business-choice {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .business-switcher {
    --business-gap: clamp(0.5rem, 2vw, 0.8rem);
    --business-motra-row: clamp(5.7rem, 30vw, 7.4rem);

    min-height: clamp(11rem, 58vw, 15rem);
  }

  .business-detail {
    font-size: clamp(1rem, 5vw, 1.35rem);
    line-height: 1.08;
  }

  .hobby-board {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.section-focus-ready .page-shell > .section-panel,
  body.section-focus-ready .site-footer {
    transition: none;
  }
}
