/* ===== Anton Fesenko — site styles ===== */
:root {
  --bg: #0e0e0f;
  --bg-2: #141416;
  --surface: #19191c;
  --surface-2: #202024;
  --border: #2b2b30;
  --text: #f3f0ea;
  --muted: #a8a39b;
  --accent: #e8cba3;
  --accent-ink: #1a1510;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill { fill: currentColor; stroke: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 88px) 0; }
.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.1em;
}
.eyebrow span { color: var(--muted); margin: 0 .6em; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: #d9d4cc; max-width: 34em; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: var(--radius-sm);
  font: 600 .98rem var(--font-body); cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f1d9b8; }
.btn-primary:disabled { background: #3a352e; color: #8d867c; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: #4a4640; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.text-link { color: var(--accent); font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 15, .82); backdrop-filter: blur(12px);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(232,203,163,.45) 18%, #e8cba3 50%, rgba(232,203,163,.45) 82%, transparent 100%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { width: 42px; height: 42px; filter: drop-shadow(0 0 6px rgba(232,203,163,.18)); transition: filter .3s; }
@media (hover: hover) { .brand:hover .brand-logo { filter: drop-shadow(0 0 12px rgba(232,203,163,.45)); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; position: relative; }
.brand-mark { position: relative; display: inline-block; flex: none; line-height: 0; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); opacity: .8; transition: opacity .3s; }
@media (hover: hover) { .brand:hover .brand-sub { opacity: 1; } }
.site-header .brand-sub {
  opacity: 1;
  background: linear-gradient(100deg, #e8cba3 0%, #e8cba3 34%, #f6e2c2 42%, #fff6e4 50%, #f6e2c2 58%, #e8cba3 66%, #e8cba3 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: subShine 30s linear 2s infinite, subGlow 30s linear 2s infinite;
}
.site-header .brand-logo { animation: logoGlow 30s linear 2s infinite; }
@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 6px rgba(232,203,163,.22)); animation-timing-function: cubic-bezier(.37,0,.63,1); }
  9% { filter: drop-shadow(0 0 10px rgba(240,214,175,.85)) drop-shadow(0 0 28px rgba(232,203,163,.55)); animation-timing-function: cubic-bezier(.37,0,.63,1); }
  22%, 100% { filter: drop-shadow(0 0 6px rgba(232,203,163,.22)); }
}
@keyframes subGlow {
  0% { filter: drop-shadow(0 0 0 rgba(232,203,163,0)); animation-timing-function: cubic-bezier(.37,0,.63,1); }
  9% { filter: drop-shadow(0 0 5px rgba(240,214,175,.75)) drop-shadow(0 0 14px rgba(232,203,163,.4)); animation-timing-function: cubic-bezier(.37,0,.63,1); }
  22%, 100% { filter: drop-shadow(0 0 0 rgba(232,203,163,0)); }
}
@media (prefers-reduced-motion: reduce) { .site-header .brand-sub, .site-header .brand-logo { animation: none; } .site-header .brand-sub { background-position: 0% 0; } }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-size: .95rem; color: #d6d1c9; position: relative; padding: 6px 0; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(232,203,163,.10), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(232,203,163,.05), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 96px) 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ----- Photo placeholders (replace with real <img>) ----- */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(135deg, rgba(232,203,163,.08), rgba(255,255,255,.02) 60%),
    var(--surface);
  border: 1px dashed #3a3832; border-radius: var(--radius);
  color: #77726a; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
.photo-slot svg { width: 44px; height: 44px; stroke-width: 1.2; }
.photo-slot--hero { aspect-ratio: 4 / 5; max-height: 600px; width: 100%; }
.photo-slot--card { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; border: 0; border-bottom: 1px solid var(--border); }
.photo-slot--about { aspect-ratio: 4 / 5; }
.about-photo {
  display: flex; align-items: flex-end; justify-content: center; align-self: end;
}
.about-photo img { display: block; width: 100%; height: auto; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; align-self: end; }
.hero-media::before {
  content: ""; position: absolute; inset: 12% 8% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232,203,163,.16), transparent);
  filter: blur(10px);
}
.hero-photo {
  position: relative; width: 100%; max-width: 580px; height: auto;
}

