:root {
  --bg: #07090b;
  --panel: #0b0d10;
  --panel-soft: #0e1114;
  --text: #f4f4f2;
  --muted: #b7b7b5;
  --muted-dark: #777b80;
  --line: #24282d;
  --gold: #c79a45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  scroll-margin-top: 72px;
}


/* ========================================
   TOP NAVIGATION
======================================== */

.topbar {
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 4.2vw;

  position: fixed;
  inset: 0 0 auto 0;

  z-index: 20;

  background: rgba(5, 7, 9, .84);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,.04);
}

.brand {
  font-family: "Playfair Display", serif;

  font-size: 36px;
  line-height: 1;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  position: relative;

  padding: 27px 0 19px;

  color: #ddd;

  font-size: 11px;
  letter-spacing: .22em;

  text-transform: uppercase;

  transition: color .2s ease;
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 9px;

  height: 1px;

  background: var(--gold);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform .25s ease;
}

nav a:hover {
  color: #fff;
}

nav a:hover::after {
  transform: scaleX(1);
}


/* ========================================
   HERO
======================================== */

.hero {
  min-height: 650px;
  height: 72vh;

  position: relative;

  overflow: hidden;

  display: grid;
  place-items: center;

  padding-top: 72px;

  background:
    radial-gradient(
      circle at 76% 34%,
      rgba(255,255,255,.17),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #05070a 0%,
      #111418 55%,
      #353330 100%
    );
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      transparent 10%,
      rgba(0,0,0,.42) 78%
    );
}

.ambient {
  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  opacity: .17;
}

.ambient-one {
  width: 420px;
  height: 420px;

  background: #faf5e8;

  right: 8%;
  top: 18%;
}

.ambient-two {
  width: 320px;
  height: 320px;

  background: #7d91a0;

  left: 12%;
  top: 28%;
}

.hero-copy {
  position: relative;

  z-index: 5;

  text-align: center;

  transform: translateY(-18px);
}

.eyebrow,
.section-label {
  margin: 0 0 28px;

  color: var(--gold);

  font-size: 13px;
  letter-spacing: .33em;

  text-transform: uppercase;
}

h1 {
  margin: 0;

  padding-left: .20em;

  font-size: clamp(76px, 9vw, 132px);

  line-height: .9;

  font-weight: 300;

  letter-spacing: .20em;
}

.gold-rule,
.mini-rule,
.about-gold-rule {
  display: block;

  height: 2px;

  background: var(--gold);
}

.gold-rule {
  width: 52px;

  margin: 38px auto 24px;
}

.tagline {
  color: #d1d1cf;

  font-size: 18px;

  font-weight: 300;

  letter-spacing: .06em;
}

.scroll {
  width: 54px;
  height: 54px;

  margin: 42px auto 0;

  display: grid;
  place-items: center;

  border: 2px solid var(--gold);

  border-radius: 50%;

  color: var(--gold);

  font-size: 26px;

  transition:
    transform .25s ease,
    background .25s ease;
}

.scroll:hover {
  transform: translateY(4px);

  background: rgba(199,154,69,.08);
}


/* ========================================
   MOUNTAINS
======================================== */

.mountains {
  position: absolute;

  z-index: 3;

  left: 0;
  right: 0;
  bottom: -2px;

  height: 270px;

  opacity: .96;
}

.m {
  position: absolute;

  bottom: 0;

  background:
    linear-gradient(
      145deg,
      #1b1d20 0%,
      #080a0c 55%,
      #020304 100%
    );

  filter:
    drop-shadow(
      0 -14px 35px rgba(0,0,0,.45)
    );

  clip-path:
    polygon(
      0 100%,
      18% 66%,
      31% 76%,
      48% 34%,
      65% 70%,
      78% 52%,
      100% 100%
    );
}

.m1 {
  left: -8%;

  width: 52%;
  height: 78%;
}

.m2 {
  left: 20%;

  width: 48%;
  height: 64%;

  opacity: .88;
}

.m3 {
  right: -6%;

  width: 58%;
  height: 96%;

  clip-path:
    polygon(
      0 100%,
      17% 68%,
      34% 78%,
      50% 20%,
      66% 57%,
      79% 42%,
      100% 100%
    );
}

.m4 {
  right: 22%;

  width: 35%;
  height: 54%;

  opacity: .65;
}


/* ========================================
   ABOUT
======================================== */

.about-section {
  position: relative;

  overflow: hidden;

  padding: 85px 6vw 90px;

  background: #07090b;

  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: 1180px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(340px, .88fr);

  align-items: center;

  gap: 50px;
}

.about-copy {
  position: relative;

  z-index: 2;

  text-align: left;
}

.about-copy .section-label {
  margin: 0 0 18px;

  color: var(--gold);

  font-size: 12px;

  font-weight: 500;

  letter-spacing: .34em;
}

