:root {
  --ink: #302430;
  --muted: #6d626c;
  --paper: #fffaf4;
  --line: #e8ded9;
  --acid: #ffd36a;
  --plum: #713b64;
  --coral: #ff8f74;
  --blush: #f8d8df;
  --lavender: #ddd3f2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.site-header, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.logo { font: 700 24px/1 "Manrope", sans-serif; letter-spacing: -.06em; }
.logo span { color: var(--coral); }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
nav a { transition: opacity .2s; }
nav a:hover { opacity: .6; }
.nav-cta { padding: 11px 18px; background: var(--plum); color: white; border-radius: 999px; box-shadow: 0 7px 18px rgba(113,59,100,.16); }
.hero { min-height: calc(100vh - 88px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; padding: 70px 0 105px; }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; border-radius: 50%; right: -160px; top: 4%; background: #f6dce2; filter: blur(2px); opacity: .7; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(40px, 7vw, 100px); align-items: center; position: relative; z-index: 2; }
.hero-copy { min-width: 0; }
.eyebrow { text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .15em; margin: 0 0 22px; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.055em; margin: 0; }
h1 { max-width: 820px; font-size: clamp(55px, 7.2vw, 98px); line-height: .97; font-weight: 600; }
h1 em, .contact h2 em { font-family: Georgia, serif; font-weight: 400; color: var(--plum); }
.hero-footer { margin-top: 48px; display: flex; flex-direction: column; align-items: start; gap: 26px; position: relative; z-index: 2; }
.hero-footer p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.text-link { font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.text-link span { margin-left: 8px; }
.hero-portrait { position: relative; justify-self: center; transform: rotate(2deg); }
.portrait-frame { width: 300px; aspect-ratio: .82; border-radius: 150px 150px 30px 30px; overflow: hidden; border: 9px solid white; box-shadow: 0 25px 70px rgba(85,51,76,.22); background: var(--blush); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.07); }
.portrait-note { position: absolute; bottom: 18px; left: -42px; padding: 12px 18px; border-radius: 999px; background: var(--acid); font: 600 14px "Manrope"; transform: rotate(-5deg); box-shadow: 0 9px 22px rgba(84,54,50,.14); white-space: nowrap; }
.portrait-note i { color: var(--plum); font-style: normal; margin-left: 5px; }
.hero-doodles { position: absolute; inset: 0; pointer-events: none; color: var(--coral); }
.hero-doodles span { position: absolute; right: 32%; top: 13%; font-size: 34px; }
.hero-doodles i { position: absolute; right: 31%; bottom: 14%; width: 70px; height: 25px; border-top: 3px solid var(--plum); border-radius: 50%; transform: rotate(-12deg); }
.hero-doodles b { position: absolute; left: 44%; top: 20%; color: var(--acid); font-size: 18px; }
.section { padding: 120px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 50px; }
.section-heading h2, .about h2 { font-size: clamp(42px, 5.8vw, 72px); line-height: 1.03; font-weight: 600; }
.project-card { min-height: 650px; border-radius: 32px; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: center; margin-bottom: 32px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(48,36,48,.05); }
.project-card { background: var(--card-color); }
.project-card.visual-left .project-copy { order: 2; }
.project-card.visual-left .project-visual { order: 1; }
.project-number { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.project-copy h3 { font-size: clamp(34px, 4vw, 53px); line-height: 1.06; margin: 35px 0 24px; }
.project-copy > p:not(.project-number) { color: rgba(24,33,27,.72); line-height: 1.7; font-size: 17px; }
.metrics { display: flex; gap: 42px; list-style: none; padding: 0; margin: 34px 0; }
.metrics li { display: flex; flex-direction: column; gap: 3px; }
.metrics strong { font: 600 27px "Manrope", sans-serif; letter-spacing: -.04em; }
.metrics span { font-size: 12px; color: rgba(24,33,27,.65); }
.project-link { display: inline-flex; gap: 9px; align-items: center; font-weight: 600; border-bottom: 1px solid; padding-bottom: 6px; }
.project-links { display: flex; flex-wrap: wrap; gap: 20px; }
.commute { background: #eff5ee; border-radius: 24px; padding: 30px; box-shadow: 0 20px 50px rgba(24,33,27,.1); }
.commute h4 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; margin: 24px 0 0; }
.commute svg { display: block; width: 100%; margin: 12px 0; }
.commute svg text { font: 14px sans-serif; fill: #26382c; }
.commute > p:last-child { line-height: 1.5; color: #385344; }
.case-study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case-study-card { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 12px 38px rgba(80,52,73,.09); border: 1px solid rgba(113,59,100,.08); }
.case-study-image { display: block; aspect-ratio: 16 / 9; background: #ddd9ce; overflow: hidden; }
.case-study-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-study-card:hover .case-study-image img { transform: scale(1.025); }
.case-study-card-copy { padding: 30px; }
.case-study-card h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; margin: 20px 0 16px; }
.case-study-card-copy > p:not(.project-number) { color: var(--muted); line-height: 1.6; min-height: 76px; }
.project-visual { min-height: 440px; position: relative; }
.dashboard { background: #eef5ef; border-radius: 13px; transform: rotate(2deg); box-shadow: 0 30px 70px rgba(24,33,27,.18); overflow: hidden; }
.browser-bar { height: 38px; background: white; display: flex; gap: 6px; padding: 15px; }
.browser-bar i { width: 7px; height: 7px; background: #b9c3bb; border-radius: 50%; }
.dashboard-body { height: 402px; display: grid; grid-template-columns: 22% 78%; }
.dash-sidebar { background: #26382c; margin: 14px; border-radius: 8px; }
.dash-main { padding: 28px 30px; }
.dash-title { width: 45%; height: 14px; background: #a2b5a7; border-radius: 8px; }
.dash-chart { height: 180px; display: flex; align-items: end; gap: 13px; border-bottom: 1px solid #b9c8bc; padding: 25px 10px 0; }
.dash-chart span { width: 13%; background: #75a884; border-radius: 4px 4px 0 0; }
.dash-row { display: flex; gap: 10px; margin-top: 25px; }
.dash-row i { flex: 1; height: 75px; background: white; border-radius: 6px; }
.phones { display: flex; align-items: center; justify-content: center; }
.phone { width: 220px; height: 430px; border: 8px solid var(--ink); border-radius: 34px; background: #f7f3eb; padding: 38px 22px; box-shadow: 0 25px 55px rgba(77,36,23,.24); }
.phone-back { transform: translate(26px, 5px) rotate(-8deg); background: #fff1d5; }
.phone-front { transform: translate(-10px, 15px) rotate(7deg); }
.phone-speaker { position: absolute; width: 70px; height: 18px; background: var(--ink); border-radius: 0 0 12px 12px; top: 0; left: calc(50% - 35px); }
.phone p { font-size: 12px; color: #6a675f; margin-top: 10px; }
.phone b { font: 600 30px "Manrope"; }
.mini-chart { height: 120px; margin-top: 50px; border-radius: 50% 50% 15px 15px; background: linear-gradient(150deg, transparent 48%, #eb7957 49% 53%, transparent 54%); }
.progress-ring { width: 130px; height: 130px; margin: 46px auto 35px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #f7f3eb 54%, transparent 55%), conic-gradient(#eb7957 72%, #dfddd5 0); }
.progress-ring span { font: 600 25px "Manrope"; }
.phone-lines { display: grid; gap: 15px; }
.phone-lines i { display: block; height: 13px; background: #dedcd4; border-radius: 8px; }
.community svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.community path { stroke: rgba(24,33,27,.35); fill: none; stroke-width: 2; stroke-dasharray: 6 7; }
.avatar { position: absolute; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; font: 600 26px "Manrope"; color: white; box-shadow: 0 14px 30px rgba(45,30,74,.18); }
.avatar-one { left: 7%; top: 9%; background: #e96d55; }.avatar-two { right: 5%; top: 10%; background: #354b3d; }.avatar-three { left: 40%; bottom: 3%; background: #77609c; }.avatar-four { right: 33%; top: 38%; background: #d5982e; width: 72px; height: 72px; }
.about { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.about-details { padding-top: 38px; }
.about-details p { font-size: 19px; line-height: 1.7; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.skills span { border: 1px solid #b8bdb8; border-radius: 999px; padding: 10px 15px; font-size: 13px; }
.contact { background: var(--plum); color: white; width: min(1180px, calc(100% - 48px)); max-width: none; border-radius: 32px; text-align: center; padding-inline: 20px; margin-bottom: 32px; box-shadow: 0 20px 55px rgba(113,59,100,.16); }
.contact h2 { font-size: clamp(48px, 7vw, 90px); line-height: 1; }
.contact h2 em { color: var(--acid); }
.contact-button { display: inline-flex; align-items: center; gap: 30px; margin-top: 52px; padding: 16px 22px; background: var(--acid); color: var(--ink); border-radius: 999px; font-weight: 600; }
footer { padding: 30px 0 42px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
footer div { display: flex; gap: 25px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.loading, .data-error { min-height: calc(100vh - 176px); display: grid; place-content: center; text-align: center; padding: 40px; }
.data-error h1 { font-size: clamp(34px, 6vw, 64px); }
.data-error p { color: var(--muted); }
.study { padding-top: 70px; }
.study-hero { max-width: 980px; padding: 70px 0 80px; }
.study-hero h1 { font-size: clamp(54px, 8vw, 105px); line-height: .98; }
.study-lede { max-width: 760px; font-size: clamp(19px, 2.2vw, 26px); line-height: 1.55; color: var(--muted); margin: 38px 0 0; }
.study-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.study-actions .contact-button { margin: 0; background: var(--ink); color: white; }
.study-cover { display: block; width: 100%; max-height: 700px; object-fit: cover; border-radius: 24px; background: #e5e1d8; }
.study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 70px 0 110px; }
.study-block { background: var(--paper); padding: clamp(30px, 5vw, 60px); }
.study-block-wide { grid-column: 1 / -1; }
.study-block > p:not(.eyebrow), .study-block li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.study-block ul { padding-left: 20px; margin: 0; display: grid; gap: 13px; }
.study-next { border-top: 1px solid var(--line); padding: 75px 0 110px; }
.study-next a { font: 600 clamp(32px, 5vw, 60px) "Manrope"; letter-spacing: -.05em; }

@media (max-width: 800px) {
  .site-header, main, footer { width: min(100% - 30px, 1180px); }
  nav > a:not(.nav-cta) { display: none; }
  .hero { padding-top: 45px; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-portrait { grid-row: 1; margin-bottom: 20px; }
  .portrait-frame { width: min(270px, 76vw); }
  .hero::before { width: 360px; height: 360px; right: -130px; }
  .hero-footer { flex-direction: column; align-items: start; gap: 30px; }
  .hero-doodles span { right: 6%; top: 4%; }
  .section { padding: 80px 0; }
  .project-card { grid-template-columns: 1fr; padding: 30px; gap: 35px; min-height: auto; }
  .project-card.visual-left .project-copy { order: 1; }
  .project-card.visual-left .project-visual { order: 2; }
  .project-visual { min-height: 340px; }
  .case-study-grid, .study-grid { grid-template-columns: 1fr; }
  .study-block-wide { grid-column: auto; }
  .study { padding-top: 15px; }
  .study-actions { align-items: flex-start; flex-direction: column; }
  .phone { width: 165px; height: 325px; border-width: 6px; border-radius: 27px; padding: 28px 15px; }
  .progress-ring { width: 90px; height: 90px; margin: 30px auto 22px; }
  .about { grid-template-columns: 1fr; gap: 15px; }
  .contact { width: calc(100% - 30px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
