/* IP Interiors — v2, editorial gallery layout */
:root {
  --frame: #e6dccd;      /* warm linen around the page */
  --paper: #fbf8f3;      /* page */
  --sand: #efe7db;
  --ink: #1d1916;
  --muted: #7c7066;
  --line: #e2d8ca;
  --oak: #a27c57;
  --dark: #181513;
  --radius: 22px;
  --font: "Onest", system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 3.4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--frame); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

html[data-lang="en"] [lang="mk"], html[data-lang="mk"] [lang="en"] { display: none !important; }

.page { max-width: 1320px; margin: clamp(0px, 2vw, 28px) auto; background: var(--paper); border-radius: clamp(0px, 1.6vw, 28px); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(60, 40, 20, .35); }

/* ---------- pills, chips, arrows ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 11px 20px; font-size: 13px; font-weight: 500; transition: transform .25s, background .25s, color .25s; white-space: nowrap; }
.pill:hover { transform: translateY(-2px); }
.pill-dark { background: var(--ink); color: var(--paper); }
.pill-dark:hover { background: var(--oak); }
.pill-light { background: var(--paper); color: var(--ink); }
.pill-light:hover { background: #d8b48c; }
.pill-outline { border: 1px solid #4a423c; color: var(--paper); }
.pill-outline:hover { border-color: #d8b48c; color: #d8b48c; }
.chip { display: inline-block; font-size: 11px; font-weight: 500; padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px; line-height: 1.2; }
.chip-light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 16px; flex: none; transition: transform .3s, background .3s; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: 28px; padding: 22px var(--pad); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; margin-right: auto; }
.logo svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 3; }
.links { display: flex; gap: 26px; font-size: 13px; color: var(--muted); }
.links a:hover { color: var(--ink); }
.lang { font: 500 12px/1 var(--font); border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px; display: flex; cursor: pointer; color: var(--muted); }
.lang span { padding: 6px 10px; border-radius: 999px; transition: background .25s, color .25s; }
html[data-lang="en"] .lang [data-l="en"], html[data-lang="mk"] .lang [data-l="mk"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; margin: 0 var(--pad); border-radius: var(--radius); overflow: hidden; height: clamp(440px, 72vh, 680px); isolation: isolate; color: #fff; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,20,12,.28) 0%, rgba(30,20,12,.05) 35%, rgba(30,20,12,.45) 100%); }
@keyframes settle { to { transform: scale(1); } }
.hero-title { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font-size: clamp(64px, 15vw, 210px); font-weight: 600; letter-spacing: -0.055em; line-height: .9; text-shadow: 0 6px 40px rgba(40,25,10,.25); }
.glass { background: rgba(255, 248, 238, .16); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(255,255,255,.28); }
.hero-card { position: absolute; left: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); width: min(440px, calc(100% - 32px)); border-radius: 18px; padding: 20px; font-size: 13px; line-height: 1.55; }
.hero-card-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; }
.hero-card .pill-dark { background: var(--paper); color: var(--ink); }
.hero-card .pill-dark:hover { background: #d8b48c; }
.hero-card img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; }
.badge { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); width: 132px; height: 132px; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { fill: #fff; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.badge-dot { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- intro grid ---------- */
.intro { display: grid; grid-template-columns: 2.1fr 1fr; gap: 16px; padding: clamp(48px, 7vw, 88px) var(--pad) 0; }
.intro-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.intro-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.notch { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 22px 34px 6px 0; border-top-right-radius: var(--radius); }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--radius); height: var(--radius); background: radial-gradient(circle at 100% 0, transparent calc(var(--radius) - .5px), var(--paper) var(--radius)); }
.notch::before { left: 0; top: calc(var(--radius) * -1); }
.notch::after { right: calc(var(--radius) * -1); bottom: 0; }
.notch .chip { color: var(--ink); margin-bottom: 14px; }
.notch h2 { font-size: clamp(38px, 4.6vw, 62px); }
.intro-side { display: grid; grid-template-rows: auto 1fr; gap: 16px; }
.card-sand { background: var(--sand); border-radius: var(--radius); padding: 22px; }
.card-sand .small { font-size: 12px; color: var(--muted); margin: 18px 0 8px; max-width: 22em; }
.card-sand h3 { font-size: clamp(24px, 2.2vw, 30px); }
.card-img { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; color: #fff; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s ease; }
.card-img { isolation: isolate; }
.card-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,20,12,.45), transparent 55%); }
.card-img p { font-size: 13px; max-width: 16em; line-height: 1.4; }
.arrow-corner { position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: #fff; }
.card-img:hover img, .tile:hover img { transform: scale(1.05); }
.card-img:hover .arrow, .tile:hover .arrow { transform: rotate(45deg); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(48px, 6vw, 80px) var(--pad); max-width: 1000px; margin: 0 auto; gap: 24px; }
.stats div { display: flex; flex-direction: column; gap: 6px; }
.stats strong { font-size: clamp(40px, 4.6vw, 60px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.stats sup { font-size: .45em; vertical-align: top; position: relative; top: .1em; }
.stats span { font-size: 12px; color: var(--muted); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px) var(--pad); }
.split > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 70%; border-radius: var(--radius); }
.kicker { font-size: 12px; font-weight: 500; margin-bottom: 16px; }
.split h2 { font-size: clamp(36px, 4.4vw, 58px); margin-bottom: 22px; }
.split-text > p:not(.kicker) { color: var(--muted); max-width: 30em; }
.services { list-style: none; padding: 0; margin: 24px 0 30px; border-top: 1px solid var(--line); max-width: 30em; }
.services li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.services li::before { content: "↗"; color: var(--oak); font-size: 13px; }

/* ---------- projects ---------- */
.projects { padding: clamp(72px, 9vw, 120px) var(--pad); }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.projects-head h2 { font-size: clamp(36px, 4.6vw, 60px); }
.projects-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; max-width: 360px; text-align: right; }
.projects-aside p { font-size: 13px; color: var(--muted); }
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.col { display: grid; gap: 14px; }
.tile { position: relative; display: block; border-radius: 18px; overflow: hidden; color: #fff; isolation: isolate; background: var(--sand); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,10,.6), transparent 42%); z-index: 0; }
.r-43 { aspect-ratio: 4 / 3.4; } .r-34 { aspect-ratio: 3 / 4; } .r-tall { aspect-ratio: 3 / 4.6; } .r-11 { aspect-ratio: 1 / 0.9; }
.tile-name { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.02em; }
.tile .arrow { position: absolute; right: 14px; bottom: 14px; z-index: 1; width: 30px; height: 30px; font-size: 14px; }

/* ---------- dark footer ---------- */
.dark { background: var(--dark); color: var(--paper); padding: clamp(56px, 7vw, 96px) var(--pad) 24px; }
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta h2 { font-size: clamp(34px, 4.4vw, 58px); margin-bottom: 22px; }
.cta p { color: #a99e93; font-size: 14px; max-width: 34em; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 55%; border-radius: var(--radius); }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: clamp(56px, 7vw, 96px); padding-top: 40px; border-top: 1px solid #2c2622; flex-wrap: wrap; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 24px clamp(32px, 6vw, 96px); }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #a99e93; }
.foot-cols h4 { font-size: 14px; color: var(--paper); margin-bottom: 6px; letter-spacing: -0.01em; }
.foot-cols a:hover { color: #d8b48c; }
.wordmark { text-align: right; font-size: clamp(40px, 5.4vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.copy { margin-top: 36px; font-size: 12px; color: #6f665e; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .badge svg { animation: none; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .intro { grid-template-columns: 1fr; }
  .intro-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .split, .cta { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .masonry .col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .masonry .col:nth-child(3) .tile { aspect-ratio: 3 / 4; }
  .badge { display: none; }
}
@media (max-width: 600px) {
  .nav { padding: 16px; gap: 12px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo svg { width: 26px; height: 26px; flex: none; }
  .wordmark { text-align: left; }
  .hero { margin: 0 12px; height: 560px; }
  .hero-title { top: 18%; font-size: clamp(56px, 17vw, 90px); }
  .hero-card { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .hero-card img { width: 90px; height: 64px; }
  .intro { padding-left: 12px; padding-right: 12px; }
  .intro-main { min-height: 380px; }
  .intro-side { grid-template-columns: 1fr; }
  .projects-head { flex-direction: column; align-items: flex-start; }
  .projects-aside { align-items: flex-start; text-align: left; }
  .masonry, .masonry .col:nth-child(3) { grid-template-columns: 1fr; }
  .masonry .tile { aspect-ratio: 4 / 4.4 !important; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .cta-actions .pill { flex: 1; justify-content: center; }
}

/* ---------- about Anna ---------- */
.anna { padding: clamp(24px, 4vw, 48px) var(--pad) clamp(56px, 7vw, 96px); }
.anna-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #8b8178 0%, #7a7068 100%);
  color: #f6f0e7;
}
.anna-photo { margin: 0; min-height: 560px; position: relative; }
.anna-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.anna-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5;
}
.anna-text p { max-width: 22em; }
.anna-text p + p { margin-top: 14px; }
.anna-kicker { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: .28em; text-transform: uppercase; line-height: 1.1; padding-left: .28em; }
.anna-role { font-family: var(--font); font-size: 12px; letter-spacing: .42em; text-transform: uppercase; margin-top: 12px !important; padding-left: .42em; }
.rule { display: block; width: 72px; height: 1px; background: rgba(246, 240, 231, .7); margin: 30px 0; }
.anna-name { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(54px, 6vw, 84px); letter-spacing: -0.01em; margin-bottom: 22px; }
.anna-lead { font-size: 1.12em; }

.split-text > p:not(.kicker) + p { margin-top: 12px; }

@media (max-width: 960px) {
  .anna-card { grid-template-columns: 1fr; }
  .anna-photo { min-height: 0; aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .anna { padding-left: 12px; padding-right: 12px; }
  .anna-kicker { letter-spacing: .2em; }
  .anna-role { letter-spacing: .3em; }
}
