@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --ink: #10131a;
  --muted: #626a78;
  --line: #dfe3e8;
  --paper: #f7f7f4;
  --white: #ffffff;
  --soft: #eef1f5;
  --blue: #2457e6;
  --blue-dark: #173fb5;
  --green: #18794e;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(21, 29, 47, 0.10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: white; padding: 10px 14px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 19, 26, .1);
  background: rgba(247, 247, 244, .9);
  backdrop-filter: blur(16px);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font: 700 18px/1 'Manrope', sans-serif; text-decoration: none; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: #424957; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 16px; color: var(--ink) !important; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; font-weight: 700; }

.hero { padding: 82px 0 68px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 68px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--blue); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
h1, h2, h3 { font-family: 'Manrope', sans-serif; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 90px); line-height: .98; max-width: 780px; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: #414957; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17, 23, 38, .12); }
.button.primary { background: var(--ink); color: white; }
.button.blue { background: var(--blue); color: white; border-color: var(--blue); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.ask-card { background: var(--ink); color: white; border-radius: 28px; padding: 26px; box-shadow: var(--shadow); min-height: 430px; display: flex; flex-direction: column; }
.ask-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.ask-kicker { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #aeb9cf; font-weight: 700; }
.ask-card h2 { margin: 8px 0 6px; font-size: 28px; }
.live-dot { font-size: 12px; color: #bce8d2; white-space: nowrap; }
.live-dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4bd59a; margin-right: 7px; }
.ask-intro { color: #bcc4d3; font-size: 14px; margin: 8px 0 18px; }
.ask-starters { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-starter { border: 1px solid #3a4355; background: #202634; color: #e8ecf3; border-radius: 999px; padding: 8px 11px; font-size: 12px; }
.ask-starter:hover { border-color: #7182a2; }
.ask-messages { flex: 1; min-height: 125px; max-height: 190px; overflow: auto; margin: 18px 0 12px; display: flex; flex-direction: column; gap: 10px; }
.ask-message { padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.ask-message.user { align-self: flex-end; max-width: 86%; background: var(--blue); }
.ask-message.assistant { align-self: flex-start; max-width: 92%; background: #242b39; color: #e6e9ef; }
.ask-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.ask-form input { min-width: 0; height: 46px; border: 1px solid #3d4658; border-radius: 14px; background: #181d28; color: white; padding: 0 14px; }
.ask-form input::placeholder { color: #8e99ad; }
.ask-form button { width: 46px; border: 0; border-radius: 14px; background: white; color: var(--ink); font-weight: 800; }
.ask-status { min-height: 18px; margin: 8px 2px 0; color: #aeb8ca; font-size: 11px; }

.section { padding: 86px 0; }
.section.white { background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.section-head p { margin: 0; max-width: 520px; color: var(--muted); }
.text-link { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8ebf0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.project-card:hover .project-media img { transform: scale(1.018); }
.project-body { display: grid; gap: 10px; padding: 24px; }
.project-label { color: var(--blue); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.project-title-row { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.project-card h3 { margin: 0; font-size: 27px; }
.project-arrow { color: var(--blue); font-size: 22px; }
.project-card p { margin: 0; color: var(--muted); font-size: 15px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: #49515f; font-size: 11px; font-weight: 600; }

.experience-layout { display: grid; grid-template-columns: .8fr 1.5fr; gap: 70px; }
.experience-intro h2 { margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.experience-intro p { color: var(--muted); }
.company-card { border-top: 1px solid var(--ink); padding-top: 22px; }
.company-head { display: flex; justify-content: space-between; gap: 22px; margin-bottom: 20px; }
.company-head h3 { margin: 0; font-size: 25px; }
.company-role { color: var(--muted); margin-top: 3px; }
.company-date { text-align: right; color: var(--muted); font-size: 13px; }
.engagement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.engagement { border: 1px solid var(--line); border-radius: 14px; padding: 15px; background: #fbfbfa; }
.engagement b { display: block; font-size: 13px; margin-bottom: 5px; }
.engagement span { color: var(--muted); font-size: 12px; }
.earlier-list { margin-top: 26px; border-top: 1px solid var(--line); }
.earlier-role { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.earlier-role b { font-size: 14px; }
.earlier-role span { color: var(--muted); font-size: 12px; text-align: right; }

.work-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { border: 1px solid var(--line); border-radius: 999px; background: white; color: #515968; min-height: 40px; padding: 0 15px; font-weight: 700; font-size: 12px; }
.filter.active, .filter:hover { background: var(--ink); border-color: var(--ink); color: white; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-grid .project-body { padding: 18px; }
.work-grid .project-card h3 { font-size: 21px; }
.work-grid .project-card p { font-size: 13px; }
.work-grid .project-media { aspect-ratio: 16 / 9; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.about-grid h2 { margin: 0; font-size: clamp(38px, 5vw, 60px); }
.about-copy { font-size: 18px; color: #414958; }
.about-facts { border-top: 1px solid var(--ink); }
.fact { padding: 17px 0; border-bottom: 1px solid var(--line); }
.fact b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; }
.fact span { color: var(--muted); }

.contact-panel { background: var(--blue); color: white; border-radius: 30px; padding: clamp(30px, 6vw, 72px); display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.contact-panel h2 { margin: 0 0 10px; font-size: clamp(38px, 6vw, 68px); }
.contact-panel p { color: #d9e2ff; margin: 0; max-width: 600px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-actions .button { border-color: white; color: white; }
.contact-actions .button.primary { background: white; color: var(--blue); }
.site-footer { padding: 28px 0 42px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

/* Project detail */
.detail-hero { padding: 68px 0 42px; }
.back-link { display: inline-block; margin-bottom: 34px; color: var(--blue); font-weight: 700; text-decoration: none; font-size: 13px; }
.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.detail-grid h1 { font-size: clamp(48px, 7vw, 82px); }
.detail-summary { margin: 22px 0 0; color: var(--muted); font-size: 20px; max-width: 700px; }
.detail-meta { border-top: 1px solid var(--ink); }
.detail-meta-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-meta-row b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.detail-meta-row span { color: var(--muted); font-size: 13px; }
.detail-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 38px; }
.detail-shot { grid-column: span 6; border-radius: 20px; overflow: hidden; background: #e8ebef; border: 1px solid var(--line); }
.detail-shot:first-child:nth-last-child(1) { grid-column: 2 / span 10; }
.detail-shot img { width: 100%; height: 100%; max-height: 650px; object-fit: cover; object-position: top center; }
.detail-content { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 72px 0; }
.detail-content h2 { margin: 0; font-size: 36px; }
.detail-content h3 { margin: 0 0 10px; font-size: 20px; }
.detail-content p { color: var(--muted); font-size: 17px; margin-top: 0; }
.detail-list { margin: 0; padding-left: 20px; color: #424a58; }
.detail-list li { margin-bottom: 12px; }
.detail-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.detail-empty { padding: 120px 0; text-align: center; }

@media (max-width: 920px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 20px 24px; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding-top: 58px; }
  .hero-grid, .experience-layout, .about-grid, .detail-grid, .detail-content { grid-template-columns: 1fr; gap: 40px; }
  .ask-card { min-height: 400px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-panel { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-inner { height: 64px; }
  .nav-links { top: 64px; }
  .hero { padding: 42px 0 54px; }
  h1 { font-size: 48px; }
  .hero-copy { font-size: 17px; margin-top: 20px; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-meta { gap: 9px 16px; }
  .ask-card { padding: 20px; border-radius: 22px; }
  .section { padding: 62px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; }
  .featured-grid, .work-grid, .engagement-grid { grid-template-columns: 1fr; }
  .project-body { padding: 18px; }
  .project-card h3 { font-size: 23px; }
  .company-head { flex-direction: column; gap: 5px; }
  .company-date { text-align: left; }
  .detail-hero { padding-top: 38px; }
  .detail-gallery { display: block; }
  .detail-shot { margin-bottom: 14px; }
  .detail-shot img { max-height: 520px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
