/* ============================================================
   AKHIL AZAD — PORTFOLIO
   DARK ESPRESSO / BROWN PREMIUM THEME
   FULL RESPONSIVE VERSION
   ============================================================ */

:root {
  --bg: #0d0a08;
  --bg-2: #120e0b;
  --bg-3: #17110d;

  --surface: #17120f;
  --surface-2: #1c1612;
  --surface-3: #241b15;

  --line: rgba(151, 116, 88, .16);
  --line-strong: rgba(173, 132, 96, .28);

  --text: #f1ece6;
  --text-soft: #c9beb3;
  --muted: #8f8277;
  --faint: #5e554e;

  --accent: #765640;
  --accent-strong: #987052;
  --accent-dark: #4f392b;

  --accent-dim: rgba(118, 86, 64, .14);
  --accent-line: rgba(152, 112, 82, .34);
  --accent-glow: rgba(118, 86, 64, .16);

  --font-display:
    "Space Grotesk",
    ui-sans-serif,
    system-ui,
    sans-serif;

  --font-body:
    "Inter",
    ui-sans-serif,
    system-ui,
    sans-serif;

  --font-mono:
    "JetBrains Mono",
    ui-monospace,
    monospace;

  --max: 1200px;
  --gutter: 40px;
  --header-h: 72px;

  --radius: 18px;
  --radius-sm: 11px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22,.61,.36,1);
}


/* ============================================================
   RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;

  background:
    linear-gradient(
      145deg,
      #0d0a08 0%,
      #100c09 48%,
      #0a0806 100%
    );

  color: var(--text);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}


/* ============================================================
   BACKGROUND
   ============================================================ */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -3;
  pointer-events: none;

  background:
    radial-gradient(
      55% 45% at 92% -5%,
      rgba(118, 86, 64, .13),
      transparent 70%
    ),
    radial-gradient(
      40% 40% at 0% 35%,
      rgba(79, 57, 43, .08),
      transparent 70%
    );
}

body::after {
  content: "";

  position: fixed;
  inset: 0;

  z-index: -2;
  pointer-events: none;

  opacity: .08;

  background-image:
    linear-gradient(
      rgba(255,255,255,.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.018) 1px,
      transparent 1px
    );

  background-size: 80px 80px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 75%
    );
}


/* ============================================================
   BASE
   ============================================================ */

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ============================================================
   SKIP LINK
   ============================================================ */

.skip-link {
  position: absolute;

  left: 16px;
  top: -60px;

  z-index: 200;

  padding: 10px 16px;

  background: var(--accent);
  color: #f7f0e9;

  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 14px;
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  margin: 0;

  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
}

h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -.035em;
}

h3 {
  margin: 0;
  letter-spacing: -.02em;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 0 0 20px;

  color: var(--accent-strong);

  font-family: var(--font-mono);
  font-size: .70rem;
  font-weight: 600;

  letter-spacing: .14em;
  text-transform: uppercase;
}

.kicker-line {
  width: 28px;
  height: 1px;

  background: var(--accent-line);
}


/* ============================================================
   BUTTONS
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  min-height: 50px;
  padding: 0 22px;

  border: 1px solid transparent;
  border-radius: 11px;

  font-size: .92rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform .2s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease);
}

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

.button-primary {
  background: var(--accent);
  color: #f7f0e9;

  box-shadow:
    0 12px 35px -18px var(--accent-glow);
}

.button-primary:hover {
  background: var(--accent-strong);

  box-shadow:
    0 18px 45px -18px var(--accent-glow);
}

.button-ghost {
  background: rgba(255,255,255,.02);

  border-color: var(--line-strong);
  color: var(--text);
}

.button-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent-line);
}

.button-sm {
  min-height: 40px;
  padding: 0 16px;

  border-radius: 9px;

  font-size: .84rem;
}

.btn-icon {
  width: 17px;
  height: 17px;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  border-bottom: 1px solid transparent;

  transition:
    background .3s var(--ease),
    border-color .3s var(--ease),
    backdrop-filter .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(13,10,8,.78);

  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);

  border-bottom-color: var(--line);
}

.header-inner {
  max-width: var(--max);

  height: var(--header-h);

  margin: auto;
  padding: 0 var(--gutter);

  display: flex;
  align-items: center;

  gap: 30px;
}


/* ============================================================
   BRAND
   ============================================================ */

