/* MORPH 9.4 — zear.ge-style monochrome, light (day) and dark (night) themes */
@font-face { font-family: 'ALK Sanet'; src: url('/assets/fonts/alk-sanet.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #ffffff;
  --fg: #000000;
  --mute: #666666;
  --line: rgba(0, 0, 0, .14);
  --soft: #f3f3f3;
  --foot-bg: #000000;
  --foot-fg: #ffffff;
  --display: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
  --sans: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
  --gut: clamp(16px, 6vw, 100px);
  --hdr: 116px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --fg: #ffffff;
  --mute: #8c8c8c;
  --line: rgba(255, 255, 255, .18);
  --soft: #111111;
  --foot-bg: #ffffff;
  --foot-fg: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .35s, color .35s; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .01em; }
::selection { background: var(--fg); color: var(--bg); }
.wrap { padding-inline: var(--gut); }
a:hover { opacity: .7; }
.arr { display: inline-block; transition: transform .3s; }
a:hover .arr { transform: translateX(4px); }

/* logo: the studio's own file; inverted on the dark side */
.logo { width: 84px; height: 84px; }
:root[data-theme="dark"] .logo { filter: invert(1); }
.ftr .logo { width: 56px; height: 56px; filter: invert(1); }
:root[data-theme="dark"] .ftr .logo { filter: none; }

/* header */
.hdr { position: relative; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 16px var(--gut); min-height: var(--hdr); background: var(--bg); transition: background .35s; }
.mark { justify-self: start; display: block; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); font: 400 20px/1 var(--display); }
.nav a { display: flex; align-items: center; gap: 7px; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav i { display: inline-block; width: 11px; height: 11px; background: currentColor; flex: none; }
.nav .i-c { border-radius: 50%; clip-path: inset(0 0 0 30%); }
.nav .i-t { clip-path: polygon(0 0, 100% 0, 0 100%); }
.nav .i-r { clip-path: polygon(0 100%, 0 0, 100% 100%); }
.side { justify-self: end; display: flex; align-items: center; gap: 22px; }
.lang { display: grid; text-align: right; font: 400 11px/1.55 var(--display); letter-spacing: .08em; }
.lang span { opacity: .35; }
.lang b { font-weight: 400; }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--fg); display: grid; place-items: center; transition: background .2s, color .2s; }
.theme:hover { background: var(--fg); color: var(--bg); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.burger { display: none; width: 30px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.burger span:first-child { top: 4px; } .burger span:last-child { top: 14px; }

/* hero: full-width slideshow of renders under the slogan */
.hero { position: relative; height: min(calc(100svh - var(--hdr)), 860px); min-height: 460px; margin: 0 var(--gut); overflow: hidden; background: var(--soft); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 7s linear; }
.slide.on img { transform: scale(1); }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55)); }
.slide figcaption { position: absolute; z-index: 2; right: 28px; bottom: 26px; color: #fff; font: 400 13px/1.5 var(--display); text-align: right; letter-spacing: .03em; }
.slide figcaption a { display: grid; }
.slide figcaption .pl { opacity: .7; }
.hero-txt { position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 26px; color: #fff; }
.hero-txt h1 { font-size: clamp(34px, 5vw, 76px); line-height: 1.1; max-width: 16ch; }
.hero-dots { position: absolute; z-index: 3; right: 28px; top: 24px; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 2px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.hero-dots button.on::after { content: ''; position: absolute; inset: 0; background: #fff; animation: fill 6s linear forwards; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* opening: the logo assembles itself (replays on hover) */
.opening { min-height: calc(100svh - var(--hdr)); display: grid; place-items: center; align-content: center; gap: clamp(28px, 4vw, 48px); margin: 0; padding: 20px var(--gut) 60px; }
.al { position: relative; width: min(58vh, 460px, 78vw); aspect-ratio: 1 / 1; cursor: pointer; }
.al-c, .al img { position: absolute; inset: 0; width: 100%; height: 100%; }
.al-c { border-radius: 50%; background: #000; transform: scale(0); animation: al-c 1s cubic-bezier(.2,.8,.2,1) .15s forwards; }
:root[data-theme="dark"] .al-c { background: #fff; }
:root[data-theme="dark"] .al img { filter: invert(1); }
.al-bars { clip-path: inset(100% 61% 0 0); animation: al-bars 1.1s cubic-bezier(.6,0,.2,1) .85s forwards; }
.al-rest { clip-path: inset(0 61% 0 39%); animation: al-rest 1.1s cubic-bezier(.6,0,.2,1) 1.75s forwards; }
.al-line { font-size: clamp(22px, 2.6vw, 38px); line-height: 1.2; text-align: center; opacity: 0; transform: translateY(12px); animation: al-line .9s ease 2.6s forwards; }
@keyframes al-c { to { transform: scale(1); } }
@keyframes al-bars { to { clip-path: inset(0 61% 0 0); } }
@keyframes al-rest { to { clip-path: inset(0 0 0 39%); } }
@keyframes al-line { to { opacity: 1; transform: none; } }
.al.replay .al-c, .al.replay .al-bars, .al.replay .al-rest { animation: none; }
@media (prefers-reduced-motion: reduce) { .al-c, .al-bars, .al-rest, .al-line { animation: none; transform: none; clip-path: none; opacity: 1; } }

/* sections */
section { margin-block: clamp(64px, 9vw, 130px); }
.hero { margin-block: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 70px); }
.sec-h h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.15; }
.more { font: 400 clamp(17px, 1.6vw, 22px)/1 var(--display); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; white-space: nowrap; }
.ph { margin-top: clamp(24px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 56px); }
.ph h1 { font-size: clamp(40px, 6vw, 92px); line-height: 1.05; }
.lead { font-size: clamp(19px, 1.9vw, 26px); line-height: 1.65; max-width: 48ch; margin: 0; }
.display { font: 400 clamp(26px, 3vw, 44px)/1.3 var(--display); max-width: 32ch; margin: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.intro h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.3; }

/* works: pictogram grid, the render shows on hover */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 6vw, 90px) clamp(20px, 4vw, 64px); }
.w { display: block; }
.w:hover { opacity: 1; }
.w-pic { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.pic { width: 46%; height: auto; fill: currentColor; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.pic .o { fill: var(--bg); transition: fill .35s; }
.pic .s { fill: none; stroke: currentColor; }
.pic .so { fill: none; stroke: var(--bg); }
.w-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s, transform .8s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) {
  .w:hover .pic { transform: scale(.75); opacity: 0; }
  .w:hover .w-pic img { opacity: 1; transform: scale(1); }
}
.w-cap { text-align: center; margin-top: 16px; display: grid; gap: 5px; }
.w-cap h3 { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.4; }
.w-cap span { font: 400 13px/1.4 var(--display); color: var(--mute); letter-spacing: .03em; }
.works .w.hide { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 26px; font: 400 16px/1.4 var(--display); margin-bottom: clamp(36px, 5vw, 70px); }
.filters button { color: var(--mute); padding: 4px 0; transition: color .2s; }
.filters button sup { font-size: 10px; margin-left: 3px; }
.filters button.on, .filters button:hover { color: var(--fg); }
.filters button.on { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }

/* project page */
.p-hero { height: min(74svh, 820px); min-height: 380px; margin: 0 var(--gut); overflow: hidden; background: var(--soft); }
.p-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.p-head { margin: clamp(36px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 10px clamp(20px, 4vw, 60px); align-items: start; }
.p-head .pic { width: clamp(72px, 9vw, 120px); grid-row: span 4; }
.crumb { display: flex; gap: 10px; align-items: center; font: 400 14px/1.4 var(--display); color: var(--mute); }
.crumb a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.p-n { font: 400 13px/1 var(--display); color: var(--mute); letter-spacing: .04em; }
.p-head h1 { font-size: clamp(30px, 4.2vw, 64px); line-height: 1.15; max-width: 24ch; }
.p-place { margin: 0; font-size: 17px; color: var(--mute); }
.p-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); border-top: 1px solid var(--fg); padding-top: 28px; margin-bottom: clamp(56px, 8vw, 110px); }
.p-meta { margin: 0; display: grid; gap: 18px; align-content: start; }
.p-meta div { display: grid; gap: 3px; }
.p-meta dt { font: 400 12px/1.3 var(--display); color: var(--mute); letter-spacing: .06em; }
.p-meta dd { margin: 0; font-size: 15px; }
.p-meta dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.p-text p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.9; letter-spacing: .02em; margin: 0 0 1.2em; max-width: 64ch; }
.p-brief { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); max-width: 64ch; }
.p-brief span { display: block; font: 400 12px/1.3 var(--display); letter-spacing: .06em; color: var(--fg); margin-bottom: 6px; }
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.g-it { margin: 0; overflow: hidden; background: var(--soft); }
.g-it.wide { grid-column: 1 / -1; }
.g-it img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; aspect-ratio: 4 / 3; }
.g-it.wide img { aspect-ratio: 16 / 8; }
.pmap iframe { width: 100%; height: clamp(300px, 40vw, 500px); border: 0; filter: grayscale(1); display: block; }
:root[data-theme="dark"] .pmap iframe { filter: grayscale(1) invert(.9) contrast(.9); }
.credits { font-size: 13px; color: var(--mute); margin-block: -30px 56px; }
.credits summary { cursor: pointer; }
.credits ol { padding-left: 20px; } .credits a { text-decoration: underline; }
.pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 110px); }
.pn a { padding: 30px var(--gut); display: grid; gap: 6px; transition: background .25s; }
.pn a:hover { background: var(--soft); opacity: 1; }
.pn a + a { border-left: 1px solid var(--line); text-align: right; }
.pn small { font: 400 13px/1 var(--display); color: var(--mute); }
.pn span { font: 400 19px/1.35 var(--display); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.96); display: grid; place-items: center; color: #fff; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; font-size: 28px; padding: 16px; opacity: .8; }
.lb button:hover { opacity: 1; }
.lb-x { top: 8px; right: 12px; } .lb-p { left: 8px; top: 50%; translate: 0 -50%; } .lb-n { right: 8px; top: 50%; translate: 0 -50%; }
.lb-c { position: absolute; bottom: 18px; font-size: 13px; opacity: .6; }