.about-gold-rule {
  width: 42px;

  margin: 0 0 32px;
}

.about-title {
  max-width: 700px;

  margin: 0;

  color: #f0efeb;

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size:
    clamp(30px, 3vw, 44px);

  line-height: 1.42;

  font-weight: 500;
}

.about-text {
  max-width: 640px;

  margin: 30px 0 0;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.9;
}


/* ========================================
   ABOUT PORTRAIT
======================================== */

.about-portrait-wrap {
  position: relative;

  width: 100%;
  max-width: 440px;

  margin-left: auto;
}

.about-portrait-wrap::before {
  content: "";

  position: absolute;

  top: -12px;
  right: -12px;

  width: 68%;
  height: 68%;

  border-top:
    1px solid rgba(199,154,69,.65);

  border-right:
    1px solid rgba(199,154,69,.65);

  z-index: 3;

  pointer-events: none;
}

.about-portrait-wrap::after {
  content: "";

  position: absolute;

  left: -12px;
  bottom: 48px;

  width: 42%;
  height: 40%;

  border-left:
    1px solid rgba(199,154,69,.26);

  border-bottom:
    1px solid rgba(199,154,69,.26);

  z-index: 3;

  pointer-events: none;
}

.about-portrait {
  position: relative;

  z-index: 2;

  display: block;

  width: 100%;
  height: auto;

  max-height: 550px;

  object-fit: cover;

  border-radius: 3px;

  filter:
    contrast(1.03)
    saturate(.92);

  box-shadow:
    0 30px 70px rgba(0,0,0,.5);
}

.portrait-glow {
  position: absolute;

  z-index: 1;

  width: 76%;
  height: 76%;

  right: -10%;
  top: 10%;

  border-radius: 50%;

  background:
    rgba(199,154,69,.14);

  filter: blur(70px);
}

.portrait-caption {
  position: relative;

  z-index: 4;

  padding: 16px 2px 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border-top:
    1px solid rgba(255,255,255,.08);
}

.portrait-caption span {
  color: var(--gold);

  font-size: 11px;

  letter-spacing: .28em;
}

.portrait-caption small {
  color: #777b80;

  font-size: 9px;

  letter-spacing: .16em;
}


/* ========================================
   EXPERIENCE
======================================== */

