/* Atelier CV: warm, editorial, arched. Change the colours here. */
:root {
  --paper: #F4EFE7; --paper2: #EBE3D6; --ink: #221E1A; --ink2: #5A524A; --mute: #91877C; --line: #DCD1C1;
  --terra: #B8583A; --olive: #6E7350; --sand: #E6D9C6;
  --serif: "Fraunces", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
}
html[dir="rtl"] { --serif: "Noto Naskh Arabic", "Fraunces", serif; --sans: "IBM Plex Sans Arabic", "Manrope", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); overflow-x: clip; max-width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--terra); }
html[dir="rtl"] em { font-style: normal; font-weight: 700; }
.kick { font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin: 0 0 18px; }
html[dir="rtl"] .kick { letter-spacing: 0; font-size: 14px; }
h2 { font: 300 clamp(40px, 5.4vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 40px; }
html[dir="rtl"] h2 { font-weight: 700; letter-spacing: 0; line-height: 1.4; font-size: clamp(32px, 4.4vw, 58px); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; transition: background .25s, color .25s; border: 0; cursor: pointer; }
.btn:hover { background: var(--terra); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* header */
.top { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 48px); mix-blend-mode: normal; }
.top::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--paper) 30%, rgba(244, 239, 231, 0)); z-index: -1; }
.mono { display: grid; place-items: center; width: 46px; height: 54px; border-radius: 23px 23px 6px 6px; background: var(--ink); color: var(--paper); text-decoration: none; font: 500 15px/1 var(--serif); letter-spacing: .04em; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink2); position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 1px; background: var(--terra); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); }
.acts { display: flex; gap: 10px; align-items: center; }
.lang { border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 10px; }
html[dir="rtl"] .lang { font-family: "Manrope", sans-serif; }