/* studio + contact */
.st-cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.st-txt p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; margin: 0 0 1.2em; max-width: 58ch; }
.st-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.st-pic img { width: 100%; height: 100%; object-fit: cover; }
.prin { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.pr { border-top: 1px solid var(--fg); padding-top: 16px; }
.pr .n { font: 400 13px/1 var(--display); color: var(--mute); }
.pr h3 { font-size: clamp(20px, 1.8vw, 26px); margin: 14px 0 10px; }
.pr p { margin: 0; font-size: 15px; color: var(--mute); }
.svc { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 64px); }
.svc li { break-inside: avoid; padding: 16px 0; border-bottom: 1px solid var(--line); font: 400 clamp(16px, 1.4vw, 20px)/1.4 var(--display); }
.ct { display: grid; gap: clamp(40px, 6vw, 80px); }
.ct-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; border-top: 1px solid var(--fg); padding-top: 24px; }
.ct-dl dt { font: 400 12px/1.3 var(--display); color: var(--mute); letter-spacing: .06em; margin-bottom: 8px; }
.ct-dl dd { margin: 0; font: 400 22px/1.4 var(--display); }

/* footer: black on the day side, white on the night side */
.ftr { background: var(--foot-bg); color: var(--foot-fg); padding: clamp(40px, 5vw, 64px) var(--gut) 28px; margin-top: clamp(64px, 9vw, 130px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: end; transition: background .35s, color .35s; }
.ftr-nav { display: grid; gap: 4px; font: 400 15px/1.5 var(--display); }
.ftr-c { justify-self: end; display: grid; gap: 4px; text-align: right; font: 400 14px/1.6 var(--display); }
.ftr-soc { display: flex; gap: 14px; justify-content: flex-end; margin-bottom: 10px; }
.soc svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.ct-dl .soc-row a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ftr-c .y { opacity: .55; font-size: 12px; margin-top: 10px; }
.is-project .ftr { margin-top: 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .slide img { transition: none; transform: none !important; } }

@media (max-width: 1000px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prin { grid-template-columns: repeat(2, 1fr); }
  .intro { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --hdr: 84px; }
  .logo { width: 58px; height: 58px; }
  .hdr { grid-template-columns: 1fr auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); padding: 8px var(--gut) 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; font-size: 26px; }
  .nav a { padding: 12px 0; }
  .hdr.open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .burger { display: block; }
  .hdr.open .burger span:first-child { top: 9px; transform: rotate(45deg); } .hdr.open .burger span:last-child { top: 9px; transform: rotate(-45deg); }
  .side { gap: 14px; }
  .hero, .p-hero { margin: 0; }
  .hero-txt { left: var(--gut); bottom: 22px; }
  .slide figcaption, .hero-dots { display: none; }
  .works { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .p-head { grid-template-columns: 1fr; }
  .p-head .pic { grid-row: auto; width: 64px; }
  .p-body, .st-cols { grid-template-columns: 1fr; }
  .p-meta { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: 1fr; }
  .prin { grid-template-columns: 1fr; }
  .svc { columns: 1; }
  .pn { grid-template-columns: 1fr; }
  .pn a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .ftr { grid-template-columns: 1fr; align-items: start; }
  .ftr-c { justify-self: start; text-align: left; }
  .ftr-soc { justify-content: flex-start; }
}

/* round tiles, the shape of the logo: pictograms unchanged, the frame and the render are circles */
.w-pic { border-radius: 50%; width: 82%; margin-inline: auto; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.w-pic img { border-radius: 50%; }
.w-pic .pic { width: 50%; }
.w.on .pic { transform: scale(.75); opacity: 0; } .w.on .w-pic img { opacity: 1; transform: none; }
