/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

/* ========== THEME ========== */
:root {
  --accent: #bf5700;        /* UT burnt orange */
  --accent-soft: #fef3e7;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --text-main: #111827;
  --text-muted: #6b7280;
}

/* ========== GLOBAL ========== */
body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1150px;     /* wider content, less grey on sides */
  margin: 0 auto;
  padding: 0 1.25rem;    /* slightly tighter than before */
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background-color: rgba(243, 244, 246, 0.94);
  border-bottom: 1px solid rgba(209, 213, 219, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.logo span {
  color: var(--accent);     /* burnt orange */
}

.nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.85rem;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: #374151;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

/* ========== HERO ========== */
.hero {
  padding: 3.5rem 0 2.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-aside {
  display: flex;
  justify-content: center;
}
/* Hero headshot */
.hero-photo {
  width: 230px;              /* tweak size if you want bigger/smaller */
  height: 230px;
  border-radius: 999px;      /* circle */
  overflow: hidden;
  border: 3px solid #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  background-color: #e5e7eb;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* nice crop */
}

.hero-placeholder {
  border-radius: 1.25rem;
  border: 1px dashed var(--border-subtle);
  background: radial-gradient(circle at top left, #ffffff, #e5e7eb);
  color: var(--text-muted);
  padding: 3rem 1.7rem;
  font-size: 0.9rem;
  text-align: center;
}

/* ========== SECTIONS ========== */
.section,
.section-alt {
  padding: 3.1rem 0;
  background-color: transparent;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
}

.section:first-of-type {
  border-top: none;
}

.section h2 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 40rem;
  margin-bottom: 1.4rem;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-top: 2.1rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.05s ease;
}

.btn.primary {
  background-color: var(--accent);
  color: #fefefe;
}

.btn.primary:hover {
  background-color: #a44900;
  transform: translateY(-1px);
}

.btn.outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: #d1d5db;
}

.btn.outline:hover {
  background-color: #e5e7eb;
}

/* ========== CARD GRID ========== */
.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.4rem;
}

/* Common card style */
.card {
  display: block;
  background-color: var(--bg-card);
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.3rem 1.35rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.1s ease,
    box-shadow 0.16s ease;
}