.brand {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  font-family: var(--font-display);
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      145deg,
      var(--surface-3),
      var(--surface)
    );

  border: 1px solid var(--line-strong);

  font-size: .82rem;
  font-weight: 700;

  letter-spacing: .04em;
}

.brand-name {
  font-size: .96rem;
  font-weight: 600;
}


/* ============================================================
   DESKTOP NAV
   ============================================================ */

.primary-nav {
  display: flex;
  gap: 3px;

  margin-left: auto;
}

.primary-nav a {
  position: relative;

  padding: 8px 14px;

  border-radius: 8px;

  color: var(--muted);
  font-size: .9rem;

  transition:
    color .2s var(--ease),
    background .2s var(--ease);
}

.primary-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.035);
}

.primary-nav a.active {
  color: var(--text);
}

.primary-nav a.active::after {
  content: "";

  position: absolute;

  left: 14px;
  right: 14px;
  bottom: 2px;

  height: 2px;

  border-radius: 2px;

  background: var(--accent);
}


/* ============================================================
   HEADER LINKS
   ============================================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}

.text-link {
  color: var(--muted);
  font-size: .88rem;

  transition: color .2s var(--ease);
}

.text-link:hover {
  color: var(--text);
}


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

.nav-toggle {
  display: none;

  flex-direction: column;
  justify-content: center;

  gap: 5px;

  width: 42px;
  height: 42px;

  margin-left: auto;
  padding: 0 9px;

  background: transparent;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;

  background: var(--text);

  border-radius: 2px;

  transition:
    transform .28s var(--ease),
    opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform:
    translateY(7px)
    rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform:
    translateY(-7px)
    rotate(-45deg);
}

.mobile-nav {
  display: none;

  flex-direction: column;

  padding:
    8px
    var(--gutter)
    26px;

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

  background: rgba(13,10,8,.97);

  backdrop-filter: blur(18px);
}

.mobile-nav a {
  padding: 15px 4px;

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

  color: var(--text-soft);

  font-family: var(--font-display);
  font-size: 1.2rem;
}

.mobile-nav a:hover {
  color: var(--accent-strong);
}

.mobile-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 18px;

  margin-top: 22px;
}

.mobile-nav-actions a:not(.button) {
  padding: 0;

  border: none;

  color: var(--muted);

  font-family: var(--font-body);
  font-size: .92rem;
}

.mobile-nav-actions .button {
  width: 100%;
}

.mobile-nav.open {
  display: flex;
}

body.menu-open {
  overflow: hidden;
}


/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  max-width: var(--max);

  margin: auto;

  padding:
    clamp(85px,11vw,135px)
    var(--gutter);
}

.section-head {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom:
    clamp(42px,6vw,68px);
}

.section-head-note {
  max-width: 340px;

  margin: 0;

  color: var(--muted);

  font-size: .95rem;
}


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

.hero {
  max-width: var(--max);

  min-height:
    calc(100svh - var(--header-h));

  margin: auto;

  padding:
    clamp(65px,9vw,110px)
    var(--gutter)
    clamp(75px,10vw,120px);

  display: flex;
  align-items: center;
}

.hero-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0,1.25fr)
    minmax(300px,.75fr);

  align-items: center;

  gap:
    clamp(45px,7vw,100px);
}

.hero-name {
  display: block;

  font-size:
    clamp(3.4rem,7vw,6.2rem);

  line-height: .95;

  color: var(--text);
}

.hero-statement {
  display: block;

  max-width: 16ch;

  margin-top: .34em;

  color: var(--text-soft);

  font-size:
    clamp(1.3rem,2.5vw,2rem);

  font-weight: 500;

  line-height: 1.2;

  letter-spacing: -.025em;
}

.hero-lead {
  max-width: 58ch;

  margin:
    27px 0 35px;

  color: var(--muted);

  font-size:
    clamp(1rem,1.3vw,1.12rem);

  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.hero-links {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-top: 28px;

  color: var(--muted);

  font-size: .88rem;
}

.hero-links a {
  transition: color .2s var(--ease);
}

.hero-links a:hover {
  color: var(--accent-strong);
}

.hero-links .dot {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: var(--faint);
}


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

.hero-visual {
  position: relative;

  width: min(390px,80vw);

  justify-self: end;

  animation:
    heroImageIn
    .8s
    .15s
    var(--ease)
    both;
}


/* Subtle warm brown glow behind image */

