/* voxelord — portfolio. Black page, colour only from the work. Soft feedback: colour, opacity and light only,
   never movement, never a border or outline when something is pressed.
   Every page is a single screen (user: "sitemizde tüm sayfalar tek ekran olacak"): bar, one .screen, footer (tabs on phones). */
:root {
  --bg: #000;
  --ink: #f1efea;
  --mid: #b9b6b0;
  --dim: #7d7a75;
  --faint: rgba(255, 255, 255, .07);
  --wash: rgba(255, 255, 255, .055);
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(1.1rem, 3.2vw, 3.5rem);
  --wide: 96rem;
  --bar: 4rem;
  --tabs: 0px;
  --foot: 3.6rem;
  --screen: calc(100svh - var(--bar) - var(--tabs) - var(--foot));
  --ease: cubic-bezier(.25, .1, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(15px, .36vw + 10.8px, 24px); background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; height: 100svh; overflow: hidden; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
::selection { background: rgba(255, 255, 255, .18); }

/* nothing ever draws a ring or a border when pressed; keyboard focus gets a quiet wash instead */
:focus, :focus-visible { outline: none; }
:focus-visible { background-color: var(--wash); border-radius: .4rem; }
main:focus-visible { background-color: transparent; }

/* ---------------------------------------------------------------- bar */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar); display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 0 var(--pad); background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  user-select: none; -webkit-user-select: none; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; font: 800 .95rem/1 var(--sans); letter-spacing: .14em;
  min-height: 44px; padding: 0 .2rem; transition: opacity .25s var(--ease); }
