/* ==========================================================================
   Ahdirat Studio — "Glass" design
   ========================================================================== */

:root {
  --deep: #050816;
  --ink: #0a0d18;
  --black: #000;
  --white: #fff;
  --paper: #f5f5f2;
  --text-d: #0c0d12;
  --mute-d: #a7adc0;
  --mute-l: #5f6372;
  --line-d: rgba(255, 255, 255, 0.14);
  --line-l: #e4e4df;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-line: rgba(255, 255, 255, 0.22);
  --blue: #193dd1;
  --blue-2: #4f6dff;
  --wa: #25d366;

  --pad: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 120px);
  --gap: clamp(12px, 1.4vw, 18px);
  --r: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--white);
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(25, 61, 209, 0.4), transparent 60%),
    radial-gradient(50vw 50vw at -10% 60%, rgba(25, 61, 209, 0.22), transparent 60%),
    var(--deep);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--blue); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--text-d); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page {
  max-width: 1320px;
  margin: clamp(0px, 3vw, 40px) auto;
  overflow: hidden;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
@media (max-width: 700px) { .page { margin: 0; border-radius: 0; } }

.section { padding: var(--sec) var(--pad); }

/* ---------- Shared pieces ---------- */

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1;
  background: var(--white); color: var(--text-d);
}
.tag--glass { background: var(--glass); color: var(--white); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tag--blue { background: #eef1ff; color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--white { background: var(--white); color: var(--text-d); }
.btn--white:hover { background: var(--blue); color: var(--white); }
.btn--glass { color: var(--white); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.5); }
.btn--outline:hover { background: var(--white); color: var(--text-d); }
.btn--wa { background: var(--wa); color: #06260f; }
.btn--wa:hover { background: #1fbe5b; }

.eyebrow { display: block; font-size: 13px; color: var(--mute-d); margin-bottom: 16px; }
.light .eyebrow { color: var(--mute-l); }
.h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; }
.light .h2 { text-transform: none; font-weight: 600; letter-spacing: -0.035em; }

.head { display: grid; gap: 20px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .head { grid-template-columns: 1.15fr 1fr; gap: 48px; } }
.head__lead { font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.5; color: var(--mute-d); max-width: 44ch; }
.light .head__lead { color: var(--mute-l); }
@media (min-width: 900px) { .head__lead { justify-self: end; } }

/* ---------- Top bar ---------- */

.topbar { position: relative; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.topbar__logo { justify-self: start; }
.topbar__logo img { height: 26px; width: auto; }
.navpill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.navpill a { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); transition: background 0.2s, color 0.2s; }
.navpill a:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.navpill a[aria-current="page"] { background: var(--white); color: var(--text-d); }
.navpill sup { font-size: 9px; opacity: 0.7; margin-left: 2px; }
.topbar__right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.topbar__cta { min-height: 44px; }

.lang-switch { display: inline-flex; padding: 4px; border-radius: 999px; }
.lang-switch button {
  min-width: 36px; min-height: 34px; padding: 0 8px; border: 0; border-radius: 999px;
  background: none; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; opacity: 0.75;
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--text-d); opacity: 1; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), background 0.2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  display: grid; gap: 4px; padding: 10px; border-radius: 20px;
  background: rgba(10, 13, 24, 0.86);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.08); }
.mobile-menu .btn { margin-top: 6px; }

@media (max-width: 860px) {
  .topbar { grid-template-columns: 1fr auto; }
  .navpill, .topbar__cta { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: flex; flex-direction: column; gap: 40px;
  padding: 20px var(--pad) var(--pad);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 25%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, 0.92) 0%, rgba(5, 8, 22, 0.7) 32%, rgba(5, 8, 22, 0.1) 62%, rgba(5, 8, 22, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 8, 22, 0.5) 0%, transparent 22%, transparent 62%, rgba(5, 8, 22, 0.85) 100%);
}
@media (max-width: 760px) {
  .hero__bg img { object-position: 60% 20%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(5, 8, 22, 0.45) 0%, rgba(5, 8, 22, 0.55) 30%, rgba(5, 8, 22, 0.9) 62%, rgba(5, 8, 22, 0.96) 100%); }
}
.hero > :not(.hero__bg) { position: relative; }
.hero > .topbar { z-index: 20; }

.hero__content { margin-top: auto; max-width: 640px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 1.3vw, 1.125rem); color: #d3d7e4; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--gap);
  padding-top: 28px; border-top: 1px solid var(--line-d);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)); gap: 10px; }
