@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Noto+Sans+SC:wght@300;400;500;600&family=Playfair+Display:ital,wght@1,500&display=swap");

:root {
  --ink: #10212a;
  --muted: #66727a;
  --paper: #f1f3ef;
  --paper-warm: #e8e9e2;
  --line: rgba(16, 33, 42, 0.18);
  --ocean: #0d5268;
  --deep: #072936;
  --foam: #eef8f6;
  --accent: #ff6b4a;
  --display: "DM Sans", "Noto Sans SC", sans-serif;
  --body: "Noto Sans SC", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
  transform: translateY(-180%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.7rem clamp(1.25rem, 4vw, 4.5rem);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  width: max-content;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

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

.site-header nav {
  display: flex;
  gap: clamp(1.3rem, 3vw, 3rem);
  font-size: 0.82rem;
}

.site-header nav a,
.header-contact,
.text-link {
  position: relative;
}

.site-header nav a::after,
.header-contact::after,
.text-link::after {
  content: "";
  position: absolute;
  bottom: -0.35rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.site-header nav a:hover::after,
.header-contact:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  justify-self: end;
  font-size: 0.82rem;
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 7vw, 8rem) clamp(5rem, 10vh, 8rem);
  background-image: url("/public/ocean-background.jpg");
  background-position: 50% 61%;
  background-size: cover;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 28, 40, 0.76) 0%, rgba(4, 28, 40, 0.3) 54%, rgba(4, 28, 40, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 27, 39, 0.46), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 88%);
}

.eyebrow,
.section-kicker,
.panel-label,
.project-period {
  margin: 0;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: var(--display);
  font-size: clamp(3rem, 7.2vw, 7rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero h1 span {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.hero-intro {
  max-width: 610px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.94rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.55rem;
  border: 1px solid transparent;
  font-size: 0.86rem;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

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

.button-primary {
  background: #fff;
  color: var(--deep);
}

.button-primary:hover {
  background: var(--foam);
}

.text-link {
  padding: 0.6rem 0;
  font-size: 0.86rem;
}

.text-link span {
  display: inline-block;
  margin-left: 0.5rem;
}

.hero-index {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--display);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.hero-index div {
  width: 1px;
  height: 5rem;
  background: rgba(255, 255, 255, 0.4);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.scroll-cue i {
  width: 2.7rem;
  height: 1px;
  background: currentColor;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-kicker {
  color: var(--ocean);
}

.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 1.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.65rem, 5.5vw, 5.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.project-card {
  grid-column: span 6;
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  background: var(--paper);
}

.project-card-featured {
  grid-column: span 7;
  background: var(--ocean);
  color: #fff;
}

.project-card:nth-child(2) {
  grid-column: span 5;
  background: var(--paper-warm);
}

.project-card-placeholder {
  grid-column: span 12;
  min-height: 25rem;
  background:
    linear-gradient(110deg, rgba(7, 41, 54, 0.9), rgba(13, 82, 104, 0.64)),
    url("/public/ocean-background.jpg") center 66% / cover;
  color: #fff;
}

.project-number {
  font-family: var(--display);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.7;
}

.project-body {
  position: relative;
  max-width: 580px;
}

.project-period {
  margin-bottom: 0.9rem;
  opacity: 0.64;
}

.project-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.project-card p:not(.project-period) {
  max-width: 520px;
  margin: 1.6rem 0 0;
  font-size: 0.9rem;
  line-height: 1.85;
  opacity: 0.75;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.metric-row div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-row strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 500;
}

.metric-row span {
  font-size: 0.68rem;
  opacity: 0.66;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}

.placeholder-mark {
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  opacity: 0.4;
}

.experience-section {
  background: #fff;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1.6fr;
  gap: 2rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-date {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.timeline h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.timeline div p,
.timeline-item > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(3rem, 10vw, 10rem);
  background: var(--paper-warm);
}

.about-copy > p:not(.section-kicker) {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.9;
}

.capability-panel {
  align-self: end;
  padding: 2rem;
  border: 1px solid var(--line);
}

.panel-label {
  color: var(--muted);
}

.capability-panel ol {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.capability-panel li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.capability-panel li:last-child {
  border-bottom: 0;
}

.capability-panel li span {
  color: var(--ocean);
  font-family: var(--display);
  font-size: 0.66rem;
}

.contact-section {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--deep);
  color: #fff;
  text-align: center;
}

.contact-section .section-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.contact-section h2 {
  font-size: clamp(3.4rem, 8vw, 8.5rem);
}

.contact-section h2 em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 3rem;
}

.button-light {
  background: var(--foam);
  color: var(--deep);
}

.copy-email {
  min-height: 3.15rem;
  padding: 0 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
}

.contact-email {
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.7rem clamp(1.25rem, 4vw, 4.5rem);
  background: #041d27;
  color: rgba(255, 255, 255, 0.54);
  font-family: var(--display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.brand-footer {
  color: #fff;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 2rem;
  padding: 0.8rem 1.1rem;
  background: #fff;
  color: var(--deep);
  box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.2);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  animation: rise 850ms both cubic-bezier(0.2, 0.75, 0.2, 1);
}

.reveal:nth-child(2) { animation-delay: 90ms; }
.reveal:nth-child(3) { animation-delay: 180ms; }
.reveal:nth-child(4) { animation-delay: 270ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(1.2rem); }
  to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 860px;
    background-position: 51% 64%;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 br {
    display: none;
  }

  .hero-index {
    display: none;
  }

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

  .section-heading {
    gap: 1.5rem;
  }

  .project-card,
  .project-card-featured,
  .project-card:nth-child(2),
  .project-card-placeholder {
    grid-column: span 12;
  }

  .project-card {
    min-height: 30rem;
  }

  .timeline-item {
    grid-template-columns: 1fr 1.4fr;
  }

  .timeline-item > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 5rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .hero-intro {
    line-height: 1.75;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 1.2rem;
  }

  .scroll-cue {
    display: none;
  }

  .project-card {
    min-height: 27rem;
  }

  .metric-row {
    gap: 0.5rem;
  }

  .metric-row strong {
    font-size: 1.45rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .timeline-item > p:last-child {
    grid-column: 1;
  }

  .about-section {
    gap: 3.5rem;
  }

  .capability-panel {
    padding: 1.4rem;
  }

  .contact-actions {
    flex-direction: column;
    width: min(100%, 300px);
    margin-inline: auto;
    margin-top: 2.3rem;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer > * {
    justify-self: center !important;
  }
}
