/* Shared design tokens and components. Breakpoints: 1050 / 767 / 480px. */
:root {
  --bg: #151716;
  --text: #fff;
  --muted: #9aa8a7;
  --accent: #fff;
  --mint: #26e3ad;
  --mint-border: #26e3ad88;
  --mint-tint: #26e3ad0f;
  --line: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.35);
  --surface-card: rgba(255, 255, 255, 0.035);
  --surface-section: rgba(12, 16, 17, 0.91);
  --font-body: "Inter", sans-serif;
  --radius-card: 10px;
  --radius-pill: 999px;
  --transition-fast: 200ms;
  --transition-base: 250ms;
  --ease-reveal: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 108px;
  --scroll-offset: calc(var(--header-height) + 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: clip;
  margin: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

.button {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  color: var(--accent);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.button:hover {
  background: var(--text);
  color: #111;
}

.section {
  position: relative;
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-section);
  border-top: 1px solid var(--line);
}

.section:before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  background: rgba(0, 220, 165, 0.05);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
}

.label {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 14px;
}

.section h2 {
  font-size: 43px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.heading h3 {
  font-size: 19px;
  margin-bottom: 20px;
}

.heading>p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.skill-intro>div>p:last-child {
  color: var(--muted);
  font-size: 14px;
}

.learning p {
  color: var(--muted);
  font-size: 14px;
}

.lead {
  color: var(--muted);
  font-size: 14px;
  max-width: 540px;
  margin: 12px 0 32px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 70px;
  align-items: center;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  box-shadow: 0 25px 70px #0005;
}

.info {
  padding: 4px;
  border-left: 0;
}

dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  margin: 12px 0;
  font-size: 14px;
}

dt {
  color: #b6c0bf;
}

.history {
  border-top: 1px solid var(--line);
  padding: 22px 12px 0;
  margin-top: 22px;
  padding-left: 4px;
  padding-right: 4px;
}

.history b {
  display: block;
  margin: 5px 0;
}

.history span {
  display: block;
  margin: 5px 0;
  font-size: 13px;
  color: var(--muted);
}

.history small {
  display: block;
  margin: 5px 0;
  font-size: 13px;
  color: var(--muted);
}

.experience {
  border-left: 0;
  padding-left: 4px;
}

.skill-layout {
  display: grid;
  grid-template-columns: 285px 1fr;
  gap: 60px;
}

.skill-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-intro h2 em {
  color: var(--accent);
  font-style: normal;
}

.learning {
  border: 1px solid var(--mint-border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 40px;
  background: var(--surface-card);
}

.learning>strong {
  font-size: 25px;
  color: var(--accent);
}

.learning h3 {
  color: var(--accent);
  margin: 12px 0;
}

.group {
  margin-bottom: 28px;
}

.group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 14px;
}

.group h3:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.group h3:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.skill-grid.compact {
  grid-template-columns: repeat(5, 1fr);
}

.skill-grid article {
  height: 145px;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #071719, #030c0e);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.skill-grid article:hover {
  transform: translateY(-5px);
  border-color: var(--mint-border);
}

.skill-grid article>i {
  display: block;
  text-align: center;
  font-size: 46px;
  height: 78px;
  padding-top: 8px;
}

.skill-grid article b {
  font-size: 11px;
  font-style: normal;
}

.skill-grid article em {
  font-size: 11px;
  font-style: normal;
  float: right;
  color: var(--accent);
}

.skill-grid article span {
  display: block;
  height: 5px;
  background: #293b3b;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 7px;
}

.skill-grid article u {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: 1s;
}

.devicon-photoshop-plain {
  color: rgba(3, 169, 244, 1);
  opacity: 1;
  filter: brightness(1.35) saturate(1.8) contrast(1.15);
}

.stats {
  margin-top: 44px;
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #071718aa;
}

.stats div {
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border: 0;
}

.stats b {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 500;
}

