:root {
  --black: #171514;
  --panel: #24211f;
  --paper: #f4efe7;
  --muted: #c9bdae;
  --accent: #bca06e;
  --line: rgba(244, 239, 231, 0.2);
  --white: #fffaf2;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.topbar {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(23, 21, 20, 0.88), rgba(23, 21, 20, 0));
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.08);
}
.mini-nav { display: flex; gap: 18px; color: var(--muted); font-size: 0.9rem; font-weight: 800; }
.mini-nav a:hover { color: var(--paper); }

.slide {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 110px clamp(18px, 5vw, 72px) 56px;
  overflow: visible;
}
.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}
.slide-bg.right-focus { object-position: center right; }
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 21, 20, 0.94), rgba(23, 21, 20, 0.58), rgba(23, 21, 20, 0.82));
}
.shade.strong { background: rgba(23, 21, 20, 0.78); }

.home-copy, .contents-panel, .page-panel, .contact-panel {
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Impact, "Arial Narrow", "Segoe UI Condensed", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}
.home-copy h1 { font-size: clamp(4.4rem, 16vw, 15rem); }
.home-copy p:not(.eyebrow), .page-panel p, .contact-panel p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
}
.button.primary { background: var(--paper); color: var(--black); }
.button.ghost { background: rgba(255, 250, 242, 0.06); color: var(--paper); }
.button:hover, .contents-grid a:hover, .project-card:hover { transform: translateY(-2px); }

.bottom-dock {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  left: clamp(18px, 5vw, 72px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  background: rgba(23, 21, 20, 0.72);
  padding: 18px 22px;
  backdrop-filter: blur(14px);
}
.bottom-dock span { color: var(--muted); }
.bottom-dock strong { color: var(--accent); }

.contents-panel h1, .page-panel h1, .contact-panel h1 {
  font-size: clamp(3.8rem, 9vw, 8rem);
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(960px, 100%);
  margin-top: 32px;
}
.contents-grid a {
  min-height: 64px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.07);
  padding: 14px 18px;
  color: var(--paper);
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}
.contents-grid a:hover { background: var(--paper); color: var(--black); }

.page-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.page-panel {
  border-left: 3px solid var(--accent);
  padding-left: clamp(18px, 3vw, 34px);
  max-width: 1180px;
}
.page-panel h2 { margin-top: 18px; color: var(--white); font-size: clamp(2.6rem, 6vw, 5.2rem); }
.visual-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.05);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.visual-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.next-strip {
  position: fixed;
  z-index: 24;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 10px;
}
.next-strip a {
  border: 1px solid var(--line);
  background: rgba(23, 21, 20, 0.84);
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 900;
}
.next-strip a:hover { color: var(--paper); }

.cards, .project-grid, .contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card, .project-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.055);
  padding: 22px;
}
.info-card span, .project-card span { color: var(--accent); font-weight: 900; }
.info-card h3, .project-card h3 { margin: 10px 0 8px; color: var(--white); }
.info-card p, .project-card p { color: var(--muted); line-height: 1.65; }
.project-card { transition: transform 160ms ease, border-color 160ms ease; }
.project-card:hover { border-color: var(--accent); }
.video-frame {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: #0f0e0d;
  border: 1px solid var(--line);
  color: var(--accent);
  font-family: Impact, "Arial Narrow", "Segoe UI Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.055);
  padding: clamp(20px, 3vw, 32px);
}
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 800; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--paper);
  padding: 12px 14px;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-list a { color: var(--paper); border-bottom: 1px solid var(--accent); font-weight: 900; }
.form-status { min-height: 24px; margin: 0; color: var(--accent); font-weight: 800; }

.thank-you h1 { font-size: clamp(5rem, 15vw, 14rem); }
.thank-you .home-copy { max-width: 880px; }

@media (max-width: 900px) {
  .mini-nav { gap: 12px; font-size: 0.82rem; }
  .page-grid, .contact-layout, .cards, .project-grid, .contents-grid { grid-template-columns: 1fr; }
  .slide { padding-top: 96px; }
  .home-copy h1 { font-size: clamp(3.6rem, 17vw, 6rem); }
  .contents-panel h1, .page-panel h1, .contact-panel h1 { font-size: clamp(3.4rem, 15vw, 5.6rem); }
  .bottom-dock { flex-direction: column; }
  .next-strip { position: static; margin: -42px 18px 24px; justify-content: flex-end; }
}

@media (max-width: 560px) {
  .brand strong { display: none; }
  .topbar { padding: 16px 18px; }
  .slide { padding-right: 18px; padding-left: 18px; }
  .actions .button { width: 100%; }
  .home-copy h1 { font-size: 4rem; }
  .thank-you h1 { font-size: 4.6rem; }
}
