:root {
  --ink: #162022;
  --muted: #5b6769;
  --paper: #f7f3ee;
  --surface: #ffffff;
  --line: #dde2df;
  --forest: #1c5146;
  --steel: #47758b;
  --amber: #cc7b33;
  --rose: #b65b63;
  --shadow: 0 18px 50px rgba(22, 32, 34, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 238, 0.88);
  border-bottom: 1px solid rgba(221, 226, 223, 0.8);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  padding: clamp(74px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 58px;
  border-bottom: 1px solid rgba(22, 32, 34, 0.12);
}

.hero-media {
  justify-self: center;
  width: min(100%, 560px);
  aspect-ratio: 1;
  max-height: 560px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
  transform: scale(1.35);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 1.42rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.news-section {
  padding-top: 56px;
  padding-bottom: 76px;
}

.news-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  max-width: 1280px;
  margin: 0 auto 14px;
}

.news-heading h2 {
  color: #3a75ad;
  font-size: 1.6rem;
  line-height: 1.1;
}

.news-heading p {
  margin: 0;
  color: #4d4d4d;
  font-size: 1.05rem;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 84px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(58, 117, 173, 0.04);
}

.news-item time {
  display: block;
  margin-bottom: 0;
  color: #174f86;
  font-size: 1.12rem;
  font-weight: 800;
}

.news-item p {
  margin-bottom: 0;
  color: #2f3438;
  font-size: 1.05rem;
  line-height: 1.55;
}

.news-item strong {
  color: #173657;
}

.news-item a {
  color: #4b4564;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.older-news {
  display: grid;
  gap: 12px;
}

.older-news summary {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  color: #174f86;
  font-size: 1.05rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(58, 117, 173, 0.04);
}

.older-news summary::-webkit-details-marker {
  display: none;
}

.summary-icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: #e5eff9;
  border-radius: 50%;
}

.summary-icon::before,
.summary-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  content: "";
  background: #174f86;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.older-news[open] .summary-icon::after {
  display: none;
}

.older-news-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--forest);
}

.button.primary:hover {
  background: #163f38;
}

.button.secondary {
  color: var(--forest);
  background: transparent;
  border-color: var(--forest);
}

.about-band {
  background: var(--ink);
}

.about-band h2,
.about-band p {
  color: #ffffff;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  max-width: 1120px;
  margin: 0 auto 34px;
}

.timeline {
  display: grid;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 170px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.timeline-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.timeline-title h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.timeline-title time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 750;
}

.timeline-item p {
  font-size: 1.12rem;
}

.timeline-item img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.timeline-item span,
.project-copy span,
.milestone-grid span {
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.research-section {
  background: var(--surface);
  border-top: 1px solid rgba(22, 32, 34, 0.1);
}

.research-list {
  display: grid;
  gap: 20px;
  max-width: 1480px;
  margin: 0 auto;
}

.research-card {
  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(0, 58%);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-left: 7px solid var(--forest);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(22, 32, 34, 0.06);
}

.research-media {
  min-height: 430px;
  background: #101819;
}

.research-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: contain;
}

.research-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 44px);
}

.research-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.research-kicker span,
.research-kicker time {
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.research-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.35vw, 2.35rem);
  line-height: 1.08;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 20px;
  color: var(--ink);
}

.research-meta span {
  font-size: 1.05rem;
  font-style: italic;
}

.research-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.project-section {
  background: #eef3f1;
}

.project-list {
  display: grid;
  gap: 20px;
  max-width: 1680px;
  margin: 0 auto;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(520px, 40%) minmax(0, 60%);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-row img,
.project-video {
  width: 100%;
  height: 100%;
  min-height: 560px;
}

.project-row img {
  object-fit: cover;
}

.project-video {
  background: #101819;
}

.project-video video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: contain;
}

.project-gif {
  display: grid;
  place-items: center;
}

.project-gif img {
  object-fit: contain;
}

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 42px;
}

.project-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-meta span {
  color: var(--ink);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 500;
  text-transform: none;
}

.project-copy p {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.project-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 1.21rem;
  line-height: 1.65;
}

.project-copy li {
  padding-left: 2px;
}

.project-award {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 750;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.work-list {
  display: grid;
  gap: 24px;
  max-width: 1360px;
  margin: 0 auto;
}

.work-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.work-video {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: #101819;
  border-radius: 14px;
}

.work-video video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
}

