@import url("colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-0); color: var(--fg-0); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 960px) { .container { padding: 0 48px; } }
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 56px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line-1);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.02em; color: var(--fg-0);
}
.wordmark .accent { color: var(--accent); }
.nav-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
  margin-left: 16px;
}
.nav-links { display: flex; gap: 28px; font-size: 13px; }
.nav-links a {
  color: var(--fg-1);
  transition: color 120ms var(--ease-out);
  font-family: var(--font-body);
}
.nav-links a:hover { color: var(--accent); }

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.hero-plate {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55) contrast(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding-bottom: 64px;
  background: linear-gradient(to top, rgba(12,12,14,0.85) 0%, transparent 60%);
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px; display: block;
}
.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0; letter-spacing: -0.03em;
  color: var(--fg-0); margin: 0 0 16px;
}
.hero-sub {
  font-family: var(--font-body); font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5; color: var(--fg-1);
  max-width: 56ch; margin: 0;
}

/* ---- SECTIONS ---- */
.section { padding: 96px 0 48px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--line-1);
  padding-top: 24px; margin-bottom: 48px;
  gap: 24px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 32px;
  letter-spacing: -0.015em; margin: 0;
}
.section-head .right {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
}

/* ---- TWO-COL (motivation) ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.col-text .lede {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.25; letter-spacing: -0.015em;
  color: var(--fg-0); margin: 0 0 24px;
}
.col-text .lede .amber { color: var(--accent); }
.col-text p {
  font-family: var(--font-body); font-size: 15px;
  line-height: 1.7; color: var(--fg-1);
  max-width: 58ch; margin: 0 0 16px;
}
.col-text em { color: var(--fg-0); font-style: italic; }

/* ---- IMAGE FRAMES ---- */
.img-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-1);
  background: var(--bg-1);
}
.img-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.04) saturate(0.96);
  background: unset;
  background-color: unset;
}
.img-frame video {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  background: unset;
  background-color: unset;
}
.img-frame::before,
.img-frame::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--accent); pointer-events: none; z-index: 2;
}
.img-frame::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.img-frame::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.tarx-preview-frame { background: var(--bg-2); }
.tarx-preview-frame-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("media/TARXPreview.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(4px);
}

.img-tag {
  position: absolute; bottom: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(12,12,14,0.65); backdrop-filter: blur(6px);
  border: 1px solid var(--accent-edge);
  padding: 4px 8px; border-radius: 2px; z-index: 2;
}

.col-img .img-frame { aspect-ratio: 4 / 3; }

/* ---- SPEC GRID ---- */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-1);
  border: 1px solid var(--line-1); border-radius: 8px;
  overflow: hidden; margin-bottom: 48px;
}
@media (max-width: 880px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-card {
  background: var(--bg-1); padding: 32px;
  display: flex; flex-direction: column;
}
.spec-card.highlight { background: var(--bg-2); }
.spec-num {
  font-family: var(--font-display); font-weight: 500;
  font-size: 36px; letter-spacing: -0.02em;
  color: var(--fg-0); line-height: 1;
}
.spec-card.highlight .spec-num { color: var(--accent); }
.spec-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-2); margin-top: 8px;
}
.spec-card p {
  font-family: var(--font-body); font-size: 14px;
  line-height: 1.6; color: var(--fg-1);
  margin: 16px 0 0;
}

/* ---- IMAGE STRIP ---- */
.img-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 48px;
}
@media (max-width: 720px) { .img-strip { grid-template-columns: 1fr; } }
.img-strip .img-frame { aspect-ratio: 16 / 10; }

/* Visible break between stacked project stories (#projects) */
.project-split {
  margin: 48px 0 56px;
  padding-top: 64px;
  border-top: 1px solid var(--line-1);
  position: relative;
}
.project-split::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(200px, 45%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(212, 160, 74, 0.08));
}

/* ---- CALLOUT ROW ---- */
.callout-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line-1);
  border: 1px solid var(--line-1); border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 880px) { .callout-row { grid-template-columns: 1fr; } }

.callout {
  background: var(--bg-1); padding: 32px;
}
.callout h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 20px;
  letter-spacing: -0.01em; margin: 0 0 12px; color: var(--fg-0);
}
.callout p {
  font-family: var(--font-body); font-size: 14px;
  line-height: 1.65; color: var(--fg-1); margin: 0;
}

/* ---- THESIS ---- */
.thesis-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 880px) { .thesis-block { grid-template-columns: 1fr; } }

.thesis-info .lede {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3; letter-spacing: -0.01em;
  color: var(--fg-0); margin: 0 0 20px;
}
.thesis-info p {
  font-family: var(--font-body); font-size: 15px;
  line-height: 1.7; color: var(--fg-1);
  max-width: 56ch; margin: 0 0 28px;
}

/* btn */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border: 1px solid var(--line-2); border-radius: 4px;
  background: transparent; color: var(--fg-0);
  transition: all 120ms var(--ease-out);
  text-decoration: none; cursor: pointer;
}
.btn:hover {
  color: var(--accent); border-color: var(--accent-edge);
  background: var(--accent-tint);
}
.btn-primary {
  background: var(--accent-tint); border-color: var(--accent-edge);
  color: var(--accent);
}
.btn-primary:hover {
  background: rgba(212,160,74,0.2); border-color: var(--accent);
}

/* pdf preview */
.pdf-frame {
  border: 1px solid var(--line-1); border-radius: 8px;
  overflow: hidden; background: var(--bg-1);
}
.pdf-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line-1);
}
.pdf-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-3);
}
.pdf-dot:first-child { background: #B66756; }
.pdf-dot:nth-child(2) { background: var(--accent-lo); }
.pdf-dot:nth-child(3) { background: var(--success); }
.pdf-name {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-2); margin-left: 8px;
}
.pdf-body { aspect-ratio: 4 / 3; }
.pdf-body img { width: 100%; height: 100%; object-fit: cover; }

/* ---- VIDEO ---- */
.video-embed {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-1); border-radius: 8px;
  overflow: hidden; background: var(--bg-1);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-caption {
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg-2); margin-top: 16px; text-align: center;
}

/* Vertical videos subsection */
.vertical-videos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 32px; margin-top: 48px; padding-top: 48px;
  border-top: 1px solid var(--line-1);
}
@media (max-width: 720px) { .vertical-videos { grid-template-columns: 1fr; } }

.vertical-video-container {
  display: flex; flex-direction: column; gap: 12px;
}

.video-placeholder {
  position: relative; width: 100%;
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.video-placeholder.vertical { aspect-ratio: 9 / 16; }

.placeholder-text {
  font-family: var(--font-body); font-size: 16px;
  color: var(--fg-2);
}

.video-frame {
  position: relative; width: 100%;
  background: var(--bg-1); border: 1px solid var(--line-1);
  border-radius: 8px; overflow: hidden;
}
.video-frame.vertical { aspect-ratio: 9 / 16; }
.video-frame video {
  width: 100%; height: 100%; object-fit: cover;
}

.video-placeholder-box {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--fg-2);
  font-family: var(--font-body); font-size: 16px;
}

.video-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2); margin: 0;
}

/* ---- FOOTER ---- */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line-1);
  margin-top: 48px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-back {
  font-family: var(--font-body); font-size: 14px;
  color: var(--fg-1);
  transition: color 120ms var(--ease-out);
}
.footer-back:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}

/* smooth scroll */
html { scroll-behavior: smooth; }

/* selection */
::selection { background: var(--accent); color: var(--bg-0); }
