:root {
  --bg: #10141b;
  --bg-soft: #171d26;
  --bg-ink: #0b0f15;
  --text: #eef3f8;
  --muted: #9ca8b5;
  --faint: #667382;
  --accent: #d58a22;
  --accent-soft: rgba(213, 138, 34, 0.16);
  --line: rgba(255, 255, 255, 0.08);
  --panel: #161c24;
  --white: #ffffff;
  --panel-2: #121820;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 20px 38px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Jura", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 14% -10%, rgba(82, 102, 130, 0.24) 0, transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(213, 138, 34, 0.14) 0, transparent 22%),
    linear-gradient(180deg, #0f141b 0%, #111720 36%, #0d1218 100%);
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.4;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
  opacity: 0.28;
}

body::after {
  background:
    radial-gradient(circle at 70% 18%, rgba(213, 138, 34, 0.09), transparent 18%),
    radial-gradient(circle at 24% 72%, rgba(72, 99, 133, 0.12), transparent 20%);
  z-index: -1;
}

a {
  color: inherit;
}

.site-wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
  padding-bottom: 2rem;
}

.light-streak {
  position: absolute;
  top: -18px;
  left: 332px;
  width: 2px;
  height: 280px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  transform: rotate(19deg);
  opacity: 0.72;
  pointer-events: none;
  filter: blur(0.2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 1.6rem;
  margin-bottom: 1.2rem;
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(1.2rem, 3vw, 2.4rem);
  background: rgba(14, 19, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding-left: 0.35rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
}

.brand-mark::before {
  left: 0;
  top: 0;
  background: var(--accent);
}

.brand-mark::after {
  right: 0;
  bottom: 0;
  background: var(--white);
}

.brand-name {
  font-family: "Teko", "Arial Narrow", sans-serif;
  color: var(--accent);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: 0.07em;
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(213, 138, 34, 0.18);
}

.top-nav {
  justify-self: end;
  display: flex;
  gap: clamp(0.5rem, 1.2vw, 0.8rem);
  align-items: center;
  padding-right: 0.2rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--faint);
  font-size: 0.93rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.66rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 200ms ease, opacity 200ms ease, background 200ms ease, border-color 200ms ease;
  opacity: 0.92;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
  padding-top: clamp(1.6rem, 4vw, 3rem);
}

.kicker {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  color: #aeb8c4;
}

.hero-name {
  margin: 0.8rem 0 0;
  color: var(--accent);
  font-family: "Teko", "Arial Narrow", sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
}

.intro,
.body-copy,
.work-copy {
  color: #dae2ea;
  max-width: 34ch;
}

.intro {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.28;
  margin-top: 1rem;
}

.body-copy {
  font-size: clamp(1.02rem, 1.12vw, 1.12rem);
  line-height: 1.62;
  color: #b3bec9;
  margin-top: 1.5rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 50px;
  padding: 0.5rem 1.12rem;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.button-primary {
  background: linear-gradient(180deg, #df972d, #c97d17);
  color: #fefefe;
  box-shadow: 0 10px 30px rgba(201, 125, 23, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e9eef4;
}

.button:hover {
  transform: translateY(-2px);
  opacity: 0.97;
}

.portrait-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #131920;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  justify-self: end;
  border-radius: var(--radius-lg);
  position: relative;
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  display: block;
}

.social-row {
  margin-top: 1rem;
  display: flex;
  gap: 0.55rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf1f5;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition: border-color 170ms ease, transform 170ms ease, color 170ms ease;
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.home-pillars {
  margin-top: clamp(4rem, 9vw, 6rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.008));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.4vw, 2.6rem);
  box-shadow: var(--shadow-card);
}

.pillar {
  text-align: left;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.pillar h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.pillar p {
  margin: 1rem 0 0;
  max-width: 30ch;
  color: #b1bcc8;
  font-size: clamp(0.98rem, 1.04vw, 1.08rem);
  line-height: 1.58;
}

.page-main {
  padding-top: clamp(2rem, 5vw, 4.2rem);
}

.work-intro {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 5rem;
}

.work-intro h1,
.section-title,
.page-main h1 {
  margin: 0;
  font-size: clamp(3rem, 4.1vw, 4.4rem);
  font-weight: 500;
  line-height: 0.94;
}

.section-title {
  margin-bottom: 1.2rem;
}

.work-cluster {
  margin-top: clamp(2.1rem, 4vw, 3.2rem);
  padding-top: clamp(1.2rem, 2.6vw, 2rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.work-cluster:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.section-copy {
  margin: -0.35rem 0 1.35rem;
  max-width: 62ch;
  color: #aab6c1;
  font-size: clamp(1rem, 1.06vw, 1.12rem);
  line-height: 1.6;
}

.work-subcluster {
  margin-top: 1.8rem;
}

.subsection-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  font-weight: 600;
  color: #eef3f8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.subsection-copy {
  margin: 0 0 1rem;
  color: #bbc4ce;
  font-size: clamp(0.96rem, 1vw, 1.04rem);
  line-height: 1.45;
}

.work-empty {
  margin: 0.6rem 0 0.3rem;
  color: #aeb8c2;
  font-size: clamp(1rem, 1.04vw, 1.1rem);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  padding-bottom: 0.4rem;
}

.work-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, #171d25, #121820);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(213, 138, 34, 0.45);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: saturate(0.96) contrast(1.03);
}

.work-card h3 {
  margin: 0;
  padding: 1rem 1rem 0.28rem;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
}

.work-card h3 a {
  text-decoration: none;
  transition: color 160ms ease;
}

.work-card h3 a:hover {
  color: var(--accent);
}

.work-card p {
  margin: 0;
  padding: 0 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.52;
}

.content-panel {
  max-width: 820px;
}

.content-panel p {
  font-size: clamp(1.2rem, 1.35vw, 1.45rem);
  line-height: 1.4;
  color: #d4dae2;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lab-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008)), var(--panel);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.lab-card h2 {
  margin: 0;
  font-size: 1.6rem;
}

.lab-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.contact-list li {
  margin-bottom: 0.7rem;
  font-size: clamp(1.15rem, 1.3vw, 1.35rem);
}

.contact-list a {
  color: #dbe4ec;
  text-decoration-color: rgba(213, 138, 34, 0.55);
  text-underline-offset: 0.18em;
}

.page-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    justify-self: start;
    width: min(100%, 560px);
  }

  .site-header {
    border-radius: 28px;
  }

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

  .home-pillars {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    row-gap: 1.2rem;
    border-radius: 24px;
  }

  .top-nav {
    justify-self: start;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-right: 0;
  }

  .work-intro {
    grid-template-columns: 1fr;
    margin-bottom: 2.8rem;
  }

  .work-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    width: 100%;
  }

  .pillar {
    padding: 1.1rem;
  }

  .light-streak {
    display: none;
  }
}
