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

  :root {
    --navy: #0A1628;
    --navy-mid: #112240;
    --accent: #C9A84C;
    --accent-light: #E8C97A;
    --steel: #8892A4;
    --light: #F4F6FA;
    --white: #FFFFFF;
    --border: rgba(201,168,76,0.25);
    --card-bg: #0F1E36;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10,22,40,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
  }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a {
    color: var(--steel); font-size: 13px; letter-spacing: 0.08em;
    text-transform: uppercase; text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 50%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.04) 100%);
    pointer-events: none;
  }
  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.4) 70%, transparent);
    pointer-events: none;
  }
  .hero-eyebrow {
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 12px;
  }
  .hero-eyebrow::before {
    content: ''; display: block;
    width: 40px; height: 1px; background: var(--accent);
  }
  .hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    max-width: 800px;
  }
  .hero-name .highlight { color: var(--accent); }
  .hero-roles {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 2rem;
  }
  .role-chip {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--steel);
    background: rgba(201,168,76,0.04);
  }
  .hero-tagline {
    font-size: 17px; color: var(--steel);
    max-width: 560px; line-height: 1.7;
    margin-bottom: 2.5rem;
  }
  .hero-cta {
    display: flex; gap: 1rem; flex-wrap: wrap;
  }
  .btn-primary {
    background: var(--accent); color: var(--navy);
    padding: 13px 32px; border: none; border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; text-decoration: none;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
  .btn-outline {
    background: transparent; color: var(--white);
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,0.25); border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }
  .btn-outline:hover { border-color: var(--accent); color: var(--accent); }


  .hero-photo {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 26vw, 380px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  /*border: 1px solid var(--border);*/
  /*box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);*/
  z-index: 1;
}

@media (max-width: 1000px) {
  .hero-photo {
    position: static;
    transform: none;
    align-self: center;
    width: min(70%, 300px);
    margin-top: 3rem;
  }
}



  /* STATS BAR */
  .stats-bar {
    display: flex; flex-wrap: wrap;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0 5%;
  }
  .stat-item {
    flex: 1; min-width: 150px;
    padding: 28px 24px;
    border-right: 1px solid var(--border);
  }
  .stat-item:last-child { border-right: none; }
  .stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px; font-weight: 700;
    color: var(--accent); line-height: 1;
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--steel);
  }

  /* SECTION COMMON */
  .section {
    padding: 90px 5%;
  }
  .section-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 60px;
  }
  .section-number {
    font-size: 11px; letter-spacing: 0.2em; color: var(--accent);
    text-transform: uppercase;
  }
  .section-line {
    flex: 1; height: 1px; background: var(--border);
    max-width: 60px;
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; letter-spacing: -0.01em;
  }
  .section-title span { color: var(--accent); }

  /* EXPERTISE */
  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .expertise-card {
    background: var(--card-bg);
    padding: 36px 32px;
    position: relative;
    transition: background 0.25s;
  }
  .expertise-card:hover { background: #152847; }
  .expertise-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
  }
  .expertise-card:hover::before { transform: scaleX(1); }
  .expertise-icon {
    font-size: 28px; margin-bottom: 20px;
  }
  .expertise-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px; font-weight: 700;
    margin-bottom: 12px; color: var(--white);
  }
  .expertise-desc {
    font-size: 14px; color: var(--steel); line-height: 1.7;
    margin-bottom: 20px;
  }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .skill-tag {
    font-size: 11px; letter-spacing: 0.08em;
    padding: 4px 10px; border-radius: 3px;
    border: 1px solid var(--border);
    color: var(--accent); background: rgba(201,168,76,0.06);
    text-transform: uppercase;
  }

  /* PROJECTS */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
  .project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 28px;
    position: relative; overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
  }
  .project-card:hover { transform: translateY(-4px); border-color: var(--accent); }
  .project-domain {
    font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .project-domain::before { content: ''; display: block; width: 20px; height: 1px; background: var(--accent); }
  .project-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 700;
    margin-bottom: 10px; line-height: 1.3;
  }
  .project-desc {
    font-size: 13px; color: var(--steel); line-height: 1.65; margin-bottom: 20px;
  }
  .project-stack { display: flex; flex-wrap: wrap; gap: 6px; }
  .stack-item {
    font-size: 11px; color: var(--steel);
    padding: 3px 8px; border-radius: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }

  /* ABOUT */
  .about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
  }
  .about-text p {
    font-size: 15px; color: var(--steel); line-height: 1.8;
    margin-bottom: 1.2rem;
  }
  .about-text p strong { color: var(--white); font-weight: 500; }
  .about-highlights { display: flex; flex-direction: column; gap: 16px; }
  .highlight-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    display: flex; align-items: center; gap: 16px;
  }
  .highlight-icon {
    font-size: 22px; min-width: 36px;
  }
  .highlight-label {
    font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 4px;
  }
  .highlight-value {
    font-size: 14px; color: var(--white); font-weight: 500;
  }

  /* CONTACT */
  .contact-section {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 80px 5%;
    text-align: center;
  }
  .contact-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700; margin-bottom: 1rem;
  }
  .contact-sub {
    color: var(--steel); font-size: 16px;
    max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.6;
  }
  .contact-links {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem;
    margin-top: 2rem;
  }
  .contact-link {
    color: var(--steel); font-size: 13px; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
  }
  .contact-link:hover { color: var(--accent); border-color: var(--accent); }

  .contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.contact-info .contact-links { justify-content: flex-start; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--steel);
}
.form-group input,
.form-group textarea {
  background: rgba(201,168,76,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn-primary { align-self: flex-start; }
.form-status { font-size: 14px; color: var(--steel); min-height: 1.2em; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-info { order: -1; }
}

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 24px 5%;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
  }
  footer p {
    font-size: 12px; color: var(--steel); letter-spacing: 0.06em;
  }

  @media (max-width: 700px) {
    .about-layout { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-name { font-size: 36px; }
  }

a.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}