:root {
  --navy: #0b1f33;
  --navy-2: #112d47;
  --teal: #00a7a7;
  --cyan: #72e5e5;
  --gold: #f5c76b;
  --cream: #f7f4ee;
  --white: #ffffff;
  --muted: #617085;
  --ink: #132233;
  --card: rgba(255, 255, 255, 0.84);
  --border: rgba(17, 45, 71, 0.14);
  --shadow: 0 24px 70px rgba(8, 31, 53, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 167, 167, 0.18), transparent 34rem),
    linear-gradient(180deg, #fbfaf7 0%, #eef7f7 48%, #fbfaf7 100%);
  line-height: 1.6;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  color: var(--navy-2);
  font-weight: 650;
  font-size: 0.95rem;
}
nav a { text-decoration: none; opacity: 0.82; }
nav a:hover { color: var(--teal); opacity: 1; }
.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4rem);
  min-height: calc(100vh - 78px);
}
.eyebrow {
  margin: 0 0 1rem;
  color: #007d7d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
h1, h2, h3 { line-height: 1.08; color: var(--navy); }
h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  letter-spacing: -0.07em;
  max-width: 950px;
}
h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
}
h3 { margin: 0 0 0.75rem; font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin-top: 0; }
.hero-subtitle {
  max-width: 780px;
  margin: 1.4rem 0 1.7rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #36475a;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-actions.center { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--navy); color: var(--white); box-shadow: 0 14px 32px rgba(11, 31, 51, 0.22); }
.button.secondary { background: rgba(255,255,255,0.74); color: var(--navy); border-color: var(--border); }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
  color: var(--muted);
}
.trust-list li {
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}
.hero-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(11,31,51,0.96), rgba(17,45,71,0.9));
  color: #dceff1;
  box-shadow: var(--shadow);
}
.metric-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.metric-number { display: block; font-size: 5rem; line-height: 0.9; font-weight: 900; color: var(--cyan); }
.metric-label { display: block; margin-top: 0.35rem; font-weight: 700; }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.stack-grid span {
  padding: 0.7rem;
  text-align: center;
  border-radius: 16px;
  background: rgba(114,229,229,0.11);
  color: #efffff;
  font-weight: 800;
}
.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.fit-grid, .scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.fit-grid article, .scorecard-grid article, .project-card, .proof-list, .map-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8,31,53,0.07);
}
.fit-grid article, .scorecard-grid article { padding: 1.25rem; }
.section-heading { max-width: 790px; margin-bottom: 2rem; }
.section-intro {
  max-width: 760px;
  margin: 0.85rem 0 1.6rem;
  color: #3f5063;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}
.role-map h2 {
  max-width: 860px;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.project-card { padding: 1.35rem; }
.project-card.featured { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(220,251,251,0.74)); }
.project-card ul, .proof-list ul { padding-left: 1.15rem; margin-bottom: 0; }
.project-card li, .proof-list li { margin: 0.45rem 0; }
.project-topline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #007d7d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}
.role-map { padding-top: 0; }
.map-table { overflow: hidden; }
.map-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.map-table > div:last-child { border-bottom: 0; }
.table-head { background: var(--navy); color: var(--white); font-weight: 850; }
.scorecard-grid article span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(0,167,167,0.12);
  color: #007d7d;
  font-weight: 900;
}
.proof-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
}
.proof-list { padding: 1.35rem; }
.final-cta {
  text-align: center;
  width: min(900px, calc(100% - 2rem));
}
.final-cta p:not(.eyebrow) { color: #3f5063; font-size: 1.1rem; }
.placeholder-note {
  margin-top: 1rem;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
}
footer {
  padding: 2rem 1rem 3rem;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  nav { font-size: 0.84rem; }
  .hero, .split-section, .proof-section { grid-template-columns: 1fr; min-height: auto; }
  .project-grid, .fit-grid, .scorecard-grid { grid-template-columns: 1fr; }
  .map-table > div { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
}
@media (max-width: 520px) {
  .site-header { position: static; }
  nav { justify-content: flex-start; }
  .button { width: 100%; }
  .stack-grid { grid-template-columns: 1fr; }
  .section-shell { width: min(100% - 1rem, 1120px); }
  .hero-card, .project-card, .fit-grid article, .scorecard-grid article, .proof-list, .map-table { border-radius: 18px; }
}

.visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.visual-grid figure { margin: 0; padding: 0.8rem; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 18px 45px rgba(8,31,53,0.07); }
.visual-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #eef7f7; border-radius: 18px; display: block; }
.visual-grid figcaption { margin-top: 0.65rem; color: var(--muted); font-weight: 750; }
.text-link { display: inline-flex; margin-top: 1rem; color: #007d7d; font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.case-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 0; }
.case-hero { min-height: auto; }
@media (max-width: 860px) { .visual-grid, .case-layout { grid-template-columns: 1fr; } }

.contact-minimal {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  border-top: 1px solid var(--border);
}
.contact-intro h2 { max-width: 680px; }
.contact-intro > p:not(.eyebrow) {
  margin-top: 1rem;
  color: #3f5063;
  font-size: 1.08rem;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.4rem;
}
.contact-links a {
  color: var(--navy);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 167, 167, 0.28);
}
.contact-links a:hover { color: #007d7d; border-bottom-color: #007d7d; }
.contact-form {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8,31,53,0.07);
}
.contact-form label {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 850;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 45, 71, 0.2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 167, 167, 0.18);
  border-color: var(--teal);
}
.contact-form button {
  width: fit-content;
  border: 0;
  cursor: pointer;
  margin-top: 0.25rem;
}
.form-note {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.form-note a { color: #007d7d; font-weight: 850; }
@media (max-width: 860px) {
  .contact-minimal { grid-template-columns: 1fr; }
  .contact-form button { width: 100%; }
}


/* About and project evidence preview additions */
.about-me-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1.6rem, 5vw, 4rem);
  align-items: center;
  border-top: 1px solid var(--border);
}
.about-photo-wrap {
  padding: 1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-headshot {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}
.about-photo-note {
  margin: 0.9rem 0 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}
.about-copy-wrap h2 {
  margin-bottom: 1.15rem;
  max-width: 790px;
}
.about-copy-wrap p:not(.eyebrow) {
  color: #3f5063;
  font-size: 1.04rem;
}
.value-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.value-labels span {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 167, 167, 0.10);
  border: 1px solid rgba(0, 167, 167, 0.18);
  color: #007d7d;
  font-weight: 850;
  font-size: 0.88rem;
}
.project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef7f7;
  border-radius: 18px;
  border: 1px solid rgba(17, 45, 71, 0.12);
  margin-bottom: 1rem;
}
.project-card.featured .project-thumb {
  aspect-ratio: 16 / 7;
}
.project-proof-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.project-proof-list p {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 45, 71, 0.10);
  color: #3f5063;
}
.project-proof-list strong {
  color: var(--navy);
}
@media (max-width: 860px) {
  .about-me-section { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 460px; }
}


/* Review update: equal project cards and justified body copy */
.compact-project-grid .project-card.featured {
  grid-column: auto;
}
.compact-project-grid .project-card.featured .project-thumb {
  aspect-ratio: 16 / 9;
}
main p,
footer p,
.project-card li,
.proof-list li,
.map-table span {
  text-align: justify;
  text-justify: inter-word;
}
.eyebrow,
.metric-card span,
.stack-grid span,
.project-topline span,
.value-labels span,
.mini-badges span,
.contact-links a,
.button,
.text-link,
.visual-grid figcaption {
  text-align: initial;
}


/* Review update: shorten duplicated visual proof area */
.proof-note-section {
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.proof-note-section h2 {
  max-width: 780px;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}
.proof-note-section p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 1rem;
  color: #3f5063;
  font-size: 1.06rem;
}


/* Review update: normalize first project visual/card */
.compact-project-grid .project-card {
  background: var(--card);
}
.compact-project-grid .project-card:first-child .project-thumb {
  background: #ffffff;
}