.work-logo {
  display: grid;
  place-items: center;
  min-height: 260px;
  align-self: center;
  overflow: hidden;
  background: #eef3f1;
  border-radius: 14px;
}

.work-logo img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 22px;
}

.connextion-logo {
  background: #edf2ff;
  width: 300px;
  min-height: 0;
  aspect-ratio: 415 / 351;
  justify-self: center;
  align-self: center;
}

.connextion-logo img {
  padding: 0;
  border-radius: 14px;
  max-height: none;
}

.mapify-logo img {
  padding: 0;
  border-radius: 14px;
  object-fit: contain;
}

.mapify-logo {
  width: 220px;
  min-height: 0;
  aspect-ratio: 1;
  justify-self: center;
  align-self: center;
}

.work-copy h3 {
  font-size: clamp(2rem, 2.7vw, 2.55rem);
}

.work-copy p,
.work-copy li {
  font-size: 1.2rem;
  line-height: 1.65;
}

.work-copy > span {
  font-size: 1.08rem;
}

.work-copy ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.skills-section {
  max-width: 1360px;
  margin: 72px auto 0;
}

.compact-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.skill-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, 64px);
  gap: 10px 18px;
  width: min(100%, 1040px);
  margin: 0 auto;
  align-items: center;
}

.skill-wall img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-flutter {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.skill-c {
  grid-column: 1 / 4;
  grid-row: 3 / 6;
}

.skill-arduino {
  grid-column: 9 / 11;
  grid-row: 1 / 3;
}

.skill-python {
  grid-column: 4 / 8;
  grid-row: 1 / 5;
}

.skill-opencv {
  grid-column: 8 / 12;
  grid-row: 3 / 5;
}

.skill-firebase {
  grid-column: 4 / 7;
  grid-row: 5 / 7;
}

.skill-inventor {
  grid-column: 8 / 12;
  grid-row: 5 / 7;
}

.skill-autocad {
  grid-column: 1 / 4;
  grid-row: 7 / 9;
}

.skill-ros {
  grid-column: 4 / 8;
  grid-row: 7 / 9;
}

.skill-matlab {
  grid-column: 8 / 12;
  grid-row: 7 / 9;
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.milestone-grid article {
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 72px);
  max-width: 1120px;
  margin: 0 auto;
}

address {
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

address strong {
  color: var(--ink);
  font-size: 1.35rem;
}

address a {
  color: var(--forest);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--forest);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-nav {
    gap: 14px;
    font-size: 1.05rem;
  }

  .hero,
  .section-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .work-card {
    grid-template-columns: 300px 1fr;
    gap: 30px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-media {
    max-height: 560px;
  }

  .milestone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-row {
    grid-template-columns: minmax(360px, 42%) minmax(0, 58%);
  }

  .research-card {
    grid-template-columns: minmax(340px, 44%) minmax(0, 56%);
  }

  .research-copy {
    padding: 30px;
  }

  .project-copy {
    padding: 30px;
  }

  .skill-wall {
    grid-template-rows: repeat(8, 52px);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  .news-heading {
    display: grid;
    gap: 8px;
  }

  .news-heading p {
    font-size: 0.98rem;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .research-card {
    grid-template-columns: 1fr;
  }

  .research-media,
  .research-media video {
    min-height: 280px;
  }

  .project-row img {
    height: 300px;
    min-height: 0;
  }

  .project-video,
  .project-video video {
    min-height: 300px;
  }

  .project-meta {
    display: grid;
    gap: 4px;
  }

  .project-copy {
    padding: 22px;
  }

  .work-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .work-logo {
    min-height: 190px;
  }

  .work-video,
  .work-video video {
    min-height: 260px;
  }

  .work-logo img {
    max-height: 190px;
  }

  .mapify-logo {
    width: 190px;
    min-height: 0;
  }

  .connextion-logo {
    width: 240px;
    min-height: 0;
  }

  .work-copy .project-actions {
    justify-content: flex-start;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr;
    padding: 22px;
  }

  .news-item {
    grid-template-columns: 110px 1fr;
    gap: 18px;
    min-height: auto;
    padding: 18px;
  }

  .timeline-title {
    display: grid;
    gap: 2px;
  }

  .timeline-item img {
    width: 64px;
    height: 64px;
  }

  .skill-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 22px;
  }

  .skill-wall img {
    grid-column: auto;
    grid-row: auto;
    height: 86px;
  }

  .site-footer {
    flex-direction: column;
  }

}
