/* =========================================================
   Arslan — Portfolio (workwitharslan.com)
   One stylesheet for the site (index.html) and the CV (cv.html).
   Edit the variables below to change colours and fonts.
   ========================================================= */

:root {
  --bg: #fafaf9;
  --bg-2: #f2f2ef;
  --surface: #ffffff;
  --ink: #0c0d0e;
  --ink-2: #44474c;
  --ink-3: #7a7e85;
  --line: #e6e6e2;
  --accent: #0e7c66;          /* deep green, picks up the plants in the photos */
  --accent-soft: #e3f2ee;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(12,13,14,.04), 0 12px 40px -12px rgba(12,13,14,.12);

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0d;
    --bg-2: #121315;
    --surface: #16181a;
    --ink: #f3f3f1;
    --ink-2: #b5b8bd;
    --ink-3: #82868c;
    --line: #25282b;
    --accent: #3fcf9f;
    --accent-soft: #10251f;
    --accent-ink: #06120e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 48px -16px rgba(0,0,0,.6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .78rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); box-shadow: none; }
.btn.sm { padding: .6em 1.1em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.1rem/1 var(--display); letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.logo b { color: var(--accent); }
.nav-links { display: flex; gap: .25rem; align-items: center; font-size: .93rem; }
.nav-links a:not(.btn) { padding: .5rem clamp(.5rem, 1vw, .85rem); border-radius: 999px; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--bg-2); }
.nav-links .btn { margin-left: .5rem; }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 4.5rem 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-.5rem); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav-links a:not(.btn) { padding: 1rem 0; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn):hover { background: none; }
  .nav-links .btn { margin: 1.25rem 0 0; }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }

.status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px color-mix(in srgb, #22c55e 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, #22c55e 8%, transparent); } }

.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); margin-top: 1.5rem; max-width: 14ch; }
.hero h1 .hl { color: var(--accent); }
.hero-lede { margin-top: 1.5rem; max-width: 36rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font: 700 1.75rem/1 var(--display); letter-spacing: -.03em; }
.hero-stats span { color: var(--ink-3); font-size: .85rem; }

.hero-photo { position: relative; max-width: 30rem; width: 100%; justify-self: center; }
.hero-photo .frame {
  border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--bg-2); box-shadow: var(--shadow);
}
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; z-index: -1;
  border-radius: 32px; background: var(--accent-soft);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1rem; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3;
}
.float-card strong { display: block; font-size: .92rem; }
.float-card span { color: var(--ink-3); }
.float-card .icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: none; }
.float-card.a { left: -1.25rem; bottom: 12%; }
.float-card.b { right: -1rem; top: 8%; }
@media (max-width: 560px) {
  .float-card.a { left: .75rem; bottom: .75rem; }
  .float-card.b { display: none; }
}

/* ---------- Logos / stack strip ---------- */
.stack { border-block: 1px solid var(--line); padding: 1.25rem 0; overflow: hidden; }
.stack ul { display: flex; gap: 2.75rem; width: max-content; animation: scroll 45s linear infinite; }
.stack li { font: 500 .95rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; display: flex; align-items: center; gap: 2.75rem; }
.stack li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: .9rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 1rem 0 0; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; }
.section-head.split > div { max-width: 40rem; }
.alt { background: var(--bg-2); }

/* ---------- Services ---------- */
.services { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service .icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.25rem; }
.service h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.service p { color: var(--ink-2); margin: .6rem 0 0; font-size: .97rem; }

/* ---------- Free website checkup ---------- */
.checkup {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
  padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--bg)));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
