/* ==========================================================
   Rinees portfolio — V1.1 shared styles
   Matches Figma: MY-Portfolio / Portfolio V1.1
   ========================================================== */
:root {
  --ink: #6b6b6b;
  /* strongest text */
  --head: #141414;
  /* headings */
  --body: #6b6b6b;
  /* body text */
  --lead: #515f6b;
  /* lead paragraphs */
  --desc: #54626e;
  /* card descriptions */
  --muted: #7a7f8c;
  --line: #0000001a;
  --line-2: #eeeeea;
  --soft: #f1f2f4;
  /* media / hero backgrounds */
  --tile: #f2f4f6;
  /* decision tiles */
  --tile-blue: #d2e1f7;
  --dark: #10171d;
  --cta: #686e7d;
  --ok: #00ac73;
  --quote: #0061b2;
  --lato: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --inter: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1072px;
  /* home content width */
  --pad: clamp(20px, 5vw, 64px);
}

/* ==========================================================
   Home V2 — Figma frame 257:57220
   ========================================================== */
.home-v2 {
  --hv-max: 1200px;
  --hv-content: 1152px;
  background: #fff;
  color: var(--ink);
  font-family: var(--lato)
}

.hv-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color .2s
}

.hv-nav.scrolled { border-bottom-color: #e0e0e0 }

.hv-nav-in {
  width: min(var(--hv-max, 1200px), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.hv-logo { display: block; width: 129px }
.hv-logo img { width: 123px; height: auto }
.hv-nav-right { display: flex; align-items: center; gap: 64px }
.hv-links { display: flex; align-items: center; gap: 32px }
.hv-links a,
.hv-mobile a {
  color: #1c1c57;
  font: 400 16px/1.5 var(--inter);
  text-decoration: none
}
.hv-links a:hover { color: #141414 }

.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 33px;
  padding: 6px 16px;
  border-radius: 100px;
  font: 400 14px/1.5 var(--inter);
  text-decoration: none;
  transition: transform .18s, background .18s
}
.hv-btn:hover { transform: translateY(-1px) }
.hv-btn.dark { color: #fff; background: #141414 }
.hv-btn.dark:hover { background: #343434 }
.hv-btn.light { color: #141414; background: #fff; border: 1px solid #e0e0e0 }
.hv-menu { display: none; border: 0; background: transparent; padding: 8px; color: #141414 }
.hv-mobile { padding: 8px 24px 16px; border-top: 1px solid #e0e0e0; background: #fff }
.hv-mobile a { display: block; padding: 10px 0 }

.hv-hero {
  width: min(var(--hv-content), calc(100% - 48px));
  min-height: 479px;
  margin: 0 auto;
  padding-top: 98px;
  display: grid;
  grid-template-columns: 587px 390px;
  justify-content: space-between;
  align-items: start
}
.hv-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px }
.hv-hero-copy .hv-kicker {
  color: var(--body);
  font: 700 12px/1.2 var(--lato);
  letter-spacing: .1em;
  text-transform: uppercase
}
.hv-hero-copy h1 {
  color: var(--head);
  font: 600 clamp(38px, 4vw, 48px)/1.1 var(--lato);
  letter-spacing: -.03em
}
.hv-hero-copy > p:not(.hv-kicker) { color: var(--body); font: 400 16px/28px var(--lato) }
.hv-actions { display: flex; gap: 8px }
.hv-hero .hv-btn,
.hv-project .hv-btn {
  min-height: 37px;
  padding: 10px 14px;
  color: #fff;
  background: var(--cta);
  font: 500 14px/1.2 var(--inter)
}
.hv-hero .hv-btn:hover,
.hv-project .hv-btn:hover { background: #4f5563 }
.hv-hero .hv-btn.light {
  color: var(--ink);
  background: #fff;
  border-color: var(--line)
}
.hv-hero .hv-btn.light:hover { background: var(--soft) }

.hv-portrait {
  position: relative;
  width: 390px;
  height: 292px;
  overflow: hidden
}
.hv-portrait::before {
  content: "";
  position: absolute;
  top: 0;
  left: 72px;
  width: 292px;
  height: 292px;
  border-radius: 50%;
  background: linear-gradient(56deg, rgba(199,88,143,.36), rgba(204,122,147,.36) 31%, rgba(208,154,151,.36) 57%, rgba(210,184,154,.36));
  overflow: hidden
}
.hv-portrait-bg {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 72px;
  width: 292px;
  height: 292px;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply
}
.hv-portrait-person {
  position: absolute;
  z-index: 2;
  top: -60px;
  left: 28px;
  width: 370px;
  max-width: none;
  height: 370px;
  object-fit: contain
}
.hv-portrait-dot { position: absolute; z-index: 3; top: 248px; left: 345px; width: 38px; height: 38px }

.hv-work {
  display: flex;
  flex-direction: column;
  gap: 72px;
  width: min(var(--hv-content), calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 80px
}
.hv-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 364px;
  padding-left: 64px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: border-color .28s ease, box-shadow .28s ease
}
.hv-project:hover,
.hv-project:focus-within {
  border-color: #94949469
}
.hv-project-copy { width: 534px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px }
.hv-project-copy .hv-label {
  color: var(--body);
  font: 700 12px/1.2 var(--lato);
  letter-spacing: .1em;
  text-transform: uppercase
}
.hv-project-copy h2 { color: var(--head); font: 600 1.5rem/1.2 var(--lato); letter-spacing: -.03em; max-width: 510px }
.hv-project-copy > p:not(.hv-label) { color: var(--body); font: 400 16px/28px var(--lato); max-width: 520px }
.hv-project-media {
  position: relative;
  flex: 0 0 436px;
  align-self: stretch;
  overflow: hidden
}
.hv-project-media img {
  transition: transform .55s cubic-bezier(.2, .65, .3, 1);
  transform-origin: center
}
.hv-project:hover .hv-project-media img,
.hv-project:focus-within .hv-project-media img {
  transform: scale(1.035)
}
.hv-api { background: linear-gradient(52deg, #f0d7e3, #f0ded9 57%, #e8ddce) }
.hv-api .api-main,
.hv-dev img {
  position: absolute;
  top: 42px;
  left: 66px;
  width: 520px;
  max-width: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.12))
}
.hv-api .api-detail {
  position: absolute;
  z-index: 2;
  top: 198px;
  left: 28px;
  width: 90px;
  max-width: none;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.08))
}
.hv-life { background: linear-gradient(14deg, #d7ebf2, #dcebcf 50%, #e8efbd) }
.hv-life .phone { position: absolute; top: 52px; width: 232px; max-width: none; border-radius: 37px; box-shadow: 0 4px 10px 3px rgba(41,72,91,.16) }
.hv-life .phone.back { left: 48px }
.hv-life .phone.front { left: 149px }
.hv-life .overlay { position: absolute; top: 202px; left: 13px; width: 266px; max-width: none }
.hv-email { background: linear-gradient(194deg, #eedcd3, #dcc4cd 35%, #bdafc3 69%, #9f8fab) }
.hv-email .email-desktop { position: absolute; top: 68px; left: 210px; width: 268px; max-width: none; border-radius: 7px; box-shadow: 0 4px 14px 5px rgba(0,0,0,.09) }
.hv-email .email-mobile { position: absolute; top: 130px; left: 103px; width: 144px; max-width: none; border-radius: 24px; box-shadow: 0 4px 7px 2px rgba(0,0,0,.18) }
.hv-dev { background: linear-gradient(194deg, #e2ddea, #c6ccd9 35%, #acbfce 69%, #91adc5) }
.hv-movix { background: #f1f1f3 }
.hv-movix img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}

.hv-footer {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 64px 24px;
  color: #141414;
  background: #fff;
  text-align: center
}
.hv-footer::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1200px, calc(100% - 48px)); transform: translateX(-50%); border-top: 1px solid #eeeeea }
.hv-footer-content { width: min(643px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px }
.hv-footer h2 { font: 500 36px/1.2 var(--inter); letter-spacing: -.816px }
.hv-footer p { font: 400 16px/1.5 var(--inter) }
.hv-social { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px }
.hv-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; color: #141414; font: 400 14px/1.5 var(--inter); text-decoration: underline; text-underline-position: from-font }
.hv-social img { width: 22px; height: 22px; object-fit: contain }
.hv-social a:nth-child(2) img { width: 24px; height: 24px }

@media (max-width: 1000px) {
  .hv-nav-right { gap: 32px }
  .hv-hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px }
  .hv-hero-copy { max-width: 560px }
  .hv-portrait { width: 330px; transform: scale(.9); transform-origin: top right }
  .hv-project { padding-left: 40px }
  .hv-project-copy { width: calc(100% - 430px); padding-right: 32px }
  .hv-project-media { flex-basis: 390px }
}

@media (max-width: 760px) {
  .hv-nav-in { width: min(100% - 32px, var(--hv-max, 1200px)) }
  .hv-nav-right { display: none }
  .hv-menu { display: block }
  .hv-hero {
    width: min(100% - 40px, var(--hv-max));
    min-height: auto;
    padding: 56px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 48px
  }
  .hv-hero-copy h1 { font-size: clamp(36px, 10vw, 42px) }
  .hv-hero-copy > p:not(.hv-kicker) { font-size: 16px; line-height: 28px }
  .hv-portrait { width: 100%; max-width: 390px; align-self: center; transform: none }
  .hv-work { width: min(100% - 40px, var(--hv-content)); gap: 40px; padding-bottom: 56px }
  .hv-project { height: auto; min-height: 650px; padding: 0; flex-direction: column; align-items: stretch }
  .hv-project-copy { width: auto; padding: 36px 28px }
  .hv-project-media { flex: 0 0 320px; width: 100% }
  .hv-api .api-main,
  .hv-dev img { width: 470px; top: 34px; left: 40px }
  .hv-life .phone.back { left: calc(50% - 176px) }
  .hv-life .phone.front { left: calc(50% - 74px) }
  .hv-life .overlay { left: calc(50% - 210px) }
  .hv-email .email-desktop { left: calc(50% + 8px) }
  .hv-email .email-mobile { left: calc(50% - 112px) }
  .hv-footer { padding: 48px 16px }
  .hv-footer::before { width: calc(100% - 32px) }
  .hv-footer h2 { font-size: 32px }
  .hv-social { gap: 16px 24px }
}

@media (max-width: 420px) {
  .hv-portrait { margin-left: -24px }
  .hv-project-copy h2 { font-size: 1.5rem }
  .hv-project-copy > p:not(.hv-label) { font-size: 16px }
}

@media (prefers-reduced-motion: reduce) {
  .hv-project,
  .hv-project-media img { transition: none }
  .hv-project:hover .hv-project-media img,
  .hv-project:focus-within .hv-project-media img { transform: none }
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #fafafa;
  color: var(--ink);
  font: 400 16px/1.6 var(--lato);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  color: inherit
}

h1,
h2,
h3,
h4,
p {
  margin: 0
}
hr {
  border: 1px;
    border-top: 1px dashed #1d1e2224;
  margin: 0
}
.wrap {
  max-width: calc(var(--max) + var(--pad)*2);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad)
}

:focus-visible {
  outline: 2px solid #2f5bea;
  outline-offset: 3px;
  border-radius: 6px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

/* ---------- Nav ---------- */
.sn {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s
}

.sn.scrolled {
  border-bottom-color: var(--line)
}

.sn-in {
  max-width: calc(var(--max) + var(--pad)*2);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.cs-page .sn-in {
  max-width: calc(1152px + var(--pad)*2)
}

.sn-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1
}

.sn-logo b {
  font: 700 24px/1.2 var(--inter);
  letter-spacing: -.02em
}

.sn-logo span {
  font: 400 11px/1.2 var(--inter);
  color: var(--body)
}

.sn-links {
  display: flex;
  gap: 32px;
  font: 500 15px/1 var(--lato)
}

.sn-links a {
  text-decoration: none;
  color: var(--body)
}

.sn-links a:hover,
.sn-links a.on {
  color: var(--ink)
}

.sn-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 500 15px/1 var(--lato);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s
}

.sn-btn:hover {
  border-color: var(--ink);
  transform: translateY(-1px)
}

.sn-btn svg {
  width: 16px;
  height: 16px
}

.sn-menu {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
  cursor: pointer
}

.sn-m {
  border-top: 1px solid var(--line);
  padding: 8px var(--pad) 16px;
  background: #fff
}

.sn-m a {
  display: block;
  padding: 12px 0;
  font: 500 16px/1.4 var(--lato);
  text-decoration: none;
  border-bottom: 1px solid var(--line)
}

.sn-m a:last-child {
  border-bottom: 0
}

/* ---------- Home: hero ---------- */
.home-hero {
  padding-top: 72px;
  padding-bottom: 56px
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 400 14px/1.2 var(--lato);
  color: var(--body)
}

.pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok)
}

.home-hero h1 {
  margin: 24px 0 20px;
  font: 400 clamp(38px, 5vw, 52px)/1.04 var(--lato);
  letter-spacing: -.035em;
  color: var(--head)
}

.home-hero .lead {
  max-width: 620px;
  font: 400 18px/30px var(--lato);
  color: var(--lead)
}

/* ---------- Home: work ---------- */
.work {
  padding-top: 52px;
  padding-bottom: 96px
}

.h-36 {
  font: 400 36px/54px var(--lato);
  letter-spacing: -.035em;
  color: var(--head);
  margin-bottom: 40px
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px
}

.proj {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease
}

.proj:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px -26px rgba(16, 23, 29, .28)
}

.proj .media {
  display: flex;
  background: var(--soft);
  overflow: hidden
}

/* Web screenshots: flush to the right and bottom edges (Figma: align bottom-right, 460×320 inside 518 card) */
.proj .media.web {
  padding: 0;
  align-items: flex-end;
  justify-content: flex-end
}

.proj .media.web img {
  width: 88.8%;
  max-width: none;
  height: auto;
  flex: none
}

/* Phones: centred, flush to the bottom edge */
.proj .media.phone {
  padding: 0;
  align-items: flex-end;
  justify-content: center
}

.proj .media.phone img {
  width: 300px;
  height: auto;
  flex: none
}

.proj .body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 28px;
  flex: 1
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tags span {
  font: 400 13px/1.2 var(--inter);
  color: var(--body);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px
}

.proj h3 {
  font: 600 28px/1.2 var(--lato);
  letter-spacing: -.03em;
  color: var(--head)
}

.proj p {
  font: 400 16px/23px var(--lato);
  color: var(--desc);
  max-width: 468px
}

.cta {
  align-self: flex-start;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 99px;
  background: var(--cta);
  color: #fff;
  font: 500 14px/1.2 var(--inter);
  text-decoration: none;
  transition: background .15s
}

.cta:hover {
  background: #4f5563
}

.cta span {
  transition: transform .2s
}

.cta:hover span {
  transform: translateX(3px)
}

/* ---------- Home: contact ---------- */
.contact {
  background: var(--dark);
  color: #fff;
  padding: 88px 0
}

.contact-in {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: end
}

.eyebrow-dark {
  font: 500 13px/1.2 var(--lato);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8f9c
}

.contact h2 {
  margin-top: 14px;
  max-width: 560px;
  font: 400 36px/46px var(--lato);
  color: #bbc1c6
}

.contact p {
  margin-top: 14px;
  max-width: 460px;
  font: 400 16px/26px var(--inter);
  color: #bbc1c6
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.contact .mail {
  font: 600 22px/1.2 var(--inter);
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none
}

.contact .mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

.soc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.soc a {
  padding: 10px 14px;
  border: 1px solid #3a3d46;
  border-radius: 10px;
  font: 400 14px/1.2 var(--inter);
  color: #fff;
  text-decoration: none
}

.soc a:hover {
  background: #ffffff14
}

/* ==========================================================
   Case study
   ========================================================== */
.cs-wrap {
  max-width: calc(1152px + var(--pad)*2);
  margin: 0 auto;
  padding: 0 var(--pad)
}

.cs-hero {
  border-radius: 16px;  
    background: linear-gradient(4deg, #B3CBD8 6.73%, #9FC0B4 48.2%, #BFD987 89.67%, #E5EB9F 131.14%);

}

.cs-hero img {  
   margin-top:74px;
  width: 100%;
  border-radius:0;
  padding:12px;
  background-color: #ffffff;

  
}

/* API Marketplace hero */
.apim-hero {
    margin-top:54px;
      margin-bottom: 52px;
}

.apim-hero-media {
  overflow: hidden
}

.apim-hero-media img,
.apim-hero-media video {
     display: block;
    width: 85%;
    height: auto;
    margin: 45px auto;
    border: 12px solid #ffffffeb;
    border-radius: 6px;
}

/* Match the LifeSync hero to the API Marketplace banner proportions. */
.lifesync-hero .apim-hero-media {
  width: 100%;
  aspect-ratio: 727 / 356;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible
}

.lifesync-hero .apim-hero-media img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain
}
.lifesync-hero { margin-bottom: 0 }
.movix-hero-media {
  width: 100%;
  aspect-ratio: 72 / 55;
  overflow: hidden;
  border-radius: 16px;
  background: #f1f1f3
}
.movix-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top
}
.movix-visual {
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7f8
}
.movix-visual img {
  width: 100%;
  height: auto
}
.movix-wide { background: #eef1f2 }
.lifesync-prototype-row {
  display: grid;
  grid-template-columns: 264px minmax(0, 856px);
  gap: 32px;
  margin-top: 22px;
  margin-bottom: 52px
}
.lifesync-prototype {
  grid-column: 2;
  justify-self: start;
  margin: 0 0 18px;
  gap: 8px
}
.lifesync-prototype img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform .2s ease
}
.lifesync-prototype:hover img { transform: translate(2px, -2px) }

.apim-hero-copy {
  max-width: 856px;
}

.apim-hero-copy .h-28 {
  margin-bottom: 14px
}

.apim-hero-subtitle {
  margin-bottom: 14px;
  font: 500 18px/28px var(--inter);
  color: var(--ink)
}

.apim-hero-meta {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.apim-hero-meta .apim-status {
background: #080808b3;
    color: #fafafa;
    border-color: #0c0c0cb3;
}

@media (max-width:1000px) {
  .apim-hero-copy {
    max-width: none;
    margin-left: 0
  }
}

@media (max-width:720px) {
  .apim-hero {
    padding-top: 24px;
    padding-bottom: 40px
  }

  .apim-hero-copy {
    margin-top: 28px
  }

  .apim-hero-subtitle {
    font-size: 17px;
    line-height: 26px
  }
}

.cs-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 856px);
  gap: 32px;
  padding-bottom: 120px
}

.toc-side {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 40px
}

.eyebrow {
  display: block;
  font: 700 12px/1.2 var(--lato);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body)
}

.toc-side .eyebrow {
  font-family: var(--inter)
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px
}

.toc a {
  font: 400 14px/1.2 var(--inter);
  color: var(--body);
  text-decoration: none
}

.toc a:hover {
  color: #141414;

}

.toc a.on {
 font-weight: 500;
    color: #141414;
}

.focus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.focus span {
    font: 13px / 1.2 var(--inter);
    color: #080808b3;
    border-radius: 38px;
    padding: 4px 12px;
    border: #c5bdbd 1px solid;
    padding: 6px 12px;
}

.cs-main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  min-width: 0
}

.cs-main>.intro-group {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 96px
}

.h-28 {
  font: 600 1.5rem/1.2 var(--lato);
  letter-spacing: -.03em;
  color: var(--head)
}

.h-22 {
  font: 600 22px/1.2 var(--lato);
  letter-spacing: -.03em;
  color: var(--head)
}

.h-18 {
  font: 600 18px/1.25 var(--lato);
  letter-spacing: -.03em;
  color: #141414b3;
}

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.t16 {
  font: 400 16px/28px var(--lato);
  color: var(--body)
}

.t18 {
  font: 400 18px/28px var(--lato);
  color: var(--ink)
}

.t14 {
  font: 400 14px/22px var(--lato);
  color: var(--body);
  line-height: 1.625;
}

.b16 {
  font: 700 16px/1.2 var(--lato);
  color: #403e3e;
}
.b17 {
    font: 14px / 1.2 var(--lato);
  color: #403e3e;
  font-weight: 600;
}



/* .panel {
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 48px
} */

.intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro .sub {
  font: 400 19px/30px var(--lato);
  color: var(--lead)
}

.intro .t16 {
  max-width: 768px
}

.glance {
  /* border-radius: 8px;
  padding: 24px 48px; */
  display: flex;
  flex-direction: column;
  gap: 32px
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.glance .cols-3>div {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.glance .t14 {
  line-height: 20px
}

.pcard {
  background: #edede8;
  border: 1px solid #e6e6d8;
  border-radius: 12px;
  padding: 24px
}

.pcard .eyebrow {
  margin-bottom: 24px
}

.pcard .b16 {
  margin-bottom: 8px
}

.card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 32px
}

.ba ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0
}

.ba li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font: 400 15px/22px var(--inter);
  color: var(--ink);
  border-top: 1px solid var(--line)
}

.ba li:first-child {
  border-top: 0
}

.ba li b {
  font: 700 15px/22px var(--inter)
}

.ba .x {
  color: #b42318
}

.ba .v {
  color: #067647
}

.user {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 32px 32px 0
}

.user .ic {
  width: 24px;
  height: 24px;
  margin-bottom: 16px
}

.user .role {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.user .t14 b {
  font-weight: 700;
  color: var(--body)
}

.research {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px
}

.research .col {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.research ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.research ul li {
  display: flex;
  gap: 12px
}

.research ul li::before {
  content: "•";
  font: 700 16px/22px var(--inter);
  color: var(--ink)
}

.quote {
  border-left: 2px solid var(--quote);
  padding-left: 20px
}

.hmw {
  background: #6b6b6b;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 24px
}

.hmw b {
  font: 700 16px/1.2 var(--lato);
  color: #bdbdbd
}

.hmw p {
  font: 300 24px/35px var(--lato);
  color: #fff
}

.flow-panel {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding:0;
  display: flex;
  justify-content: center;
  background: #f8f8f8;
  margin-top: 12PX;
}

.flow-panel img {
  width: 100%;
}

.principles {
      padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.principles .cols-2>div {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
    padding: 16px;
    background: #edede824;
    border: 1px solid #e6e6d8;
}

.ia-cards>div {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 400 14px/1.2 var(--inter);
  color: var(--ink)
}

.ia-cards .eyebrow {
  font-family: var(--inter);
  margin-bottom: 8px
}

.ia-title {
  font: 700 16px/1.2 var(--inter);
  color: var(--ink)
}

.ia-text {
  font: 400 16px/24px var(--inter);
  color: var(--body)
}

.design {
  gap: 80px
}

.sub {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.decision {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px
}

.decision div {
background: #eeeeeeb8;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: 400 14px / 20px var(--inter);
    color: var(--ink);
}

.decision div b {
  font: 700 14px/1.2 var(--inter)
}

.decision .benefit {
     background: #edede8;
}

.stage {
  background: #e3eaf7;
  border-radius: 8px;
  padding: 40px 40px 0;
  overflow: hidden
}

.browser {
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden
}

.browser-bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px
}

.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d7dd
}

.shot {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e3e6ea;
  background: #fff;
  cursor: zoom-in
}

.browser img {
  cursor: zoom-in
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start
}

.split .txt {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.grey-box {
  background: #e9ecf1;
  border-radius: 8px;
  padding: 32px
}

.gallery {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px
}

.gtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.gtabs button {
  font: 600 13px/1.2 var(--inter);
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid #c6c6cc;
  background: #fff;
  color: var(--body);
  cursor: pointer;
  transition: all .15s
}

.gtabs button:hover {
  border-color: var(--ink)
}

.gtabs button[aria-selected="true"] {
    background: #080101;
    border-color: var(--ink);
    color: #fff;
}


.gpanel[hidden] {
  display: none
}

.caption {
  font: 400 14px/20px var(--lato);
  color: var(--body);
  margin-top: 12px
}

.ds-card {
background: #edede8;
    padding: 32px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 6px;
}

.ds-card .t14 {
  line-height: 28px
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.sb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border: 1px solid #e4e7ec;
  border-radius: 4px;
  font: 500 13px/18px var(--inter);
  color: #141c25;
  background: #fff
}

.sb svg {
  flex: none
}

.bd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--inter);
  padding: 5px 8px;
  border-radius: 4px;
  border: 1px solid
}

.bd::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor
}

.bd.ok {
  color: #067647;
  background: #ecfdf3;
  border-color: #abefc6
}

.bd.warn {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89
}

.bd.err {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca
}

.bd.info {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff
}

.bd.neutral {
  color: #344054;
  background: #f9fafb;
  border-color: #eaecf0
}

.swatches {
  display: flex
}

.swatches i {
  height: 40px;
  width: 108px;
  border-radius: 4px;
  margin-left: -48px;
  border: 2px solid #fff
}

.swatches i:first-child {
  margin-left: 0
}

.a11y {
  list-style: none;
  margin: 0;
  padding: 0
}

.a11y li {
  display: grid;
  grid-template-columns: 32px 160px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line)
}

.a11y li:last-child {
  border-bottom: 1px solid var(--line)
}

.a11y .k {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--tile-blue);
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--inter);
  color: var(--ink)
}

