@font-face {
  font-family: Almarai;
  font-weight: 300;
  src: url("assets/Almarai-Light.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Almarai;
  font-weight: 700;
  src: url("assets/Almarai-Bold.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #070705;
  --ink: #f7f6f3;
  --muted: #c7c8ca;
  --accent: #f16c4f;
  --line: #272725;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 2; padding: 1rem; background: var(--background); }
.skip:focus { top: 1rem; }

.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.2vw, 2.2rem) clamp(1rem, 4vw, 4rem);
}
.header img { object-fit: contain; }
.header nav { display: flex; gap: clamp(.8rem, 3vw, 3rem); }
.header nav a, .eyebrow {
  font-size: clamp(.7rem, 1.15vw, 1rem);
  letter-spacing: .16em;
  text-transform: uppercase;
}


.hero {
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 35%, #292526, #151416 49%, #090909 83%),
    #101011;
  min-height: clamp(650px, 56.25vw, 980px);
}
.hero-frame {
  container-type: size;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0;
  text-align: center;
}
.portrait-clip { position: absolute; }
.portrait {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: none;
  height: 100%;
  clip-path: url(#seated-silhouette);
}
.hero-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #07070552, transparent 23%, transparent 52%, #07070550 75%, #070705);
  pointer-events: none;
}
.role {
  position: absolute;
  z-index: -3;
  inset: 40% 0 auto;
  color: #bd7958;
  font: 300 clamp(1.6rem, 3.25vw, 3.25rem)/1 Almarai, sans-serif;
  pointer-events: none;
}
.role span {
  position: absolute;
  left: calc(50% - 28.1cqh);
  transform: translateX(-100%);
  white-space: nowrap;
}
.role span + span {
  left: calc(50% + 32.4cqh);
  transform: none;
}
h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5.35vw, 5.9rem);
  font-family: Almarai, sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.05;
  text-transform: uppercase;
}
.hero-title {
  margin: .6rem 0 0;
  color: var(--muted);
  font: 300 clamp(.95rem, 1.5vw, 1.35rem)/1.3 Almarai, sans-serif;
}
.hero-link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: 1.35rem;
  margin-bottom: clamp(4.25rem, 6.3vw, 7rem);
  color: #fa8c45;
  font-size: 1.5rem;
  line-height: 1;
}
.hero-link:hover { color: var(--ink); }

.section, footer { width: min(90%, 1260px); margin: auto; border-top: 1px solid var(--line); }
.section { padding: clamp(3rem, 6vw, 6rem) 0; scroll-margin-top: 1rem; }
.eyebrow { color: var(--accent); margin: 0 0 .9rem; }
h2 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: 0 0 2rem; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.projects a { display: block; }
.projects img { width: 100%; aspect-ratio: 1.24; object-fit: cover; }
.projects h3 { margin: .9rem 0 .3rem; }
.projects p, .text-section > p:last-child { color: var(--muted); margin: 0; }
.text-section > p:last-child { max-width: 46ch; line-height: 1.7; font-size: 1.1rem; }
.email { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; overflow-wrap: anywhere; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; color: var(--muted); }


@media (max-width: 850px) {
  .portrait { top: 13%; height: min(85%, 84vw); }
  .role { top: calc(13% + min(34cqh, 33.6vw)); font-size: clamp(.9rem, 4vw, 2rem); }
  .role span { left: calc(50% - min(23.885cqh, 23.604vw)); }
  .role span + span { left: calc(50% + min(27.54cqh, 27.216vw)); }
}
@media (max-width: 650px) {
  .header { gap: .65rem; }
  .header img { width: 43px; height: auto; }
  .header nav { gap: clamp(.35rem, 2vw, .9rem); flex-wrap: wrap; justify-content: flex-end; }
  .header nav a { font-size: .64rem; letter-spacing: .06em; }
  .hero { min-height: 590px; }
  h1 { font-size: clamp(1.65rem, 6.3vw, 2.75rem); letter-spacing: .075em; }
  .projects { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.about-page {
  background: radial-gradient(ellipse at 68% 35%, #211a1b, #111012 58%, #0d0c0e);
}
.about-page .header { position: relative; }
.about-page [aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .7em;
}
.about-layout {
  width: min(87%, 1450px);
  margin: auto;
  padding: clamp(1rem, 3vw, 3rem) 0 clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  font-family: Almarai, sans-serif;
}
.about-copy { position: relative; z-index: 1; }
.about-copy h1 {
  font-size: clamp(3.2rem, 6.7vw, 7.2rem);
  letter-spacing: -.04em;
  line-height: .94;
  text-transform: none;
}
.about-title {
  color: var(--accent);
  font-size: clamp(1.25rem, 2.3vw, 2.3rem);
  margin: .85rem 0 1.55rem;
}
.about-bio { max-width: 53ch; font-size: clamp(1rem, 1.44vw, 1.5rem); line-height: 1.45; }
.about-bio p { margin: 0 0 1rem; }
.about-tools-heading {
  margin: 1.45rem 0 .5rem;
  color: var(--accent);
  font-size: clamp(.9rem, 1.2vw, 1.15rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.about-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  max-width: 35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-tools li {
  display: grid;
  place-items: center;
  padding: .5rem .15rem;
  border: 1px solid #525053;
  border-radius: .45rem;
  background: #141315;
  color: var(--ink);
  font-size: clamp(.66rem, 1.25vw, .9rem);
  line-height: 1.25;
  text-align: center;
}
.about-tools li:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #141315;
}
.about-work {
  display: inline-block;
  margin-top: 1.45rem;
  color: var(--accent);
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-work:hover { color: var(--ink); }
.about-portrait {
  width: 100%;
  height: auto;
  mask-image: radial-gradient(ellipse at 52% 43%, #000 50%, transparent 76%);
}
@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { max-width: 29rem; justify-self: center; }
}