.experience-section {
  min-height: 320px;

  margin: 0;

  padding:
    64px
    max(36px, calc((100vw - 1040px) / 2));

  display: grid;

  grid-template-columns:
    260px 1fr;

  gap: 70px;

  align-items: center;

  background:
    radial-gradient(
      circle at 18% 50%,
      rgba(199,154,69,.07),
      transparent 30%
    ),
    var(--panel-soft);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-years {
  position: relative;

  text-align: center;
}

.experience-years::after {
  content: "";

  position: absolute;

  top: 50%;
  right: -35px;

  transform: translateY(-50%);

  width: 1px;
  height: 160px;

  background: var(--line);
}

.years-number {
  color: var(--gold);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 88px;

  line-height: .9;
}

.years-label {
  margin-top: 18px;

  color: #d7d7d3;

  font-size: 12px;

  letter-spacing: .38em;
}

.experience-content .section-label {
  margin-bottom: 15px;

  font-size: 11px;

  letter-spacing: .26em;
}

.experience-content h2 {
  margin: 0;

  font-size: 30px;

  font-weight: 400;
}

.experience-content h3 {
  margin: 10px 0 16px;

  color: var(--gold);

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 32px;

  font-weight: 500;
}

.experience-company {
  margin: 0;

  color: var(--muted);

  font-size: 14px;
}

.experience-company strong {
  color: #e3e3df;

  font-weight: 500;
}

.founded {
  margin-top: 18px;

  color: #8b8e92;

  font-size: 12px;

  letter-spacing: .12em;

  text-transform: uppercase;
}

.founded strong {
  color: var(--gold);

  font-weight: 500;
}


/* ========================================
   PROJECTS / APPROACH / CONTACT
======================================== */

.info-grid {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  padding: 80px 34px 72px;
}

.card {
  min-height: 300px;

  padding: 0 54px;

  text-align: center;
}

.card + .card {
  border-left: 1px solid var(--line);
}

.icon {
  height: 56px;

  display: flex;

  align-items: center;
  justify-content: center;

  color: var(--gold);

  font-size: 42px;

  font-weight: 300;
}

.icon.code {
  font-family:
    ui-monospace,
    Consolas,
    monospace;

  font-size: 36px;
}

.card h2 {
  margin: 22px 0 14px;

  font-size: 16px;

  letter-spacing: .25em;
}

.mini-rule {
  width: 28px;

  margin: 0 auto 20px;
}

.card p,
.card li {
  color: var(--muted);

  font-size: 15px;

  line-height: 1.8;
}

.card ul {
  display: inline-block;

  margin: 0;

  padding-left: 20px;

  text-align: left;
}

.card li::marker {
  color: var(--gold);
}

.email {
  display: inline-block;

  margin-top: 4px;

  color: var(--gold);

  font-size: 16px;

  transition: opacity .2s ease;
}

.email:hover {
  opacity: .7;
}


/* ========================================
   FOOTER
======================================== */

footer {
  padding: 30px 20px 36px;

  text-align: center;

  color: #9a9a98;

  font-size: 12px;

  letter-spacing: .05em;
}

footer strong {
  color: var(--gold);

  font-weight: 500;
}


/* ========================================
   SOUND BUTTON
======================================== */

.sound-button {
  position: fixed;

  right: 28px;
  bottom: 26px;

  z-index: 50;

  min-width: 108px;

  padding: 11px 16px;

  display: flex;

  align-items: center;

  gap: 9px;

  border:
    1px solid rgba(199,154,69,.5);

  border-radius: 999px;

  background:
    rgba(7,9,11,.82);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  color: #aaa;

  font-family:
    Inter,
    system-ui,
    sans-serif;

  font-size: 10px;

  letter-spacing: .14em;

  cursor: pointer;

  transition:
    color .25s ease,
    border-color .25s ease,
    background .25s ease,
    transform .25s ease;
}

.sound-button:hover {
  color: var(--gold);

  border-color: var(--gold);

  background:
    rgba(13,15,18,.94);

  transform:
    translateY(-2px);
}

.sound-button.is-playing {
  color: var(--gold);

  border-color:
    rgba(199,154,69,.8);
}

.sound-icon {
  width: 18px;

  color: var(--gold);

  font-size: 17px;

  line-height: 1;

  text-align: center;
}

.sound-button.is-playing
.sound-icon {
  animation:
    sound-pulse
    2.2s
    ease-in-out
    infinite;
}

@keyframes sound-pulse {

  0%,
  100% {
    opacity: .65;
  }

  50% {
    opacity: 1;
  }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

  nav {
    gap: 18px;
  }

  nav a {
    font-size: 9px;

    letter-spacing: .14em;
  }


  /* ABOUT */

  .about-section {
    padding: 80px 7vw;
  }

  .about-inner {
    grid-template-columns: 1fr;

    gap: 55px;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy .section-label {
    text-align: center;
  }

  .about-gold-rule {
    margin:
      0 auto 30px;
  }

  .about-title,
  .about-text {
    margin-left: auto;
    margin-right: auto;
  }

  .about-portrait-wrap {
    width:
      min(76%, 440px);

    margin: 0 auto;
  }


  /* EXPERIENCE */

  .experience-section {
    grid-template-columns:
      210px 1fr;

    gap: 48px;
  }

  .years-number {
    font-size: 72px;
  }

}


/* ========================================
   SMALL TABLET
======================================== */

@media (max-width: 760px) {

  .hero {
    min-height: 600px;
  }

  h1 {
    font-size:
      clamp(58px, 15vw, 92px);
  }


  /* EXPERIENCE */

  .experience-section {
    display: block;

    padding: 70px 28px;

    text-align: center;
  }

  .experience-years::after {
    position: static;

    display: block;

    width: 80px;
    height: 1px;

    margin: 36px auto;

    transform: none;
  }


  /* CARDS */

  .info-grid {
    grid-template-columns: 1fr;

    padding: 30px 22px;
  }

  .card {
    padding: 45px 24px;
  }

  .card + .card {
    border-left: 0;

    border-top:
      1px solid var(--line);
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

  .topbar {
    padding: 0 20px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 9px;

    letter-spacing: .07em;
  }


  /* HERO */

  .hero {
    height: 76vh;

    min-height: 580px;
  }

  .eyebrow,
  .section-label {
    font-size: 11px;
  }

  h1 {
    letter-spacing: .14em;

    padding-left: .14em;
  }


  /* ABOUT */

  .about-section {
    padding:
      68px 22px 76px;
  }

  .about-inner {
    gap: 44px;
  }

  .about-title {
    font-size: 28px;

    line-height: 1.42;
  }

  .about-text {
    font-size: 14px;

    line-height: 1.8;
  }

  .about-portrait-wrap {
    width: 92%;

    max-width: 370px;
  }

  .portrait-caption {
    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
  }


  /* EXPERIENCE */

  .years-number {
    font-size: 68px;
  }

  .experience-content h2 {
    font-size: 24px;
  }

  .experience-content h3 {
    font-size: 28px;
  }


  /* SOUND */

  .sound-button {
    right: 16px;
    bottom: 16px;

    min-width: 48px;

    padding: 11px 13px;
  }

  .sound-button #soundText {
    display: none;
  }

}