/* ============================================
   Alisa-ART — Light Studio
   ============================================ */

:root {
  --bg: #fafaf7;
  --bg-2: #ffffff;
  --bg-3: #f3f1ec;
  --bg-warm: #f5f1ea;
  --text: #0f0f10;
  --text-dim: #5a5a60;
  --text-mute: #9b9ba1;
  --line: #e7e5dd;
  --line-strong: #d6d3c8;
  --accent: #c8392a;
  --accent-2: #e8543e;
  --accent-soft: rgba(200, 57, 42, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 16, 0.04), 0 4px 16px rgba(15, 15, 16, 0.04);
  --shadow-md: 0 2px 8px rgba(15, 15, 16, 0.06), 0 16px 40px rgba(15, 15, 16, 0.08);
  --container: 1240px;
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============= Typography ============= */

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', 'Inter', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  font-weight: 400;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-dim);
  max-width: 56ch;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.hl {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* ============= Buttons ============= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}

.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-primary {
  background: var(--text);
  color: #fafaf7;
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-link {
  color: var(--text);
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.btn-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.btn .arr {
  display: inline-block;
  transition: transform var(--t);
}
.btn:hover .arr { transform: translateX(4px); }

/* ============= Header ============= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(250, 250, 247, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.logo-mark {
  color: var(--accent);
  font-size: 1rem;
}
.logo-text { letter-spacing: -0.01em; }
.dot-sep { color: var(--accent); margin: 0 1px; }

.nav-main {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-main a {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  border-radius: 999px;
  position: relative;
}
.nav-main a:hover { color: var(--text); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.phone-link:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============= Hero ============= */

.hero {
  padding: 100px 0 60px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.hero-text h1 {
  margin-bottom: 1.6rem;
}
.hero-text .lead {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 2.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
}
.hp-main {
  position: absolute;
  inset: 0;
  width: 92%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  filter: saturate(1.05);
}
.hp-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.hp-sub {
  position: absolute;
  width: 45%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  bottom: -40px;
  right: 0;
  border-radius: var(--radius);
  border: 8px solid var(--bg);
  box-shadow: var(--shadow-md);
  z-index: 1;
  animation: floatSoft 7s ease-in-out infinite;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: 0; padding-right: 0; }
.hero-stats strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--text);
}
.hero-stats .plus { color: var(--accent); }
.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-mute);
  font-weight: 400;
}

/* ============= Marquee ============= */

.marquee {
  background: var(--text);
  color: var(--bg);
  padding: 26px 0;
  overflow: hidden;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
}
.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  width: max-content;
}
.marquee-track i {
  color: var(--accent);
  font-style: normal;
  font-weight: 300;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============= Section base ============= */

.section { padding: 120px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 70px;
}
.section-head h2 { margin-bottom: 1.2rem; }
.section-head p {
  color: var(--text-dim);
  max-width: 50ch;
}

.section-head-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: none;
}
.section-head-row p { margin: 0; }

/* ============= Services ============= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  transition: background var(--t);
  min-height: 260px;
  position: relative;
}

.service-card:hover {
  background: var(--bg-warm);
  color: var(--text);
}

.sc-num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 60px;
  font-feature-settings: 'tnum';
}

.service-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  flex: 1;
}

.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--t);
}
.service-card:hover .sc-link {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
}

/* ============= Process ============= */

.process { background: var(--bg-warm); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  padding: 36px 28px;
  background: var(--bg);
  position: relative;
}
.process-list li:hover { background: var(--bg-2); }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.process-list h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.process-list p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============= Works ============= */

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -40px 0 50px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  overflow-x: auto;
}
.wf-btn {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mute);
  border-radius: 999px;
  transition: all var(--t);
  white-space: nowrap;
}
.wf-btn:hover { color: var(--text); }
.wf-btn.active {
  background: var(--text);
  color: var(--bg);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  grid-auto-flow: row dense;
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t);
}
.work-card.big {
  grid-column: span 2;
  grid-row: span 2;
}

