/* =========================================================
   enezefeart — portfolio
   Concept: the site is a quiet design-app workspace,
   dressed in the brand's navy + cream.
   ========================================================= */

:root {
  --navy: #0d1a27;
  --navy-2: #112233;
  --navy-3: #182c41;
  --cream: #fdebc3;
  --paper: #f6eedd;
  --paper-2: #efe4cc;
  --fg: var(--cream);
  --muted: rgba(253, 235, 195, 0.56);
  --faint: rgba(253, 235, 195, 0.32);
  --line: rgba(253, 235, 195, 0.12);
  --accent: #fdebc3;          /* swapped by the palette */
  --terra: #d9734a;
  --ruler: 22px;
  --pad: max(88px, 7.5vw);
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--cream); color: var(--navy); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 400; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }

.skip { position: fixed; left: 12px; top: -60px; z-index: 999; background: var(--cream); color: var(--navy); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--cream); outline-offset: 4px; }

/* film grain — very subtle, adds a printed feel */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: clip-path 1.1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__mark { width: 74px; overflow: visible; }
.loader__mark { fill: var(--cream); }
.js .loader__mark path { fill: transparent; stroke: var(--cream); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-io) forwards, fillIn .6s ease 1.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--cream); stroke-width: 0; } }
.loader__meta { width: 200px; display: flex; justify-content: space-between; color: var(--muted); }
.loader__bar { width: 200px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--cream); transition: width .2s linear; }