/* hero: the name parts around an arch that opens as you scroll */
.hero { height: 240vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.name { position: absolute; inset: 0; margin: 0; display: grid; align-content: center; font: 300 clamp(80px, 17vw, 270px)/.86 var(--serif); letter-spacing: -.045em; pointer-events: none; z-index: 2; }
html[dir="rtl"] .name { letter-spacing: 0; font-weight: 500; line-height: 1.25; font-size: clamp(70px, 14vw, 210px); }
.name .n1 { justify-self: start; padding-inline-start: 4vw; will-change: transform; }
.name .n2 { justify-self: end; padding-inline-end: 4vw; font-style: italic; color: var(--terra); will-change: transform; }
html[dir="rtl"] .name .n2 { font-style: normal; }
.arch { position: relative; z-index: 1; margin: 0; width: clamp(240px, 26vw, 380px); aspect-ratio: 3 / 4.2; border-radius: 999px 999px 18px 18px; overflow: hidden; background: linear-gradient(180deg, var(--sand), #D9C6AC); will-change: transform; box-shadow: 0 50px 80px -50px rgba(60, 40, 20, .6); }
.arch img { position: absolute; left: 50%; top: 9%; width: 112%; height: auto; max-width: none; translate: -50% 0; transform-origin: top center; will-change: transform; }
.role { position: absolute; z-index: 3; inset-inline-start: clamp(16px, 4vw, 48px); bottom: 6vh; margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.est { position: absolute; z-index: 3; inset-inline-end: clamp(16px, 4vw, 48px); bottom: 6vh; margin: 0; font: italic 300 18px/1 var(--serif); color: var(--ink2); }
html[dir="rtl"] .est { font-style: normal; }
.scroll { position: absolute; z-index: 3; left: 50%; bottom: 4vh; translate: -50% 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.scroll::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: var(--ink2); animation: drop 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* about: words light up as you read */
.about { padding: clamp(80px, 12vw, 170px) 0; }
.big { font: 300 clamp(30px, 4.2vw, 60px)/1.18 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 18em; }
html[dir="rtl"] .big { font-weight: 500; letter-spacing: 0; line-height: 1.7; font-size: clamp(26px, 3.4vw, 46px); }
.big span { opacity: .14; transition: opacity .25s; }
.big span.lit { opacity: 1; }
.small-about { margin: 40px 0 0; max-width: 34em; color: var(--ink2); font-size: 18px; }

/* work: a horizontal gallery while the page is pinned */
.work { position: relative; }
.work-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.work-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.work-head h2 { margin: 0; }
.hint { font-size: 13px; color: var(--mute); }
.rail { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 40px clamp(20px, 6vw, 90px) 26px; width: max-content; will-change: transform; }
.panel { position: relative; width: clamp(280px, 38vw, 560px); flex: none; }
.panel .shot { position: relative; aspect-ratio: 4 / 3; border-radius: 220px 220px 14px 14px; overflow: hidden; background: var(--sand); clip-path: inset(100% 0 0 0 round 220px 220px 14px 14px); }
.panel:nth-child(even) .shot { border-radius: 14px; clip-path: inset(100% 0 0 0 round 14px); aspect-ratio: 4 / 3.4; }
.panel .shot img { position: absolute; inset: -6% -10%; width: 120%; height: 112%; object-fit: cover; will-change: transform; }
.panel .meta { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 16px; align-items: baseline; margin-top: 18px; }
.panel .no { font: italic 300 22px/1 var(--serif); color: var(--terra); }
.panel h3 { margin: 0; font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
html[dir="rtl"] .panel h3 { font-weight: 700; }
.panel .yr { font-size: 13px; color: var(--mute); }
.panel .tag { grid-column: 2 / -1; font-size: 13px; font-weight: 600; color: var(--ink2); letter-spacing: .02em; }
.panel p { grid-column: 2 / -1; margin: 6px 0 0; color: var(--ink2); font-size: 15px; max-width: 32em; }
.progress { width: min(1240px, 100% - 40px); margin: 6px auto 0; height: 2px; background: var(--line); }
.progress i { display: block; height: 100%; width: 100%; background: var(--terra); transform-origin: left; transform: scaleX(0); }
html[dir="rtl"] .progress i { transform-origin: right; }

/* numbers */
.nums { padding: clamp(70px, 9vw, 130px) 0; border-block: 1px solid var(--line); background: var(--paper2); }
.num-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.num b { display: block; font: 300 clamp(64px, 7vw, 110px)/1 var(--serif); letter-spacing: -.03em; direction: ltr; unicode-bidi: isolate; text-align: start; }
.num b::after { content: ""; display: block; width: 46px; height: 2px; margin: 18px 0 14px; background: var(--terra); }
.num span { color: var(--ink2); font-size: 15px; }

/* path */
.path { padding: clamp(80px, 11vw, 160px) 0; }
.path-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.path-side { position: sticky; top: 110px; }
.path-side h3 { margin: 30px 0 12px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
html[dir="rtl"] .path-side h3 { letter-spacing: 0; font-size: 14px; }
.edu-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.edu-item b { display: block; font: 500 19px/1.3 var(--serif); }
.edu-item span { font-size: 14px; color: var(--ink2); }
.lang-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 8px 0; font-size: 15px; }
.lang-row i { grid-column: 1 / -1; height: 2px; background: var(--line); }
.lang-row i b { display: block; height: 100%; background: var(--olive); transform-origin: left; }
html[dir="rtl"] .lang-row i b { transform-origin: right; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--line); }
.job button { width: 100%; display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; align-items: baseline; padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: start; }
.job .yrs { font-size: 13px; color: var(--mute); direction: ltr; unicode-bidi: isolate; }
.job h4 { margin: 0; font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--serif); }
html[dir="rtl"] .job h4 { font-weight: 700; line-height: 1.5; }
.job h4 small { display: block; margin-top: 6px; font: 500 14px/1.3 var(--sans); color: var(--ink2); }
.job .plus { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: rotate .35s, background .3s; }
.job.open .plus { rotate: 45deg; background: var(--terra); color: #fff; box-shadow: none; }
.job .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1); }
.job.open .body { grid-template-rows: 1fr; }
.job .body > div { overflow: hidden; }
.job .body p { margin: 0 0 26px; padding-inline-start: 148px; color: var(--ink2); max-width: 46em; }
.now-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); margin-inline-start: 10px; vertical-align: middle; box-shadow: 0 0 0 5px rgba(110, 115, 80, .18); }

/* palette */
.palette { padding: 0 0 clamp(90px, 12vw, 170px); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sw { border-radius: 12px; background: #fff; padding: 8px 8px 14px; box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(60, 40, 20, .5); transform: translateY(0); transition: transform .3s; }
.sw:hover { transform: translateY(-6px) rotate(-1.5deg); }
.sw i { display: block; aspect-ratio: 1 / .8; border-radius: 7px; background: var(--c); position: relative; overflow: hidden; }
.sw i::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .28), transparent 55%), repeating-linear-gradient(115deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 6px); }
.sw b { display: block; margin: 10px 6px 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.sw small { display: block; margin: 2px 6px 0; font-size: 11px; color: var(--mute); letter-spacing: .08em; direction: ltr; text-align: start; }

/* contact */
.contact { padding: clamp(90px, 12vw, 170px) 0 30px; background: var(--ink); color: var(--paper); }
.contact .kick { color: #E69A7E; }
.contact h2 em { color: #E69A7E; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 50px; align-items: center; }
.ct-text { color: rgba(244, 239, 231, .72); max-width: 32em; margin: -16px 0 28px; }
.links { display: grid; gap: 4px; margin-bottom: 30px; }
.c-link { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(244, 239, 231, .14); text-decoration: none; transition: padding .3s; }
.c-link:hover { padding-inline-start: 10px; }
.c-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px 22px 6px 6px; background: rgba(244, 239, 231, .1); font: 600 14px/1 var(--sans); }
.c-tx small { display: block; font-size: 12px; color: rgba(244, 239, 231, .55); }
.contact .row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn { background: var(--paper); color: var(--ink); }
.contact .btn:hover { background: #E69A7E; }
.contact .btn-line { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.qr-card { justify-self: end; width: min(100%, 300px); padding: 22px 22px 16px; border-radius: 160px 160px 18px 18px; background: var(--paper); color: var(--ink); text-align: center; }
.qr { width: 72%; margin: 40px auto 14px; }
.qr svg { width: 100%; height: auto; display: block; }
.qr-card p { margin: 0; font-size: 13px; color: var(--ink2); }
.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 90px; padding-top: 22px; border-top: 1px solid rgba(244, 239, 231, .14); font-size: 13px; color: rgba(244, 239, 231, .55); }

/* reveal */
.rv { opacity: 0; translate: 0 30px; transition: opacity .9s, translate .9s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; translate: 0 0; }

/* phones and tablets */
@media (max-width: 900px) {
  .nav { display: none; }
  .acts { margin-inline-start: auto; }
  .path-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .path-side { position: static; }
  .qr-card { justify-self: start; }
  .job button { grid-template-columns: minmax(0, 1fr) auto; }
  .job .yrs { grid-column: 1 / -1; }
  .job .body p { padding-inline-start: 0; }
}
@media (max-width: 600px) {
  .hero { height: 200vh; }
  .arch { width: 58vw; }
  .name { align-content: space-between; padding: 13vh 0 20vh; font-size: 21vw; }
  html[dir="rtl"] .name { font-size: 18vw; }
  .name .n1, .name .n2 { padding-inline: 5vw; }
  .role, .est { bottom: 11vh; font-size: 13px; }
  .est { display: none; }
  .panel { width: 78vw; }
  .acts .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; translate: 0 0; } .big span { opacity: 1; } .panel .shot { clip-path: none !important; } }
