/* =========================================================
   Uras Akas — Portfolio
   Modern editorial · light warm neutral · accent #3155D9
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f7f5;
  --bg-2: #efefeb;
  --card: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --line: #dededa;
  --line-2: #cdcdc8;
  --accent: #3155d9;
  --accent-hi: #536dfe;
  --accent-deep: #2445c8;
  --warm: #d97745;
  --white: #ffffff;

  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(23, 23, 23, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(23, 23, 23, 0.28);

  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

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

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

/* ---------- Utilities ---------- */
.container {
  width: min(1160px, 100% - clamp(2rem, 6vw, 5rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section--alt {
  background: var(--bg-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head--center .kicker::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  margin-top: 0.9rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.9rem;
  max-width: 52ch;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.25s, border-color 0.25s, color 0.25s;
  will-change: transform;
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 22px -10px rgba(49, 85, 217, 0.55);
}

.btn--primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 28px -12px rgba(49, 85, 217, 0.65);
}

.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--card);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--warm {
  background: var(--warm);
  color: var(--white);
  box-shadow: 0 8px 22px -10px rgba(217, 119, 69, 0.55);
}

.btn--warm:hover {
  filter: brightness(0.96);
}

/* ---------- Underline link ---------- */
.u-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.u-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.u-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.u-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.u-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.25s var(--ease);
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}

.nav--scrolled {
  height: 58px;
  background: rgba(247, 247, 245, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  width: min(1160px, 100% - clamp(2rem, 6vw, 5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

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

.nav__social {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--bg-2);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav__cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s;
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 1.4rem;
}

.hero__title .line {
  display: block;
}

.hero__title .hl {
  color: var(--accent);
  position: relative;
}

.hero__title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.18em;
  background: rgba(83, 109, 254, 0.18);
  z-index: -1;
  border-radius: 4px;
}

.hero__desc {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero__meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Hero art */
.hero__art {
  position: relative;
}

.art {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
}

.art__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.art__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.art__bar i:nth-child(1) { background: #e07a6b; }
.art__bar i:nth-child(2) { background: #e6b65a; }
.art__bar i:nth-child(3) { background: #7fbf8a; }

.art__body {
  padding: 1.1rem 0.2rem 0.35rem;
  display: grid;
  gap: 1.05rem;
}

.art__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.art__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

.art__tag--accent {
  color: var(--accent);
  border-color: rgba(49, 85, 217, 0.25);
  background: rgba(49, 85, 217, 0.06);
}

.art__tag--warm {
  color: var(--warm);
  border-color: rgba(217, 119, 69, 0.3);
  background: rgba(217, 119, 69, 0.08);
}

.art__bar-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.art__skel {
  display: grid;
  gap: 0.5rem;
  flex: 1;
}

.art__skel span {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--bg-2);
}

.art__skel span:nth-child(2) { width: 78%; }
.art__skel span:nth-child(3) { width: 45%; }

.art__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.art__status b {
  color: var(--ink);
  font-weight: 600;
}

.art__float {
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.art__square {
  position: absolute;
  bottom: -22px;
  left: -20px;
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent-hi);
  border-radius: 14px;
  opacity: 0.55;
  transform: rotate(8deg);
}

.art__square--warm {
  position: absolute;
  top: 38%;
  left: -34px;
  width: 26px;
  height: 26px;
  border: 2px solid var(--warm);
  border-radius: 8px;
  opacity: 0.7;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about__lead {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.about__text p + p {
  margin-top: 1.1rem;
}

.about__text p {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mini-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.25s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.mini-card:hover {
  border-color: rgba(49, 85, 217, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mini-card__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.mini-card__title {
  font-size: 1.05rem;
  margin-top: 0.7rem;
}

.mini-card__icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---------- Projects ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.featured:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.mock {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.mock__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}

.mock__bar span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

.mock__body {
  aspect-ratio: 16 / 9.5;
  display: grid;
  place-items: center;
  position: relative;
}

.mock__logo {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  padding: 0.6rem;
}

.mock__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.mock__chip {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.mock__chip--live {
  color: var(--accent);
  border-color: rgba(49, 85, 217, 0.3);
  background: rgba(49, 85, 217, 0.06);
}

.project__kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 500;
}

.project__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-top: 0.7rem;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.project__meta b {
  color: var(--ink);
  font-weight: 600;
}

.project__desc {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 52ch;
}

.project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.project-card:hover {
  border-color: rgba(49, 85, 217, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-card .mock__body {
  aspect-ratio: 16 / 7;
}

.project-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.project-card__title {
  font-size: 1.25rem;
  transition: color 0.2s;
}

.project-card:hover .project-card__title {
  color: var(--accent);
}

.project-card__year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.project-card__desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.7rem;
  flex: 1;
}

.project-card__tech {
  margin-top: 1rem;
}

.project-card__foot {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.tag--draft {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm);
  border: 1px dashed rgba(217, 119, 69, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
}

/* ---------- Tech stack ---------- */
.tech-cats {
  display: grid;
  gap: 2.6rem;
}

.tech-cat__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.tech-cat__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.tech-cat__name::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.9rem;
}

.tech {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.3rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.tech:hover {
  border-color: rgba(49, 85, 217, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tech__icon {
  width: 38px;
  height: 38px;
  transition: transform 0.3s var(--ease);
}

.tech:hover .tech__icon {
  transform: translateY(-3px);
}

.tech__name {
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.tech:hover .tech__name {
  color: var(--accent);
}

.tech__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Security line icons */
.tech--line .tech__icon {
  color: var(--accent);
}

/* ---------- What I Do ---------- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.what {
  position: relative;
  padding: 2rem 1.8rem;
  border-top: 2px solid var(--line-2);
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.what:hover {
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.what__icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
}

.what__num {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.what__title {
  font-size: 1.3rem;
  margin-top: 1.2rem;
}

.what__desc {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 0.7rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-2);
}

.tl-item {
  position: relative;
  padding: 0 0 2.6rem 2.6rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--accent);
}

.tl-item__year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.tl-item__title {
  font-size: 1.22rem;
  margin-top: 0.45rem;
}

.tl-item__desc {
  color: var(--muted);
  font-size: 0.97rem;
  margin-top: 0.5rem;
  max-width: 54ch;
}

/* ---------- Contact ---------- */
.contact__inner {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
}

.contact__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.contact__desc {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1.2rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.contact__actions .btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer__left,
.footer__center,
.footer__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__right {
  gap: 0.25rem;
}

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

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.2s;
}

.to-top:hover {
  color: var(--accent);
}

.to-top svg {
  width: 14px;
  height: 14px;
}

/* ---------- Back to top ---------- */
.to-top-fixed {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
}

.to-top-fixed.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top-fixed:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.to-top-fixed svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__art {
    max-width: 560px;
  }

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

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

@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform 0.45s var(--ease);
    z-index: -1;
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__link {
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after {
    display: none;
  }

  .nav__social {
    padding-top: 1.2rem;
  }

  .nav__cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.4rem;
  }

  .footer__center {
    order: 3;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav__brand {
    font-size: 0.92rem;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