.stat { border-radius: 16px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.stat strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.stat strong small { font-size: 0.5em; opacity: 0.8; margin-left: 2px; }
.stat span { font-size: 12px; line-height: 1.3; color: #d6dae6; }
.socials { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.socials a { color: rgba(255, 255, 255, 0.85); }
.socials a:hover { color: var(--white); }
.socials .live { display: inline-flex; align-items: center; gap: 8px; padding-left: 18px; border-left: 1px solid var(--glass-line); color: #c9f5da; }
.socials .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2); }
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.2rem; }
  .stat span { font-size: 11px; }
  .socials { width: 100%; justify-content: space-between; gap: 12px; }
  .socials .live { display: none; }
}

/* ---------- Statement ---------- */

.statement { background: var(--black); }
.statement__title { text-align: center; text-wrap: balance; margin: 0 auto clamp(48px, 6vw, 72px); }
.inline-pic {
  display: inline-block; vertical-align: middle;
  width: 2.1em; height: 0.92em; margin: 0 0.12em;
  border-radius: 999px; overflow: hidden; transform: translateY(-0.06em);
}
.inline-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .statement__title br, .statement__title .inline-pic { display: none; } }

.trio { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 4 / 4.6; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink);
}
@media (max-width: 699px) { .tile { aspect-ratio: 4 / 3.3; } }
.tile > .tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover > .tile__bg { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75)); }
.tile > :not(.tile__bg) { position: relative; z-index: 1; }
.tile h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.25; }
.tile p { font-size: 14px; color: #d0d5e6; margin-top: 8px; max-width: 30ch; }
.tile--stripes {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.07) 14px 15px, rgba(0, 0, 0, 0.25) 15px 28px),
    radial-gradient(70% 60% at 50% 55%, #3a5bff 0%, #193dd1 35%, #0a1450 70%, #04071a 100%);
}
.tile--stripes .mark { height: 20px; width: auto; align-self: flex-start; }
.tile__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; }
.tile__link:hover { text-decoration: underline; text-underline-offset: 4px; }

.statement__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(28px, 3vw, 40px); }
.statement__foot p { display: flex; gap: 16px; align-items: center; font-size: clamp(15px, 1.4vw, 18px); max-width: 44ch; }
.statement__foot p::before { content: "+"; font-size: 34px; font-weight: 200; line-height: 1; }

/* ---------- Studios & rates (light) ---------- */

.light { background: var(--paper); color: var(--text-d); }

.rooms { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rooms { grid-template-columns: repeat(4, 1fr); } }
.room {
  position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: 3 / 4; padding: 16px; color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  background: #0d0f16;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
@media (max-width: 639px) { .room { aspect-ratio: 4 / 3.4; } }
.room:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(12, 13, 18, 0.18); }
.room > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.88) 100%); }
.room > :not(img) { position: relative; z-index: 1; }
.room h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.room__spec { font-size: 13px; color: #c9cdd9; margin-top: 4px; }
.room__price {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px; font-weight: 600;
}
.room__price small { display: block; font-size: 11px; font-weight: 500; color: #aeb3c3; text-transform: uppercase; letter-spacing: 0.06em; }
.arrow {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--white); color: var(--text-d); transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.arrow svg { width: 15px; height: 15px; }
.room:hover .arrow { transform: rotate(45deg); background: var(--blue); color: var(--white); }

.ratebox { margin-top: clamp(40px, 5vw, 56px); border-radius: var(--r); background: var(--white); border: 1px solid var(--line-l); overflow: hidden; scroll-margin-top: 24px; }
.ratebox__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-l); }
.ratebox__head h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ratebox__head h3 span { color: var(--mute-l); font-weight: 400; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #efefeb; max-width: 100%; overflow-x: auto; }
.seg button { flex: none; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--mute-l); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text-d); color: var(--white); }
@media (max-width: 520px) {
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 9px 6px; font-size: 13px; }
}
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { padding: 24px; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); }
.tier:nth-child(2n) { border-right: 0; }
@media (min-width: 800px) {
  .tier { border-bottom: 0; }
  .tier:nth-child(2n) { border-right: 1px solid var(--line-l); }
  .tier:last-child { border-right: 0; }
}
.tier strong { display: block; margin-top: 16px; font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tier__note { display: block; margin-top: 2px; font-size: 13px; color: var(--mute-l); }
.ratebox__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; background: #fafaf8; border-top: 1px solid var(--line-l); font-size: 13px; color: var(--mute-l); }
@media (max-width: 799px) { .ratebox__foot { border-top: 0; } }
.ratebox__foot a { color: var(--blue); font-weight: 600; }

/* ---------- Work ---------- */

.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
.bento .tall { grid-row: span 2; }
@media (max-width: 899px) { .bento .span-sm { grid-column: span 2; } }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
  .bento .wide { grid-column: span 2; }
}
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: #151826; }
.bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento figure:hover img { transform: scale(1.04); }
.bento figcaption { position: absolute; left: 14px; top: 14px; z-index: 1; }
.work__more { display: flex; justify-content: flex-end; margin-top: clamp(24px, 3vw, 32px); }