.card:hover {
  border-color: rgba(191, 87, 0, 0.7); /* burnt orange edge */
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.card h3 {
  font-size: 1.04rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Thumbnail area for Selected Projects */
.card-media {
  margin: 0.65rem 0 0.8rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background-color: #e5e7eb;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #6b7280;
}

.card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.tag {
  font-size: 0.74rem;
  padding: 0.14rem 0.6rem;
  border-radius: 999px;
  background-color: var(--accent-soft);
  color: #7c2d12;
}

/* Inline "View project" label */
.card-link-inline {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ========== EXPERIENCE ========== */
.experience-list {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.experience-item {
  background-color: var(--bg-card);
  border-radius: 1.05rem;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.02);
}

.experience-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.experience-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.experience-item ul {
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.experience-item li + li {
  margin-top: 0.22rem;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.skills-column h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.skills-column ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.skills-column li + li {
  margin-top: 0.2rem;
}

/* ========== ABOUT (FULL-WIDTH FEATURE CARDS) ========== */

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;          /* space between each big card */
  margin-top: 1.8rem;
}

/* Each card is a wide, tall split layout */
.about-card {
  background-color: var(--bg-card);
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  padding: 2.1rem 2rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 1.8rem;
  align-items: center;
  min-height: 70vh;     /* tweak this for height; try 90vh for near full screen */
}

/* Text column */
.about-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-content p {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 0.6rem;
}

/* Image column with ~3 photos */
.about-media {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.about-media img {
  width: 100%;
  height: 240px;
  border-radius: 0.9rem;
  object-fit: cover;
}

/* ========== CONTACT ========== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background-color: #f9fafb;
}

.footer-inner {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    order: -1;
    margin-bottom: 1.7rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .about-card {
    grid-template-columns: 1fr;
    padding: 1.6rem 1.4rem;
    min-height: auto;
  }

  .about-media img {
    height: 150px;
  }
}
/* ======= PROJECT PAGES ======= */

.project-hero {
  padding: 3rem 0 2.5rem;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.project-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
}

.project-title {
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.project-subtitle {
  color: #4b5563;
  font-size: 1.05rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-size: 0.92rem;
  color: #6b7280;
}

.project-meta-item span {
  display: block;
}

.project-meta-label {
  font-weight: 600;
  color: #4b5563;
}
.project-meta-timeline {
  margin-left: auto;
}


.project-main {
  padding: 2.5rem 0 4.5rem;
}

.project-layout {
  max-width: 1100px;
  margin: 0 auto;
}

/* Sidebar floats right; text wraps around it */
.project-layout aside {
  float: right;
  width: 34%;              /* tweak between 30–38% */
  margin-left: 2rem;
}

/* Main text column just flows normally */
.project-main-column {
  /* no special layout needed */
}

/* Clear the float after everything */
.project-layout::after {
  content: "";
  display: block;
  clear: both;
}

/* On mobile, stack */
@media (max-width: 900px) {
  .project-layout aside {
    float: none;
    width: 100%;
    margin: 0 0 2rem 0;
  }
}


.project-section + .project-section {
  margin-top: 2rem;
}

.project-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.project-section p,
.project-section ul {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.7;
}

.project-section ul {
  padding-left: 1.1rem;
}

.project-section ul li + li {
  margin-top: 0.35rem;
}
/* Make specific sections (like the block diagram) start below the sidebar
   and use the full width of the content area */
.project-section-full {
  clear: both;
}

/* Sidebar */

.project-sidebar-card {
  background: #f9fafb;
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid #e5e7eb;
}

.project-sidebar-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.project-sidebar-card ul {
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.project-sidebar-card ul li + li {
  margin-top: 0.25rem;
}
.project-plot-thumb {
  margin: 0 0 0.9rem 0;
}


/* Two-up image row for large prototypes below the sidebar */
.project-plot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Stack on small screens */
@media (max-width: 768px) {
  .project-plot-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Project figures (one system) ===== */
.project-figure {
  margin: 1rem 0 1.25rem;
}

/* Prevent figures from sitting underneath the floated sidebar */
.project-figure {
  display: flow-root;
}

.project-figure img {
  width: 100%;
  display: block;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}

/* Default: photos (crop nicely) */
.project-figure--photo img {
  height: 300px;
  min-height: 300px;              /* adjust 260–360 */
  object-fit: cover;
}

/* CAD / plots: do NOT crop */
.project-figure--diagram img {
  height: auto;
  max-height: 520px;          /* keeps it from getting absurdly tall */
  object-fit: contain;
  background: #ffffff;
}

/* Narrow technical figure (makes it feel “reference”, not “hero”) */
.project-figure--narrow {
  max-width: 720px;           /* tweak 640–760 */
  margin-left: auto;
  margin-right: auto;
}

.project-figure figcaption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

.project-plot-thumb img {
  width: 100%;
  border-radius: 0.8rem;
  display: block;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.plot-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.project-plot-thumb figcaption {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #6b7280;
}
/* Keep the block diagram closer to the left-column width */
.project-block-diagram {
  max-width: 60%;     /* tweak between ~60–70% to taste */
}

/* (optional) make sure it hugs the left, not centered */
.project-block-diagram {
  margin-right: auto;
}

/* Project page hero image */
/* Wrapper for hero media */
.project-hero-media {
  margin-top: 1rem;
}

/* Two-image layout */
.project-hero-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Each image card */
.project-hero-figure {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #e5e7eb;
}

.project-hero-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Stack on mobile */
@media (max-width: 900px) {
  .project-hero-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.site-footer p {
  font-size: 0.85rem;
  color: #6b7280;
}

.footer-divider {
  margin: 0 0.4rem;
  color: #9ca3af;
}