.work-img {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  margin-bottom: 14px;
}
.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-card:hover .work-img img {
  transform: scale(1.04);
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-tag {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.work-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.work-card.big h3 {
  font-size: 1.5rem;
}
.work-card.filter-hide { display: none; }

/* ============= Instagram ============= */

.instagram { background: var(--bg-warm); }

.ig-head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.ig-handle {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 500;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}
.ig-head-meta p {
  color: var(--text-dim);
  max-width: 50ch;
  margin-top: -4px;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 50px;
}

.ig-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
}
.ig-card:hover {
  transform: scale(1.03);
  z-index: 5;
  box-shadow: var(--shadow-md);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}
.ig-card:hover img {
  filter: brightness(0.5) saturate(1.2);
}

.ig-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  color: white;
  z-index: 2;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.ig-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 12px;
  color: white;
  opacity: 0;
  transition: opacity var(--t);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
  z-index: 3;
}
.ig-card:hover .ig-overlay { opacity: 1; }
.ig-overlay p {
  font-size: 0.78rem;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-meta {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  font-weight: 500;
}

.ig-foot {
  text-align: center;
  margin-top: 30px;
}

@media (max-width: 1080px) {
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ig-overlay { padding: 8px; }
  .ig-overlay p { font-size: 0.68rem; -webkit-line-clamp: 3; }
  .ig-meta { font-size: 0.6rem; }
}

/* ============= About ============= */

.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 { margin-bottom: 1.6rem; }
.about-text > p { margin-bottom: 1rem; color: var(--text-dim); }
.about-text > p strong { color: var(--text); font-weight: 500; }

.about-features {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.about-features li {
  padding: 18px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  padding-left: 28px;
}
.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--accent);
  font-weight: 700;
}

.about-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about-photo figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.about-quote {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.about-quote p {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin-bottom: 14px;
}
.about-quote cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ============= CTA ============= */

.cta-band { padding: 80px 0; }

.cta-inner {
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 70px 70px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-inner h2 { color: var(--bg); margin-bottom: 0.6rem; }
.cta-inner p { color: rgba(250, 250, 247, 0.65); font-size: 1.05rem; }
.cta-inner .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.cta-inner .btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.cta-inner .btn-link {
  color: var(--bg);
  text-decoration-color: rgba(250, 250, 247, 0.3);
}
.cta-inner .btn-link:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.cta-actions .btn { justify-content: center; }

/* ============= Contacts ============= */

.contacts { background: var(--bg-2); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ci-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.ci-block:last-child { border-bottom: 0; padding-bottom: 0; }

.ci-label {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
  font-weight: 500;
}
.ci-block a {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 4px 0;
  color: var(--text);
}
.ci-block a:hover { color: var(--accent); }
.ci-block a em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 10px;
}
.ci-block p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row { margin-bottom: 22px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label { display: block; }
.form-row span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: all var(--t);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--bg-2);
}
.form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ba1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-mute);
  flex: 1;
  min-width: 200px;
}
.form-note a { color: var(--accent); text-decoration: underline; }

/* ============= Footer ============= */

.site-footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.f-col h5 { color: var(--text); margin-bottom: 18px; }
.f-col ul li { margin-bottom: 12px; }
.f-col ul a {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.f-col ul a:hover { color: var(--accent); }

.f-brand p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 18px;
  max-width: 360px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ============= Scroll-top ============= */

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--t);
  z-index: 50;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

/* ============= Reveal ============= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= Responsive ============= */

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
  .work-card.big { grid-column: span 2; grid-row: span 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-main { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; }
  .hero-photo { max-width: 500px; margin: 0 auto; }
  .section-head-row { grid-template-columns: 1fr; gap: 20px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-side { position: static; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 40px; }

  .header-inner { height: 60px; gap: 12px; }
  .phone-link { display: none; }

  .nav-main {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--bg);
    flex-direction: column;
    padding: 30px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--t);
    border-top: 1px solid var(--line);
    z-index: 90;
    overflow-y: auto;
    margin: 0;
  }
  .nav-main.open { transform: translateX(0); }
  .nav-main a { padding: 14px 18px; font-size: 1.05rem; }
  .burger { display: flex; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .hero-stats > div {
    padding: 0 16px;
    border-right: 1px solid var(--line);
  }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(3) { padding-left: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }
  .work-card.big { grid-column: span 2; grid-row: span 2; }
  .work-card h3 { font-size: 0.95rem; }
  .work-card.big h3 { font-size: 1.2rem; }
  .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { grid-template-columns: 1fr; padding: 40px 28px; }
  .form-row.two { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .marquee-track { font-size: 1.2rem; gap: 20px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .scroll-top { right: 16px; bottom: 16px; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }

  .hero-actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
}

/* Global overflow prevention */
html, body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3, h4, h5, p, a, span, .lead {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img, svg { max-width: 100%; }

@media (max-width: 600px) {
  h1, h2, h3 { hyphens: auto; }
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--text);
  color: var(--bg);
}