/* ---------- Rulers ---------- */
.ruler, .ruler__corner { position: fixed; z-index: 60; pointer-events: none; background-color: var(--navy); }
.ruler--x {
  top: 0; left: var(--ruler); right: 0; height: var(--ruler); border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10px);
  background-size: 100% 9px, 100% 4px; background-position: bottom left; background-repeat: repeat-x;
}
.ruler--y {
  top: var(--ruler); left: 0; bottom: 0; width: var(--ruler); border-right: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(180deg, var(--faint) 0 1px, transparent 1px 100px),
    repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 10px);
  background-size: 9px 100%, 4px 100%; background-position: top right; background-repeat: repeat-y;
}
.ruler__corner { top: 0; left: 0; width: var(--ruler); height: var(--ruler); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruler__mark { position: absolute; background: var(--accent); }
.ruler--x .ruler__mark { top: 0; bottom: 0; width: 1px; left: 0; }
.ruler--y .ruler__mark { left: 0; right: 0; height: 1px; top: 0; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 990; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.cursor__ring {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fdebc3; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, border-color .3s;
  border: 1px solid #fdebc3;
}
.cursor__label { position: absolute; left: 14px; top: 10px; white-space: nowrap; color: #fdebc3; font-size: 9.5px; opacity: .8; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: transparent; }
.cursor.is-hover .cursor__label { opacity: 0; }
.cursor.is-pen .cursor__ring { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}

.draw { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; }
body.tool-pen .draw { pointer-events: auto; }

/* ---------- Header ---------- */
.top {
  position: fixed; z-index: 70; top: var(--ruler); left: var(--ruler); right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px calc(var(--pad) - var(--ruler)) 18px 28px;
  transition: background .4s, backdrop-filter .4s, padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled {
  background: rgba(13, 26, 39, 0.78);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  padding-top: 12px; padding-bottom: 12px; border-color: var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo svg { width: 22px; fill: var(--cream); transition: transform .8s var(--ease); }
.logo:hover svg { transform: rotateY(180deg); }
.nav { display: flex; gap: 34px; }
.nav a { position: relative; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .3s; display: flex; gap: 6px; }
.nav a i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin-top: -2px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover { color: var(--cream); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top__right { display: flex; align-items: center; gap: 22px; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.live { width: 6px; height: 6px; border-radius: 50%; background: #9db69a; box-shadow: 0 0 0 0 rgba(157,182,154,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(157,182,154,0); } 100% { box-shadow: 0 0 0 0 rgba(157,182,154,0); } }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang b, .lang span { padding: 4px 9px; border-radius: 999px; font-weight: 500; transition: background .3s, color .3s; }
.lang b { background: var(--cream); color: var(--navy); }
.lang span { color: var(--muted); }

/* ---------- Tools ---------- */
.tools {
  position: fixed; z-index: 65; left: calc(var(--ruler) + 14px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px;
  background: rgba(17, 34, 51, 0.85); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tool { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .25s, color .25s; }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.tool[data-tool="select"] svg { fill: currentColor; stroke: none; }
.tool:hover { color: var(--cream); }
.tool.is-active { background: var(--cream); color: var(--navy); }
.tools__sep { width: 16px; height: 1px; background: var(--line); margin: 5px 0; }
.swatch { width: 14px; height: 14px; margin: 5px 0; border-radius: 50%; background: var(--c); transition: transform .3s var(--ease), box-shadow .3s; }
.swatch:hover { transform: scale(1.25); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 3px var(--c); }

/* ---------- Layout ---------- */
main { padding-left: var(--ruler); }
section { position: relative; padding: 160px var(--pad) 140px; }
.section-head { max-width: 1100px; margin-bottom: 72px; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 30px; }
.tag::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h2 {
  font-size: clamp(48px, 7.2vw, 124px); line-height: 0.95; letter-spacing: -0.045em;
  font-weight: 300; margin: 0 0 26px;
}
h2 .serif { letter-spacing: -0.025em; font-size: 1.06em; }
.lede { max-width: 500px; margin: 0; color: var(--muted); }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 28px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid var(--cream); transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cream); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--navy); }
.btn--solid { background: var(--cream); color: var(--navy); }
.btn--solid::before { background: var(--navy-3); }
.btn--solid:hover { color: var(--cream); }
.btn--ghost { border-color: var(--line); }
.arr { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding-top: 128px; padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }
.hero__meta { display: flex; gap: 40px; color: var(--faint); padding-left: 52px; }
.hero__stage { flex: 1; display: grid; grid-template-columns: 5fr 6fr; align-items: center; gap: 6vw; padding: 24px 0 8px 52px; }

.hero__mark { position: relative; margin: 0; display: grid; place-items: center; }
.bbox { position: relative; height: min(44vh, 440px); aspect-ratio: 388 / 458; }
.mark { width: 100%; height: 100%; overflow: visible; }
.mark { fill: var(--cream); }
.js .mark path { fill: transparent; stroke: var(--cream); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.js body.is-ready .mark path { animation: draw 2.2s var(--ease-io) .2s forwards, fillIn 1s ease 1.9s forwards; }
.h { position: absolute; width: 8px; height: 8px; background: var(--navy); border: 1px solid var(--accent); opacity: 1; transition: opacity .6s ease 2.6s; }
.js body.is-ready .hero__mark .h, .js body.is-ready .bbox::before, .js body.is-ready .bbox__size { opacity: 1; }
.bbox::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); opacity: 1; transition: opacity .6s ease 2.6s; }
.h--tl { left: -4px; top: -4px; } .h--tr { right: -4px; top: -4px; }
.h--bl { left: -4px; bottom: -4px; } .h--br { right: -4px; bottom: -4px; }
.h--t { left: calc(50% - 4px); top: -4px; } .h--b { left: calc(50% - 4px); bottom: -4px; }
.h--l { left: -4px; top: calc(50% - 4px); } .h--r { right: -4px; top: calc(50% - 4px); }
.bbox__size { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--navy); padding: 3px 8px; border-radius: 3px; font-size: 9.5px; opacity: 1; transition: opacity .6s ease 2.8s; }
.js .hero__mark .h, .js .bbox::before, .js .bbox__size { opacity: 0; }
.guide { position: absolute; background: rgba(143, 179, 217, 0.35); pointer-events: none; }
.guide--x { left: -12vw; right: -4vw; top: 50%; height: 1px; }
.guide--y { top: -30vh; bottom: -30vh; left: 50%; width: 1px; }

.eyebrow { color: var(--muted); margin: 0 0 30px; }
.hero__title { margin: 0 0 44px; font-weight: 300; font-size: clamp(40px, 4.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > * { display: inline-block; }
.js .hero__title .line > * { transform: translateY(110%); }
body.is-ready .hero__title .line > * { animation: up 1.1s var(--ease) forwards; }
body.is-ready .hero__title .line:nth-child(2) > * { animation-delay: .12s; }
body.is-ready .hero__title .line:nth-child(3) > * { animation-delay: .24s; }
@keyframes up { to { transform: none; } }
.hero__title .serif { font-size: 1.12em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.js .hero__ctas { opacity: 0; }
body.is-ready .hero__ctas { animation: fadeUp 1s var(--ease) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__word {
  margin: 0 calc(var(--pad) * -1 + 20px) -0.2em; padding-top: 10px;
  font-size: 14vw; line-height: 1; letter-spacing: -0.06em; white-space: nowrap; text-align: center; user-select: none;
  color: var(--cream);
}
.kinetic { display: inline-flex; }
.kinetic .ch {
  display: inline-block; font-weight: var(--w, 200);
  transition: font-weight .5s var(--ease), color .5s;
}
.js .kinetic .ch { transform: translateY(100%); opacity: 0; }
body.is-ready .kinetic .ch { animation: rise 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + 350ms); }
@keyframes rise { to { transform: none; opacity: 1; } }

.badge { position: absolute; right: var(--pad); top: 22%; width: 124px; height: 124px; display: grid; place-items: center; touch-action: none; user-select: none; cursor: grab; z-index: 5; }
.badge > svg.spin { position: absolute; inset: 0; fill: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 2.2px; text-transform: uppercase; }
.badge__mark { width: 26px; fill: var(--cream); }
.badge.is-dragging { cursor: grabbing; }
.spin { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--navy); position: relative; z-index: 6; }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: clamp(26px, 3vw, 44px); font-weight: 300; letter-spacing: -0.03em; white-space: nowrap; }
.marquee__track span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.marquee__track span::after { content: ""; width: 9px; height: 9px; border: 1px solid var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Works ---------- */
.works { background: var(--navy); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 44px; }
.filters button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); transition: all .3s; }
.filters button:hover { color: var(--cream); border-color: var(--faint); }
.filters button.is-active { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 72px 36px; }
.card { grid-column: span 6; perspective: 1000px; }
.card:nth-child(4n+1) { grid-column: 1 / span 7; }
.card:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: 140px; }
.card:nth-child(4n+3) { grid-column: 2 / span 5; }
.card:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: 90px; }
.card.is-hidden { display: none; }
.grid.is-filtered .card { grid-column: span 6 !important; margin-top: 0 !important; }
.card__btn { display: block; width: 100%; text-align: left; }
.card__label { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); margin-bottom: 12px; }
.card__label b { color: var(--muted); font-weight: 400; }
.card__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; transition: transform .7s var(--ease); background: var(--navy-2); }
.card:nth-child(4n+2) .card__art, .card:nth-child(4n+3) .card__art { aspect-ratio: 4 / 5; }
.card__art svg, .card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__btn:hover .card__art svg, .card__btn:hover .card__art img { transform: scale(1.04); }
.card__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.card__btn:hover .card__art::after { opacity: 1; }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.card__info h3 { margin: 0; font-size: clamp(24px, 2.3vw, 36px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.card__info h3 em { color: var(--muted); }
.card__info span { color: var(--faint); white-space: nowrap; }
.card__open { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.card__btn:hover .card__open { opacity: 1; transform: none; }

.insta-cta {
  margin-top: 140px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.insta-cta .mono { color: var(--muted); }
.insta-cta strong { flex: 1; text-align: center; font-weight: 300; font-size: clamp(30px, 4.4vw, 70px); letter-spacing: -0.04em; line-height: 1; }
.insta-cta .arr { font-size: 44px; font-weight: 200; }
.insta-cta:hover .arr { transform: rotate(45deg); }

/* ---------- About (light) ---------- */
.about { background: var(--paper); color: var(--navy); --muted: rgba(13,26,39,.6); --faint: rgba(13,26,39,.38); --line: rgba(13,26,39,.14); }
.about .tag { color: var(--muted); }
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 8vw; align-items: start; }
.about__left h2 { margin-bottom: 56px; }
.portrait { position: relative; aspect-ratio: 420 / 520; max-width: 440px; }
.portrait__art { position: absolute; inset: 0; background: var(--navy); display: grid; place-items: center; overflow: hidden; }
.portrait__art svg { width: 34%; fill: var(--cream); transition: transform 1.4s var(--ease); }
.portrait:hover .portrait__art svg { transform: scale(1.08) rotate(-4deg); }
.portrait::before { content: ""; position: absolute; inset: 0; border: 1px solid #5d84b0; z-index: 1; pointer-events: none; }
.portrait .h { opacity: 1; background: var(--paper); border-color: #5d84b0; z-index: 2; }
.portrait__size { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); background: #5d84b0; color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 9.5px; }

.about__right { padding-top: 80px; }
.about__right .big { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.25; letter-spacing: -0.03em; font-weight: 400; margin: 0 0 30px; }
.about__right > p:not(.big) { color: var(--muted); max-width: 560px; margin: 0 0 56px; }

.panel { max-width: 520px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.35); }
.panel__head { display: flex; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; font-size: 15px; border-bottom: 1px solid var(--line); transition: background .2s; }
.layers li:last-child { border-bottom: 0; }
.layers li:hover { background: rgba(93,132,176,.12); }
.layers li i { margin-left: auto; font-style: normal; color: var(--faint); }
.layers li.is-off > span { opacity: .3; }
.eye { width: 18px; height: 18px; position: relative; flex: none; }
.eye::before { content: ""; position: absolute; inset: 4px 1px; border: 1.2px solid var(--navy); border-radius: 50% / 60%; }
.eye::after { content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.is-off .eye::before, .is-off .eye::after { opacity: .25; }
.is-locked .eye { opacity: .4; }

.toolset { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.toolset li { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.toolset b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cream); font-size: 11px; font-weight: 600; }

/* ---------- Process ---------- */
.process { background: var(--navy-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { position: relative; padding: 36px 30px 44px 0; border-right: 1px solid var(--line); margin-right: 30px; display: flex; flex-direction: column; min-height: 340px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--accent); transition: width .9s var(--ease); }
.step:hover::before { width: 100%; }
.step__n { font-size: 54px; line-height: 1; color: var(--muted); }
.step__file { color: var(--faint); margin-top: 18px; text-transform: none; letter-spacing: .02em; word-break: break-all; }
.step h3 { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; margin: auto 0 10px; padding-top: 40px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.contact .tag { align-self: flex-start; }
.contact__title { font-size: clamp(60px, 10.5vw, 196px); line-height: 0.92; letter-spacing: -0.055em; margin: 0 0 80px; font-weight: 300; }
.contact__title .serif { color: var(--accent); }
.contact__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--line); }
.mail { text-align: left; display: flex; flex-direction: column; gap: 10px; }
.mail strong {
  font-size: clamp(26px, 3.6vw, 58px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.1;
  background: linear-gradient(var(--cream), var(--cream)) left bottom / 0 1px no-repeat; padding-bottom: 6px;
  transition: background-size .7s var(--ease);
}
.mail:hover strong { background-size: 100% 1px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { display: inline-flex; gap: 10px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: background .4s, color .4s, border-color .4s; }
.social:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.social:hover .arr { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad); margin-left: var(--ruler); border-top: 1px solid var(--line); color: var(--muted); }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; }
.foot__brand svg { width: 16px; fill: var(--cream); }
.foot a:hover { color: var(--cream); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 28px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 13, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .4s; }
.modal__win { position: relative; width: min(1120px, 100%); max-height: 90vh; overflow: auto; background: var(--navy-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 40px 120px rgba(0,0,0,.5); animation: pop .6s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.modal__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--navy-3); color: var(--muted); text-transform: none; }
.modal__bar button { color: var(--muted); padding: 2px 6px; }
.modal__bar button:hover { color: var(--cream); }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--faint); }
.modal__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; padding: 36px; }
.modal__art { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.modal__art svg, .modal__art img { width: 100%; height: 100%; object-fit: cover; }
.modal__info h3 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 0 0 22px; }
.modal__info .tag { margin-bottom: 18px; }
.modal__info p { color: var(--muted); }
.modal__info dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.modal__info dt { color: var(--faint); }
.modal__info dd { margin: 0; text-transform: none; letter-spacing: .02em; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 980; transform: translate(-50%, 24px); opacity: 0; background: var(--cream); color: var(--navy); padding: 12px 20px; border-radius: 999px; transition: all .5s var(--ease); pointer-events: none; text-transform: none; letter-spacing: .02em; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step.reveal:nth-child(2) { transition-delay: .1s; }
.js .step.reveal:nth-child(3) { transition-delay: .2s; }
.js .step.reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .status { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero__stage { grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 860px) {
  :root { --ruler: 0px; --pad: 22px; }
  .ruler, .ruler__corner, .cursor { display: none; }
  .tools { top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); flex-direction: row; }
  .tools__sep { width: 1px; height: 16px; margin: 0 5px; }
  .swatch { margin: 0 5px; }
  .top { padding: 16px 22px; }
  .nav { display: none; }
  section { padding: 110px 22px 100px; }
  .foot { padding: 24px 22px 90px; }
  .hero { padding-top: 96px; }
  .hero__meta { padding-left: 0; gap: 18px; }
  .hide-sm { display: none; }
  .hero__stage { grid-template-columns: 1fr; padding: 36px 0 10px; gap: 76px; }
  .bbox { height: 28vh; }
  .guide--x { left: -22px; right: -22px; }
  .badge { display: none; }
  .hero__word { margin: 30px -10px -0.18em; }
  .grid { grid-template-columns: 1fr; gap: 56px; }
  .card, .card:nth-child(n), .grid.is-filtered .card { grid-column: auto !important; margin-top: 0 !important; }
  .about__grid { grid-template-columns: 1fr; gap: 10px; }
  .about__right { padding-top: 60px; }
  .portrait { max-width: 340px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(n) { border-right: 0; margin-right: 0; min-height: 0; border-top: 1px solid var(--line); padding-right: 0; }
  .step:first-child { border-top: 0; }
  .insta-cta { flex-wrap: wrap; }
  .insta-cta strong { text-align: left; }
  .modal { padding: 10px; }
  .modal__body { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
}