.a11y b {
  font: 500 16px/1.2 var(--inter);
  color: var(--ink)
}

.a11y span:last-child {
  font: 400 14px/20px var(--inter);
  color: var(--body)
}

.outcomes {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 32px
}

.outcomes .cols-3>div {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.outcomes .t14 {
    line-height: 21px;
    padding-top: 12px;
}

.big-num {
  font: 600 30px/1.2 var(--lato);
  letter-spacing: -.03em;
  color: var(--head);
 
  
}

.pull {
  border-left: 2px solid var(--ink);
  padding: 8px 0 8px 24px
}

.reflect-cards .card {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.reflect-cards ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.reflect-cards li {
  font: 400 14px/20px var(--lato);
  color: var(--body)
}

.next a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  margin-top: 16px
}

.next a:hover .h-18 {
  text-decoration: underline;
  text-underline-offset: 4px
}

.next a>span:last-child {
  font: 400 14px/20px var(--lato);
  color: var(--body)
}

.cs-cta {
  background:#18241f;
  border-radius: 8px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center
}

.cs-cta h2 {
  font: 600 clamp(40px, 5vw, 56px)/1.2 var(--inter);
  letter-spacing: -.035em;
  color: #fff
}

.cs-cta p {
  max-width: 560px;
  font: 400 18px/28px var(--inter);
  color: #828796
}

.cs-cta .links {
  display: flex;
  gap: 24px
}

.cs-cta .links a {
  font: 700 12px/1.2 var(--inter);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #ffffff55;
  padding-bottom: 6px
}

.cs-cta .links a:hover {
  border-bottom-color: #fff
}

.foot {
  max-width: calc(1152px + var(--pad)*2);
  margin: 0 auto;
  padding: 40px var(--pad);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 400 14px/1.2 var(--inter);
  color: var(--muted)
}

.foot nav {
  display: flex;
  gap: 24px
}

.foot nav a {
  color: var(--body);
  text-decoration: none
}

.foot nav a:hover {
  color: var(--ink)
}

/* Journey flow (Strategy) */

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  counter-reset: s
}

