@font-face {
  font-family: "Open Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --dark: #1a1a1a;
  --grey: #333;
  --light: #fff;
  --accent: #ff8600;
  --link: #478ac9;
  --heading: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  background: var(--dark);
  color: #fff;
  font: 16px/1.6 "Open Sans", Arial, sans-serif;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; margin-top: 1.2rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
section { padding: 3.5rem 0; }
.dark { background: var(--dark); }
.grey { background: var(--grey); }
.light { background: var(--light); color: #111; }

/* Buttons & icons */
.btn {
  display: inline-block; padding: .55rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: #111; text-decoration: none;
  font: 700 .7rem/1.4 var(--heading); text-transform: uppercase; letter-spacing: .03em;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.year { display: block; color: var(--accent); font: 700 .85rem var(--heading); margin-bottom: .3rem; }
.light .year { color: #b35c00; }
.icons { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.icon { width: 32px; height: 32px; color: var(--accent); }
.icon img, .icon svg { width: 100%; height: 100%; border-radius: 50%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--dark); }
.site-header .wrap { min-height: 85px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; }
.logo { font: 700 1.6rem var(--heading); color: #fff; text-decoration: none; }
.site-header nav { display: flex; gap: 1.8rem; font-weight: 700; font-size: .95rem; }
.site-header nav a { color: #fff; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }
.dropdown { position: relative; }
.dropdown > a::after { content: " ⌄"; }
.dropdown ul {
  display: none; position: absolute; right: 0; top: 100%; min-width: 200px;
  list-style: none; margin: 0; padding: .5rem 0; background: var(--dark);
}
.dropdown:hover ul, .dropdown:focus-within ul { display: block; }
.dropdown li a { display: block; padding: .4rem 1rem; font-weight: 400; }

/* Index hero */
.hero {
  min-height: 650px; display: flex; align-items: center;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url(images/object-wars-bg.webp) center / cover;
}
.hero-top { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.hero-top img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); text-transform: uppercase; margin: 0; }
.hero p { font-size: 1.15rem; }
.hero .icons { margin: 1.2rem 0 .5rem; }
.hero .icon { width: 42px; height: 42px; }
.hero small a { color: #fff; text-decoration: none; }

/* Project blocks */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
.project > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 1.2rem; }
.project .actions { margin-top: 1.2rem; }
.row { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; margin-top: 2rem; }
.row > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.row p { margin: 0 0 .9rem; }

/* Skills */
.tags { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { border: 3px solid var(--accent); border-radius: 999px; padding: .1rem .6rem; font-weight: 700; font-size: .95rem; }
.project .tags, .row .tags { margin: .4rem 0 1rem; }

/* About */
.about h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* Project pages */
.banner { min-height: 600px; display: flex; align-items: flex-end; padding-bottom: 1rem; background-position: center; background-size: cover; }
.banner h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.feature h4 { margin-top: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.split.wide-left { grid-template-columns: 3fr 2fr; }
.trio { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: start; }
.trio img { width: 200px; }
.stack { display: grid; gap: 1rem; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.float { float: left; max-width: 45%; margin: 0 1.5rem 1rem 0; }
.clear { clear: both; }
.info { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.info iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.info .actions { flex-direction: column; align-items: flex-start; }

/* Footer */
footer { background: var(--grey); padding: 3rem 0; text-align: center; }
footer h2 { font-size: 1.4rem; }
footer .icons { justify-content: center; margin: 1rem 0; }
footer .icon { width: 42px; height: 42px; }

@media (max-width: 760px) {
  .cols, .row, .split, .split.wide-left, .trio, .info, .videos { grid-template-columns: 1fr; }
  .trio img { width: 100%; max-width: 300px; }
  .float { float: none; max-width: 100%; margin: 0 0 1rem; }
  .hero-top { flex-direction: column; align-items: flex-start; }
  .hero-top img { width: 140px; height: 140px; }
  .site-header nav { gap: .3rem 1rem; flex-wrap: wrap; font-size: .9rem; }
  /* no hover on touch screens: show the project links directly */
  .dropdown > a { display: none; }
  .dropdown ul { display: flex; flex-wrap: wrap; gap: .3rem 1rem; position: static; min-width: 0; padding: 0; background: none; }
  .dropdown li a { padding: 0; font-weight: 700; }
  .site-header .icon { display: none; } /* already in hero + footer */
  .site-header .wrap { min-height: 64px; padding-block: .5rem; }
  .logo { font-size: 1.25rem; }
}