/* ---------- Contact ---------- */

.contact {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 18px, rgba(255, 255, 255, 0.04) 18px 19px, rgba(0, 0, 0, 0.18) 19px 36px),
    radial-gradient(80% 90% at 85% 40%, #2c4dff 0%, #193dd1 30%, #0b1655 65%, var(--ink) 100%);
}
.contact__grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
.contact .eyebrow { color: #c3c9dc; }
.contact__list { margin-top: 32px; display: grid; }
.contact__list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-d); font-size: 14.5px; }
.contact__list li > span:first-child { color: var(--mute-d); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__list .map-link { display: inline-block; margin-top: 4px; color: #c9d3ff; font-size: 13.5px; }

.formcard { border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; background: rgba(5, 8, 22, 0.35); }
.formcard h3 { font-size: 20px; font-weight: 500; }
.formcard > p { font-size: 14px; color: #c3c9dc; margin-top: -6px; }
.formcard label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 500; color: #d6dae6; }
.formcard label .opt { font-weight: 400; color: #9aa1b8; }
.formcard input, .formcard select, .formcard textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06); color: var(--white); font: inherit; font-size: 16px;
}
.formcard textarea { min-height: 96px; resize: vertical; }
.formcard input[type="date"] { color-scheme: dark; }
.formcard select option { color: #000; }
.formcard input::placeholder, .formcard textarea::placeholder { color: #9aa1b8; }
.formcard input:focus, .formcard select:focus, .formcard textarea:focus { outline: none; border-color: var(--blue-2); background: rgba(255, 255, 255, 0.1); }
.formcard [aria-invalid="true"] { border-color: #ff8a8a; }
.formcard .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .formcard .row { grid-template-columns: 1fr; } }
.formcard .btn { margin-top: 6px; }
.field-error { font-size: 12.5px; color: #ffb4b4; }
.form-status {
  padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45;
  background: rgba(37, 211, 102, 0.14); border: 1px solid rgba(37, 211, 102, 0.4); color: #d7ffe6;
}
.form-status:empty { display: none; }
.form-status a { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__alt { font-size: 13px; color: #c3c9dc; text-align: center; }
.form__alt a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

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

.footer { display: grid; gap: 20px; align-items: center; padding: 28px var(--pad); border-top: 1px solid var(--line-d); font-size: 13px; color: var(--mute-d); }
@media (min-width: 900px) { .footer { grid-template-columns: 1fr auto 1fr; } .footer__copy { justify-self: end; } }
.footer img { height: 22px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a:hover { color: var(--white); }

/* ---------- Photography page ---------- */

.page-hero { position: relative; min-height: min(72vh, 680px); display: flex; flex-direction: column; gap: 40px; padding: 20px var(--pad) var(--pad); }
.page-hero .hero__content { max-width: 720px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 500; color: #d3d7e4; }
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; height: 16px; }

.pillars { display: grid; gap: var(--gap); }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 24px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line-l); display: grid; gap: 10px; align-content: start; }
.pillar h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { font-size: 14px; color: var(--mute-l); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: none;
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); cursor: pointer;
}
.tabs [role="tab"]:hover { background: rgba(255, 255, 255, 0.12); }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--text-d); }
.tabs .count { opacity: 0.55; margin-left: 4px; font-size: 11.5px; }

.masonry { columns: 2; column-gap: var(--gap); }
@media (min-width: 900px) { .masonry { columns: 3; } }
.masonry[hidden] { display: none; }
.g-item {
  display: block; width: 100%; margin: 0 0 var(--gap); padding: 0; border: 0;
  border-radius: 16px; overflow: hidden; background: #151826; cursor: zoom-in; break-inside: avoid;
}
.g-item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5, 8, 22, 0.94); color: var(--white);
}
.lightbox::backdrop { background: rgba(5, 8, 22, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 72px 16px; }
.lightbox figure img { max-width: min(92vw, 1400px); max-height: calc(100vh - 160px); width: auto; height: auto; border-radius: 12px; }
.lightbox figcaption { font-size: 13px; color: var(--mute-d); }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; color: var(--white);
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- 404 ---------- */

.not-found { min-height: 100vh; display: flex; flex-direction: column; padding: 20px var(--pad) var(--pad); }
.not-found__body { margin: auto 0; max-width: 640px; padding: 64px 0; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.js .up { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .up { opacity: 1; transform: none; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
