/* Hawker — regal portfolio */
:root {
  --ink: #08111f;
  --navy: #0f1c2e;
  --slate: #1a2b42;
  --gold: #c9a55c;
  --gold-soft: #e2c98a;
  --pearl: #f2f4f7;
  --mist: #d5dde8;
  --text: #243041;
  --muted: #5a6a7d;
  --white: #fafbfc;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 112.5%; /* 18px base — scales rem site-wide */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.92) 0%, rgba(8, 17, 31, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(8, 17, 31, 0.95);
  box-shadow: 0 1px 0 rgba(201, 165, 92, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Great Vibes", cursive;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold-soft);
}

.brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242, 244, 247, 0.78);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--gold-soft);
}

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

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(201, 165, 92, 0.45);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse at 78% 35%, rgba(201, 165, 92, 0.14), transparent 42%),
    radial-gradient(ellipse at 12% 80%, rgba(30, 58, 95, 0.45), transparent 50%),
    linear-gradient(145deg, var(--ink) 0%, var(--navy) 48%, #15263d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 165, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 165, 92, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-content {
  animation: rise 1.1s var(--ease) both;
}

.hero-portrait {
  margin: 0;
  justify-self: end;
  width: min(22rem, 100%);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(201, 165, 92, 0.4);
  animation: rise 1.15s 0.15s var(--ease) both;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.03);
  animation: hero-zoom 16s var(--ease) forwards;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.5rem, 14vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-line {
  display: block;
  width: 3.5rem;
  height: 1px;
  margin: 0 0 1.35rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: draw 1.2s 0.35s var(--ease) both;
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: rgba(242, 244, 247, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(201, 165, 92, 0.55);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.hero-scroll {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 165, 92, 0.75);
  animation: rise 1.2s 0.5s var(--ease) both;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.75rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vh, 7.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-inner {
  width: min(68rem, 100%);
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2rem, 4vh, 3rem);
}

.section-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin-top: 1rem;
  background: var(--gold);
}

.section-dark {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(201, 165, 92, 0.08), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  color: rgba(242, 244, 247, 0.86);
}

.section-dark .section-title {
  color: var(--white);
}

.section-muted {
  background:
    linear-gradient(180deg, #e9eef4 0%, var(--pearl) 40%, #eef2f6 100%);
}

/* ——— About ——— */
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.skills {
  display: grid;
  gap: 1.35rem;
  padding-top: 0.35rem;
}

.skill {
  display: grid;
  gap: 0.45rem;
}

.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.skill-meta span:last-child {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.skill-track {
  height: 2px;
  background: var(--mist);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 1.15s var(--ease);
}

.skill-fill.is-in {
  width: var(--level);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vh, 3.75rem);
  padding-top: clamp(2rem, 4vh, 2.75rem);
  border-top: 1px solid rgba(15, 28, 46, 0.12);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.section-muted .btn-gold {
  box-shadow: 0 10px 28px rgba(8, 17, 31, 0.12);
}

.section-muted .btn-ghost {
  color: var(--navy);
  border-color: rgba(26, 43, 66, 0.28);
}

.section-muted .btn-ghost:hover {
  color: var(--navy);
  border-color: var(--gold);
}

/* ——— Projects ——— */
.project-list {
  display: grid;
  gap: 0;
}

.project {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(201, 165, 92, 0.22);
  transition: padding 0.35s var(--ease), background 0.35s ease;
}

.project:first-child {
  border-top: 1px solid rgba(201, 165, 92, 0.22);
}

.project:hover {
  padding-left: 0.75rem;
}

.project-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  min-width: 2rem;
}

.project-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--white);
}

.project-body p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(242, 244, 247, 0.62);
}

.project-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0.55;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.project:hover .project-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-intro {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(15, 28, 46, 0.1);
}

.contact-list .label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list a,
.contact-list .value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  transition: color 0.25s ease;
}

.contact-list a:hover {
  color: var(--gold);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
  background: var(--ink);
  color: rgba(242, 244, 247, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.footer-inner {
  width: min(68rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: "Great Vibes", cursive;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gold);
}

.socials {
  display: flex;
  gap: 1.1rem;
}

.socials a {
  color: rgba(242, 244, 247, 0.5);
  font-size: 1.15rem;
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.socials a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(8, 17, 31, 0.97);
    border-bottom: 1px solid rgba(201, 165, 92, 0.2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(201, 165, 92, 0.12);
  }

  .nav-links a {
    display: block;
    padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.25rem;
    padding-bottom: 4rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-portrait {
    order: 1;
    justify-self: center;
    width: min(16rem, 68vw);
  }

  .hero-scroll {
    display: none;
  }

  .project {
    grid-template-columns: auto 1fr;
  }

  .project-arrow {
    display: none;
  }

  .metrics {
    gap: 1.25rem 1rem;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero-portrait {
    width: min(18rem, 100%);
  }
}

@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;
  }

  .hero-portrait img {
    transform: none;
  }
}
