/* =========================================================
   Hayat Galbete — Home
   Built from Figma "Home" (5619:716), 1728px frame
   ========================================================= */

:root {
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, monospace;

  --ink: #2f2f2f;
  --ink-muted: #615f5f;
  --tab-active: #bac4c7;
  --white: #ffffff;

  --side-gutter: 30px;
  --top-gutter: 36px;
  --sidebar-width: 377px;
  --sidebar-gap: 20.61px;   /* 427.61 (gallery x) - 30 - 377 */

  /* expand animation */
  --ease: cubic-bezier(0.33, 0, 0.15, 1);
  --duration: 700ms;
}

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

html {
  scroll-behavior: smooth;
  /* The solid colour is what shows when the page is pulled past its top/bottom edge.
     main.js swaps it to the footer colour near the bottom. */
  background-color: #e2e6e6;
  background-image: linear-gradient(178.42deg, #e2e6e6 69.789%, #5b787f 122.99%);
}

html.at-bottom {
  background-color: #353a3b;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

p,
ul,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img,
video {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Page layout ---------- */

.page {
  display: flex;
  align-items: flex-start;
  gap: var(--sidebar-gap);
  padding: var(--top-gutter) var(--side-gutter) 0;
}

/* ---------- Sidebar (fixed menu) ---------- */

.sidebar {
  position: sticky;
  top: var(--top-gutter);
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 35px;
  /* with every section open the menu can be taller than the screen: let it scroll on its own */
  max-height: calc(100vh - var(--top-gutter));
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 36px;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* Card grows with its content: closed 286.39px, open 497.49px (Figma "open" frame) */
.intro-card {
  position: relative;
  width: 100%;
  padding: 8.644px 0 7.1px;
}

/* ---- Card outline ---- */

.intro-card__shape {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 376.878px;
  pointer-events: none;
}

.intro-card__shape > span {
  position: absolute;
  display: block;
  background: var(--white);
}

.shape-tab {
  left: 84.149px;
  top: 0;
  width: 208.58px;
  height: 59.065px;
  border-radius: 6px;
}

.shape-neck {
  left: 170.915px;
  top: 59.065px;
  width: 35.048px;
  height: 13.03px;
}

.shape-body {
  left: 0;
  right: 0;
  top: 72.095px;
  bottom: 39.069px;
  border-radius: 6px;
}

.shape-foot {
  left: 106.962px;
  bottom: 0;
  width: 163.026px;
  height: 39.069px;
  border-radius: 0 0 6px 6px;
}

/* 6px concave corners where the tabs meet the body */
.intro-card__shape > .fillet {
  width: 6px;
  height: 6px;
  background: transparent;
}

.fillet--neck-tl { left: 164.915px; top: 59.065px; background-image: radial-gradient(circle at 0 100%, transparent 5.6px, #fff 6.2px) !important; }
.fillet--neck-tr { left: 205.963px; top: 59.065px; background-image: radial-gradient(circle at 100% 100%, transparent 5.6px, #fff 6.2px) !important; }
.fillet--neck-bl { left: 164.915px; top: 66.095px; background-image: radial-gradient(circle at 0 0, transparent 5.6px, #fff 6.2px) !important; }
.fillet--neck-br { left: 205.963px; top: 66.095px; background-image: radial-gradient(circle at 100% 0, transparent 5.6px, #fff 6.2px) !important; }
.fillet--foot-l  { left: 100.962px; bottom: 33.069px; background-image: radial-gradient(circle at 0 100%, transparent 5.6px, #fff 6.2px) !important; }
.fillet--foot-r  { left: 269.988px; bottom: 33.069px; background-image: radial-gradient(circle at 100% 100%, transparent 5.6px, #fff 6.2px) !important; }

/* ---- Card content ---- */

.intro-card__content {
  position: relative;
  margin-left: calc(50% + 0.94px);
  transform: translateX(-50%);
  width: 336.608px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-card__top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.intro-card__logo {
  position: relative;
  width: 158.873px;
  height: 40.753px;
}

.intro-card__logo img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.13%;
  right: -1.13%;
  width: 102.26%;
  height: 100%;
}

.intro-card__text {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.intro-card__meta {
  margin-top: 12px;
}

/* ---- Shared expand/reveal: grows vertically, content un-blurs as it's revealed.
        Used by "more about me", Experience and Contact. Toggle .is-open on a parent. ---- */

.reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration) var(--ease);
}

.reveal__inner {
  min-height: 0;
  overflow: hidden;
}

.reveal__content {
  /* hidden state: blurred + masked out from the top edge down */
  opacity: 0;
  filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 33.33%, transparent 66.66%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 33.33%, transparent 66.66%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  transition:
    opacity calc(var(--duration) * 0.6) var(--ease),
    filter calc(var(--duration) * 0.6) var(--ease),
    -webkit-mask-position calc(var(--duration) * 0.6) var(--ease),
    mask-position calc(var(--duration) * 0.6) var(--ease);
}

.is-open .reveal {
  grid-template-rows: 1fr;
}

.is-open .reveal__content {
  opacity: 1;
  filter: blur(0);
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  transition-duration: calc(var(--duration) * 1.3);
  transition-delay: calc(var(--duration) * 0.15);
}

/* "More about me" bio text */

.intro-card__bio-text {
  padding-top: 19px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.24;
  color: #676767;
  display: flex;
  flex-direction: column;
  gap: 17.36px; /* one empty line between paragraphs */
}

.intro-card__bio-text em {
  font-style: italic;
}

.intro-card__headline {
  height: 66.52px;
  font-size: 19.886px;
  font-weight: 500;
  line-height: 1.115;
  background-image: linear-gradient(to bottom, #909090, #000000 62.5%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-card__headline .dark {
  color: var(--ink);
}

.intro-card__headline .bold {
  font-weight: 700;
}

.intro-card__meta {
  width: 169.254px;
  display: flex;
  flex-direction: column;
  gap: 4.606px;
}

.intro-card__meta-row {
  display: flex;
  align-items: center;
  gap: 4.606px;
}

.intro-card__sub {
  font-size: 15.315px;
  line-height: 1.075;
  white-space: nowrap;
  background-image: linear-gradient(to bottom, #909090, #2a2a2a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-card__sub--full {
  width: 100%;
  height: 19.192px;
}

.intro-card__nuisance {
  position: relative;
  flex: none;
  width: 67.933px;
  height: 11.873px;
}

.intro-card__nuisance img {
  position: absolute;
  top: -1.67%;
  left: -0.29%;
  width: 100.58%;
  height: 103.34%;
}

.intro-card__more {
  margin-top: 42px;                /* open: 31px */
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5.478px;
  transition: margin-top var(--duration) var(--ease);
}

.intro-card__more-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.663px;
  line-height: 1.075;
  color: #838383;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.intro-card__more img {
  width: 9.519px;
  height: 5.275px;
  transition: transform var(--duration) var(--ease);
}

.intro-card.is-open .intro-card__more {
  margin-top: 31px;
}

.intro-card.is-open .intro-card__more-label {
  color: #4e4e4e;
}

.intro-card.is-open .intro-card__more img {
  transform: scaleY(-1);
}

/* ---------- Hover cursor pill ("View case study" / "Coming soon") ---------- */
/* Figma: "view case study" (5621:3102), "coming soon" (5621:3108) */

[data-cursor] {
  cursor: none;
}

.cursor-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 11px 17px 11px 13px;
  border-radius: 6px;
  background: rgba(186, 196, 199, 0.37);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.051;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  /* centred on the pointer; --x/--y set by main.js */
  transform: translate(var(--x, -100px), var(--y, -100px)) translate(-50%, -50%) scale(0.9);
  transition: opacity 200ms ease, transform 200ms ease;
}

.cursor-pill.is-visible {
  opacity: 1;
  transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(1);
}

/* follow the pointer instantly, only animate the fade/scale */
.cursor-pill.is-moving {
  transition: opacity 200ms ease;
}

/* touch screens have no pointer to follow */
@media (hover: none) {
  .cursor-pill { display: none; }
  [data-cursor] { cursor: pointer; }
}

/* ---------- Bottom progressive blur ---------- */
/* Figma: progressive layer blur from 0 at 86.76% to 10.4 (≈5.2px CSS) at 100% of the height. */

.bottom-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13.24vh;
  z-index: 50;
  pointer-events: none;
}

.bottom-blur span {
  position: absolute;
  inset: 0;
}

/* stacked layers, each stronger and starting lower; combined ≈ 5.2px at the bottom edge */
.bottom-blur span:nth-child(1) {
  -webkit-backdrop-filter: blur(0.65px);
  backdrop-filter: blur(0.65px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
}

.bottom-blur span:nth-child(2) {
  -webkit-backdrop-filter: blur(1.3px);
  backdrop-filter: blur(1.3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 50%);
  mask-image: linear-gradient(to bottom, transparent 25%, #000 50%);
}

.bottom-blur span:nth-child(3) {
  -webkit-backdrop-filter: blur(2.6px);
  backdrop-filter: blur(2.6px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 75%);
  mask-image: linear-gradient(to bottom, transparent 50%, #000 75%);
}

.bottom-blur span:nth-child(4) {
  -webkit-backdrop-filter: blur(4.3px);
  backdrop-filter: blur(4.3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 75%, #000 100%);
}

/* Tabs + details */

.menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.menu__tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu__tab,
.menu__row {
  height: 36px;
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.051;
  color: var(--ink);
  white-space: nowrap;
}

.menu__tab {
  width: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px 11px 13px;
  text-align: center;
}

.menu__tab.is-active {
  background: var(--tab-active);
}

.menu__details {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.menu__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  text-align: left;
}

/* Experience / Contact panels (Figma "experience (open)", "contact (open)") */

.panel {
  background: var(--white);
  border-radius: 6px;
}

.panel .menu__row {
  background: transparent;
}

.panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8.57px;
  height: 8.57px;
  transition: transform var(--duration) var(--ease);
}

.panel__icon img {
  width: 6.048px;
  height: 6.072px;
}

.panel.is-open .panel__icon {
  transform: rotate(-45deg);
}

.panel__body {
  padding: 8px 18px 22px;   /* header bottom 11 + 8 = 19px gap, 22px bottom */
}

.experience {
  display: flex;
  flex-direction: column;
  gap: 23px;
  font-family: var(--font-mono);
  line-height: 1.5;
  text-transform: uppercase;
}

.experience li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.experience__role {
  font-size: 11px;
  letter-spacing: 0.55px;
  color: #444444;
  font-weight: 400;
}

.experience__role p:first-child {
  font-weight: 500;
}

.experience__date {
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #656565;
  text-align: right;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-links span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: #444444;
  white-space: nowrap;
}

.contact-links img {
  width: 13.792px;
  height: 28.211px;
}

/* ---------- Gallery ---------- */

.gallery {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 63px;
}

#works,
#play {
  scroll-margin-top: var(--top-gutter);
}

/* Shared media frame */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar);
  border-radius: 10px;
  overflow: hidden;
}

.media .fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media .abs {
  position: absolute;
  max-width: none;
}

.crop {
  overflow: hidden;
}

.crop > img {
  position: absolute;
  max-width: none;
}

.flip-x {
  transform: scaleX(-1);
}

/* Works: two columns (674 / 575 of 1270.39) */

.works {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.works__col {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.works__col--a {
  width: 53.055%;
}

.works__col--b {
  width: 45.262%;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 13px;   /* Figma: 1.051, rendered on a 13px grid */
  text-transform: uppercase;
  white-space: nowrap;
}

.label__info {
  display: flex;
  gap: 12px;
  color: var(--ink);
}

.label__year {
  color: var(--ink-muted);
}

/* Capsule: two screens centred over the background */

.capsule-screens {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.461%;
  filter: drop-shadow(0 1.313px 0.886px rgba(0, 0, 0, 0.19));
}

.capsule-screens img {
  width: 44.286%;
  aspect-ratio: 298.488 / 192.946;
  object-fit: cover;
}

/* Zine overlay (image rotated 90°, multiply) */

.zine-overlay {
  mix-blend-mode: multiply;
}

.zine-overlay__rot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 153.894%;   /* 615.012 / 399.633 */
  height: 64.980%;   /* 399.633 / 615.012 */
  transform: translate(-50%, -50%) rotate(90deg);
  border-radius: 5px;
  box-shadow: 0 4.304px 31.417px rgba(0, 0, 0, 0.25);
}

/* Play: three columns (401 / 405.71 / 401 of 1270.39) */

.play {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.play__col {
  display: flex;
  flex-direction: column;
}

.play__col--1 {
  width: 31.565%;
  gap: 30px;
}

.play__col--2 {
  width: 31.936%;
  gap: 24px;
}

.play__col--3 {
  width: 31.565%;
  gap: 29px;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 61px;
  height: 509px;
  padding: 50px;
  background-image: linear-gradient(to top, #353a3b 0%, #2f2f2f 68.397%);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__left {
  width: 843px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__copy,
.footer__links span,
.footer__clock {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.footer__copy {
  width: 143px;
  color: #818181;
  white-space: nowrap;
}

.footer__contact {
  width: 379.371px;
  display: flex;
  flex-direction: column;
  gap: 33px;
}

.footer__blurb {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.65px;
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__links span {
  color: #dddddd;
  white-space: nowrap;
}

.footer__links img {
  width: 13.792px;
  height: 28.211px;
}

.footer__clock {
  color: var(--white);
  white-space: nowrap;
}