@media (min-width: 900px) { .checkup { grid-template-columns: 1.1fr .9fr; } }
.badge-free { padding: .3em .6em; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.checkup-intro h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 1rem 0; }
.checkup-intro > p { color: var(--ink-2); font-size: 1.06rem; max-width: 36rem; }
.checklist { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 600px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
.checklist strong { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .1rem; }
.tick { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.checkup-note { font-size: .9rem !important; color: var(--ink-3) !important; margin: 0; }
.checkup-form {
  display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.checkup-form h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .25rem; }
.checkup-form .btn { width: 100%; margin-top: .25rem; }
.form-fine { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--ink-3); }
.hero-note { margin: 1rem 0 0; font-size: .92rem; }
.hero-note a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; }
.hero-note a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.work-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.work-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.work-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-cover img { transform: scale(1.04); }
.work-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.work-meta h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.work-meta .year { color: var(--ink-3); font: 500 .8rem/1 var(--mono); }
.work-body p { color: var(--ink-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .4rem; }
.tags li { font-size: .78rem; font-weight: 500; padding: .35em .8em; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.arrow { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); font-size: .9rem; transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.work-card:hover .arrow { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: .95fr 1.05fr; } }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .about-photo { position: sticky; top: 6.5rem; } }
.about-text h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .9rem 0 1.5rem; }
.about-text p { color: var(--ink-2); font-size: 1.06rem; }
.about-text .lead { color: var(--ink); font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.55; font-weight: 500; }

