/* ============================================================
   AJMAL BASHEER — PORTFOLIO
   Design tokens
   ============================================================ */

:root {
  /* surfaces */
  --bg: #08080a;
  --bg-soft: #0d0d10;
  --surface: #121215;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  /* type colors */
  --fg: #f3f1ec;
  --fg-muted: #a3a1a0;
  --fg-dim: #6b6a6e;

  /* brand accents — sampled from the subject's own logotype gradient */
  --accent-a: #c24fc4;   /* magenta-violet */
  --accent-b: #21b6a6;   /* teal */
  --accent-grad: linear-gradient(100deg, var(--accent-a) 0%, #8b6fd0 45%, var(--accent-b) 100%);

  /* type scale */
  --display: "Space Grotesk", "Inter", sans-serif;
  --body: "Inter", sans-serif;
  --mono: "IBM Plex Mono", monospace;

  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

* { 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(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint physical-material background: grain + soft radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(194, 79, 196, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 100%, rgba(33, 182, 166, 0.08), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---- typography ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  flex-shrink: 0;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { margin: 0; }

.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 54ch;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
}

.mono-num {
  font-family: var(--mono);
}

/* ---- buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}

.btn-primary {
  background: var(--fg);
  color: #0a0a0b;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---- signature shape: the "A" apex mask ----
   Ajmal's own brand book repeatedly frames photography inside a
   triangular apex — the first letter of his name. Reused here as the
   site's one recurring visual signature. */

.apex-mask {
  clip-path: polygon(50% 0%, 100% 100%, 62% 100%, 50% 38%, 38% 100%, 0% 100%);
}

.apex-divider {
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
}

.apex-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 100%, 62% 100%, 50% 38%, 38% 100%, 0% 100%);
  filter: grayscale(1) contrast(1.05);
}

/* ---- reveal-on-scroll ---- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* ---- visually-hidden (a11y) ---- */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* focus states */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-b);
  outline-offset: 3px;
  border-radius: 4px;
}
