:root {
  font-family: "DM Sans", sans-serif;
  color: #eeefec;
  background: #0b0d0f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
  --bg: #0b0d0f;
  --surface: #111416;
  --surface-raised: #15191b;
  --text: #eeefec;
  --muted: #8d9292;
  --dim: #555d5e;
  --line: #272d2e;
  --accent: #c4f16b;
  --mono: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 4%, rgba(52, 65, 64, .13), transparent 34rem),
    var(--bg);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  color: var(--bg);
  background: var(--accent);
}

.page-shell {
  width: min(1240px, calc(100% - 104px));
  margin-inline: auto;
}

.mono,
.eyebrow,
.section-label,
.project-card__meta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .075em;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 74px;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(11,13,15,.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  width: min(1328px, calc(100% - 104px));
  height: 100%;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
}

.brand__monogram {
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid #49504c;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  place-items: center;
}

.brand__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.primary-nav {
  display: flex;
  height: 100%;
  gap: 39px;
  align-items: center;
}

.primary-nav > a {
  color: #b7bcba;
  font-size: 12px;
  transition: color .2s ease;
}

.primary-nav > a:hover {
  color: var(--text);
}

.primary-nav .nav-contact {
  display: inline-flex;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #3b4141;
  align-items: center;
  gap: 9px;
  color: var(--text);
}

.arrow-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.arrow-icon--diagonal {
  transform: rotate(-45deg);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: none;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 646px;
  padding-top: 100px;
  padding-bottom: 83px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.hero__copy {
  max-width: 900px;
  padding-bottom: 19px;
}

.eyebrow {
  margin: 0 0 26px;
  color: #a4aaa8;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(47px, 5.55vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.065em;
}

.hero h1 span,
.about-heading h2 span,
.contact-layout h2 span {
  color: var(--muted);
}

.hero__intro {
  max-width: 540px;
  margin: 26px 0 0;
  color: #aeb3b1;
  font-size: 15px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  margin-top: 31px;
  align-items: center;
  gap: 23px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.button--primary {
  color: #11150b;
  background: var(--accent);
  font-weight: 600;
}

.button--primary:hover {
  background: #d7ff8c;
}

.button--text {
  padding-inline: 0;
  color: #d6d9d6;
}

.button--text:hover {
  color: var(--accent);
}

.hero__identity {
  display: flex;
  margin-top: 51px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.hero__identity .mono {
  color: var(--text);
}

.hero__bottom {
  position: absolute;
  right: 0;
  bottom: 29px;
  left: 0;
  display: flex;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  color: #777e7e;
  font-size: 9px;
}

.hero__bottom > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.section-pad {
  padding-block: 104px;
}

.work-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.012), transparent 240px);
}

.section-heading {
  display: flex;
  margin-bottom: 36px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a7afad;
  white-space: nowrap;
}

.section-label > span:first-child {
  color: var(--accent);
}

.section-label__line {
  display: inline-block;
  width: 31px;
  height: 1px;
  background: #525a59;
}

.section-heading > p {
  max-width: 395px;
  margin: 0;
  color: #8d9492;
  font-size: 12px;
  line-height: 1.7;
}

.project-years {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 62px;
}

.project-year {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.project-year__header {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.project-year__eyebrow {
  color: #818a86;
  font-size: 9px;
}

.project-year__header h3 {
  margin: 8px 0 0;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.project-year__actions {
  display: flex;
  padding-bottom: 3px;
  align-items: center;
  gap: 17px;
}

.project-year__count {
  color: #77807c;
  font-size: 9px;
  white-space: nowrap;
}

.carousel-controls {
  display: flex;
  gap: 7px;
}

.carousel-button {
  display: grid;
  width: 40px;
  height: 40px;
  border: 1px solid #3b4341;
  background: transparent;
  color: #d3d8d4;
  cursor: pointer;
  place-items: center;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.carousel-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-button:disabled {
  opacity: .3;
  cursor: default;
}

.carousel-arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.year-carousel__track {
  display: flex;
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  padding: 2px 0 13px;
  gap: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.year-carousel__track::-webkit-scrollbar {
  display: none;
}

.project-card {
  overflow: hidden;
  flex: 0 0 calc(50% - 9px);
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  scroll-snap-align: start;
}

.project-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #171b1c;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .88;
  filter: saturate(.86) brightness(.84);
  transition: opacity .35s ease, filter .35s ease;
}

.project-card:hover .project-card__image {
  opacity: 1;
  filter: saturate(1) brightness(.94);
}

.project-card__image-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.42));
  content: "";
  pointer-events: none;
}

.project-card__photo-controls {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: flex;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(238,239,236,.24);
  align-items: center;
  gap: 5px;
  background: rgba(9,11,12,.76);
}

.carousel-button--small {
  width: 27px;
  height: 27px;
  border-color: transparent;
}

.project-card__photo-count {
  min-width: 37px;
  color: #d2d7d4;
  font-size: 8px;
  text-align: center;
}

.project-card__content {
  padding: 17px 18px 20px;
}

.project-card__meta {
  margin: 0;
  color: #8b9391;
  font-size: 9px;
  text-transform: uppercase;
}

.project-card__category {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project-card h4 {
  margin: 7px 0;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.project-card__description {
  margin: 0;
  color: #969d9a;
  font-size: 12px;
  line-height: 1.65;
}

.project-card__details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.project-card__details summary {
  padding-top: 10px;
  color: #d2d7d4;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.project-card__details p {
  margin: 8px 0 0;
  color: #969d9a;
  font-size: 12px;
  line-height: 1.65;
}

.profile-section {
  border-top: 1px solid var(--line);
  background: #0e1112;
}

.skills-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-group {
  min-height: 207px;
  padding: 18px 19px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group__head {
  display: flex;
  padding-bottom: 16px;
  border-bottom: 1px solid #242a2b;
  justify-content: space-between;
  color: #b6beba;
  font-size: 9px;
  text-transform: uppercase;
}

.skill-group__head span:first-child {
  color: var(--accent);
}

.skill-group ul {
  display: grid;
  padding: 13px 0 0;
  margin: 0;
  gap: 11px;
  list-style: none;
}

.skill-group li {
  color: #a0a7a4;
  font-size: 11px;
}

.skill-group li::before {
  margin-right: 8px;
  color: #68716e;
  content: "—";
}

.about-section {
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "heading copy";
  align-items: center;
  gap: 64px;
}

.about-heading {
  position: relative;
  grid-area: heading;
  display: flex;
  min-height: 420px;
  overflow: hidden;
  padding: 32px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--surface);
}

.about-heading::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,13,15,.98) 0%, rgba(11,13,15,.88) 36%, rgba(11,13,15,.3) 100%),
    linear-gradient(0deg, rgba(11,13,15,.48), transparent 55%);
  content: "";
  pointer-events: none;
}

