:root {
  color-scheme: dark;
  --ink: #101b20;
  --ink-2: #17272e;
  --paper: #f1ede5;
  --muted: #aeb9b7;
  --cedar: #cf8754;
  --cedar-dark: #9b5b35;
  --line: rgba(241, 237, 229, 0.2);
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.launch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  min-height: 100svh;
  overflow: hidden;
}

.content-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(28px, 5.5vw, 84px);
  background:
    radial-gradient(circle at 15% 20%, rgba(207, 135, 84, 0.12), transparent 28%),
    var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand p { margin: 0; }

.brand-name {
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-trade {
  margin-top: 2px !important;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.message {
  align-self: center;
  max-width: 760px;
  padding: clamp(60px, 11vh, 120px) 0;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--cedar);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.25rem, 6.9vw, 7.4rem);
  font-weight: 680;
  line-height: 0.92;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.intro {
  max-width: 48ch;
  margin: clamp(30px, 5vh, 46px) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.72;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.measure {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 20px;
  border-bottom: 1px solid var(--cedar);
}

.measure span {
  width: 28px;
  border-left: 1px solid var(--cedar);
}

.measure span:nth-child(1) { height: 8px; }
.measure span:nth-child(2) { height: 15px; }
.measure span:nth-child(3) { height: 8px; border-right: 1px solid var(--cedar); }

.project-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-2);
}

.photo,
.drawing-grid {
  position: absolute;
  inset: 0;
}

.photo {
  background:
    linear-gradient(180deg, rgba(16, 27, 32, 0.06), rgba(16, 27, 32, 0.45)),
    url("/assets/deck-builder.jpg") center 42% / cover no-repeat;
  filter: saturate(0.82) contrast(1.04);
  animation: reveal 1.1s cubic-bezier(.2, .7, .2, 1) both;
}

.drawing-grid {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(241, 237, 229, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 237, 229, 0.11) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.project-note {
  position: absolute;
  right: clamp(22px, 4vw, 62px);
  bottom: clamp(22px, 4vw, 62px);
  width: min(310px, calc(100% - 44px));
  padding: 26px 28px;
  border-left: 4px solid var(--cedar);
  background: rgba(16, 27, 32, 0.86);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.project-note span {
  display: block;
  margin-bottom: 13px;
  color: var(--cedar);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-note strong {
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  font-weight: 640;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

@keyframes reveal {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 880px) {
  .launch-shell {
    grid-template-columns: 1fr;
  }

  .content-panel {
    min-height: 72svh;
  }

  .project-panel {
    min-height: 58svh;
  }

  h1 { max-width: 12ch; }
}

@media (max-width: 560px) {
  .content-panel {
    min-height: 78svh;
    padding: 24px 20px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .message {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-panel {
    min-height: 52svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo { animation: none; }
}