.hero-visual::before {
  content: "";

  position: absolute;

  inset: 8% -5%;

  z-index: -1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(118,86,64,.16) 0%,
      rgba(118,86,64,.06) 45%,
      transparent 72%
    );

  filter: blur(50px);

  opacity: .9;

  pointer-events: none;
}

.profile-frame {
  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  border:
    1px solid var(--line-strong);

  border-radius: var(--radius-lg);

  background: var(--surface);

  box-shadow:
    0 50px 100px -50px rgba(0,0,0,.9),
    0 0 55px rgba(118,86,64,.06);

  transition:
    transform .45s var(--ease),
    border-color .45s var(--ease),
    box-shadow .45s var(--ease);
}

.profile-frame::before,
.profile-frame::after {
  content: none;
}

.profile-frame img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 20%;

  filter: none;

  transition:
    transform .7s var(--ease);
}

.profile-frame:hover {
  transform: translateY(-5px);

  border-color: var(--accent-line);

  box-shadow:
    0 50px 100px -45px rgba(0,0,0,.95),
    0 0 65px rgba(118,86,64,.09);
}

.profile-frame:hover img {
  transform: scale(1.02);
}


/* ============================================================
   AVAILABILITY
   ============================================================ */

.availability {
  position: absolute;

  left: 15px;
  bottom: -18px;

  display: inline-flex;
  align-items: center;

  gap: 9px;

  padding: 10px 14px;

  border-radius: 999px;

  background:
    rgba(13,10,8,.88);

  border:
    1px solid var(--line-strong);

  backdrop-filter: blur(12px);

  color: var(--text-soft);

  font-size: .75rem;
}

.status-dot {
  position: relative;

  width: 8px;
  height: 8px;

  flex: none;

  border-radius: 50%;

  background: var(--accent);
}

.status-dot::after {
  content: "";

  position: absolute;

  inset: -4px;

  border:
    1px solid var(--accent);

  border-radius: 50%;

  opacity: .55;

  animation:
    pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(.7);
    opacity: .7;
  }

  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;

    transform:
      translateY(20px)
      scale(.98);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}


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

.section-about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;

  grid-template-columns:
    .75fr
    1.25fr;

  gap:
    clamp(40px,7vw,100px);
}

.about-head h2 {
  margin-top: 4px;
}

.about-body > p {
  max-width: 65ch;

  margin:
    0 0 20px;

  color: var(--text-soft);

  font-size: 1.04rem;
}

.facts {
  margin:
    38px 0 0;

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

.facts > div {
  display: flex;

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

  gap: 24px;

  padding: 15px 0;

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

.facts dt {
  color: var(--muted);

  font-size: .86rem;
}

.facts dd {
  margin: 0;

  color: var(--text);

  text-align: right;

  font-size: .92rem;
  font-weight: 500;
}


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

.about-highlight {
  display: grid;

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

  gap: 12px;

  margin-top: 34px;
}

.highlight-item {
  padding: 20px;

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

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      var(--surface),
      var(--bg-2)
    );

  transition:
    transform .25s var(--ease),
    border-color .25s var(--ease);
}

.highlight-item:hover {
  transform: translateY(-4px);

  border-color:
    var(--line-strong);
}

.highlight-item > span {
  color: var(--accent);

  font-family: var(--font-mono);

  font-size: .68rem;
}

.highlight-item strong {
  display: block;

  margin-top: 10px;

  font-family: var(--font-display);

  font-size: .95rem;
}

.highlight-item p {
  margin:
    7px 0 0;

  color: var(--muted);

  font-size: .82rem;

  line-height: 1.55;
}


/* ============================================================
   PROJECTS
   ============================================================ */

.section-projects {
  border-top:
    1px solid var(--line);
}

.projects {
  display: grid;

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

  gap: 16px;
}

.project {
  display: flex;
  flex-direction: column;

  min-height: 0;

  padding: 25px;

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

  border-radius: var(--radius);

  background:
    linear-gradient(
      145deg,
      rgba(28,22,18,.97),
      rgba(12,9,7,.99)
    );

  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}

.project:hover {
  transform: translateY(-5px);

  border-color:
    var(--accent-line);

  box-shadow:
    0 30px 65px -35px
    var(--accent-glow);
}

.project-featured {
  grid-column: 1 / -1;

  display: block;

  padding: 28px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #241b15,
      #100c09
    );
}