.stats span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.approach h3 {
  font-size: 18px;
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.values article {
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, #0a171b, #050d10);
  transition: 1s all;
}

.values i {
  display: block;
  color: var(--accent);
  font-size: 25px;
  font-style: normal;
  margin-bottom: 16px;
}

.values p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

.values article:hover {
  transform: translateY(-10px);
  border: 1px solid var(--mint-border);
  transition: 0.5s all;
  background: none !important;
}

.project-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.project-head>div>p:last-child {
  color: var(--muted);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  transition: 0.3s;
}

.work:hover {
  transform: translateY(-7px);
  border-color: #26e3ad77;
}

.preview {
  height: 210px;
  background: #0b171b;
  padding: 22px;
}

.dashboard {
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 12px;
}

.dashboard>i {
  background: #102827;
  border-radius: 5px;
}

.dashboard>div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard b {
  height: 52px;
  border: 1px solid #26e3ad44;
  border-radius: 5px;
}

.dashboard span {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(145deg, transparent 48%, #26e3ad88 49%, transparent 51%);
}

.phones {
  display: flex;
  justify-content: center;
  gap: 9px;
  background: #dce8e7;
}

.phones i {
  width: 28%;
  height: 175px;
  border: 4px solid white;
  border-radius: 17px;
  background: linear-gradient(#fff 25%, #1679eb 26% 49%, #fff 50%);
  box-shadow: 0 5px 15px #0003;
}

.coded {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.coded>small {
  color: var(--accent);
  font-size: 9px;
}

.coded strong {
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.coded i {
  position: absolute;
  right: -18px;
  bottom: 18px;
  border: 1px solid var(--line);
  padding: 35px 25px;
  color: var(--accent);
  font-style: normal;
  transform: rotate(8deg);
}

.work-body {
  padding: 19px;
}

.work-body h3 {
  font-size: 18px;
}

.work-body p {
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
  margin: 5px 0 12px;
}

.work-body small {
  display: inline-block;
  color: var(--accent);
  background: var(--mint-tint);
  padding: 4px 7px;
  margin: 0 4px 12px 0;
  border-radius: 4px;
}

.work-body a {
  display: block;
  color: var(--accent);
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease;
}

.background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
  z-index: -1;
  pointer-events: none;
}

.page {
  isolation: isolate;
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: auto;
  padding: 32px clamp(24px, 5vw, 88px);
  display: grid;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  border: 0;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-action {
  justify-self: end;
}

main {
  flex: 1;
  display: block;
  padding: 0;
}

h1 {
  font-size: 62px;
  line-height: 1.12;
  letter-spacing: -0.052em;
  font-weight: 500;
  margin: 25px 0 27px;
  color: var(--text);
}

.heading-line {
  display: block;
  white-space: nowrap;
}

.word {
  display: inline-block;
}

.animate .word {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 850ms ease, transform 850ms var(--ease-reveal);
}

.animate .load-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 900ms ease, transform 900ms var(--ease-reveal);
}

.animate .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  min-height: 44px;
  transition: background var(--transition-fast) ease, transform var(--transition-fast) ease;
}

.pill:hover {
  transform: translateY(-2px);
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
}

.navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.landing-main {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  padding: 56px clamp(24px, 8vw, 140px);
}

.intro-description {
  font-size: 14px;
  color: var(--text);
  line-height: 1.85;
}

.intro-description strong {
  font-weight: 500;
}

.js-reveal .reveal {
  opacity: 0;
  transform: none;
}

.js-reveal .reveal.visible {
  opacity: 1;
}

.js-reveal .reveal:focus-within {
  opacity: 1;
}

.navigation a.active {
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

  .skill-layout {
    grid-template-columns: 1fr;
  }

  .heading {
    max-width: 540px;
  }

  .skill-intro {
    gap: 20px;
  }

  .learning {
    max-width: 420px;
  }

  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-grid.compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .shell {
    width: calc(100% - 32px);
  }

  .section {
    padding: 75px 0;
  }

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

  .skill-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }

  .works {
    grid-template-columns: 1fr 1fr;
  }

  .stats div:nth-child(2) {
    border: 0;
  }

  .stats div {
    padding: 10px;
  }

  .project-head .button {
    display: inline-flex;
    margin-top: 20px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 26px 16px;
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .navigation {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 12px;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
  }

  h1 {
    font-size: clamp(30px, 7.7vw, 54px);
  }

  .landing-main {
    min-height: 0;
    padding: 48px 24px 64px;
  }

  dl div {
    grid-template-columns: 85px minmax(0, 1fr);
  }

  dd {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 36px;
  }

  .profile-card {
    padding: 18px;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .works {
    grid-template-columns: 1fr;
  }

  .project-head {
    display: block;
  }

  .preview {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate .word {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .animate .load-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pill {
    transition: none;
  }

  .pill:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .skill-grid article {
    transition: none;
  }

  .skill-grid article:hover {
    transform: none;
  }

  .work {
    transition: none;
  }

  .work:hover {
    transform: none;
  }

  .skill-grid article u {
    transition: none;
  }
}

/* Final interaction and layout details. */
.hero-frame {
  padding-top: var(--header-height);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.section::before {
  max-width: 100%;
}

.work {
  display: flex;
  flex-direction: column;
}

.work-body {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0 4px;
}

.work-body h3,
.work-body p,
.work-body a {
  flex-basis: 100%;
}

.work-body a {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: auto;
}

.info a {
  text-underline-offset: 4px;
}

.info a:hover {
  text-decoration: underline;
}

.skill-grid article b {
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .background-video {
    object-position: 68% center;
  }

  .video-shade {
    background: linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .35));
  }

  .hero-frame {
    min-height: 100svh;
  }

  .project-head {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* The header remains outside the clipped hero and its animation transforms. */
.site-header {
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(12, 16, 17, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

@media (max-width: 767px) {
  :root {
    --header-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* Evidence-led portfolio content. */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.evidence-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: 1s all;
}

.evidence-card>i {
  font-size: 32px;
  margin-bottom: 24px;
}

.evidence-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.evidence-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.evidence-card a {
  margin-top: auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
}

.evidence-card:hover {
  transform: translateY(-5px);
  border: 1px solid var(--mint-border);
  transition: 1s all;
}

.tool-list {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tool-list h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.tool-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.project-caption {
  min-height: 150px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface-card);
}

.project-caption span {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

.project-caption strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.works .work-body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: normal;
  gap: 14px;
  padding: 24px;
}

.works .work-body h3,
.works .work-body p,
.works .work-body a {
  flex-basis: auto;
}

.works .work-body p {
  min-height: 0;
  margin: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.project-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-details summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 13px;
}

.project-details summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.project-details>div {
  padding-bottom: 18px;
}

.project-details h4 {
  font-size: 13px;
  margin: 16px 0 8px;
}

.project-details ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  list-style: disc;
}

.project-details p {
  line-height: 1.85;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.contact-email {
  font-size: clamp(18px, 2.5vw, 30px);
  overflow-wrap: anywhere;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .evidence-grid {
    gap: 14px;
  }

  .evidence-card {
    padding: 20px;
  }
}

@media (max-width: 767px) {

  .evidence-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .works {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transition: none;
  }
}