:root {
  --ink: #12171c;
  --ink-soft: #3a4450;
  --muted: #6b7682;
  --paper: #f2f5f7;
  --paper-2: #e6ecef;
  --line: rgba(18, 23, 28, 0.1);
  --accent: #0b6e6a;
  --accent-deep: #085552;
  --glow-a: rgba(11, 110, 106, 0.28);
  --glow-b: rgba(45, 90, 130, 0.22);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 10% -10%, #d9ecea 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #d4e0ea 0%, transparent 50%),
    linear-gradient(180deg, #eef3f5 0%, var(--paper) 35%, #e9eef1 100%);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(242, 245, 247, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-deep);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 110, 106, 0.12) 0%, transparent 42%),
    linear-gradient(200deg, rgba(30, 70, 110, 0.1) 10%, transparent 55%),
    linear-gradient(180deg, transparent 40%, rgba(242, 245, 247, 0.55) 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero-orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: 8%;
  right: 5%;
  background: var(--glow-a);
}

.hero-orb--2 {
  width: min(40vw, 340px);
  height: min(40vw, 340px);
  top: 35%;
  right: 28%;
  background: var(--glow-b);
  animation-delay: -4s;
  animation-duration: 18s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 23, 28, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 23, 28, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black 20%, transparent 75%);
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-4%, 6%) scale(1.08);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8.5vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-lead {
  font-size: clamp(0.98rem, 1.6vw, 1.125rem);
  color: var(--ink-soft);
  max-width: 34rem;
  font-weight: 300;
  margin-bottom: 2rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 550;
  border-radius: 4px;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f7f8;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 12vh, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 2.5rem;
}

/* Services */
.services {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(214, 228, 230, 0.35), transparent);
}

/* About */
.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 38rem;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.25rem;
}

.about-meta li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  font-weight: 500;
}

.about-meta span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Experience */
.experience {
  background: linear-gradient(180deg, transparent, rgba(214, 228, 230, 0.45), transparent);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.timeline-meta time {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(11, 110, 106, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.timeline-item p {
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 48rem;
  font-size: 0.98rem;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
}

.project {
  border-top: 1px solid var(--line);
}

.project:last-child {
  border-bottom: 1px solid var(--line);
}

.project a {
  display: grid;
  gap: 0.45rem;
  padding: 1.6rem 0;
  transition: padding 0.3s var(--ease);
}

@media (min-width: 720px) {
  .project a {
    grid-template-columns: 10rem 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1.5rem;
    align-items: baseline;
    padding: 1.85rem 0.5rem;
  }

  .project a:hover {
    padding-left: 1rem;
  }

  .project-sector {
    grid-row: 1 / 3;
    align-self: center;
  }

  .project h3 {
    grid-column: 2;
  }

  .project p {
    grid-column: 2;
  }

  .project-link {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }
}

.project-sector {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.project h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: color 0.25s;
}

.project a:hover h3 {
  color: var(--accent-deep);
}

.project p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.95rem;
  max-width: 36rem;
}

.project-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.project a:hover .project-link {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* Skills */
.skills {
  border-top: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  gap: 2rem 2.5rem;
}

@media (min-width: 700px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.skill-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.skill-block p {
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background:
    radial-gradient(80% 80% at 50% 100%, rgba(11, 110, 106, 0.14), transparent 60%),
    linear-gradient(180deg, transparent, rgba(214, 224, 230, 0.5));
}

.contact-inner {
  text-align: left;
}

.contact .section h2,
.contact h2 {
  max-width: 16ch;
}

.contact-lead {
  color: var(--ink-soft);
  font-weight: 300;
  margin: -1.5rem 0 2rem;
  max-width: 32rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.social {
  display: flex;
  gap: 1.5rem;
}

.social a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.social a:hover {
  border-bottom-color: var(--accent-deep);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  font-weight: 500;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--ink);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-orb,
  .brand,
  .hero h1,
  .hero-lead,
  .hero-actions {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .project a:hover {
    transform: none;
  }
}