.journey li {
  position: relative;
  text-align: center;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.journey li::before {
  counter-increment: s;
  content: counter(s);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
  font: 700 13px/1 var(--inter);
  color: var(--ink)
}

.journey li::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 1.5px;
  background: #c6c6cc
}

.journey li:last-child::after {
  display: none
}

.journey li.auto::before {
  background: var(--ink);
  color: #fff
}

.journey b {
  font: 700 13px/1.3 var(--inter);
  color: var(--ink)
}

.journey span {
  font: 400 12px/16px var(--inter);
  color: var(--body)
}

@media (max-width:720px) {
  .journey-panel {
    padding: 24px
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .journey li {
    display: grid;
    grid-template-columns: 32px 1fr;
    column-gap: 12px;
    row-gap: 2px;
    text-align: left;
    align-items: start;
    padding: 0
  }

  .journey li::before {
    grid-row: span 2
  }

  .journey li::after {
    top: 32px;
    left: 15px;
    width: 1.5px;
    height: calc(100% - 16px)
  }
}

/* Lightbox */
#lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 13, 18, .88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out
}

#lb.open {
  display: flex
}

#lb img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px
}

#lb button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  cursor: pointer
}

/* ---------- Responsive ---------- */
@media (max-width:1000px) {
  .cs-body {
    grid-template-columns: 1fr
  }

  .lifesync-prototype-row { grid-template-columns: 1fr }
  .lifesync-prototype { grid-column: 1 }

  .toc-side {
    display: none
  }
}