.skills { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 2rem; }
.skill-group { padding: 1.25rem 1.35rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.skill-group h3 { font: 500 .75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.skill-group ul { display: flex; flex-wrap: wrap; gap: .4rem; }
.skill-group li { font-size: .85rem; font-weight: 500; padding: .35em .8em; border-radius: 999px; background: var(--bg-2); }

/* ---------- Experience ---------- */
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline li {
  display: grid; gap: .3rem 2rem; padding: 1.5rem 1.6rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 760px) { .timeline li { grid-template-columns: 11rem 1fr auto; align-items: baseline; } }
.timeline .when { color: var(--ink-3); font: 500 .82rem/1.4 var(--mono); }
.timeline h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.timeline .where { color: var(--accent); font-weight: 500; font-size: .95rem; }
.timeline .tag { justify-self: start; font-size: .75rem; font-weight: 500; padding: .3em .75em; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.timeline p { grid-column: 1 / -1; color: var(--ink-2); margin: .35rem 0 0; max-width: 44rem; }
@media (min-width: 760px) { .timeline p { grid-column: 2 / 3; } }

/* ---------- Contact ---------- */
.contact-card {
  position: relative; overflow: hidden;
  display: grid; gap: 2.5rem; align-items: center;
  padding: clamp(1.5rem, 6vw, 4rem); border-radius: 28px;
  background: #0c0d0e; color: #f3f3f1;
}
@media (prefers-color-scheme: dark) { .contact-card { background: var(--surface); border: 1px solid var(--line); } }
@media (min-width: 900px) { .contact-card { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.contact-card::after {
  content: ""; position: absolute; right: -10rem; top: -10rem; width: 28rem; height: 28rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, #3fcf9f 35%, transparent), transparent);
  pointer-events: none;
}
.contact-intro { position: relative; z-index: 1; }
.contact-card .avatar { width: 4.5rem; margin-bottom: 1.5rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.12); }
.contact-card .eyebrow { color: #3fcf9f; }
.contact-card h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin: .9rem 0 1rem; color: #fff; }
.contact-card p { color: #b5b8bd; max-width: 34rem; font-size: 1.06rem; }
.contact-card .btn { background: #fff; color: #0c0d0e; border-color: #fff; }
.contact-card .btn:hover { background: #3fcf9f; border-color: #3fcf9f; color: #06120e; }

/* Forms (shared) */
.contact-form { position: relative; z-index: 1; display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field span { font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.field span em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7e85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: #ef4444; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .25rem; }
.web3form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: .93rem; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #dc2626; }

/* Contact form sits on a dark card */
.contact-card .field span { color: #d6d8db; }
.contact-card .field input, .contact-card .field textarea { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.contact-card .field input::placeholder, .contact-card .field textarea::placeholder { color: #7f848a; }
.contact-card .field input:focus, .contact-card .field textarea:focus { border-color: #3fcf9f; background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(63,207,159,.2); }
.contact-card .field.invalid input, .contact-card .field.invalid textarea { border-color: #f87171; }
.contact-card .form-status.ok { color: #3fcf9f; }
.contact-card .form-status.err { color: #f87171; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .93rem; position: relative; z-index: 1; }
.socials a { color: #b5b8bd; }
.socials a:hover { color: #fff; }


/* ---------- Project card link ---------- */
.work-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--accent); }
.work-link span { transition: transform .25s var(--ease); }
.work-card:hover .work-link span { transform: translateX(3px); }

/* ---------- How I work ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: inline-block; font: 500 .8rem/1 var(--mono); color: var(--accent); padding: .45rem .6rem; border-radius: 8px; background: var(--accent-soft); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.step p { color: var(--ink-2); margin: .55rem 0 0; font-size: .95rem; }

/* ---------- Ways to work together ---------- */
.plans { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-badge { position: absolute; top: -.75rem; left: 1.5rem; padding: .3rem .7rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600; }
.plan h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.plan-for { margin: 0; font: 500 .78rem/1.3 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.plan > p { color: var(--ink-2); margin: .25rem 0 0; font-size: .97rem; }
.plan ul { display: grid; gap: .6rem; margin: 1rem 0 1.25rem; }
.plan li { display: flex; gap: .6rem; align-items: center; font-size: .93rem; }
.plan li .tick { width: 1.25rem; height: 1.25rem; margin: 0; }
.plan li .tick svg { width: 11px; height: 11px; }
.plan-price { margin: auto 0 1rem !important; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink) !important; }
.plan .btn { width: 100%; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1rem; }
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 1.75rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.25rem; }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.quote blockquote p::before { content: "\201C"; display: block; font: 700 2.5rem/1 var(--display); color: var(--accent); margin-bottom: .25rem; }
.quote figcaption { margin-top: auto; font-size: .9rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--ink-3); }

/* ---------- FAQ ---------- */
.section-head.center { margin-inline: auto; text-align: center; }
.faq-list { max-width: 52rem; margin: 0 auto; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.faq-item { position: relative; border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.faq-item[open]::before { transform: scaleY(1); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 1.35rem clamp(1.1rem, 3vw, 1.75rem);
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-num { font: 500 .8rem/1 var(--mono); color: var(--ink-3); transition: color .2s; }
.faq-item[open] .faq-num { color: var(--accent); }
.faq-q { font: 600 clamp(1rem, 1.6vw, 1.1rem)/1.4 var(--display); letter-spacing: -.01em; color: var(--ink); }
.faq-toggle {
  position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--ink-2); transition: transform .3s var(--ease), background .25s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-toggle { border-color: var(--accent); }
.faq-item[open] .faq-toggle { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq-item[open] .faq-toggle::before, .faq-item[open] .faq-toggle::after { background: var(--accent-ink); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-a { padding: 0 clamp(1.1rem, 3vw, 1.75rem) 1.5rem calc(clamp(1.1rem, 3vw, 1.75rem) + 1.2rem + 1rem); color: var(--ink-2); line-height: 1.7; }
.faq-item[open] .faq-a { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
.faq-a p { margin: 0; max-width: 40rem; }
@media (max-width: 560px) { .faq-a { padding-left: clamp(1.1rem, 3vw, 1.75rem); } .faq-toggle { width: 2rem; height: 2rem; } }

.faq-more {
  max-width: 52rem; margin: 1.5rem auto 0;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}
.faq-more img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.faq-more h3 { font-size: 1.1rem; letter-spacing: -.01em; }
.faq-more p { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; }
.faq-more-actions { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; }
@media (min-width: 760px) { .faq-more { grid-template-columns: auto 1fr auto; } .faq-more-actions { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .faq-item[open] .faq-a { animation: none; } }

/* ---------- Contact extras ---------- */
.contact-meta { font-size: .92rem !important; color: #8d9197 !important; }
.contact-intro .btn.ghost { margin-top: .5rem; background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.contact-intro .btn.ghost:hover { border-color: #fff; background: transparent; color: #fff; }

/* ---------- WhatsApp button ---------- */
.wa-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 30px -8px rgba(0,0,0,.4); }
@media print { .wa-float { display: none; } }

/* ---------- Inner pages (services, case studies) ---------- */
.page-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--ink-3); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 18ch; margin-top: .9rem; }
.page-hero .lede { margin-top: 1.25rem; max-width: 42rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); }
.page-hero .hero-actions { margin-top: 1.75rem; }
.page-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.two-col { display: grid; gap: 2rem 4rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr .7fr; align-items: start; } }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); font-size: 1.05rem; }
.prose ul { display: grid; gap: .65rem; margin: 0 0 1.5rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); }
.side-card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 900px) { .side-card { position: sticky; top: 6.5rem; } }
.side-card h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.facts { display: grid; gap: .9rem; margin: 0; }
.facts dt { font-size: .8rem; color: var(--ink-3); }
.facts dd { margin: .15rem 0 0; font-weight: 500; }
.side-card .tags { margin-top: 1.25rem; }
.side-card .btn { width: 100%; margin-top: 1.5rem; }
.case-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--bg-2); border: 1px solid var(--line); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.feature-grid { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid > div { padding: 1.25rem 1.35rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.feature-grid h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.feature-grid p { margin: .4rem 0 0; font-size: .95rem; color: var(--ink-2); }
.related { display: grid; gap: 1rem; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related .work-body { padding: 1.25rem; }
.related .work-meta h3 { font-size: 1.15rem; }
.cta-section { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); }
.cta-band { display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 5vw, 3rem); border-radius: 28px; background: #0c0d0e; color: #f3f3f1; }
@media (prefers-color-scheme: dark) { .cta-band { background: var(--surface); border: 1px solid var(--line); } }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.2fr 1fr; } }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: #fff; }
.cta-band p { color: #b5b8bd; margin: .75rem 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cta-band .btn { background: #fff; color: #0c0d0e; border-color: #fff; }
.cta-band .btn:hover { background: #3fcf9f; border-color: #3fcf9f; color: #06120e; }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-band .btn.ghost:hover { border-color: #fff; color: #fff; background: transparent; }
.cta-link { flex-basis: 100%; font-size: .92rem; color: #b5b8bd; }
.cta-link:hover { color: #3fcf9f; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.not-found .code { font: 700 clamp(4rem, 14vw, 8rem)/1 var(--display); color: var(--accent); letter-spacing: -.04em; }
.not-found h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 1rem 0 .75rem; }
.not-found p { color: var(--ink-2); }
.not-found .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); font-size: .93rem; margin-top: clamp(1rem, 4vw, 2rem); }
.footer-grid { display: grid; gap: 2.5rem; padding: clamp(3rem, 7vw, 4.5rem) 0 2.5rem; }
@media (min-width: 520px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 2.5rem; } .footer-brand { grid-column: auto; } }
.footer-brand p { max-width: 26rem; margin: 1rem 0 0; color: var(--ink-2); }
.footer-brand .status { margin-top: 1.25rem; }
.footer-col h2 { font: 500 .75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: .6rem 0 1.1rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a, .footer-col .muted { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); overflow-wrap: anywhere; }
.footer-col svg { flex: none; color: var(--ink-3); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col a:hover svg { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.4rem 0 1.8rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.to-top { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); }
.to-top:hover { color: var(--ink); border-color: var(--ink-3); }
.to-top svg { transition: transform .25s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stack ul, .status-dot { animation: none; }
}

/* =========================================================
   CV page — styled to match assets/arslan-ali-fullstack-resume.pdf
   ========================================================= */
.cv-page { background: var(--bg-2); }
.cv-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.25rem 0; }
.cv-toolbar .actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.resume {
  --navy: #000080;
  --pill: #ebebf5;
  --pill-line: #c7c7e3;
  background: #fff; color: #000;
  width: min(100% - 2 * var(--gutter), 210mm); margin: 0 auto 4rem;
  padding: clamp(1.25rem, 5vw, 10mm) clamp(1rem, 4.5vw, 9.5mm) clamp(1.5rem, 5vw, 12mm);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 60px -24px rgba(0,0,0,.25);
  font: 400 10pt/1.42 "Tinos", "Liberation Serif", "Times New Roman", Times, serif;
  color-scheme: light;
}
.resume a { color: inherit; }
.resume a:hover { color: var(--navy); text-decoration: underline; }
.resume h1, .resume h2, .resume h3 { font-family: inherit; letter-spacing: 0; line-height: 1.2; text-wrap: initial; }

.r-head { text-align: center; margin-bottom: .55rem; }
.r-head h1 { font-size: 19pt; font-weight: 700; font-variant: small-caps; margin-bottom: .35rem; }
.r-head p { font-size: 11pt; margin: 0 0 .3rem; }

.resume section.r-sec { margin-top: .9rem; padding: 0; }
.r-sec h2 {
  font-size: 15pt; font-weight: 700; font-variant: small-caps; color: var(--navy);
  border-bottom: 1px solid #000; padding-bottom: .15rem; margin-bottom: .45rem;
}
.r-sec:first-of-type h2 { border-bottom-color: var(--navy); }
.r-bio { text-align: justify; margin: 0; hyphens: auto; }

.r-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem .3rem; margin-bottom: .55rem; }
.r-pills li {
  font-size: 10.5pt; line-height: 1.25; padding: .12em .5em;
  background: var(--pill); border: 1px solid var(--pill-line); border-radius: 5px;
}
.r-pills li.r-label { background: none; border: 0; padding: 0 .15em 0 0; font-weight: 700; }

.r-item { padding-left: 1.1em; margin-bottom: .6rem; break-inside: avoid; }
.r-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; margin-bottom: .2rem; }
.r-item-head h3 { font-size: 10.5pt; font-weight: 700; }
.r-item-head .r-org { font-weight: 400; }
.r-item-head > span { font-style: italic; font-size: 9.5pt; }
.r-item-head > span.r-plain { font-style: normal; }
.r-item ul { list-style: disc; padding-left: 1.05em; margin: 0; }
.r-item li { text-align: justify; font-size: 9.5pt; line-height: 1.4; margin-bottom: .1rem; hyphens: auto; }
.r-item li::marker { font-size: .8em; }

@page { size: A4; margin: 0; }
@media print {
  body, .cv-page { background: #fff; }
  .no-print { display: none !important; }
  .resume { box-shadow: none; margin: 0; width: 210mm; padding: 10mm 9.5mm; }
}
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 640px) { .steps.steps-compact { grid-template-columns: repeat(2, 1fr); } }
.prose .step p { font-size: .95rem; }
.prose .steps { margin-bottom: 1rem; }

/* Hero secondary links (free audit, CV) */
.hero-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pill-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: .9rem; font-weight: 600;
  transition: background .2s, color .2s, transform .25s var(--ease);
}
.pill-link:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.pill-meta { font: 500 .7rem/1 var(--mono); padding: .2rem .35rem; border-radius: 5px; background: color-mix(in srgb, currentColor 14%, transparent); }

/* Cards: centre their content vertically so cards in the same row look balanced */
.service, .step, .skill-group, .feature-grid > div, .quote, .timeline li {
  display: flex; flex-direction: column; justify-content: center;
}
.service .icon, .step .step-num { align-self: flex-start; }
.timeline li { display: grid; align-content: center; }
.quote figcaption { margin-top: 0; }

/* Contact form sits in a soft panel, vertically centred next to the intro */
.contact-card .contact-form {
  padding: clamp(1.25rem, 3vw, 2rem); border-radius: 20px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08);
}
.contact-card .contact-form textarea { min-height: 10rem; }
.contact-form-title { font-size: 1.2rem; color: #fff; letter-spacing: -.02em; margin-bottom: .25rem; }
