/* =========================================================
   Shashidhar Akula — Portfolio
   Dark, quiet, systems-minded.
   ========================================================= */

:root {
  --bg: #060807;
  --bg-soft: #0a0d0b;
  --surface: #0d110e;
  --text: #f2f0e9;
  --muted: #9a9f97;
  --dim: #5f675f;
  --line: rgba(242, 240, 233, 0.11);
  --line-soft: rgba(242, 240, 233, 0.06);
  --line-strong: rgba(242, 240, 233, 0.2);
  --accent: #c7f76a;
  --accent-soft: rgba(199, 247, 106, 0.1);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1180px, calc(100vw - 80px));
  --header: 82px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--dim) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ---------- atmosphere ---------- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(242, 240, 233, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 240, 233, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 10%, transparent 78%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 20% -10%, rgba(199, 247, 106, 0.07), transparent 65%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(120, 160, 255, 0.035), transparent 70%);
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    550px circle at var(--mx, 75%) var(--my, 8%),
    rgba(199, 247, 106, 0.055),
    transparent 68%
  );
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(2) infinite;
}

@keyframes grain-shift {
  0%,
  100% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%); }
  50% { transform: translate(1%, -1%); }
  75% { transform: translate(1%, 1%); }
}

/* ---------- type helpers ---------- */

.eyebrow,
.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px rgba(199, 247, 106, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.45; }
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 8, 7, 0.76);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  min-height: var(--header);
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.brand:hover .brand-mark {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-copy small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav-links a span {
  font-size: 8px;
  color: var(--dim);
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover span,
.nav-links a.is-active span {
  color: var(--accent);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-status .status-dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.nav-arrow {
  color: var(--accent);
  transition: transform 180ms ease;
}

.nav-status:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(242, 240, 233, 0.03);
}

.nav-status:hover .nav-arrow {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: calc(var(--header) + 74px);
  padding-bottom: 30px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 28%;
  left: -18%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
}

.hero-copy {
  max-width: 850px;
}

.hero h1 {
  max-width: 900px;
  margin: 22px 0 30px;
  font-size: clamp(4.5rem, 8.6vw, 8.1rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.068em;
  text-wrap: balance;
}

.hero h1 em {
  display: inline-block;
  font-size: 1.03em;
  line-height: 0.78;
}

.hero-lede {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.hero-lede strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.button span {
  font-size: 13px;
  transition: transform 200ms ease;
}

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

.button-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: var(--text);
  border-color: var(--text);
}

.button-primary:hover span {
  transform: translate(2px, -2px);
}

.button-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}

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

.button-ghost:hover span {
  transform: translate(2px, -2px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 46px;
  max-width: 690px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.hero-facts div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-facts dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero-facts dd {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* profile panel */

.profile-panel {
  position: absolute;
  top: calc(var(--header) + 82px);
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(350px, 30vw);
  min-height: 540px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(242, 240, 233, 0.055), rgba(242, 240, 233, 0.008) 46%, rgba(199, 247, 106, 0.035)),
    var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.profile-panel::before,
.profile-panel::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.7;
}

.profile-panel::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.profile-panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 1px 1px 0;
}

.panel-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.panel-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.panel-mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  margin: 64px 0 20px;
  font-family: var(--serif);
  font-size: clamp(7.4rem, 11vw, 10rem);
  line-height: 0.72;
  letter-spacing: -0.09em;
}

.panel-mark i {
  margin-top: 0.08em;
  margin-left: 0.03em;
  font-family: var(--sans);
  font-size: 0.17em;
  font-style: normal;
  line-height: 1;
  color: var(--accent);
}

.panel-role {
  position: relative;
  z-index: 1;
  max-width: 250px;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--muted);
}

.panel-role em {
  display: block;
  font-size: 1.12em;
}

.panel-rule {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 24px 0 18px;
  background: var(--line);
}

.panel-focus {
  position: relative;
  z-index: 1;
}

.panel-focus > span {
  color: var(--dim);
}

.panel-focus ol {
  margin-top: 6px;
}

.panel-focus li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
  color: var(--muted);
}

