/* Gheorghe Art — main stylesheet
   Layout concept: a deep-blue "night studio" hero where the name is painted live,
   then a cool paper gallery wall threaded by one wandering ink line that ties the cards together. */
:root {
  --ink: #060b1e;          /* dark accent, near-black blue */
  --cobalt: #1239a8;       /* deep blue, primary */
  --cobalt-deep: #0a1f63;
  --wash: #8fb0ff;         /* light blue highlight */
  --paper: #eef0f4;        /* cool gallery wall */
  --card: #ffffff;
  --fg: #0d1226;
  --muted: #4c5470;
  --rule: #cfd5e3;
  --line: #1239a8;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.6rem + 3vw, 4.2rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0f22; --card: #111834; --fg: #e8ecf8; --muted: #a3acc8;
    --rule: #263055; --line: #8fb0ff; --cobalt: #3d64e0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a0f22; --card: #111834; --fg: #e8ecf8; --muted: #a3acc8;
  --rule: #263055; --line: #8fb0ff; --cobalt: #3d64e0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--fg);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wash); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; padding-block: 0; }
.site-header { border-bottom: 1px solid #ffffff2e; }
.brand { display: flex; align-items: center; gap: 12px; color: #eef2ff; text-decoration: none; padding-block: 14px; padding-right: 24px; border-right: 1px solid #ffffff2e; }
.logo-mark { width: 44px; height: 44px; flex: none; color: #f4f6ff; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-word { display: grid; line-height: 1; gap: 5px; }
.logo-name { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; }
.logo-sub { font: 500 0.62rem var(--f-mono); letter-spacing: .28em; text-transform: uppercase; color: var(--wash); }
.custom-logo-link { display: flex; align-items: center; padding-block: 14px; padding-right: 24px; border-right: 1px solid #ffffff2e; }
.custom-logo { max-height: 48px; width: auto; }
/* Menu: one ruled line divided into sections */
.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { display: flex; border-left: 1px solid #ffffff2e; }
.nav li:last-child { border-right: 1px solid #ffffff2e; }
.nav a {
  display: flex; align-items: center; padding: 22px clamp(14px, 2.2vw, 30px); color: #c9d5ff; text-decoration: none;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; position: relative; transition: background .3s, color .3s;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--wash); transition: right .35s ease; }
.nav a:hover, .nav a:focus-visible { background: #ffffff0f; color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid #3a4f9a; color: #eef2ff; border-radius: 999px; padding: 6px 14px; font: 500 0.78rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #eef2ff;
  background:
    radial-gradient(120% 90% at 85% 10%, #1b3fae 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, #0d2272 0%, transparent 60%),
    var(--ink);
  padding-block: clamp(110px, 14vw, 160px) clamp(64px, 9vw, 110px);
}
.hero canvas.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .45; }
/* The artist's drawing as hero background, tinted into the deep blue */
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #0a1f63; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 38%; mix-blend-mode: luminosity; opacity: .9; filter: contrast(1.25) brightness(.85); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #060b1ef2 0%, #060b1ecc 38%, #060b1e66 70%, #060b1e99 100%), linear-gradient(180deg, #060b1e99 0%, transparent 22%, transparent 75%, #060b1e 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero .eyebrow { color: var(--wash); }
.signature { width: 100%; max-width: 760px; height: auto; margin-block: 14px 10px; overflow: visible; }
.signature .ink { fill: none; stroke: #f4f6ff; stroke-linecap: round; stroke-linejoin: round; }
.signature .ink.wet { stroke: var(--wash); opacity: .35; }
.signature .swash { stroke: #4f7bff; }
.signature .tip, .signature .can { transition: opacity .4s; }
.signature .spray path { fill: none; stroke: var(--spray, #3ee07a); stroke-linecap: round; stroke-linejoin: round; }
.signature .drips path { fill: none; stroke: var(--spray, #3ee07a); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.hero-lede { max-width: 34ch; font-size: var(--step-1); line-height: 1.45; color: #d5ddff; }
.hero-lede em { font-family: var(--f-display); font-style: italic; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 0.8rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; transition: transform .25s, background .25s, color .25s;
}
.btn-primary { background: #f4f6ff; color: var(--ink); }
.btn-primary:hover { background: var(--wash); transform: translateY(-2px); }
.btn-ghost { border-color: #4a5fae; color: #e1e8ff; }
.btn-ghost:hover { background: #ffffff14; }

.portrait-card { position: relative; margin: 0; }
.portrait-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); box-shadow: 0 30px 80px -20px #000a; }
.portrait-card::before { /* offset frame, like a mat board */
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid #4f6dd1; border-radius: var(--radius); z-index: -1;
}
.portrait-card figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px;
  font: 0.72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #d5ddff;
  background: #060b1ecc; backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 2px;
}

/* ---------- Thread: the wandering line between sections ---------- */
.thread { display: block; width: 100%; height: 120px; color: var(--line); }
.thread path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: var(--step-3); }
.section-head h2 em { color: var(--cobalt); }
.section-head p { color: var(--muted); max-width: 46ch; }

/* Mediums: three cards joined by a line */
.mediums { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.mediums .connector { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--line); z-index: 0; }
.mediums .connector path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 4 7; }
.medium {
  position: relative; z-index: 1; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.medium:nth-child(3) { transform: translateY(28px); }
.medium:nth-child(2) { transform: translateY(-18px); }
.medium:hover { box-shadow: 0 24px 50px -24px #0a1f6355; }
.medium .art { aspect-ratio: 4/3; overflow: hidden; }
.medium .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.medium:hover .art img { transform: scale(1.06); }
.medium .body { padding: 22px 22px 26px; display: grid; gap: 10px; }
.medium h3 { font-size: var(--step-2); font-style: italic; }
.medium p { color: var(--muted); }
.medium .tools { font: 0.75rem var(--f-mono); letter-spacing: .08em; color: var(--cobalt); text-transform: uppercase; }

/* Works gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: 500 0.75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--fg); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; transition: .25s;
}
.chip[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.chip:hover { border-color: var(--cobalt); }
.works { columns: 3 280px; column-gap: clamp(16px, 2.5vw, 28px); }
.work { break-inside: avoid; margin: 0 0 clamp(16px, 2.5vw, 28px); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.work .frame { position: relative; overflow: hidden; }
.work img, .work canvas { width: 100%; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work:hover img { transform: scale(1.04); }
.work.tall .frame img { aspect-ratio: 9/11; object-fit: cover; }
.work.wide .frame img { aspect-ratio: 4/3; object-fit: cover; }
.work.square .frame img, .work canvas { aspect-ratio: 1; object-fit: cover; }
.work .live { position: absolute; top: 12px; left: 12px; font: 500 0.68rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #1239a8; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.work .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fb0ff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.work figcaption { padding: 14px 16px 16px; display: grid; gap: 2px; }
.work .title { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; }
.work .meta { font: 0.74rem var(--f-mono); color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Statement band */
.statement { background: var(--cobalt-deep); color: #eef2ff; overflow: hidden; position: relative; isolation: isolate; }
.statement svg.scribble { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .5; color: #4f7bff; }
.statement svg.scribble path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.statement-bg { position: absolute; inset: 0; z-index: -2; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; mix-blend-mode: screen; opacity: .13; }
.statement-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 30% 50%, transparent 0%, #0a1f63 95%); }
.quote-card {
  position: relative; margin: 0; max-width: 820px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px);
  background: linear-gradient(135deg, #ffffff12, #ffffff05); border: 1px solid #ffffff1f; border-radius: var(--radius);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); box-shadow: 0 30px 80px -40px #000c;
}
.quote-mark { position: absolute; top: -0.32em; left: clamp(12px, 3vw, 36px); font-family: var(--f-display); font-size: clamp(6rem, 12vw, 10rem); line-height: 1; color: #3ee07a; opacity: .85; pointer-events: none; }
.statement blockquote { margin: 0; max-width: 26ch; font-family: var(--f-display); font-size: var(--step-3); font-style: italic; line-height: 1.12; }
.statement cite { display: block; margin-top: 22px; font: normal 0.8rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wash); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-photo { position: sticky; top: 24px; }
.about-photo img { border-radius: var(--radius); aspect-ratio: 540 / 880; width: 100%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 30px 70px -30px #0a1f6399; }
.about-copy { display: grid; gap: 18px; max-width: 62ch; }
.about-copy h2 { font-size: var(--step-3); }
.about-copy p { color: var(--muted); }
.about-copy h2 + p { font-size: var(--step-1); color: var(--fg); line-height: 1.5; }

/* Process: a real sequence */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: clamp(40px, 5vw, 64px); }
.step { padding: 24px 22px 8px 0; display: grid; gap: 8px; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--rule); }
.step .n { font: 0.74rem var(--f-mono); color: var(--cobalt); letter-spacing: .1em; }
.step h3 { font-size: 1.45rem; font-style: italic; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact { background: var(--ink); color: #eef2ff; position: relative; overflow: hidden; isolation: isolate; }
.contact canvas.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .35; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: var(--step-3); }
.contact h2 em { color: var(--wash); }
.contact p { color: #c4ceef; margin-top: 16px; max-width: 44ch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #263770; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #263770; flex-wrap: wrap; }
.contact-list .k { font: 0.74rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wash); }
.contact-list .v { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; overflow-wrap: anywhere; min-width: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--wash); }
.site-footer { background: var(--ink); color: #7f8bb5; font: 0.74rem var(--f-mono); letter-spacing: .08em; border-top: 1px solid #1a2550; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); }

/* Reveal (starts visible; JS only adds motion) */
.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.pending { opacity: 0.001; transform: translateY(24px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .section-head, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait-card { max-width: 420px; margin-left: 8px; }
  .portrait-card::before { inset: -8px 8px 8px -8px; }
  .about-photo { position: static; max-width: 420px; }
  .about-photo img { aspect-ratio: 4 / 5; object-position: 50% 22%; }
  .mediums { grid-template-columns: minmax(0, 1fr); }
  .medium:nth-child(2), .medium:nth-child(3) { transform: none; }
  .mediums .connector { display: none; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; background: #060b1ef7; border-bottom: 1px solid #ffffff2e; }
  .nav.open { display: flex; }
  .nav li { border-left: 0; border-top: 1px solid #ffffff1f; }
  .nav li:last-child { border-right: 0; }
  .nav a { flex: 1; padding: 16px var(--gutter); }
  .nav-toggle { align-self: center; }
  .brand, .custom-logo-link { border-right: 0; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 1.2rem; }
  .process { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .medium .art { aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* Keep the header below the WordPress admin bar for logged-in editors */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
