/* Home composition: one bounded canvas, adapted to the available content width.
   Background videos, crop, reveal and thermal simulation remain independent. */
.home-cover {
  --cover-accent: #ff640a;
  --cover-white: #f7f4ef;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1840px;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(24px, 3vh, 44px) clamp(20px, 5vw, 96px) max(24px, env(safe-area-inset-bottom));
  padding-left: max(clamp(20px, 5vw, 96px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 96px), env(safe-area-inset-right));
  color: var(--cover-white);
}
.cover-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.cover-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-block: 4px 14px;
  font-size: clamp(20px, 1.65vw, 28px);
  font-weight: 850;
  font-variation-settings: 'wdth' 112;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}
.cover-brand::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; background: var(--cover-accent); }
.cover-nav { display: flex; flex: none; align-items: center; gap: clamp(24px, 2.5vw, 44px); }
.cover-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 450; letter-spacing: -.02em; text-decoration: none; }
.cover-nav a:hover { color: #ffb27e; }
.cover-nav .cover-contact { gap: 9px; padding: 8px 20px; border: 1px solid rgb(247 244 239 / 70%); border-radius: 100px; }
.cover-arrow { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.cover-main { width: 100%; max-width: 1160px; min-width: 0; padding-top: clamp(44px, 7.5vh, 88px); }
.cover-kicker { max-width: 100%; margin: 0 0 16px; color: #b9e4db; font-family: 'DM Mono', monospace; font-size: clamp(11px, 1vw, 15px); font-weight: 500; line-height: 1.6; letter-spacing: .16em; text-wrap: balance; }
.cover-title { width: 100%; margin: 0; font-size: clamp(46px, 4.05vw, 68px); line-height: 1.05; font-weight: 850; font-variation-settings: 'wdth' 112; letter-spacing: -.035em; }
.cover-title__line { display: block; white-space: nowrap; }
.cover-title__accent { display: block; margin-top: 8px; color: var(--cover-accent); font-size: 1.16em; font-weight: 900; }
.cover-title__accent.heat-word { color: #fff; filter: url(#heat-map); }
.cover-description { display: grid; gap: 12px; width: 100%; max-width: 660px; margin: 26px 0 0; font-size: clamp(17px, 1.15vw, 19px); line-height: 1.65; font-weight: 400; letter-spacing: -.01em; text-wrap: pretty; }
.cover-description p { margin: 0; }
.cover-description__lead { color: var(--cover-white); font-weight: 450; }
.cover-description__lead strong { font-weight: 650; }
.cover-description__body { color: var(--ink-soft); font-weight: 350; text-wrap: balance; }
.cover-rule { width: clamp(130px, 12vw, 200px); height: 4px; margin-top: 24px; border-radius: 2px; background: linear-gradient(90deg, var(--cover-accent) 35%, #ffe5c3 72%, #b8eee4); }
.cover-projects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr); width: 100%; max-width: 1080px; margin-top: clamp(32px, 4.5vh, 54px); scroll-margin-top: 24px; }
.cover-project { position: relative; isolation: isolate; display: block; min-width: 0; padding: 16px 20px; color: inherit; text-decoration: none; transition: color .3s var(--ease-out); }
.cover-project + .cover-project { padding-left: 24px; border-left: 1px solid rgb(247 244 239 / 26%); }
.cover-project__number { display: block; margin-bottom: 10px; font-family: 'DM Mono', monospace; font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; line-height: 1; }
.cover-project__name { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: clamp(26px, 2.2vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; }
.cover-project__name .cover-arrow { width: .62em; height: .62em; }
.cover-project p { margin: 0; max-width: 28ch; font-size: clamp(16px, 1.1vw, 18px); line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; }
.cover-project:hover .cover-project__name { color: #ffb27e; }
.cover-project::after { content: ''; position: absolute; z-index: -1; inset: 0 8px; border-radius: var(--radius); background: radial-gradient(circle at var(--x, 50%) var(--y, 70%), var(--hot-stops)); opacity: 0; transition: opacity .7s var(--ease-out); }
.cover-project.is-highlighted { color: var(--char); }
.cover-project.is-highlighted::after { opacity: 1; transition-duration: .18s; }
.cover-project.is-highlighted .cover-project__name { color: inherit; }
.cover-project .route-door__glint { inset: 0 8px; }
.cover-project:nth-child(2) .route-door__glint { animation-delay: 3.7s; }
.cover-project:nth-child(3) .route-door__glint { animation-delay: 6.2s; }
.cover-project:hover .cover-arrow, .cover-contact:hover .cover-arrow { transform: translate(3px, -3px); }
.home-cover .thermal-scale { right: 18px; }
.home-cover a:focus-visible { outline: 2px solid var(--cover-accent); outline-offset: 7px; border-radius: 2px; }
.cover-footer { display: flex; align-items: center; gap: 24px; margin-top: auto; padding-top: clamp(40px, 6vh, 72px); color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.cover-footer a, .cover-footer span { display: inline-flex; align-items: center; min-height: 44px; }
.cover-footer a { text-decoration: none; }
.cover-footer a:hover { color: var(--cover-white); text-decoration: underline; }

/* A tablet has room to read; route choices become deliberate full-width rows. */
@media (max-width: 1023px) {
  .cover-main { max-width: 850px; padding-top: clamp(40px, 6vh, 64px); }
  .cover-title { max-width: 100%; font-size: clamp(40px, 5.4vw, 55px); text-wrap: balance; }
  .cover-title__line { display: inline; white-space: normal; }
  .cover-description { max-width: 620px; }
  .cover-projects { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-top: 32px; }
  .cover-project, .cover-project + .cover-project { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 12px; padding: 24px 12px; border: 0; border-bottom: 1px solid rgb(247 244 239 / 22%); }
  .cover-project__number { grid-row: 1 / 3; padding-top: 6px; font-size: 14px; }
  .cover-project__name { justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 28px; }
  .cover-project p { grid-column: 2; max-width: 50ch; font-size: 16px; }
  .cover-project::after, .cover-project .route-door__glint { inset: 6px 0; }
  .home-cover .thermal-scale { display: none; }
}

/* The home navigation stays out on phones, as requested. */
@media (max-width: 760px) {
  .home-cover { padding: 24px clamp(20px, 5vw, 32px) max(24px, env(safe-area-inset-bottom)); }
  .home-cover { padding-top: max(24px, env(safe-area-inset-top)); padding-left: max(clamp(20px, 5vw, 32px), env(safe-area-inset-left)); padding-right: max(clamp(20px, 5vw, 32px), env(safe-area-inset-right)); }
  .cover-brand { font-size: 21px; }
  .cover-nav { display: none; }
  .cover-main { padding-top: 40px; }
  .cover-kicker { max-width: 42ch; margin-bottom: 16px; font-size: 11px; letter-spacing: .14em; }
  .cover-title { max-width: 650px; font-size: clamp(32px, 6.1vw, 44px); line-height: 1.1; }
  .cover-title__accent { margin-top: 8px; font-size: 1.14em; }
  .cover-description { max-width: 40ch; margin-top: 24px; gap: 14px; font-size: 17px; line-height: 1.6; }
  .cover-project__name { font-size: clamp(24px, 4.6vw, 28px); }
  .cover-project p { max-width: 38ch; }
  .cover-footer { padding-top: 36px; }
}
@media (max-height: 700px) and (min-width: 1024px) {
  .home-cover { padding-top: 20px; }
  .cover-main { padding-top: 30px; }
  .cover-title { font-size: clamp(44px, 3.7vw, 62px); }
  .cover-description { margin-top: 22px; }
  .cover-projects { margin-top: 28px; }
  .cover-footer { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-arrow, .cover-project, .cover-project::after { transition: none; }
}
@media (max-width: 1023px) and (max-height: 500px) {
  .cover-nav { display: none; }
  .cover-main { padding-top: 28px; }
  .cover-title { font-size: clamp(32px, 4.8vw, 44px); }
}