@media (max-width:900px) {

  .sn-links,
  .sn-in>.sn-btn {
    display: none
  }

  .sn-menu {
    display: block
  }

  .work-grid,
  .contact-in {
    grid-template-columns: 1fr
  }

  .home-hero {
    padding-top: 40px
  }

  .contact {
    padding: 64px 0
  }
}

@media (max-width:720px) {
  .proj .media.phone img {
    width: 58%
  }

  .proj .body {
    padding: 20px
  }

  .panel {
    padding: 28px
  }

  .glance {
    padding: 24px
  }


  .cols-3,
  .cols-2,
  .research,
  .split {
    grid-template-columns: 1fr
  }

  .cols-4 {
    grid-template-columns: 1fr 1fr
  }

  .decision {
    grid-template-columns: 1fr 1fr
  }

  .stage {
    padding: 20px 16px 0
  }

  .flow-panel {
    padding: 16px
  }

  .user,
  .ds-card {
    padding: 24px 0
  }

  .a11y li {
    grid-template-columns: 32px 1fr
  }

  .a11y span:last-child {
    grid-column: 2
  }

  .cs-cta {
    padding: 48px 24px
  }

  .cs-main {
    gap: 56px
  }

  .design {
    gap: 56px
  }
}

/* ---------- LifeSync additions ---------- */
.hero-soft {
  background: var(--soft);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 32px;
  padding-bottom: 0
}