/* ----- Directions ----- */
.directions { padding-top: clamp(32px, 4vw, 48px); }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.direction-card {
  position: relative; display: block; padding: 36px 34px 32px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
}
.direction-card:hover { border-color: rgba(232,203,163,.5); transform: translateY(-3px); background: var(--surface); }
.direction-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  color: var(--accent); border: 1px solid rgba(232,203,163,.35);
  background: radial-gradient(circle, rgba(232,203,163,.10), transparent 70%);
  transition: border-color .3s, box-shadow .3s;
}
.direction-icon svg { width: 26px; height: 26px; }
.direction-card:hover .direction-icon { border-color: var(--accent); box-shadow: 0 0 18px rgba(232,203,163,.25); }
.direction-card h2 { font-size: 1.75rem; margin: 14px 0 10px; }
.direction-card p { color: var(--muted); max-width: 30em; }
.direction-link { color: var(--accent); font-weight: 500; }

/* ----- Photo services ----- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s; }
.service-card:hover { border-color: rgba(232,203,163,.45); transform: translateY(-3px); }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-body { padding: 22px 24px 24px; }
.service-body p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ----- Portfolio ----- */
.portfolio { margin-top: 72px; }
.portfolio-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.portfolio-head h3 { font-size: 1.6rem; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: .5em 1.1em; border-radius: 999px; font: 500 .9rem var(--font-body); cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item.tall { grid-row: span 2; }
.gallery img.gallery-item { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-hidden { display: none; }

/* ----- Booking ----- */
.booking {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(28px, 4vw, 52px);
}
.booking-info h2 { margin-bottom: .45em; }
.booking-info > p { color: #d0cbc3; font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; align-items: center; gap: 16px; color: #ddd8d0; }
.feature-list svg { color: var(--accent); width: 26px; height: 26px; }

.booking-widget { display: grid; gap: 18px; align-content: start; }
.booking-panels { display: grid; grid-template-columns: 1fr 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.calendar { padding: 22px 22px 18px; border-right: 1px solid var(--border); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--text);
  font: 600 1.15rem var(--font-head); padding: 6px 10px; border-radius: 9px; cursor: pointer; transition: border-color .2s, background .2s;
}
.cal-title svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; transition: transform .25s; }
.cal-title:hover { border-color: rgba(232,203,163,.35); }
.cal-title[aria-expanded="true"] { border-color: rgba(232,203,163,.5); background: var(--surface-2); }
.cal-title[aria-expanded="true"] svg { transform: rotate(180deg); }
.calendar.is-picking .cal-weekdays, .calendar.is-picking #cal-days { display: none; }
.cal-picker { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; animation: fadeUp .25s ease both; }
.cal-picker[hidden] { display: none; }
.cal-picker-year { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 1.05rem; }
.cal-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; align-content: start; }
.cal-month {
  position: relative; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 9px;
  padding: .8em .4em; font: 500 .92rem var(--font-body); cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.cal-month:hover:not(:disabled) { border-color: var(--accent); }
.cal-month:disabled { color: #4a4740; border-color: transparent; cursor: default; }
.cal-month.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cal-month.has-slots::after { content: ""; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-month.is-current.has-slots::after { background: var(--accent-ink); }
.cal-nav { background: none; border: 0; color: var(--text); font-size: 1.6rem; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--surface-2); }
.cal-nav:disabled { color: #4a4740; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 9px;
  color: var(--text); font: 500 .95rem var(--font-body); cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: rgba(232,203,163,.5); }
.cal-day:disabled { color: #4d4a44; cursor: default; }
.cal-day.is-available { position: relative; }
.cal-day.is-available::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }
.cal-day.is-today { border-color: #3d3b36; }
.cal-day.is-selected { background: var(--accent); color: var(--accent-ink); }
.cal-day.is-selected::after { background: var(--accent-ink); }

.times { padding: 22px 18px; }
.times-title { font-weight: 600; margin: 0; }
.times-date { color: var(--muted); font-size: .9rem; margin: 2px 0 16px; }
.time-list { display: grid; gap: 10px; }
.time-btn {
  background: none; border: 1px solid #45423c; color: var(--text); border-radius: 9px;
  padding: .7em; font: 500 .92rem var(--font-body); cursor: pointer;
}
.time-btn small { display: block; font-size: .72rem; font-weight: 400; opacity: .7; margin-top: 2px; }
.time-btn:hover { border-color: var(--accent); }
.time-btn.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.times-empty { color: var(--muted); font-size: .9rem; }
.time-list > p { grid-column: 1 / -1; margin: 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font: 400 1rem var(--font-body); padding: .75em .9em;
}
select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8cba3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9em center; background-size: 18px;
  transition: border-color .3s;
}
select:hover { border-color: rgba(232,203,163,.45); }
select option { background: #1a1a1c; color: var(--text); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; }
.booking-note { color: var(--accent); font-size: .92rem; margin: 0; }
.booking-note:empty { display: none; }

/* ----- Web dev ----- */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dev-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color .25s, transform .25s; }
.dev-card:hover { border-color: rgba(232,203,163,.45); transform: translateY(-3px); }
.dev-card svg { color: var(--accent); width: 30px; height: 30px; margin-bottom: 18px; }
.dev-card h3 { font-size: 1.08rem; }
.dev-card p { color: var(--muted); font-size: .94rem; margin: 0; }

.projects { margin-top: 72px; }
.projects > h3 { font-size: 1.6rem; margin-bottom: 24px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { display: grid; grid-template-columns: 220px 1fr; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.project-thumb {
  display: grid; place-items: center; min-height: 200px;
  background: linear-gradient(140deg, #1d2a3e, #12161d); color: #c9d2e0;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .02em;
}
.project-thumb--logo { background: linear-gradient(140deg, #26221c, #141312); }
.project-thumb--cecf { background: #0a0d28; padding: 0; overflow: hidden; position: relative; }
.project-thumb--cecf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.project-thumb--logo { position: relative; }
.project-thumb--logo img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.project-body { padding: 26px; }
.project-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.project-body h4 { font-size: 1.25rem; }
.project-body p:not(.project-tag) { color: var(--muted); font-size: .95rem; }

.cta-strip {
  margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(232,203,163,.14), rgba(232,203,163,.04));
  border: 1px solid rgba(232,203,163,.25);
}
.cta-strip p { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; }

/* ----- About ----- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-copy p:not(.eyebrow) { color: #d0cbc3; font-size: 1.05rem; }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-copy > p:not(.eyebrow) { color: #d0cbc3; font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--accent); }
.contact-form { display: grid; gap: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-dirs { margin: 0; color: #d6d1c9; }
.footer-dirs span { color: var(--muted); margin: 0 .5em; }
.social { display: flex; gap: 18px; }
.social a { color: #d6d1c9; }
.social a:hover { color: var(--accent); }
.social svg { width: 24px; height: 24px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-bottom p { margin: 0; color: #77726a; font-size: .85rem; }
.footer-bottom p, .footer-bottom p * { text-decoration: none !important; border-bottom: 0 !important; }
a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; font: inherit !important; }
.flag-us { display: inline-block; width: 19px; height: 10px; margin-left: 2px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); opacity: .9; }

.optional { color: #6f6a63; }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
    transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .hero-photo { max-width: 440px; }
  .hero-inner { padding-bottom: 48px; }
  .direction-grid, .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 400px; width: 100%; margin: 0 auto; }
}

@media (max-width: 600px) {
  .booking-panels { grid-template-columns: 1fr; }
  .calendar { border-right: 0; border-bottom: 1px solid var(--border); padding: 18px 14px; }
  .cal-months { gap: 6px; }
  .cal-month { padding: .6em .3em; }
  .cal-picker { gap: 10px; }
  .time-list { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-thumb { min-height: 0; height: 180px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .cta-strip { padding: 24px; }
  .brand-sub { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ----- Animations ----- */
:root { --ease-soft: cubic-bezier(.16,.84,.3,1); --ease-slow: cubic-bezier(.22,.9,.28,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.94) translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes glowPulse { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes headerIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes lineShine { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
@keyframes iconFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes btnShine { from { left: -60%; } to { left: 130%; } }
@keyframes wordUp { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 4%) scale(1.15); } 100% { transform: translate(4%, -3%) scale(1.05); } }
@keyframes spinIn { from { opacity: 0; transform: rotate(-90deg) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes dayIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }

.js .site-header { animation: headerIn 1.8s var(--ease-soft) both; }
.site-header::after { background-size: 200% 100%; animation: lineShine 9s ease-in-out infinite alternate; }

/* hero: slowly drifting gold light behind everything */
.hero::after {
  content: ""; position: absolute; width: 60vw; height: 60vw; right: -10vw; top: -20vw; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(232,203,163,.10), transparent 60%);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 1; }

.js .hero-copy > * { opacity: 0; animation: fadeUp 2.2s var(--ease-slow) forwards; }
.js .hero-copy > *:nth-child(1) { animation-delay: .5s; }
.js .hero-copy > h1 { opacity: 1; animation: none; }
.js .hero-copy > *:nth-child(3) { animation-delay: 2.0s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 2.5s; }
.js .hero-photo { opacity: 0; animation: fadeIn 3.2s .9s var(--ease-slow) forwards; }
.hero-media { will-change: transform; }
.hero-media::before { animation: glowPulse 10s ease-in-out infinite; }

/* headings rise word by word */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .hero-copy h1 .w > span { opacity: 0; animation: wordUp 1.8s var(--ease-slow) forwards; animation-delay: calc(.8s + var(--wi) * .18s); }
.js .reveal h2 .w > span { opacity: 0; transform: translateY(110%); transition: transform 1.8s var(--ease-slow), opacity 1.4s; transition-delay: calc(var(--d, 0s) + .25s + var(--wi) * .14s); }
.js .reveal.is-visible h2 .w > span { opacity: 1; transform: none; }

/* scroll reveal: default rises from below; some blocks slide in from the side */
.js .reveal {
  opacity: 0; transform: translateY(80px);
  transition: opacity 2s var(--ease-slow), transform 2.4s var(--ease-slow);
  transition-delay: var(--d, 0s);
}
.js .reveal.from-left { transform: translateX(-110px); }
.js .reveal.from-right { transform: translateX(110px); }
.js .reveal.zoom { transform: scale(.9) translateY(50px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal .photo-slot--card, .js .reveal .project-thumb img, .js .reveal.about-photo img { transform: scale(1.12); transition: transform 3s var(--ease-slow); transition-delay: var(--d, 0s); }
.js .reveal.is-visible .photo-slot--card, .js .reveal.is-visible .project-thumb img, .js .reveal.is-visible.about-photo img { transform: none; }
.js .reveal .eyebrow { letter-spacing: .02em; opacity: 0; transition: letter-spacing 2.6s var(--ease-slow), opacity 2s; transition-delay: calc(var(--d, 0s) + .1s); }
.js .reveal.is-visible .eyebrow { letter-spacing: .28em; opacity: 1; }
.js .reveal .direction-icon, .js .reveal.dev-card > svg { opacity: 0; }
.js .reveal.is-visible .direction-icon, .js .reveal.is-visible.dev-card > svg { animation: spinIn 1.8s var(--ease-slow) forwards; animation-delay: calc(var(--d, 0s) + .5s); }
.js .reveal .cal-day { opacity: 0; }
.js .reveal.is-visible .cal-day { animation: dayIn 1.1s var(--ease-slow) forwards; animation-delay: calc(.7s + var(--i, 0) * .035s); }


.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: btnShine 1.4s ease; }

.btn { transition: transform .35s, box-shadow .4s, background .35s, border-color .35s, color .35s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(232,203,163,.22); }
.direction-link span, .cta-strip .btn span { display: inline-block; transition: transform .25s; }
.direction-card:hover .direction-link span { transform: translateX(4px); }
.service-card, .project-card, .gallery-item { transition: border-color .4s, transform .5s var(--ease-soft); }
.service-card:hover, .project-card:hover { transform: translateY(-3px); border-color: rgba(232,203,163,.4); }

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-photo, .js .reveal, .js .site-header, .js .reveal * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .site-header::after, .direction-icon svg, .btn-primary::after, .hero::after, .hero-media::before { animation: none !important; }
  .w > span, .js .reveal .cal-day { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-media::before { animation: none; }
  html { scroll-behavior: auto; }
}
.btn:disabled:hover { transform: none; box-shadow: none; }

/* ----- Lightbox ----- */
.gallery-item, .about-photo img, .hero-photo { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: #0a0a0b; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-stage { display: grid; place-items: center; width: 100vw; height: 100vh; height: 100dvh; padding: 64px 72px; }
.lightbox-stage img { width: auto; height: auto; max-width: calc(100vw - 144px); max-height: calc(100dvh - 128px); object-fit: contain; border-radius: 4px; transform: scale(.97); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lightbox.is-open .lightbox-stage img, .lightbox.is-open .lightbox-ph { transform: none; }
.lightbox-ph {
  width: min(80vw, 560px); aspect-ratio: 4 / 5; max-height: 100%; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted);
  background: linear-gradient(160deg, #26241f, #161618); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem;
  transform: scale(.97); transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(20,20,22,.6); border: 1px solid rgba(232,203,163,.35); color: var(--accent); cursor: pointer;
  transition: border-color .25s, background .25s;
}
.lb-btn:hover { border-color: var(--accent); background: rgba(232,203,163,.12); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .8rem; letter-spacing: .2em; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
body.lb-lock { overflow: hidden; }
@media (max-width: 600px) {
  .lightbox-stage { padding: 64px 12px; }
  .lightbox-stage img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 150px); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 30px; }
}
