/* Landing page styles with custom font handling */
@font-face {
  font-family: 'LunchType Light';
  src: url('data/fonts/lunchtype24-light-expanded-webfont.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LunchType Regular';
  src: url('data/fonts/lunchtype24-regular-expanded-webfont.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,body{
  height:100%;
  margin:0;
}

:root{
}

.landing{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #fff;
}

.landing-nav{
  display:flex;
  flex-direction:column;
  gap: 1.2rem;
  text-align:center;
}

.landing-link{
  display:inline-block;
  text-decoration:none;
  color:#111;
  font-family: 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-weight:300;
  font-size: clamp(28px, 8vw, 96px);
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.landing-link:hover,
.landing-link:focus{
  color:#000;
  transform: translateY(-4px);
  /* regular font will be fetched/used only on hover/focus */
  font-family: 'LunchType Regular', 'LunchType Light', system-ui, -apple-system, 'Segoe UI', Roboto;
}

@media (max-width:600px){
  .landing-link{font-size: clamp(20px, 9vw, 48px);}
}

/* Homepage layout */
.site-wrap{
  display:flex;
  min-height:100vh;
  transition: transform 260ms ease;
}

.hero{
  flex:1;
  padding: 48px 48px;
  transition: padding 260ms ease;
}

.hero-header{margin-bottom:36px}
.brand{font-family: 'LunchType Light', system-ui; font-size:28px; margin:0}
.subtitle{color:#666; margin:6px 0 0}

/* ── Homepage grid ────────────────────────────────────── */
.homepage-grid {
  display: flex;
  gap: 24px;
  height: calc(100vh - 96px); /* viewport minus hero padding */
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Column flex ratios — left: 60 / 40 */
.grid-col:first-child > .grid-item:first-child { flex: 3; }
.grid-col:first-child > .grid-item:last-child  { flex: 2; }

/* Middle: full height */
.grid-col:nth-child(2) > .grid-item { flex: 1; }

/* Right: 40 / 60 (inverted) */
.grid-col:last-child > .grid-item:first-child { flex: 2; }
.grid-col:last-child > .grid-item:last-child  { flex: 3; }

/* ── Grid items (shared) ─────────────────────────────── */
.grid-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 300ms ease;
}

/* Hover: scale up + shadow */
.grid-item:hover {
  transform: scale(1.025);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* Nudge: siblings in the same column shrink slightly */
.grid-col:hover > .grid-item:not(:hover) {
  transform: scale(0.985);
}

/* Nudge: adjacent columns shift away from hovered column */
.homepage-grid:has(.grid-col:first-child:hover) > .grid-col:not(:first-child) {
  transform: translateX(6px);
}
.homepage-grid:has(.grid-col:nth-child(2):hover) > .grid-col:first-child {
  transform: translateX(-4px);
}
.homepage-grid:has(.grid-col:nth-child(2):hover) > .grid-col:last-child {
  transform: translateX(4px);
}
.homepage-grid:has(.grid-col:last-child:hover) > .grid-col:not(:last-child) {
  transform: translateX(-6px);
}

/* ── Model-viewer items ──────────────────────────────── */
.model-item {
  display: flex;
  flex-direction: column;
  background: #efefef;
}

.model-item .model-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #efefef;
  border-radius: 8px;
}

/* ── Clickable image items ───────────────────────────── */
.image-item {
  display: flex;
  align-items: flex-end;
  background: #e0e0e0;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ── Item labels ─────────────────────────────────────── */
.item-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: 'LunchType Light', system-ui;
  font-size: 14px;
  color: #444;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.grid-item:hover .item-label {
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .side-nav { display: none; }

  .homepage-grid {
    flex-direction: column;
    height: auto;
  }

  .grid-col {
    flex-direction: row;
    min-height: 260px;
  }

  /* Reset column ratios on mobile — equal sizing */
  .grid-col > .grid-item { flex: 1 !important; }

  .model-item .model-frame {
    min-height: 260px;
  }
}

