/* Rezwan Sadeqi — portfolio
   Design: light theme, Inter, single-corner notched edges.
   Two-colour system: Ivey green for headings and text accents,
   Western purple for every rule, border and accent line. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #eeeef0;
  --text: #14161b;
  --body-text: #33363c;
  --muted: #6b6f78;

  /* Ivey green */
  --accent: #034638;
  --accent-dim: rgba(3, 70, 56, .09);
  --heading: var(--accent);

  /* Western purple */
  --line: #4f2683;
  --line-dim: rgba(79, 38, 131, .12);
  --line-soft: rgba(79, 38, 131, .16);
  --border: var(--line-soft);

  --font: 'Inter', system-ui, sans-serif;
  --page-max: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f0eee9;
  font-family: var(--font);
  color: var(--text);
}

a { color: inherit; }

/* every heading carries the Ivey green */
h1, h2, h3, h4, h5, h6 { color: var(--heading); }

.page {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  max-width: var(--page-max);
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* placeholder imagery block */
.stripe-ph {
  background: repeating-linear-gradient(135deg, #c9c6c6 0 2px, #e0dede 2px 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6f78;
  font: 11px ui-monospace, Menlo, monospace;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px;
}

/* single-corner notch, used instead of border-radius */
.notch-lg  { clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px); }
.notch-md  { clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
.notch-sm  { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.notch-xs  { clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }
.notch-btn { clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  margin-right: auto;
  text-decoration: none;
  color: var(--text);
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
}
.nav-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.nav-back:hover { color: var(--text); }

/* hero / about */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 72px 32px 56px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.hero-copy h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 620px;
}
.hero-copy p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 12px;
}
.hero-copy p:last-child { margin: 0; }
.hero-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* generic section */
.section {
  padding: 56px 32px;
  border-top: 1px solid var(--border);
}
.eyebrow {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* experience timeline */
.timeline {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}
.timeline-list {
  position: relative;
  padding-left: 28px;
  list-style: none;
  margin: 0;
}
.timeline-list::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-soft);
}
.timeline-item {
  position: relative;
  padding-bottom: 28px;
}
.timeline-btn {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
  position: relative;
}
.timeline-btn .dot {
  position: absolute;
  left: -27px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  transition: border-color .15s;
}
.timeline-btn:hover .dot { border-color: var(--line); }
.timeline-item.is-active .timeline-btn .dot {
  left: -28px;
  top: 1px;
  width: 18px;
  height: 18px;
  border: none;
  background: var(--line);
  box-shadow: 0 0 0 4px var(--line-dim);
}
.timeline-btn h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
}
.timeline-btn .meta {
  font-size: 12px;
  margin-top: 4px;
  color: var(--muted);
}

/* experience card stack */
.exp-stack {
  display: grid;
  padding: 0 28px 28px 0;
}
.exp-card {
  grid-area: 1 / 1;
  border: 1px solid var(--border);
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(20, 20, 25, .08);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, box-shadow .5s ease;
  pointer-events: none;
}
.exp-card.stack-0 {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 40;
  pointer-events: auto;
  box-shadow: 0 20px 40px rgba(20, 20, 25, .12);
}
.exp-card.stack-1 {
  transform: translate(14px, 16px) scale(.97);
  opacity: .55;
  z-index: 30;
}
.exp-card.stack-2 {
  transform: translate(26px, 30px) scale(.94);
  opacity: .3;
  z-index: 20;
}
.exp-card.stack-3 {
  transform: translate(36px, 42px) scale(.91);
  opacity: .14;
  z-index: 10;
}
.exp-card.stack-back {
  transform: translate(44px, 52px) scale(.89);
  opacity: 0;
  z-index: 0;
}
.exp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  border-style: dashed;
  background: var(--surface-2);
}
.exp-placeholder p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.exp-card .company {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.exp-card h3 {
  margin: 6px 0 4px;
  font-size: 20px;
  font-weight: 700;
}
.exp-card .dates {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.exp-card .summary {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-text);
  margin: 0 0 18px;
}
.achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.achievements li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--body-text);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.achievements li::before {
  content: "▸";
  color: var(--accent);
  flex: none;
}

/* work grid */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.work-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  transition: border-color .15s, background .15s;
}
.work-card:hover {
  border-color: var(--line);
  background: var(--surface-2);
}
.work-card .cover { aspect-ratio: 16 / 10; }
.tags {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.tag {
  font-size: 11px;
  padding: 3px 8px;
}
.tag-accent { color: var(--accent); background: var(--accent-dim); }
.tag-muted { color: var(--muted); background: var(--surface-2); }
.work-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
.work-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
}
.site-footer .copyright {
  font-size: 12px;
  color: var(--muted);
}
.site-footer a {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

/* case study page */
.case-header { padding: 56px 32px 32px; }
.case-header h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0 0 32px;
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
}
.case-meta .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-meta .value { font-size: 14px; }

.case-hero {
  aspect-ratio: 16 / 6;
  margin: 0 32px;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 48px;
}
.case-col {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.case-col:last-child { border-right: none; }
.case-col .label {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.case-col p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.case-footer { margin-top: 8px; }

/* responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; }
  .timeline { grid-template-columns: 1fr; }
  .exp-stack { padding: 0 18px 18px 0; }
  .exp-card.stack-1 { transform: translate(8px, 10px) scale(.97); }
  .exp-card.stack-2 { transform: translate(15px, 18px) scale(.94); }
  .exp-card.stack-3 { transform: translate(21px, 25px) scale(.91); }
  .exp-card.stack-back { transform: translate(26px, 31px) scale(.89); }
  .work-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: 1fr; }
  .case-col { border-right: none; border-top: 1px solid var(--border); }
  .case-col:first-child { border-top: none; }
}
@media (max-width: 560px) {
  .site-nav { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .hero, .section, .case-header { padding-left: 20px; padding-right: 20px; }
  .case-hero { margin: 0 20px; }
  .hero-copy h1 { font-size: 38px; }
  .case-header h1 { font-size: 32px; }
  .site-footer { padding: 20px; }
}

/* hero contact links */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}
.contact-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 2px;
}
.contact-links a:hover { border-bottom-color: var(--line); }

/* hero stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  max-width: 620px;
}
.stat { border-top: 2px solid var(--line); padding-top: 10px; }
.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 4px;
}

/* education + beyond cards */
.edu-grid,
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.edu-card,
.fact-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
}
.edu-card h3,
.fact-card h3 {
  margin: 6px 0 4px;
  font-size: 20px;
  font-weight: 700;
}
.edu-card .company,
.fact-card .company {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.edu-card .dates,
.fact-card .dates {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* toolkit chips */
.toolkit { margin-top: 32px; }
.toolkit .label {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 12px;
  padding: 5px 12px;
  color: var(--body-text);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

@media (max-width: 860px) {
  .edu-grid,
  .fact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-links { gap: 14px; }
}
@media (max-width: 620px) {
  .site-nav { row-gap: 12px; column-gap: 18px; }
  .nav-brand { flex-basis: 100%; margin-right: 0; }
}
