:root {
  --navy: #102a43;
  --navy-deep: #091b2d;
  --navy-soft: #183a58;
  --orange: #f36f21;
  --orange-bright: #ff8137;
  --cream: #f7f3ed;
  --white: #ffffff;
  --ink: #102a43;
  --muted: #667280;
  --line: rgba(16, 42, 67, 0.16);
  --background: #102a43;
  --foreground: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  background: var(--navy);
  color: white;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero-section,
.about-section,
.contact-section {
  position: relative;
  color: white;
  background: var(--navy);
}

.hero-section {
  min-height: 100vh;
}

.hero-glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 58vw;
  height: 58vw;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243, 111, 33, 0.12), transparent 66%);
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 28px 64px;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  transition: 180ms ease;
}

.brand-link:hover .brand-mark,
.brand-link:focus-visible .brand-mark {
  border-color: var(--orange);
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: white;
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  transition: 180ms ease;
}

.icon-link:hover,
.icon-link:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

.nav-cta,
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: white;
  color: var(--navy);
  font-size: 13px;
}

.nav-cta-short {
  display: none;
}

.primary-cta {
  min-height: 56px;
  padding: 0 25px;
  background: var(--orange);
  color: white;
  font-size: 14px;
}

.nav-cta:hover,
.primary-cta:hover {
  transform: translateY(-2px);
  background: var(--orange-bright);
  color: white;
}

.nav-cta:focus-visible,
.primary-cta:focus-visible,
.contact-email:focus-visible,
.project-card:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(100%, 1440px);
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: 8px 64px 80px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 42px;
  height: 2px;
  background: var(--orange);
}

.hero-copy h1 {
  margin: 28px 0 0;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-copy h1 span {
  display: block;
  margin-top: 8px;
  color: var(--orange);
}

.hero-intro {
  max-width: 680px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover {
  color: white;
}

.hero-stats {
  display: grid;
  max-width: 600px;
  margin: 54px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-stats dt {
  color: white;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero-stats dd {
  max-width: 120px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  line-height: 1.65;
}

.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
}

.portrait-frame {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 220px 220px 28px 28px;
  background: #203a51;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.34);
}

.portrait-orbit {
  position: absolute;
  z-index: 2;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 200px 200px 20px 20px;
  pointer-events: none;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(9, 27, 45, 0.74) 100%);
  pointer-events: none;
}

.portrait-label {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.portrait-corner {
  position: absolute;
  left: -28px;
  bottom: -28px;
  width: 112px;
  height: 112px;
  border-bottom: 2px solid rgba(243, 111, 33, 0.72);
  border-left: 2px solid rgba(243, 111, 33, 0.72);
}

.section-pad {
  padding: 130px max(32px, calc((100vw - 1312px) / 2));
}

.work-section,
.expertise-section {
  color: var(--ink);
  background: var(--cream);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 66px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: '';
  width: 34px;
  height: 2px;
  background: currentColor;
}

.section-kicker--light {
  color: #ff9a5f;
}

.section-heading h2,
.about-copy h2,
.experience-intro h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  grid-column: span 4;
  min-width: 0;
}

.project-card--wide {
  grid-column: span 7;
}

.project-card--tall {
  grid-column: span 5;
}

.project-visual {
  position: relative;
  aspect-ratio: 1.22 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #d7dce0;
}

.project-card--wide .project-visual,
.project-card--tall .project-visual {
  aspect-ratio: 1.56 / 1;
}

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms ease;
}

.project-card:hover .project-image {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.project-index {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  place-items: center;
  border-radius: 999px;
  background: rgba(9, 27, 45, 0.86);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.project-open {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  transform: translateY(8px);
  opacity: 0;
  transition: 220ms ease;
}

.project-card:hover .project-open,
.project-card:focus-visible .project-open {
  transform: translateY(0);
  opacity: 1;
}

.project-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px 36px;
}

.project-meta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}

.about-section {
  background: var(--navy-deep);
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, black, transparent 78%);
  pointer-events: none;
}

.about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
}

.about-portrait {
  position: relative;
  width: min(100%, 510px);
}

.about-portrait::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: -22px 22px 22px -22px;
  border: 1px solid rgba(243, 111, 33, 0.55);
  border-radius: 26px;
}

