/*
Theme Name: Ary Atelier
Theme URI: https://laszloary.com
Author: Laszlo Ary
Author URI: https://laszloary.com
Description: A cinematic, artist-led WordPress theme for luxury jewellery CGI still imagery and commissioned visual work.
Version: 1.4.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: ary-atelier
License: GNU General Public License v2 or later
*/

:root {
  --ary-bg: #060606;
  --ary-bg-soft: #0d0d0d;
  --ary-fg: #f3f0e9;
  --ary-muted: #b6b1a8;
  --ary-line: rgba(255,255,255,.14);
  --ary-accent: #c6b28a;
  --ary-width: 1320px;
  --ary-text-width: 760px;
  --ary-radius: 2px;
  --ary-transition: 420ms cubic-bezier(.2,.7,.2,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ary-bg);
}

body {
  margin: 0;
  background: var(--ary-bg);
  color: var(--ary-fg);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .ary-header { top: 32px; }

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}

a:hover { color: var(--ary-accent); }

::selection {
  background: var(--ary-accent);
  color: #111;
}

.ary-skip-link {
  position: fixed;
  z-index: 99999;
  left: 18px;
  top: -100px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}
.ary-skip-link:focus { top: 18px; }

.ary-wrap {
  width: min(calc(100% - 48px), var(--ary-width));
  margin-inline: auto;
}

.ary-narrow {
  width: min(calc(100% - 48px), var(--ary-text-width));
  margin-inline: auto;
}

.ary-section {
  position: relative;
  padding: clamp(88px, 10vw, 170px) 0;
  overflow: clip;
}

.ary-section--compact {
  padding: clamp(70px, 8vw, 120px) 0;
}

.ary-section--soft { background: var(--ary-bg-soft); }

.ary-eyebrow {
  margin: 0 0 18px;
  color: var(--ary-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.ary-title,
.ary-display,
.ary-card-title,
.entry-title {
  margin: 0;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ary-display {
  max-width: 1050px;
  font-size: clamp(48px, 8.6vw, 128px);
  text-transform: uppercase;
}

.ary-title {
  max-width: 1020px;
  font-size: clamp(38px, 6vw, 82px);
}

.ary-card-title {
  font-size: clamp(28px, 3.2vw, 48px);
}

.ary-lead {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--ary-muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.55;
}

.ary-copy {
  color: var(--ary-muted);
  max-width: 760px;
}

.ary-copy strong,
.ary-lead strong { color: var(--ary-fg); }

.ary-rule {
  border: 0;
  border-top: 1px solid var(--ary-line);
  margin: 0;
}

.ary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: var(--ary-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--ary-transition), color var(--ary-transition), border var(--ary-transition), transform var(--ary-transition);
}

.ary-button:hover {
  background: var(--ary-fg);
  border-color: var(--ary-fg);
  color: #080808;
  transform: translateY(-2px);
}

.ary-button--quiet {
  border-color: transparent;
  padding-inline: 0;
}
.ary-button--quiet:hover {
  background: transparent;
  color: var(--ary-accent);
}

.ary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* Header */
.ary-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: 74px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,0));
  transition: background var(--ary-transition), border-color var(--ary-transition);
}

.ary-header.is-scrolled {
  background: rgba(6,6,6,.91);
  border-color: var(--ary-line);
  backdrop-filter: blur(18px);
}

.ary-header-inner {
  width: min(calc(100% - 48px), var(--ary-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ary-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ary-fg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.ary-brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  font-size: 10px;
}

.ary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ary-nav a {
  color: var(--ary-fg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: .82;
}
.ary-nav a:hover { opacity: 1; color: var(--ary-accent); }

.ary-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ary-fg);
  cursor: pointer;
}
.ary-menu-toggle span,
.ary-menu-toggle::before,
.ary-menu-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
  transition: transform var(--ary-transition), opacity var(--ary-transition);
}
.ary-menu-toggle[aria-expanded="true"] span { opacity: 0; }
.ary-menu-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.ary-menu-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.ary-hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  background: #050505;
}

.ary-hero-media,
.ary-hero-media::after {
  position: absolute;
  inset: 0;
}