.about-heading > .section-label,
.about-heading h2 {
  position: relative;
  z-index: 2;
}

.about-copy {
  grid-area: copy;
}

.about-portrait {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .9;
}

.about-heading h2,
.contact-layout h2 {
  margin: 32px 0 0;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.06em;
}

.about-copy {
  max-width: 490px;
  padding-top: 23px;
}

.about-copy p {
  margin: 0 0 17px;
  color: #9da4a1;
  font-size: 13px;
  line-height: 1.85;
}

.about-copy .about-copy__lead {
  color: #e0e3df;
  font-size: 17px;
  line-height: 1.62;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(196,241,107,.035), transparent 58%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
}

.contact-layout h2 {
  margin-top: 30px;
}

.contact-layout > div:first-child > p {
  margin: 18px 0 0;
  color: #9ca39f;
  font-size: 13px;
}

.contact-links {
  padding-top: 24px;
}

.contact-links > a {
  display: grid;
  min-height: 69px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 14px;
  grid-template-columns: 85px 1fr auto;
  transition: color .2s ease;
}

.contact-links > a:first-child {
  border-top: 1px solid var(--line);
}

.contact-links > a > span:first-child {
  color: #8c9491;
  font-size: 9px;
}

.contact-links > a > span:nth-child(2) {
  color: #e1e4e0;
  font-size: 13px;
}

.contact-links > a:hover {
  color: var(--accent);
}

.contact-links > a:hover > span:nth-child(2) {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  min-height: 83px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__inner > .mono {
  color: #747d79;
  font-size: 8px;
}

.site-footer__inner > a:last-child {
  color: #abb2ae;
  font-size: 9px;
}

@media (min-width: 1500px) {
  .hero {
    min-height: 710px;
  }
}

@media (max-width: 950px) {
  .page-shell,
  .header-inner {
    width: calc(100% - 64px);
  }

  .hero {
    min-height: 620px;
    padding-top: 77px;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero h1 {
    font-size: clamp(45px, 6.1vw, 62px);
  }

  .section-pad {
    padding-block: 82px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .contact-layout {
    gap: 45px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy";
    gap: 28px;
  }

  .about-heading {
    min-height: 390px;
  }

  .about-copy {
    max-width: none;
    padding-top: 0;
  }
}

@media (max-width: 680px) {
  body {
    min-width: 320px;
  }

  .page-shell,
  .header-inner {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 63px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    padding: 13px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(11,13,15,.97);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav--open {
    display: flex;
  }

  .primary-nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .primary-nav .nav-contact {
    width: fit-content;
    padding-inline: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
    padding-bottom: 91px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__copy {
    padding: 0;
  }

  .eyebrow {
    margin-bottom: 21px;
    font-size: 8px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(47px, 12vw, 68px);
  }

  .hero__intro {
    max-width: 420px;
    margin-top: 20px;
    font-size: 14px;
  }

  .hero__identity {
    margin-top: 33px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .hero__bottom {
    bottom: 28px;
    font-size: 7px;
  }

  .section-pad {
    padding-block: 69px;
  }

  .section-heading {
    margin-bottom: 27px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-heading > p {
    max-width: 440px;
  }

  .project-years {
    gap: 44px;
  }

  .project-year__header {
    align-items: flex-end;
    gap: 10px;
  }

  .project-year__actions {
    gap: 9px;
  }

  .project-year__count {
    font-size: 8px;
  }

  .carousel-button {
    width: 35px;
    height: 35px;
  }

  .project-card {
    flex-basis: calc(100% - 24px);
  }

  .year-carousel__track {
    gap: 14px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skill-group {
    min-height: 0;
    padding: 14px 12px 18px;
  }

  .skill-group__head {
    font-size: 8px;
  }

  .skill-group li {
    font-size: 10px;
    line-height: 1.45;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-layout {
    grid-template-areas:
      "heading"
      "copy";
  }

  .about-heading {
    min-height: 360px;
    padding: 22px;
  }

  .about-heading h2 {
    font-size: clamp(32px, 8.5vw, 36px);
  }

  .about-copy {
    max-width: 490px;
  }

  .about-heading h2,
  .contact-layout h2 {
    margin-top: 26px;
    font-size: 50px;
  }

  .about-copy {
    padding-top: 0;
  }

  .contact-links {
    padding-top: 9px;
  }

  .site-footer__inner {
    min-height: 103px;
    flex-wrap: wrap;
    padding-block: 17px;
    gap: 11px 20px;
  }

  .site-footer__inner > .mono {
    order: 2;
    width: 100%;
  }

  .site-footer__inner > a:last-child {
    margin-left: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