.hero-soft img {
  max-height: 520px;
  width: auto
}

.intro .cta {
  margin-top: 6px
}

.hmw-cite {
  font: 400 14px/1.4 var(--lato);
  color: #bdbdbd
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.video-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center
}

.video-box {
  width: 100%;
  background: var(--soft);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 24px 16px 0
}

.video-box video {
  width: 100%;
  max-width: 240px;
  display: block;
  border-radius: 24px 24px 0 0
}

.out-col {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.out-col .t14 {
  line-height: 24px
}

@media (max-width:720px) {
  .hero-soft {
    padding: 16px;
    padding-bottom: 0
  }

  .video-grid {
    grid-template-columns: 1fr
  }

  .video-box video {
    max-width: 280px
  }
}

/* LifeSync journey map: scrolls sideways on small screens so the text stays readable */
.journey-map {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.journey-map img {
  width: 100%;
  min-width: 760px;
  cursor: zoom-in
}

/* ---------- Emailer additions ---------- */
.hero-soft.warm {
  background: #f5f1ee
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.stats>div {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.journey.six {
  grid-template-columns: repeat(6, 1fr)
}

.mail-stage {
  background: #f5f1ee;
  border-radius: 8px;
  padding: 32px;
  display: flex;
  justify-content: center
}

.mail-frame {
  width: 100%;
  max-width: 600px;
  height: 640px;
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 20, 20, .08);
  -webkit-overflow-scrolling: touch
}

.mail-frame img {
  width: 100%;
  display: block
}

.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.phones figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center
}

.phones .mail-frame {
  height: 520px;
  border-radius: 16px
}

.tokens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px
}

.tokens div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 400 13px/1.3 var(--inter);
  color: var(--body)
}