.project-featured:hover {
  border-color:
    var(--accent-line);

  box-shadow:
    0 30px 65px -35px
    var(--accent-glow);
}

.project-featured-body {
  padding: 0;

  display: flex;
  flex-direction: column;
}

.project-featured-aside,
.halo-visual,
.halo-ring,
.halo-core {
  display: none !important;
}

.project-top {
  display: flex;

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

  gap: 16px;

  margin-bottom: 18px;
}

.project-index {
  color: var(--faint);

  font-family: var(--font-mono);

  font-size: .70rem;
}

.project-tag {
  padding:
    5px 10px;

  border:
    1px solid var(--accent-line);

  border-radius: 999px;

  background:
    var(--accent-dim);

  color:
    var(--accent-strong);

  font-family:
    var(--font-mono);

  font-size:
    .60rem;

  letter-spacing:
    .12em;

  text-transform:
    uppercase;
}

.project-category {
  margin-bottom: 8px;

  color: var(--faint);

  font-family: var(--font-mono);

  font-size: .62rem;

  letter-spacing: .11em;
}

.project h3 {
  margin:
    0 0 8px;

  font-size:
    clamp(1.35rem,2vw,1.75rem);
}

.project-featured h3 {
  font-size:
    clamp(1.55rem,2.4vw,2rem);
}

.project-summary {
  max-width: 72ch;

  margin:
    0 0 15px;

  color: var(--muted);

  font-size: .88rem;

  line-height: 1.55;
}

.project-points {
  display: flex;

  flex-wrap: wrap;

  gap:
    7px 18px;

  margin:
    0 0 17px;

  padding: 0;

  list-style: none;
}

.project-points li {
  position: relative;

  padding-left: 12px;

  color: var(--text-soft);

  font-size: .80rem;
}

.project-points li::before {
  content: "";

  position: absolute;

  left: 0;
  top: .68em;

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background:
    var(--accent);
}

.tech-row {
  display: flex;

  flex-wrap: wrap;

  gap: 6px;
}

.chip {
  padding:
    5px 10px;

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

  border-radius: 999px;

  background:
    rgba(255,255,255,.02);

  color:
    var(--text-soft);

  font-size:
    .70rem;

  transition:
    border-color .2s var(--ease),
    color .2s var(--ease),
    background .2s var(--ease);
}

.project:hover .chip {
  border-color:
    var(--line-strong);
}

.chip:hover {
  color: var(--accent-strong);

  border-color:
    var(--accent-line);

  background:
    var(--accent-dim);
}