.ary-hero-media {
  z-index: -2;
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.ary-hero-media::after {
  content: "";
  background:
    linear-gradient(to top, rgba(4,4,4,.96) 0%, rgba(4,4,4,.28) 54%, rgba(4,4,4,.25) 100%),
    linear-gradient(to right, rgba(4,4,4,.36), transparent 62%);
}

.ary-hero-inner {
  width: min(calc(100% - 48px), var(--ary-width));
  margin-inline: auto;
  padding: 150px 0 clamp(70px, 8vw, 120px);
}

.ary-hero-subtitle {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.5;
}

/* Manifesto */
.ary-manifesto-lines {
  display: grid;
  gap: 5px;
  margin: 44px 0 0;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.ary-manifesto-lines span { color: #77736d; }
.ary-manifesto-lines strong { color: var(--ary-fg); font-weight: 500; }

/* Image + text panels */
.ary-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  min-height: min(78vw, 920px);
  border-top: 1px solid var(--ary-line);
}

.ary-split:nth-child(even) {
  grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr);
}
.ary-split:nth-child(even) .ary-split-media { order: 2; }

.ary-split-media {
  min-height: 620px;
  background-position: center;
  background-size: cover;
}

.ary-split-copy {
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 110px);
  background: var(--ary-bg-soft);
}

.ary-split-copy-inner { max-width: 570px; }

.ary-split-copy p {
  color: var(--ary-muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.ary-split-copy p strong { color: var(--ary-fg); }

/* Statement */
.ary-statement {
  padding-block: clamp(110px, 14vw, 220px);
  text-align: center;
}
.ary-statement .ary-title {
  margin-inline: auto;
  max-width: 1100px;
}
.ary-statement .ary-copy {
  margin: 35px auto 0;
  font-size: clamp(18px, 1.7vw, 22px);
}

/* Work */
.ary-work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 58px;
}

.ary-work-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #101010;
  color: var(--ary-fg);
  text-decoration: none;
}

.ary-work-card:nth-child(1) { grid-column: span 7; min-height: 720px; }
.ary-work-card:nth-child(2) { grid-column: span 5; min-height: 720px; }
.ary-work-card:nth-child(3) { grid-column: span 5; }
.ary-work-card:nth-child(4) { grid-column: span 7; }

.ary-work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.15s cubic-bezier(.2,.7,.2,1), filter var(--ary-transition);
}

.ary-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 58%);
  opacity: .9;
}

.ary-work-card-content {
  position: absolute;
  z-index: 2;
  inset: auto 28px 24px;
}

.ary-work-card-kicker {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ary-work-card-title {
  display: block;
  margin-top: 7px;
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.ary-work-card:hover img { transform: scale(1.035); }

/* Craft media */
.ary-craft {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(44px, 6vw, 100px);
  align-items: center;
}

.ary-craft-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #030303;
}

.ary-craft-image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.ary-list {
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ary-line);
}

.ary-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--ary-line);
  color: var(--ary-muted);
}

/* Commission */
.ary-commission {
  background:
    radial-gradient(circle at 75% 20%, rgba(198,178,138,.08), transparent 36%),
    var(--ary-bg-soft);
}

.ary-commission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: clamp(55px, 10vw, 150px);
  align-items: start;
}

.ary-commission-details {
  padding-top: 18px;
  border-top: 1px solid var(--ary-line);
}

.ary-commission-details p { color: var(--ary-muted); }

/* Process */
.ary-process-media {
  position: relative;
  margin-top: 50px;
  overflow: hidden;
  background: #000;
}

.ary-process-media video {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  opacity: .92;
}

/* About */
.ary-about {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: center;
}

.ary-about-image img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.82);
}