.tokens i {
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  margin-bottom: 6px
}

.tokens b {
  font: 600 13px/1.3 var(--inter);
  color: var(--ink)
}

.type-scale {
  list-style: none;
  margin: 0;
  padding: 0
}

.type-scale li {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font: 400 14px/20px var(--inter);
  color: var(--body)
}

.type-scale li:last-child {
  border-bottom: 1px solid var(--line)
}

.type-scale b {
  font: 500 16px/1.2 var(--inter);
  color: var(--ink)
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.chips span {
  font: 500 13px/1 var(--inter);
  color: var(--ink);
  background: var(--soft);
  border-radius: 99px;
  padding: 9px 14px
}

.code {
  background: var(--dark);
  color: #e6e8eb;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 0;
  overflow-x: auto;
  font: 400 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  tab-size: 2
}

.code .c {
  color: #ffd663
}

.code .s {
  color: #9fd0a8
}

.code .k {
  color: #ff8a8a
}

@media (max-width:900px) {
  .phones {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:720px) {
  .stats {
    grid-template-columns: 1fr
  }

  .journey.six {
    grid-template-columns: 1fr
  }

  .mail-stage {
    padding: 16px
  }

  .mail-frame {
    height: 520px
  }

  .phones .mail-frame {
    height: 420px
  }

  .type-scale li {
    grid-template-columns: 1fr
  }

  .code {
    padding: 20px;
    font-size: 12px
  }
}

/* ---------- Shared portfolio buttons ---------- */
.sn-btn,
.cta,
.home-v2 .hv-btn,
.home-v2 .hv-btn.light {
  background: #141414;
  color: #fff;
  border-color: #141414
}
.sn-btn:hover,
.cta:hover,
.home-v2 .hv-btn:hover,
.home-v2 .hv-btn.light:hover {
  background: #343434;
  color: #fff;
  border-color: #343434
}

/* Keep the homepage secondary action in its original light style. */
.home-v2 .hv-btn.light {
  background: #fff;
  color: #141414;
  border-color: #e0e0e0
}
.home-v2 .hv-btn.light:hover {
  background: var(--soft);
  color: #141414;
  border-color: #e0e0e0
}

/* ==========================================================
   About page
   ========================================================== */
.about-page { background: #fafafa }
.about-hero {
  min-height: 590px;
  padding-top: 96px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 650px) 390px;
  gap: 72px;
  align-items: center
}
.about-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px }
.about-intro h1 {
  max-width: 650px;
  font: 600 clamp(40px, 5vw, 42px)/1.08 var(--lato);
  letter-spacing: -.035em;
  color: var(--head);
      font-weight: 500;
}
.about-intro .t18 { max-width: 640px }
.about-intro .t16 { max-width: 620px }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px }
.about-actions .cta { margin-top: 0; border: 1px solid #141414 }
.about-actions .cta img,
.hv-project .hv-btn img { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .2s ease }
.about-actions .cta:hover img,
.hv-project .hv-btn:hover img { transform: translate(2px, -2px) }
.about-actions .about-secondary {
  background: #fff;
  color: #141414;
  border-color: #e0e0e0
}
.about-actions .about-secondary:hover {
  background: #f5f5f5;
  color: #141414;
  border-color: #d2d2d2
}
.hv-project .hv-btn { gap: 8px }
.about-portrait {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  justify-self: end
}
.about-portrait-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(56deg, rgba(199,88,143,.36), rgba(204,122,147,.36) 31%, rgba(208,154,151,.36) 57%, rgba(210,184,154,.36))
}
.about-portrait img {
  position: absolute;
  width: 455px;
  max-width: none;
  height: 455px;
  left: -58px;
  top: -72px;
  object-fit: contain
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 96px
}
.about-stats > div {
  min-height: 150px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #edede8;
  border: 1px solid #e6e6d8
}
.about-stats > div:first-child { border-radius: 12px 0 0 12px }
.about-stats > div:last-child { border-radius: 0 12px 12px 0 }
.about-stats strong { font: 600 28px/1.2 var(--lato); color: var(--head); letter-spacing: -.03em }
.about-stats span { font: 400 14px/22px var(--lato); color: var(--body) }
.about-content { display: flex; flex-direction: column; gap: 72px; padding-bottom: 96px }
.about-section { display: flex; flex-direction: column; gap: 32px }
.about-section .pcard { display: flex; flex-direction: column; gap: 14px }
.about-timeline { display: flex; flex-direction: column }
.about-timeline article {
  display: grid;
  grid-template-columns: 270px 130px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line)
}
.about-timeline article:last-child { border-bottom: 1px solid var(--line) }
.about-timeline h3 { font: 600 18px/1.25 var(--lato); letter-spacing: -.03em; color: var(--head) }
.about-timeline div p,
.about-timeline time,
.about-timeline article > p { font: 400 14px/22px var(--lato); color: var(--body) }
.about-timeline time { white-space: nowrap }
.about-skills { display: flex; flex-wrap: wrap; gap: 10px }
.about-skills span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font: 400 14px/1.2 var(--inter);
  color: var(--body);
  background: #fff
}
.about-contact { padding-bottom: 120px }

