:root {
  color-scheme: dark;
  --bg: #1d1817;
  --panel: #211c1b;
  --ink: #f8f3ee;
  --muted: #b7aaa4;
  --orange: #f06b35;
  --line: rgba(240, 107, 53, 0.48);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(240, 107, 53, 0.16), transparent 24%),
    radial-gradient(circle at 80% 46%, rgba(255, 255, 255, 0.06), transparent 18%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.shell {
  width: min(1460px, calc(100% - 24px));
  height: 100svh;
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 18px) 0;
}

.portfolio-frame {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  --nav-width: clamp(118px, 12vw, 168px);
  --nav-pad: clamp(18px, 3vw, 42px);
  --scroll-left: clamp(70px, 8vw, 112px);
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 7px solid rgba(143, 47, 31, 0.22);
  background: rgba(33, 28, 27, 0.92);
  box-shadow: var(--shadow);
}

.portfolio-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vw, 42px) clamp(22px, 4vw, 54px) 10px;
}

.menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.logo {
  justify-self: center;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.logo span {
  color: var(--orange);
}

.frame-body {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  min-height: 0;
  transition: grid-template-columns 220ms ease;
}

.portfolio-frame.nav-collapsed {
  --nav-width: 58px;
  --nav-pad: 24px;
  --scroll-left: 44px;
}

.side-nav {
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  padding-left: var(--nav-pad);
  transition: padding-left 220ms ease;
}

.side-nav a {
  display: flex;
  width: 96px;
  min-height: 28px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.side-nav a::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.side-nav a.is-active {
  color: var(--orange);
  transform: translateX(4px);
}

.side-nav a.is-active::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(240, 107, 53, 0.14);
}

.portfolio-frame.nav-collapsed .side-nav a {
  width: 18px;
  gap: 0;
  color: transparent;
  font-size: 0;
  transform: none;
}

.portfolio-frame.nav-collapsed .side-nav a::before {
  color: var(--muted);
}

.portfolio-frame.nav-collapsed .side-nav a.is-active::before {
  color: var(--orange);
}

.panel-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scrollbar-color: rgba(240, 107, 53, 0.62) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.panel-scroll::-webkit-scrollbar {
  width: 8px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.panel-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(240, 107, 53, 0.62);
}

.panel-section {
  position: relative;
  min-height: calc(100svh - clamp(106px, 9vw, 148px));
  padding: clamp(36px, 5vw, 82px) clamp(22px, 5vw, 84px) clamp(42px, 6vw, 90px);
  scroll-snap-align: start;
}

.hero-screen {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(22px, 4vw, 72px);
  align-items: center;
  padding-top: clamp(26px, 3vw, 48px);
}

.hello {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.92rem;
}

.hello span {
  width: 48px;
  height: 1px;
  background: var(--ink);
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.6rem, 8vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1 strong,
h2 span {
  color: var(--orange);
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
}

.subtitle {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.34rem);
  line-height: 1.65;
}

.button,
.work-list a,
.mini-form button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #f57b43, #d94d25);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
}

.button {
  padding: 0 18px;
}

.hero-art {
  position: relative;
  min-height: min(56svh, 560px);
}

.hero-art img {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: min(700px, 112%);
  max-width: none;
  filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.46));
}

.scroll-cue {
  position: absolute;
  bottom: clamp(28px, 5vw, 58px);
  left: var(--scroll-left);
  z-index: 7;
  writing-mode: vertical-rl;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: left 220ms ease;
}

.cube,
.orb {
  position: absolute;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.cube {
  width: 58px;
  height: 58px;
  transform: rotate(14deg) skew(-8deg);
  border-radius: 7px;
  background: linear-gradient(135deg, #f4773f 0 52%, #b33d25 53% 100%);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.2);
}

.cube-one {
  top: -12px;
  right: 60px;
}

.cube-two {
  bottom: 0;
  left: 18px;
  width: 48px;
  height: 48px;
}

.orb {
  right: 12px;
  top: 66px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, rgba(0, 0, 0, 0.36) 47% 53%, transparent 54%),
    radial-gradient(circle at 38% 36%, #d8d7d3, #77736d);
}

.orb::before,
.orb::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: #161313;
}

.orb::before {
  left: 12px;
}

.orb::after {
  right: 12px;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.portrait {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #151211;
}

.portrait span {
  color: var(--orange);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 950;
}

.section-kicker {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
}

.about-copy p:not(.section-kicker),
.service-lines p,
.contact-section p,
.work-list p {
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-list article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(240, 107, 53, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.work-list p {
  min-height: 58px;
  font-size: 0.94rem;
}

.work-list a {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.75rem;
}

.skills-section {
  display: grid;
  align-content: center;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.skill-grid span {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-weight: 900;
}

.service-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.service-lines p {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-lines strong {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
}

.quote-icon {
  width: 54px;
  height: 54px;
  color: #d7d4cf;
  font-size: 3rem;
  line-height: 1;
}

.contact-copy {
  max-width: 720px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-links a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.mini-form {
  grid-column: 2;
  display: grid;
  gap: 12px;
  max-width: 420px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
}

.mini-form label {
  display: grid;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 850;
}

.mini-form input,
.mini-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
  outline: 0;
  padding: 7px 0;
}

.mini-form input::placeholder,
.mini-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.mini-form textarea {
  min-height: 72px;
  resize: vertical;
}

.mini-form button {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  background: #171311;
  font-size: 0.74rem;
}

@media (max-width: 1080px) {
  .hero-screen,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 360px;
  }

  .hero-art img {
    right: 0;
    width: min(620px, 100%);
  }

  .work-list,
  .service-lines {
    grid-template-columns: 1fr;
  }

  .mini-form {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .shell {
    width: min(100% - 24px, 1460px);
    height: auto;
    min-height: 100svh;
    padding: 10px 0 84px;
  }

  .portfolio-frame {
    min-height: calc(100svh - 20px);
    --nav-width: 0px;
    --nav-pad: 0px;
  }

  .topbar {
    grid-template-columns: 42px 1fr 42px;
    padding: 18px 20px 8px;
  }

  .menu-button {
    visibility: hidden;
    pointer-events: none;
  }

  .frame-body {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 40;
    display: flex;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(240, 107, 53, 0.34);
    border-radius: 999px;
    background: rgba(21, 18, 17, 0.86);
    backdrop-filter: blur(16px);
  }

  .portfolio-frame.nav-collapsed .side-nav a {
    width: auto;
    gap: 0;
    color: var(--muted);
    font-size: 0.62rem;
  }

  .side-nav a {
    width: auto;
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.62rem;
  }

  .side-nav a::before {
    display: none;
  }

  .side-nav a.is-active {
    transform: none;
  }

  .panel-scroll {
    overflow: visible;
    scroll-snap-type: none;
  }

  .panel-section {
    min-height: auto;
    padding: 46px 22px;
  }

  .hero-screen {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.7rem);
  }

  .hero-art {
    min-height: 320px;
  }

  .hero-art img {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 120%;
    margin-left: -10%;
  }

  .scroll-cue,
  .orb {
    display: none;
  }

  .cube-one {
    right: 20px;
  }

  .cube-two {
    left: 44px;
  }

  .portrait {
    max-width: 260px;
  }

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