.sq { width: .62rem; height: .62rem; box-shadow: inset 0 0 0 1.5px currentColor; border-radius: 1px; opacity: .85; }
.links { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.links a, .out { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 500 .9rem/1 var(--sans); letter-spacing: .02em; color: var(--dim); padding: 0 .3rem; transition: color .25s var(--ease), opacity .25s var(--ease); }
.links a.on { color: var(--ink); }
.out { justify-self: end; justify-content: flex-end; }
.out span { font-size: .8em; }

/* ---------------------------------------------------------------- the screen */
main { padding: var(--bar) 0 var(--tabs); opacity: 0; transition: opacity .32s var(--ease); }
main.in { opacity: 1; }
.screen { height: var(--screen); max-width: var(--wide); margin: 0 auto; padding: clamp(1rem, 4.5vh, 3.5rem) var(--pad);
  overflow-y: auto; scrollbar-width: none; }   /* fits by design; only a very short window (a phone on its side) scrolls inside */
.screen::-webkit-scrollbar { display: none; }
.fit { container-type: size; min-width: 0; min-height: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.fitsq { position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; }
.kicker, .meta, .mono { font: 400 .78rem/1.5 var(--mono); letter-spacing: .04em; color: var(--dim); }
.kicker { text-transform: uppercase; letter-spacing: .14em; }
img.fade { opacity: 0; transition: opacity .6s var(--ease); }
img.fade.ld { opacity: 1; }
.cta { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; color: var(--ink); font: 500 .95rem/1 var(--sans); transition: color .25s var(--ease), opacity .25s var(--ease); }
.crumb { display: inline-block; padding: .9rem .35rem; margin: -.9rem -.35rem; color: var(--mid); transition: color .25s var(--ease), opacity .25s var(--ease); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 5rem); }
.hero-text { display: grid; gap: clamp(.8rem, 2.6vh, 1.6rem); justify-items: start; }
.hero-word { width: min(100%, 36rem); margin-left: -.6rem; }
.hero-line { font: 500 clamp(1.45rem, 2.2vw, 2.35rem)/1.2 var(--sans); letter-spacing: -.012em; max-width: 22ch; color: var(--ink); }
.hero .meta { max-width: 56ch; }
.hero .cta { margin-top: -.2rem; }
/* the pour videos sit exactly over the still; the still shows only when the video can't or shouldn't play */
.anim { position: relative; }
.anim > .still { width: 100%; opacity: 0; transition: opacity .5s var(--ease); }
.anim > .flow { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: #000; pointer-events: none; }
.anim.rest > .still { opacity: 1; }
.anim.rest > .flow { display: none; }

/* work index: the projects side by side, each opens its own page */
.index { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: clamp(.8rem, 2.5vh, 2rem); }
.index-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.index-head h1 { font: 500 .9rem/1 var(--sans); letter-spacing: .02em; color: var(--mid); }
/* the cards share their rows (subgrid), so both pictures are the same size and line up whatever their text */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) auto; column-gap: clamp(1.5rem, 4vw, 5rem); row-gap: clamp(.8rem, 2.2vh, 1.4rem); min-height: 0; }
.card { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-height: 0; transition: opacity .25s var(--ease); }
.card-art { justify-content: flex-start; }
.card-art .fitsq { background: #000; transition: filter .45s var(--ease); }
.card-art .framed { width: 100%; }
.card-art .live { pointer-events: none; }
.card-art img.fade { width: 100%; height: 100%; object-fit: cover; }
.card-text { display: grid; gap: .55rem; max-width: 30rem; }
.card-text h2 { font: 800 clamp(1.8rem, 3vw, 3.2rem)/.95 var(--sans); letter-spacing: -.01em; }
.card-text p { color: var(--mid); }

/* a work: the art on the left, its text on the right */
.stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.stage-art { height: 100%; }
.framed { position: relative; width: min(100cqw, 100cqh); aspect-ratio: 1; opacity: 0; transition: opacity .7s var(--ease); }
.framed.ld { opacity: 1; }
.framed .live { position: absolute; left: 7.475%; top: 7.475%; width: 85.05%; height: 85.05%; border: 0; background: #000; display: block; }
.frame-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sig { position: absolute; right: 11.3%; bottom: 12.4%; font: 400 32px/1 "Mrs Saint Delafield", cursive; color: rgba(245, 240, 232, .95);
  white-space: nowrap; transform: rotate(-4deg); transform-origin: right bottom; pointer-events: none; user-select: none;
  text-shadow: .018em .026em .03em rgba(0, 0, 0, .42); }
.info { display: grid; gap: clamp(.9rem, 2.4vh, 1.4rem); max-width: 30rem; }
.info h1 { font: 800 clamp(2.2rem, 4.4vw, 4.6rem)/.95 var(--sans); letter-spacing: -.012em; }
.info .lede { font: 400 1.1rem/1.6 var(--sans); color: var(--mid); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.6rem; font: 400 .82rem/1.5 var(--mono); }
.facts dt { color: var(--dim); }
.facts dd { color: var(--ink); }
.ext { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
.ext a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font: 500 .95rem/1 var(--sans); color: var(--ink); transition: opacity .25s var(--ease); }

/* DogeBits: one piece at a time, arrows under it */
.db-art { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: .5rem; }
.db-sq { overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.db-sq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s var(--ease); -webkit-user-drag: none; }
.db-sq img.on { opacity: 1; }
.db-sq img.top { z-index: 2; }
.db-nav { display: flex; justify-content: center; align-items: center; gap: .6rem; user-select: none; -webkit-user-select: none; }
.db-nav button { min-width: 52px; min-height: 44px; font: 400 1.25rem/1 var(--sans); color: var(--mid); border-radius: .45rem; transition: color .25s var(--ease), background-color .25s var(--ease), opacity .2s var(--ease); }
.db-n { min-width: 5ch; text-align: center; }

/* Home ⇄ About: one cube, two texts in the same cell (the cell is as tall as the taller one, so the cube never changes size);
   switching fades the old text out quickly, then the new one in */
.panels { display: grid; align-items: center; min-width: 0; min-height: 0; }
.panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .12s var(--ease), visibility 0s linear .12s; }
.panel.on { opacity: 1; visibility: visible; transition: opacity .2s var(--ease) .1s, visibility 0s; }

/* about */
.about-text { display: grid; gap: clamp(.8rem, 2.2vh, 1.5rem); max-width: 36rem; }
.about-text h1 { font: 800 clamp(2.4rem, 5vw, 5rem)/.95 var(--sans); letter-spacing: -.012em; }
.about-text .big { font: 500 clamp(1.25rem, 1.8vw, 1.75rem)/1.35 var(--sans); color: var(--ink); letter-spacing: -.008em; }
.about-text p { color: var(--mid); }
.roles { display: grid; gap: .1rem; font: 400 .85rem/1.9 var(--mono); color: var(--mid); }
.contact { display: grid; gap: 0; }
.contact > a, .contact > span { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; padding: .85rem .6rem; margin: 0 -.6rem; border-radius: .45rem;
  box-shadow: inset 0 -1px 0 var(--faint); font: 500 1rem/1.3 var(--sans); transition: background-color .3s var(--ease), color .3s var(--ease); }
.contact .v { font: 400 .82rem/1.3 var(--mono); color: var(--dim); }
.m-foot { display: none; }

/* footer: always at the bottom of the screen (on phones the tabs take its place, About carries its line) */
.foot { max-width: var(--wide); height: var(--foot); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: 400 .76rem/1.4 var(--mono); color: var(--dim); }

/* ---------------------------------------------------------------- feedback: light and colour only */
@media (hover: hover) {
  .brand:hover { opacity: .75; }
  .links a:hover, .out:hover, .crumb:hover, .db-nav button:hover { color: var(--ink); }
  .cta:hover, .ext a:hover { opacity: .75; }
  .contact > a:hover, .db-nav button:hover { background-color: var(--wash); }
  .card:hover .card-art .fitsq { filter: brightness(1.08); }
}
.brand:active, .links a:active, .out:active, .cta:active, .crumb:active, .ext a:active { opacity: .55; transition-duration: .08s; }
.card:active, .db-nav button:active { opacity: .7; transition-duration: .08s; }
.contact > a:active { background-color: rgba(255, 255, 255, .08); transition-duration: .08s; }

/* ---------------------------------------------------------------- phone: an app — slim top bar, tabs at the bottom */
.tabs { display: none; }
@media (max-width: 760px) {
  :root { --bar: calc(3.3rem + env(safe-area-inset-top)); --tabs: calc(3.6rem + env(safe-area-inset-bottom)); --foot: 0px; }
  .bar { grid-template-columns: 1fr auto 1fr; padding: env(safe-area-inset-top) 1rem 0; background: rgba(0, 0, 0, .82); }
  .bar .links, .bar .out { display: none; }
  .brand { grid-column: 2; justify-self: center; font-size: .82rem; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 20; height: var(--tabs);
    padding-bottom: env(safe-area-inset-bottom); background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 var(--faint); user-select: none; -webkit-user-select: none; }
  .tabs a { display: grid; place-items: center; font: 500 .8rem/1 var(--sans); letter-spacing: .03em; color: var(--dim); transition: color .25s var(--ease), opacity .2s var(--ease); }
  .tabs a.on { color: var(--ink); }
  .tabs a:active { opacity: .5; transition-duration: .08s; }
  .foot { display: none; }
  .screen { padding-top: .9rem; padding-bottom: 1rem; }

  .hero { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: .8rem; align-items: stretch; }
  .hero-text { justify-items: center; text-align: center; gap: .65rem; }
  .hero-word { width: min(82vw, 26rem); margin-left: 0; }
  .hero-line { font-size: 1.3rem; }
  .hero .meta { font-size: .7rem; }
  .hero .cta { margin-top: -.3rem; }

  .cards { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto; row-gap: .55rem; }
  .card:first-child .card-text { margin-bottom: .6rem; }
  .card-art { justify-content: center; }
  .card-text { justify-items: center; text-align: center; gap: .3rem; max-width: none; }
  .card-text h2 { font-size: 1.45rem; }
  .card-text p, .card-text .cta { display: none; }

  .stage { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 1rem; align-items: stretch; }
  .info { gap: .6rem; max-width: none; }
  .info h1 { font-size: 1.9rem; }
  .info .lede { font-size: .9rem; line-height: 1.5; }
  .facts { grid-template-columns: auto 1fr auto 1fr; gap: .2rem .9rem; font-size: .7rem; }
  .ext { gap: 0 1.4rem; }
  .ext a { font-size: .88rem; }

  .about-text { gap: .6rem; max-width: none; }
  .about-text h1 { font-size: 2.1rem; }
  .about-text .big { font-size: 1.1rem; }
  .about-text p { font-size: .92rem; line-height: 1.5; }
  .roles { display: none; }   /* the bio already says it; the phone screen needs the room */
  .contact > a, .contact > span { padding: .7rem .6rem; }
  .m-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .2rem; font: 400 .7rem/1.4 var(--mono); color: var(--dim); }
}
/* short phones: the lede gives up a line or two so the art keeps a reasonable size */
@media (max-width: 760px) and (max-height: 700px) {
  .db .lede { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stage:not(.db) .lede { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero .meta { display: none; }
  .about-text .bio { display: none; }   /* the short line above says it; the cube keeps its size */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
