/* =========================================================
   Eyad Alhussein — Graphic Designer Portfolio
   Design system: "Order Ticket" — grounded in the designer's
   real print work (trifold menus, rubber stamps, delivery flyers)
   ========================================================= */

:root {
  --ink: #171c1a;
  --ink-soft: #1f2622;
  --ink-line: #333f38;
  --paper: #efeae0;
  --paper-dim: #e4ddc9;
  --paper-line: #d4cbb3;
  --white: #fbfaf6;
  --teal: #57c2ac;
  --teal-deep: #2e8975;
  --paprika: #c1352b;
  --paprika-deep: #8f2620;
  --gold: #c79a3e;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", monospace;

  --wrap: 1180px;
  --edge: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---------- eyebrow / stamp tag ---------- */
.stamp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px 5px 12px;
  border: 1.5px dashed currentColor;
  border-radius: 999px;
  white-space: nowrap;
}
.stamp-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.on-teal { color: var(--teal); }
.on-paprika { color: var(--paprika); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus {
  left: var(--edge);
  top: 12px;
}

/* ---------- focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease,
    padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(23, 28, 26, 0.92);
  backdrop-filter: blur(6px);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: var(--ink-line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand img {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  padding: 8px 18px !important;
  color: var(--teal) !important;
}
.nav-cta:hover { background: var(--teal); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--paper);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--paper);
  align-items: center;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 150px var(--edge) 90px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* faint fold-crease texture, echoing a trifold brochure opened flat */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
      115deg,
      rgba(87, 194, 172, 0.05) 0px,
      rgba(87, 194, 172, 0.05) 1px,
      transparent 1px,
      transparent 220px
    ),
    repeating-linear-gradient(
      65deg,
      rgba(193, 53, 43, 0.045) 0px,
      rgba(193, 53, 43, 0.045) 1px,
      transparent 1px,
      transparent 260px
    );
}

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow { margin-bottom: 26px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--teal);
}

.hero p.lede {
  font-size: 18px;
  max-width: 46ch;
  color: #cfd4cd;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); background: #6cd0ba; }
.btn-ghost {
  border-color: var(--ink-line);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* hero stamp visual */
.hero-stamp {
  position: relative;
  justify-self: center;
  width: min(320px, 80%);
}
.hero-stamp-ring {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-line);
  display: grid;
  place-items: center;
  animation: stamp-drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: 0.15s;
}
@keyframes stamp-drop {
  0% { opacity: 0; transform: scale(1.5) rotate(-18deg); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.hero-stamp-ring img {
  width: 74%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}
.hero-stamp-orbit {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
}
.hero-stamp-orbit svg { width: 100%; height: 100%; }
.hero-stamp-orbit text {
  font-family: var(--font-mono);
  font-size: 8.6px;
  letter-spacing: 0.28em;
  fill: var(--teal);
  text-transform: uppercase;
}

.hero-meta-row {
  max-width: var(--wrap);
  margin: 70px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--ink-line);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93a09a;
}
.hero-meta-row strong {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--paper);
  margin-top: 4px;
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
section { position: relative; }
.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head .stamp-tag { margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 480;
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: #4a5450;
  font-size: 16px;
  max-width: 56ch;
  margin: 0;
}
.on-dark .section-head p { color: #b9c2bc; }

/* =========================================================
   WORK
   ========================================================= */
.work {
  padding: 120px 0 100px;
  background: var(--paper);
}

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

.ticket {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  cursor: pointer;
}
.ticket:hover, .ticket:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -18px rgba(23, 28, 26, 0.35);
}

.ticket-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}
.ticket-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ticket:hover .ticket-figure img { transform: scale(1.05); }

.ticket-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--paper);
  color: var(--paprika);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px dashed var(--paprika);
  transform: rotate(-6deg);
}
.ticket-views {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(23, 28, 26, 0.72);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.ticket-perf {
  height: 14px;
  background-image: radial-gradient(
    circle at 10px 50%,
    var(--paper) 5px,
    transparent 5.5px
  );
  background-size: 20px 14px;
  background-repeat: repeat-x;
  background-color: var(--white);
  border-bottom: 1px dashed var(--paper-line);
  flex: none;
}

.ticket-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.ticket-client {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}
.ticket-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 560;
  margin: 0 0 10px;
  line-height: 1.2;
}
.ticket-desc {
  font-size: 14.5px;
  color: #565f5a;
  margin: 0 0 18px;
  flex: 1;
}
.ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--paper-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: #7b8480;
}
.ticket-tags span:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--paper-line); }

.work-note {
  margin-top: 50px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #7b8480;
  border-top: 1px dashed var(--paper-line);
  padding-top: 20px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.about-ring {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--ink-line);
  display: grid;
  place-items: center;
}
.about-ring img { width: 62%; }
.about-ring svg { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); }
.about-ring text {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 0.3em;
  fill: var(--paprika);
  text-transform: uppercase;
}

.about-copy .stamp-tag { margin-bottom: 22px; }
.about-copy h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.about-copy p {
  color: #c3cac4;
  font-size: 16px;
  max-width: 58ch;
  margin: 0 0 18px;
}
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 28px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
}
.about-facts div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 560;
}
.about-facts div span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #93a09a;
}

/* =========================================================
   SERVICES — menu list
   ========================================================= */
.services { background: var(--paper); padding: 120px 0; }
.menu-list { border-top: 1px solid var(--ink); }
.menu-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--paper-line);
  position: relative;
}
.menu-row::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--paprika);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.menu-row:hover::before { transform: scaleX(1); }
.menu-no {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paprika);
  letter-spacing: 0.04em;
}
.menu-copy h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 560;
  margin: 0 0 8px;
}
.menu-copy p {
  margin: 0;
  color: #565f5a;
  font-size: 14.5px;
  max-width: 62ch;
}
.menu-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  border: 1px dashed var(--teal-deep);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  align-self: start;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 130px 0 70px;
  text-align: center;
}
.contact .stamp-tag { margin-bottom: 26px; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  max-width: 16ch;
  margin: 0 auto 22px;
  letter-spacing: -0.01em;
}
.contact p.lede {
  max-width: 50ch;
  margin: 0 auto 40px;
  color: #c3cac4;
  font-size: 17px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.contact-note {
  max-width: 560px;
  margin: 0 auto 60px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7f8b85;
  border: 1px dashed var(--ink-line);
  border-radius: 10px;
  padding: 14px 18px;
}
.contact-note strong { color: var(--teal); }

.site-footer {
  border-top: 1px solid var(--ink-line);
  padding-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93a09a;
}
.footer-brand img { width: 26px; height: 26px; }
.footer-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #93a09a;
}
.footer-links a:hover { color: var(--teal); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 16, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px var(--edge);
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 1000px; width: 100%; }
.lightbox-frame {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-soft);
}
.lightbox-frame img { width: 100%; display: block; }
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 10px;
}
.lightbox-close,
.lightbox-nav button {
  background: none;
  border: 1.5px solid var(--ink-line);
  color: var(--paper);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-nav button:hover { border-color: var(--teal); color: var(--teal); }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(23, 28, 26, 0.7);
}
.lightbox-nav { display: flex; gap: 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-stamp { justify-self: start; margin-top: 20px; width: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; margin-bottom: 10px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px var(--edge) 26px;
    gap: 16px;
  }
  .hero { padding-top: 130px; }
  .hero-meta-row { margin-top: 50px; gap: 26px; }
  .work-grid { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .menu-row { grid-template-columns: 40px 1fr; }
  .menu-tag { grid-column: 2; }
}