.project-foot {
  margin-top:
    17px;

  padding-top:
    15px;

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

.project-status {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color:
    var(--faint);

  font-size:
    .74rem;
}

.project-status .status-dot {
  width: 6px;
  height: 6px;
}

.project-status .status-dot::after {
  display: none;
}

.project-foot-actions {
  display: flex;

  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

.project-link,
.project-secondary {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  font-size: .82rem;
  font-weight: 600;

  transition:
    color .2s var(--ease),
    gap .2s var(--ease);
}

.project-link {
  color:
    var(--accent-strong);
}

.project-secondary {
  color:
    var(--muted);
}

.project-link:hover {
  gap: 10px;

  color:
    #b18461;
}

.project-secondary:hover {
  gap: 10px;

  color:
    var(--text);
}


/* ============================================================
   SKILLS
   ============================================================ */

.section-skills {
  border-top:
    1px solid var(--line);
}

.skills-matrix {
  display: grid;

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

  gap: 15px;
}

.skill-group {
  padding: 25px;

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

  border-radius:
    var(--radius);

  background:
    linear-gradient(
      180deg,
      var(--surface),
      var(--bg-2)
    );

  transition:
    transform .25s var(--ease),
    border-color .25s var(--ease);
}

.skill-group:hover {
  transform:
    translateY(-3px);

  border-color:
    var(--line-strong);
}

.skill-group h3 {
  margin:
    0 0 15px;

  color:
    var(--accent-strong);

  font-family:
    var(--font-mono);

  font-size:
    .70rem;

  font-weight:
    600;

  letter-spacing:
    .12em;

  text-transform:
    uppercase;
}

.chip-set {
  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    7px;
}


/* ============================================================
   CURRENTLY BUILDING
   ============================================================ */

.section-now {
  border-top:
    1px solid var(--line);
}

.now-grid {
  display:
    grid;

  grid-template-columns:
    .75fr
    1.25fr;

  gap:
    clamp(40px,7vw,100px);
}

.now-list {
  border-top:
    1px solid var(--line);
}

.now-item {
  display:
    grid;

  grid-template-columns:
    55px
    1fr;

  gap:
    20px;

  padding:
    25px 0;

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

.now-number {
  color:
    var(--accent);

  font-family:
    var(--font-mono);

  font-size:
    .70rem;
}

.now-item h3 {
  margin-bottom:
    6px;

  font-size:
    1.15rem;
}

.now-item p {
  max-width:
    58ch;

  margin:
    0;

  color:
    var(--muted);

  font-size:
    .90rem;
}


/* ============================================================
   CONTACT
   ============================================================ */

.section-contact {
  border-top:
    1px solid var(--line);
}

.contact-inner {
  max-width:
    760px;

  margin:
    auto;

  text-align:
    center;
}

.contact-inner .kicker {
  justify-content:
    center;
}

.contact-lead {
  max-width:
    50ch;

  margin:
    23px auto 34px;

  color:
    var(--muted);

  font-size:
    1.02rem;
}

.email-link {
  display:
    inline-block;

  color:
    var(--text);

  padding-bottom:
    7px;

  font-family:
    var(--font-display);

  font-size:
    clamp(1.35rem,4vw,2.6rem);

  font-weight:
    600;

  letter-spacing:
    -.025em;

  background:
    linear-gradient(
      var(--accent),
      var(--accent)
    );

  background-size:
    0% 2px;

  background-position:
    0 100%;

  background-repeat:
    no-repeat;

  transition:
    background-size .35s var(--ease),
    color .25s var(--ease);
}

.email-link:hover {
  background-size:
    100% 2px;

  color:
    var(--accent-strong);
}

.contact-actions {
  display:
    flex;

  justify-content:
    center;

  flex-wrap:
    wrap;

  gap:
    12px;

  margin-top:
    38px;
}


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

.site-footer {
  border-top:
    1px solid var(--line);
}

.footer-inner {
  max-width:
    var(--max);

  margin:
    auto;

  padding:
    34px
    var(--gutter)
    44px;

  display:
    flex;

  align-items:
    center;

  gap:
    24px;

  flex-wrap:
    wrap;
}

.footer-meta {
  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  color:
    var(--faint);

  font-size:
    .82rem;
}

.footer-links {
  display:
    flex;

  gap:
    20px;

  margin-left:
    auto;
}

.footer-links a {
  color:
    var(--muted);

  font-size:
    .86rem;

  transition:
    color .2s var(--ease);
}

.footer-links a:hover {
  color:
    var(--accent-strong);
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */

html.js .reveal {
  opacity:
    0;

  transform:
    translateY(18px);

  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);

  will-change:
    opacity,
    transform;
}

html.js .reveal.in {
  opacity:
    1;

  transform:
    none;
}


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

@media (max-width: 1000px) {

  :root {
    --gutter: 30px;
  }

  .hero-grid {
    grid-template-columns:
      1.1fr
      .9fr;

    gap:
      40px;
  }

  .about-grid,
  .now-grid {
    grid-template-columns:
      1fr;

    gap:
      35px;
  }

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

  .project-featured {
    display:
      block;
  }

  .project-featured-aside {
    display:
      none;
  }

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


/* ============================================================
   PHONE — COMPACT DESKTOP-LIKE EXPERIENCE
   ============================================================ */

@media (max-width: 760px) {

  :root {
    --header-h: 58px;
    --gutter: 20px;
  }

  body {
    font-size: 14px;
  }


  /* HEADER */

  .header-inner {
    height: 58px;

    padding:
      0 var(--gutter);

    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;

    border-radius: 9px;

    font-size: .74rem;
  }

  .brand-name {
    font-size: .86rem;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;

    width: 38px;
    height: 38px;

    margin-left: auto;

    padding: 0 8px;

    border-radius: 9px;
  }


  /* MOBILE NAV */

  .mobile-nav {
    padding:
      4px
      var(--gutter)
      20px;
  }

  .mobile-nav a {
    padding: 12px 3px;

    font-size: 1rem;
  }

  .mobile-nav-actions {
    gap: 14px;

    margin-top: 16px;
  }

  .mobile-nav-actions .button {
    min-height: 44px;
  }


  /* SECTIONS */

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-head {
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    margin-bottom: 32px;
  }

  .section-head-note {
    max-width: 100%;

    font-size: .78rem;

    line-height: 1.55;
  }

  h2 {
    font-size:
      clamp(1.7rem,8vw,2.25rem);

    line-height: 1.08;
  }


  /* HERO */

  .hero {
    min-height: auto;

    padding-top: 38px;
    padding-bottom: 65px;
  }

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

    gap: 32px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;

    width: 100%;

    max-width: 275px;

    justify-self: center;
  }

  .kicker {
    gap: 8px;

    margin-bottom: 13px;

    font-size: .57rem;

    letter-spacing: .11em;
  }

  .kicker-line {
    width: 20px;
  }

  .hero-name {
    font-size:
      clamp(2.7rem,13vw,4rem);

    line-height: .94;

    letter-spacing: -.055em;
  }

  .hero-statement {
    max-width: 25ch;

    margin-top: .42em;

    font-size:
      clamp(1.05rem,5vw,1.45rem);

    line-height: 1.18;
  }

  .hero-lead {
    max-width: 48ch;

    margin:
      17px 0 22px;

    font-size: .82rem;

    line-height: 1.6;
  }


  /* CTA */

  .cta-row {
    gap: 8px;
  }

  .button {
    min-height: 43px;

    padding:
      0 17px;

    border-radius: 9px;

    font-size: .78rem;
  }


  /* SOCIAL LINKS */

  .hero-links {
    gap: 10px;

    margin-top: 18px;

    font-size: .76rem;
  }

  .hero-links .dot {
    width: 2px;
    height: 2px;
  }


  /* IMAGE */

  .profile-frame {
    aspect-ratio: 4 / 5;

    border-radius: 21px;

    box-shadow:
      0 35px 65px -40px rgba(0,0,0,.95),
      0 0 40px rgba(118,86,64,.06);
  }

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

  .profile-frame:hover img {
    transform: scale(1.01);
  }

  .hero-visual::before {
    inset:
      7% -10%;

    filter:
      blur(38px);

    opacity:
      .72;
  }


  /* AVAILABILITY */

  .availability {
    left: 7px;
    right: 7px;

    bottom: -15px;

    justify-content: center;

    gap: 7px;

    padding:
      8px 10px;

    font-size: .62rem;

    white-space: nowrap;
  }

  .status-dot {
    width: 6px;
    height: 6px;
  }


  /* ABOUT */

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

    gap: 25px;
  }

  .about-head h2 {
    max-width: 20ch;
  }

  .about-body > p {
    margin-bottom: 15px;

    font-size: .82rem;

    line-height: 1.6;
  }

  .facts {
    margin-top: 25px;
  }

  .facts > div {
    align-items: flex-start;

    flex-direction: column;

    gap: 3px;

    padding: 11px 0;
  }

  .facts dt {
    font-size: .68rem;
  }

  .facts dd {
    text-align: left;

    font-size: .78rem;
  }


  /* HIGHLIGHTS */

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

    gap: 8px;

    margin-top: 22px;
  }

  .highlight-item {
    padding: 15px;
  }

  .highlight-item > span {
    font-size: .58rem;
  }

  .highlight-item strong {
    margin-top: 6px;

    font-size: .82rem;
  }

  .highlight-item p {
    margin-top: 5px;

    font-size: .72rem;
  }


  /* PROJECTS */

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

    gap: 10px;
  }

  .project {
    padding: 18px;

    border-radius: 14px;
  }

  .project-featured {
    padding: 19px;
  }

  .project-top {
    gap: 10px;

    margin-bottom: 12px;
  }

  .project-index {
    font-size: .58rem;
  }

  .project-tag {
    padding:
      4px 8px;

    font-size: .52rem;
  }

  .project h3 {
    margin-bottom: 6px;

    font-size: 1.2rem;
  }

  .project-featured h3 {
    font-size: 1.35rem;
  }

  .project-summary {
    margin-bottom: 11px;

    font-size: .74rem;

    line-height: 1.5;
  }

  .project-points {
    display: grid;

    gap: 4px;

    margin-bottom: 12px;
  }

  .project-points li {
    padding-left: 10px;

    font-size: .68rem;
  }

  .project-points li::before {
    width: 3px;
    height: 3px;
  }

  .tech-row {
    gap: 4px;
  }

  .chip {
    padding:
      4px 8px;

    font-size: .59rem;
  }

  .project-foot {
    margin-top: 12px;

    padding-top: 11px;
  }

  .project-status {
    gap: 6px;

    font-size: .62rem;
  }

  .project-foot-actions {
    gap: 14px;
  }

  .project-link,
  .project-secondary {
    font-size: .68rem;
  }


  /* SKILLS */

  .skills-matrix {
    grid-template-columns: 1fr;

    gap: 9px;
  }

  .skill-group {
    padding: 18px;

    border-radius: 14px;
  }

  .skill-group h3 {
    margin-bottom: 11px;

    font-size: .61rem;
  }

  .chip-set {
    gap: 5px;
  }


  /* CURRENTLY BUILDING */

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

    gap: 25px;
  }

  .now-item {
    grid-template-columns:
      32px
      1fr;

    gap: 12px;

    padding: 17px 0;
  }

  .now-number {
    font-size: .59rem;
  }

  .now-item h3 {
    margin-bottom: 4px;

    font-size: .95rem;
  }

  .now-item p {
    font-size: .72rem;

    line-height: 1.55;
  }


  /* CONTACT */

  .contact-inner {
    max-width: 100%;
  }

  .contact-lead {
    margin:
      17px auto 24px;

    font-size: .78rem;

    line-height: 1.6;
  }

  .email-link {
    max-width: 100%;

    overflow-wrap: anywhere;

    font-size:
      clamp(1.1rem,6vw,1.6rem);
  }

  .contact-actions {
    margin-top: 25px;

    gap: 8px;
  }

  .contact-actions .button {
    min-height: 43px;
  }


  /* FOOTER */

  .footer-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 14px;

    padding:
      25px
      var(--gutter)
      30px;
  }

  .footer-meta {
    font-size: .68rem;
  }

  .footer-links {
    margin-left: 0;

    gap: 14px;
  }

  .footer-links a {
    font-size: .72rem;
  }
}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 480px) {

  :root {
    --gutter: 16px;
  }

  body {
    font-size: 13px;
  }


  /* HEADER */

  .header-inner {
    padding:
      0 var(--gutter);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: .82rem;
  }


  /* HERO */

  .hero {
    padding-top: 30px;
    padding-bottom: 55px;
  }

  .hero-grid {
    gap: 27px;
  }

  .hero-name {
    font-size:
      clamp(2.55rem,14vw,3.5rem);
  }

  .hero-statement {
    font-size:
      clamp(1rem,5.3vw,1.3rem);
  }

  .hero-lead {
    font-size: .76rem;

    margin:
      15px 0 20px;
  }


  /* CTA */

  .cta-row {
    flex-direction: row;
  }

  .cta-row .button {
    width: auto;
  }


  /* SOCIALS */

  .hero-links {
    flex-wrap: wrap;

    gap:
      7px 10px;

    margin-top: 15px;

    font-size: .70rem;
  }


  /* IMAGE */

  .hero-visual {
    max-width: 245px;
  }

  .profile-frame {
    border-radius: 18px;
  }

  .hero-visual::before {
    inset:
      5% -12%;

    filter:
      blur(32px);

    opacity:
      .65;
  }


  /* BADGE */

  .availability {
    bottom: -14px;

    padding:
      7px 9px;

    font-size: .57rem;
  }


  /* SECTIONS */

  .section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  h2 {
    font-size:
      clamp(1.55rem,8vw,2rem);
  }


  /* PROJECTS */

  .project {
    padding: 16px;
  }

  .project-featured {
    padding: 17px;
  }

  .project h3 {
    font-size: 1.12rem;
  }

  .project-featured h3 {
    font-size: 1.25rem;
  }

  .project-summary {
    font-size: .70rem;
  }

  .project-points li {
    font-size: .64rem;
  }

  .chip {
    font-size: .55rem;
  }


  /* FOOTER */

  .footer-inner {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
}


/* ============================================================
   EXTRA SMALL PHONES — 360 / 375px
   ============================================================ */

@media (max-width: 380px) {

  .hero {
    padding-top: 26px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-statement {
    font-size: .96rem;
  }

  .hero-lead {
    font-size: .72rem;
  }

  .hero-visual {
    max-width: 225px;
  }

  .availability {
    font-size: .52rem;
  }

  .project {
    padding: 14px;
  }

  .project-featured {
    padding: 15px;
  }

  .section {
    padding-top: 46px;
    padding-bottom: 46px;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration:
      .001ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      .001ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  .status-dot::after {
    animation: none;
  }
}