/* Figma 305:57586 — résumé rows below the existing hero */
.about-resume {
  padding-top: 0;
  padding-bottom: 240px
}
.about-resume-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 691px);
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #e0e0e0
}
.about-resume-label {
  align-self: start;
  color: #515f6b;
  font: 400 16px/1.5 var(--inter)
}
.about-resume-detail { display: flex; flex-direction: column; align-items: flex-start }
.about-resume-detail h2 {
  color: #141414;
  font: 500 16px/1.2 var(--inter);
  letter-spacing: -.816px
}
.about-resume-detail h2 span { font: inherit }
.about-resume-date {
  margin-top: 6px;
  color: #515f6b;
  font: 400 15px/1.5 var(--inter)
}
.about-resume-detail > p:last-child {
  max-width: 691px;
  margin-top: 24px;
  color: #141414;
  font: 400 16px/1.5 var(--inter)
}
.about-certifications {
  margin: 24px 0 0;
  padding-left: 20px;
  color: #141414;
  font: 400 16px/1.5 var(--inter)
}
.about-certifications li + li { margin-top: 8px }

@media (max-width:1000px) {
  .about-hero { grid-template-columns: 1fr 300px; gap: 40px }
  .about-portrait { width: 300px; height: 300px }
  .about-portrait img { width: 380px; height: 380px; left: -48px; top: -60px }
  .about-stats { grid-template-columns: repeat(2, 1fr) }
  .about-stats > div:first-child { border-radius: 12px 0 0 0 }
  .about-stats > div:nth-child(2) { border-radius: 0 12px 0 0 }
  .about-stats > div:nth-child(3) { border-radius: 0 0 0 12px }
  .about-stats > div:last-child { border-radius: 0 0 12px 0 }
  .about-timeline article { grid-template-columns: 220px 120px minmax(0, 1fr); gap: 20px }
  .about-resume-row { grid-template-columns: 120px minmax(0, 691px); gap: 32px }
}

@media (max-width:720px) {
  .about-hero { min-height: auto; padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: stretch }
  .about-intro h1 { font-size: 40px }
  .about-portrait { width: min(300px, 100%); height: 300px; align-self: center }
  .about-stats { grid-template-columns: 1fr; padding-bottom: 72px }
  .about-stats > div,
  .about-stats > div:first-child,
  .about-stats > div:nth-child(2),
  .about-stats > div:nth-child(3),
  .about-stats > div:last-child { min-height: auto; border-radius: 0 }
  .about-stats > div:first-child { border-radius: 12px 12px 0 0 }
  .about-stats > div:last-child { border-radius: 0 0 12px 12px }
  .about-timeline article { grid-template-columns: 1fr; gap: 8px }
  .about-content { gap: 56px; padding-bottom: 72px }
  .about-section .cols-3 { grid-template-columns: 1fr }
  .about-contact { padding-bottom: 72px }
  .about-resume { padding-bottom: 120px }
  .about-resume-row { grid-template-columns: 1fr; gap: 12px; align-items: start }
  .about-resume-label:empty { display: none }
}