.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.about-image-tag {
  position: absolute;
  z-index: 2;
  right: -26px;
  bottom: 34px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy h2 {
  max-width: 850px;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.about-copy > p:not(.section-kicker) {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
  line-height: 1.8;
}

.about-copy .about-lead {
  color: white;
  font-size: 19px;
}

.principles {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.principles div {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.principles span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.principles strong {
  font-size: 14px;
  font-weight: 700;
}

.expertise-heading {
  margin-bottom: 54px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.expertise-card {
  min-height: 310px;
  padding: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 220ms ease, color 220ms ease;
}

.expertise-card > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.expertise-card h3 {
  margin: 62px 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.expertise-card p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.expertise-card:hover {
  background: var(--navy);
  color: white;
}

.expertise-card:hover p {
  color: rgba(255, 255, 255, 0.62);
}

.experience-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 8vw, 140px);
  color: white;
  background: var(--orange);
}

.experience-intro {
  position: sticky;
  top: 70px;
  align-self: start;
}

.experience-intro .section-kicker {
  color: var(--navy-deep);
}

.experience-intro h2 {
  font-size: clamp(2.7rem, 4.8vw, 5rem);
}

.experience-intro > p:last-child {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.timeline-period {
  margin: 3px 0 0;
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 0;
  color: white;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.timeline-company {
  margin: 7px 0 0;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
}

.timeline-detail {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.75;
}

.contact-section {
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 54px;
  background: var(--navy-deep);
}

.contact-section .section-kicker,
.contact-section > h2,
.contact-copy,
.contact-email,
.site-footer {
  position: relative;
  z-index: 2;
}

.contact-section > h2 {
  max-width: 1100px;
  font-size: clamp(4rem, 9vw, 9.5rem);
}

.contact-section > h2 span {
  color: var(--orange);
}

.contact-copy {
  max-width: 600px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 17px;
  line-height: 1.8;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 54px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  color: white;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.contact-email > span {
  color: var(--orange);
  transition: transform 180ms ease;
}

.contact-email:hover > span {
  transform: translate(3px, -3px);
}

.contact-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  pointer-events: none;
}

.contact-orbit--one {
  top: 6%;
  right: -8%;
  width: 52vw;
  height: 52vw;
}

.contact-orbit--two {
  top: 22%;
  right: 8%;
  width: 27vw;
  height: 27vw;
  border-color: rgba(243, 111, 33, 0.24);
}

.site-footer {
  display: flex;
  margin-top: 130px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 650;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 1100px) {
  .site-nav,
  .hero-grid {
    padding-right: 40px;
    padding-left: 40px;
  }

  .hero-grid {
    gap: 42px;
  }

  .nav-links {
    display: none;
  }

  .project-card {
    grid-column: span 6;
  }

  .project-card--wide,
  .project-card--tall {
    grid-column: span 6;
  }

  .project-card--wide .project-visual,
  .project-card--tall .project-visual {
    aspect-ratio: 1.22 / 1;
  }

  .section-heading,
  .experience-section {
    gap: 60px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    min-height: auto;
    padding-top: 70px;
    grid-template-columns: 1fr;
  }

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

  .portrait-wrap {
    width: min(100%, 620px);
    margin: 30px auto 0;
  }

  .portrait-frame {
    height: min(78vh, 740px);
  }

  .section-pad {
    padding: 100px 32px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading > p {
    max-width: 620px;
  }

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

  .about-portrait {
    width: min(80%, 520px);
  }

  .experience-section {
    grid-template-columns: 1fr;
  }

  .experience-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 20px;
  }

  .brand-link > span:last-child,
  .icon-link,
  .nav-cta-long {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .hero-glow {
    width: 120vw;
    height: 120vw;
  }

  .hero-grid {
    padding: 54px 20px 70px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stats dd {
    font-size: 11px;
  }

  .portrait-frame {
    height: 610px;
    min-height: 0;
    border-radius: 160px 160px 24px 24px;
  }

  .eyebrow {
    letter-spacing: 0.09em;
  }

  .section-pad {
    padding: 80px 20px;
  }

  .section-heading h2,
  .about-copy h2,
  .experience-intro h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-card,
  .project-card--wide,
  .project-card--tall {
    grid-column: auto;
  }

  .project-visual,
  .project-card--wide .project-visual,
  .project-card--tall .project-visual {
    aspect-ratio: 1.15 / 1;
  }

  .project-meta {
    display: block;
  }

  .project-meta p {
    margin-top: 5px;
    text-align: left;
  }

  .project-open {
    transform: none;
    opacity: 1;
  }

  .about-portrait {
    width: calc(100% - 16px);
    margin-left: 16px;
  }

  .about-image-tag {
    right: -8px;
    bottom: 20px;
  }

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

  .expertise-card {
    min-height: 260px;
    padding: 30px;
  }

  .expertise-card h3 {
    margin-top: 46px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-section > h2 {
    font-size: clamp(3.6rem, 17vw, 6rem);
  }

  .site-footer {
    margin-top: 100px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