.panel-focus li span {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}

.panel-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.panel-foot span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel-foot strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.panel-orbit {
  position: absolute;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  right: -105px;
  bottom: 52px;
  width: 235px;
  height: 235px;
}

.orbit-b {
  right: -55px;
  bottom: 102px;
  width: 135px;
  height: 135px;
  border-color: rgba(199, 247, 106, 0.16);
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 58px;
  color: var(--dim);
}

.hero-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(242, 240, 233, 0.014);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 16px 0;
  animation: marquee 34s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track b {
  font-size: 11px;
  font-weight: 400;
  color: var(--accent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: 126px 0;
}

.section-head {
  margin-bottom: 60px;
}

.section-head > .eyebrow {
  margin-bottom: 22px;
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  gap: 70px;
  align-items: end;
}

.section-title-row h2,
.approach h2 {
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.section-title-row > p {
  max-width: 390px;
  padding: 0 0 7px 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- work ---------- */

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

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 230px;
  gap: 34px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 260ms ease, background 260ms ease;
}

.work-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover::before {
  width: 100%;
}

.work-card:hover {
  background: linear-gradient(90deg, rgba(199, 247, 106, 0.025), transparent 60%);
}

.work-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0 2px;
}

.work-number {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
}

.work-period {
  color: var(--dim);
  font-size: 8px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-meta span:first-child {
  color: var(--text);
}

.work-meta span:last-child {
  color: var(--dim);
}

.work-main h3 {
  max-width: 620px;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.work-main p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-wrap: pretty;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tag-row span {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(242, 240, 233, 0.018);
}

.work-outcome {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.work-outcome .mono {
  color: var(--dim);
  font-size: 8px;
}

.work-outcome strong {
  max-width: 170px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.work-outcome > span:last-child {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- timeline ---------- */

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

.timeline-item {
  display: grid;
  grid-template-columns: 115px 15px minmax(0, 1fr);
  gap: 0 22px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.timeline-date span:first-child {
  color: var(--muted);
}

.timeline-marker {
  position: relative;
  width: 1px;
  background: var(--line);
}

.timeline-marker i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--dim);
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.timeline-item:hover .timeline-marker i {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-body {
  padding-left: 10px;
}

.timeline-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 16px;
  margin-bottom: 8px;
}

.timeline-role h3 {
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.timeline-role span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.timeline-body > p {
  max-width: 730px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* ---------- toolkit ---------- */

.toolkit-section {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(199, 247, 106, 0.018), transparent 40%),
    var(--bg-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 46px;
}

.skill-card {
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.skill-card > span {
  color: var(--accent);
  font-size: 8px;
}

.skill-card h3 {
  margin: 8px 0 9px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.skill-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.72;
  text-wrap: pretty;
}

/* ---------- approach ---------- */

.approach {
  padding-top: 132px;
  padding-bottom: 138px;
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 90px;
}

.approach-grid .eyebrow {
  margin-bottom: 22px;
}

.approach-copy {
  padding-top: 9px;
}

.approach-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.approach-copy > p + p {
  margin-top: 17px;
}

.education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 43px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.education .mono {
  color: var(--accent);
  font-size: 8px;
}

.education h3 {
  margin: 7px 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.education p {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- contact ---------- */

.contact {
  padding-top: 30px;
  padding-bottom: 120px;
}

.contact-inner {
  position: relative;
  overflow: hidden;
  padding: 82px 0 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-inner::before {
  content: "";
  position: absolute;
  top: -70%;
  right: -5%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 247, 106, 0.07), transparent 68%);
  pointer-events: none;
}

.contact .eyebrow {
  margin-bottom: 24px;
}

.contact h2 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-size: clamp(3.6rem, 7.5vw, 7.2rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.068em;
}

.contact-lede {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.email-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 38px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.25rem, 3.7vw, 2.55rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  transition: color 200ms ease, border-color 200ms ease;
}

.email-link span {
  font-size: 0.55em;
  color: var(--accent);
  transition: transform 200ms ease;
}

.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.email-link:hover span {
  transform: translate(4px, -4px);
}

.contact-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 42px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
}

.contact-meta a {
  color: var(--muted);
  transition: color 180ms ease;
}

.contact-meta a span {
  color: var(--accent);
}

.contact-meta a:hover {
  color: var(--text);
}

.contact-orbit {
  right: 4%;
  bottom: -170px;
  width: 390px;
  height: 390px;
  opacity: 0.8;
}

.contact-orbit.orbit-b {
  right: 13%;
  bottom: -70px;
  width: 190px;
  height: 190px;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.footer-inner .brand-mark {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.footer-inner .brand-copy strong {
  font-size: 10px;
}

.footer-inner .brand-copy small {
  font-size: 7px;
}

.footer-inner > p {
  margin-left: auto;
  color: var(--dim);
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.footer-year {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 180ms ease;
}

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

/* ---------- reveal ---------- */

.reveal {
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 230ms; }
.reveal-delay-4 { transition-delay: 300ms; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 64px, 960px);
  }

  .nav-status {
    display: none;
  }

  .profile-panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 430px;
    min-height: 510px;
    margin-top: 56px;
  }

  .hero {
    min-height: auto;
  }

  .hero-foot {
    padding-top: 46px;
  }

  .work-card {
    grid-template-columns: 80px minmax(0, 1fr) 190px;
    gap: 26px;
  }

  .section-title-row {
    gap: 44px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 44px);
    --header: 72px;
  }

  .nav-links {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 22px 24px;
    background: rgba(6, 8, 7, 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .nav-links a {
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 11px;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-open .menu-toggle > span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .nav-open .menu-toggle > span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .hero {
    padding-top: calc(var(--header) + 58px);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 12vw, 6rem);
  }

  .hero-lede {
    max-width: 590px;
  }

  .section {
    padding: 92px 0;
  }

  .section-title-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-title-row > p {
    max-width: 560px;
    padding: 0;
    border-left: 0;
  }

  .work-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
    padding: 32px 0;
  }

  .work-outcome {
    grid-column: 2;
    align-self: start;
    padding: 16px 0 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .work-outcome strong {
    max-width: none;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .approach {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .contact {
    padding-bottom: 90px;
  }

  .contact-inner {
    padding: 64px 0 70px;
  }

  .footer-inner > p {
    order: 4;
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 34px);
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 15.2vw, 4.6rem);
    letter-spacing: -0.065em;
  }

  .hero h1 em {
    display: block;
    margin-top: 0.04em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: space-between;
  }

  .hero-facts {
    gap: 18px 28px;
  }

  .profile-panel {
    min-height: 480px;
    padding: 21px;
  }

  .panel-mark {
    margin-top: 54px;
    font-size: 8.7rem;
  }

  .hero-foot .mono:last-child {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-title-row h2,
  .approach h2 {
    font-size: clamp(2.65rem, 12vw, 3.5rem);
  }

  .work-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-side {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .work-number {
    font-size: 22px;
  }

  .work-outcome {
    grid-column: 1;
  }

  .timeline-item {
    grid-template-columns: 1fr 15px;
    gap: 0 16px;
    padding: 26px 0;
  }

  .timeline-date {
    grid-column: 1;
    flex-direction: row;
    gap: 6px;
    padding: 0 0 8px;
  }

  .timeline-marker {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .timeline-body {
    grid-column: 1;
    padding-left: 0;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }

  .education {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact h2 {
    font-size: clamp(3rem, 14.5vw, 4.3rem);
  }

  .email-link {
    font-size: 1.22rem;
    letter-spacing: -0.03em;
  }

  .contact-meta {
    gap: 12px 20px;
  }

  .contact-orbit {
    right: -36%;
    bottom: -110px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-links {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