.ary-recognition {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 32px;
  color: var(--ary-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* CTA */
.ary-cta {
  min-height: 84svh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
}

.ary-cta-media,
.ary-cta-media::after {
  position: absolute;
  inset: 0;
}

.ary-cta-media {
  z-index: -2;
  background-position: center;
  background-size: cover;
  opacity: .52;
}

.ary-cta-media::after {
  content: "";
  background: radial-gradient(circle at center, rgba(6,6,6,.3), rgba(6,6,6,.96) 80%);
}

.ary-cta .ary-title { margin-inline: auto; max-width: 1000px; }
.ary-cta .ary-lead { margin-inline: auto; max-width: 700px; }

/* Footer */
.ary-footer {
  border-top: 1px solid var(--ary-line);
  padding: 32px 0;
  color: #86817a;
  font-size: 12px;
}

.ary-footer-inner {
  width: min(calc(100% - 48px), var(--ary-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ary-footer a { text-decoration: none; }
.ary-footer-links { display: flex; gap: 22px; }

/* Standard pages */
.ary-page-main {
  min-height: 72vh;
  padding: 145px 0 100px;
}

.ary-entry {
  width: min(calc(100% - 48px), var(--ary-width));
  margin-inline: auto;
}

.entry-title {
  width: min(100%, 980px);
  margin: 0 auto 48px;
  font-size: clamp(44px, 7vw, 90px);
}

.entry-content > * {
  max-width: 760px;
  margin-inline: auto;
}

/* Legacy project pages keep readable text, while full-size artwork receives
   a much wider cinematic canvas. */
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-video,
.entry-content > figure {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto clamp(62px, 7vw, 96px);
}

.entry-content > .wp-block-image img,
.entry-content > figure img,
.entry-content > .wp-block-video video {
  width: 100%;
  height: auto;
  margin: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
  max-width: none;
  margin: 18px 0 0;
  color: var(--ary-fg);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}

.entry-content > .alignwide { max-width: var(--ary-width); }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content p { color: var(--ary-muted); }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--ary-fg); line-height: 1.15; }
.entry-content a { color: var(--ary-fg); }

.ary-404 { text-align: center; }

/* Reveal motion */
.ary-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(.2,.7,.2,1);
}
.ary-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ary-reveal { opacity: 1; transform: none; transition: none; }
  .ary-work-card img,
  .ary-button { transition: none; }
}

@media (max-width: 980px) {
  body.admin-bar .ary-header { top: 46px; }

  .ary-menu-toggle { display: block; }

  .ary-nav {
    position: fixed;
    inset: 74px 0 auto;
    max-height: 0;
    overflow: hidden;
    background: rgba(6,6,6,.98);
    border-bottom: 1px solid var(--ary-line);
    transition: max-height var(--ary-transition);
  }

  .ary-nav.is-open { max-height: 460px; }

  .ary-nav ul {
    width: min(calc(100% - 48px), var(--ary-width));
    margin-inline: auto;
    padding: 20px 0 32px;
    display: grid;
    gap: 0;
  }

  .ary-nav li { border-bottom: 1px solid var(--ary-line); }
  .ary-nav a { display: block; padding: 16px 0; }

  .ary-split,
  .ary-split:nth-child(even),
  .ary-craft,
  .ary-commission-grid,
  .ary-about {
    grid-template-columns: 1fr;
  }

  .ary-split:nth-child(even) .ary-split-media { order: 0; }

  .ary-split-media { min-height: 66vw; }
  .ary-split-copy { padding: 70px 28px; }

  .ary-work-card,
  .ary-work-card:nth-child(n) {
    grid-column: span 12;
    min-height: min(110vw, 680px);
  }

  .ary-craft-image {
    order: -1;
    aspect-ratio: 5 / 4;
  }
  .ary-about-image img { max-height: 680px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .ary-wrap,
  .ary-narrow,
  .ary-header-inner,
  .ary-hero-inner,
  .ary-footer-inner,
  .ary-entry { width: min(calc(100% - 32px), var(--ary-width)); }

  .ary-header { height: 66px; }
  .ary-nav { inset-block-start: 66px; }

  .ary-hero-inner { padding-top: 120px; }
  .ary-actions { align-items: stretch; }
  .ary-button { width: 100%; }

  .ary-work-grid { gap: 12px; }
  .ary-work-card-content { inset: auto 20px 20px; }

  .ary-footer-inner { align-items: flex-start; flex-direction: column; }
  .ary-footer-links { flex-wrap: wrap; }

  .ary-recognition { display: grid; }
}
