/* ---------------------------------------------------------
   Zeyad Saeed — Portfolio
   Design concept: a general ledger for a career change.
   Ledger paper + trial-balance rhythm, dashboard screenshots
   as the "evidence" pinned into the file.
--------------------------------------------------------- */

:root{
  --ink:        #F3EEDC;
  --ink-soft:   #E4DCC5;
  --paper:      #0E1712;
  --paper-dim:  #172119;
  --line:       #2B362E;
  --line-soft:  #232D26;
  --emerald:    #33AC7D;
  --emerald-deep:#7FE3B7;
  --brass:      #D8AE45;
  --text:       #E7E2D1;
  --text-soft:  #9C9884;
  --text-inv:   #12201A;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --wrap: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a{ color: inherit; }

::selection{ background: var(--emerald); color: var(--text-inv); }

:focus-visible{
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.display{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

/* ---------- ledger rule top strip ---------- */
.ledger-rule.top{
  height: 6px;
  background: repeating-linear-gradient(
    90deg, var(--emerald) 0 34px, var(--brass) 34px 40px
  );
}

/* ---------- header ---------- */
.site-header{
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,23,18,0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.mark{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 5px 9px;
}
.site-nav{ display: flex; gap: 28px; }
.site-nav a{
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-soft);
  position: relative;
  padding-bottom: 3px;
}
.site-nav a:hover{ color: var(--emerald-deep); }
.site-nav a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--emerald);
  transition: right 0.2s ease;
}
.site-nav a:hover::after{ right: 0; }

/* ---------- hero ---------- */
.hero{
  padding: 96px 28px 56px;
  border-bottom: 1px solid var(--line);
}
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.eyebrow .arrow{ color: var(--emerald); }
.hero h1.display{
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.98;
}
.hero-role{
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--emerald-deep);
  margin: 18px 0 6px;
}
.hero-lede{
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
  margin: 14px 0 34px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }
.btn{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-primary{ background: var(--ink); color: var(--text-inv); }
.btn-primary:hover{ background: var(--emerald-deep); border-color: var(--emerald-deep); transform: translateY(-1px); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--text-inv); transform: translateY(-1px); }

/* ---------- trial balance strip ---------- */
.ledger-strip{
  padding: 40px 28px;
  border-bottom: 1px solid var(--line);
}
.ledger-strip-head{
  display: grid;
  grid-template-columns: 48px 1fr 140px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}
.ledger-lines{ list-style: none; margin: 0; padding: 0; }
.ledger-lines li{
  display: grid;
  grid-template-columns: 48px 1fr auto 140px;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.ledger-lines li:last-child{ border-bottom: none; }
.ln{ font-family: var(--font-mono); color: var(--brass); font-size: 13px; }
.acct{ color: var(--text); }
.leader{
  border-bottom: 1px dotted var(--line);
  height: 1px;
  transform: translateY(-4px);
}
.fig{
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--emerald-deep);
  text-align: right;
  white-space: nowrap;
}

/* ---------- section scaffolding ---------- */
section{ padding: 64px 28px; }
.section-head{
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 30px;
}
.section-no{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.section-head h2.display{ font-size: clamp(28px, 4vw, 38px); }

/* ---------- about ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about-text{ font-size: 17px; color: var(--text); max-width: 60ch; }
.about-text strong{ color: var(--emerald-deep); }
.about-facts{ margin: 0; display: grid; gap: 16px; }
.about-facts > div{ border-bottom: 1px dashed var(--line); padding-bottom: 12px; }
.about-facts dt{
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.about-facts dd{ margin: 0; font-size: 15px; }

/* ---------- skills ---------- */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.skill-card{
  background: var(--paper);
  padding: 22px 20px;
}
.skill-card h3{
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-deep);
  margin: 0 0 14px;
}
.chips{ display: flex; flex-wrap: wrap; gap: 7px; }
.chips span{
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 9px;
  color: var(--text-soft);
  background: var(--paper-dim);
}

/* ---------- work / case studies ---------- */
.case{
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.case-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.case-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
  letter-spacing: 0.08em;
}
.case-head h3{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 27px);
  color: var(--ink);
  margin: 6px 0 10px;
}
.case-dek{
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0;
}
.case-tools{ display: flex; gap: 8px; flex-wrap: wrap; }
.case-tools span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 5px 9px;
  color: var(--ink);
  white-space: nowrap;
  height: fit-content;
}

.gallery-frame{
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-dim);
  box-shadow: 0 18px 34px -16px rgba(0,0,0,0.55);
  height: 560px;
}
.gallery-frame img{
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery-frame img[data-active]{ display: block; }

.gallery-tabs{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 12px;
}
.gallery-tabs button{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 7px 12px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.gallery-tabs button:hover{ border-color: var(--emerald); color: var(--emerald-deep); }
.gallery-tabs button.active{
  background: var(--ink); border-color: var(--ink); color: var(--text-inv);
}

.case-notes{
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 74ch;
}
.case-notes li{
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text);
}
.case-notes li::before{
  content: "—";
  position: absolute; left: 0; color: var(--emerald);
}

/* ---------- contact ---------- */
.contact{ border-top: 1px solid var(--line); }
.contact-lede{ color: var(--text-soft); font-size: 17px; max-width: 50ch; margin-top: -8px; }
.contact-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 24px;
}
.contact-item{
  background: var(--paper);
  padding: 22px 18px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.15s ease;
}
.contact-item:hover{ background: var(--paper-dim); }
.contact-label{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.contact-value{ font-size: 14.5px; color: var(--ink); word-break: break-word; }

/* ---------- footer ---------- */
.site-footer{
  display: flex; justify-content: space-between;
  padding: 28px 28px 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-frame{ height: 400px; }
}
@media (max-width: 560px){
  .site-nav{ gap: 16px; }
  .site-nav a{ font-size: 11.5px; }
  .hero{ padding-top: 72px; }
  .ledger-strip-head{ grid-template-columns: 34px 1fr 90px; }
  .ledger-lines li{ grid-template-columns: 34px 1fr auto 90px; font-size: 13.5px; }
  .skills-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .gallery-frame{ height: 260px; }
}
