:root {
  --bg: #f4f1eb;
  --surface: #fbfaf7;
  --surface-soft: #e9e4dc;
  --text: #252525;
  --muted: #6d6b67;
  --line: rgba(37, 37, 37, .14);
  --dark: #222321;
  --dark-soft: #30312f;
  --light: #faf9f5;
  --accent: #b89a72;
  --accent-dark: #876b49;
  --shadow: 0 30px 90px rgba(25,25,25,.16);
  --container: 1220px;
  --radius-lg: 30px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 118px 0; }
.section-soft { background: var(--surface-soft); }
.section-dark { color: var(--light); background: var(--dark); }

.page-loader {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 18px;
  color: white;
  background: var(--dark);
  transition: opacity .7s ease, visibility .7s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand { font-size: clamp(24px, 5vw, 48px); letter-spacing: .32em; }
.loader-line { width: 0; height: 1px; background: var(--accent); animation: loadline 1.35s ease forwards; }
@keyframes loadline { to { width: 100%; } }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; right: 0;
  color: white;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  color: var(--text);
  background: rgba(244,241,235,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .18em; font-size: 13px; }
.brand img { width: 44px; height: 44px; }
.main-nav { margin-left: auto; display: flex; gap: 28px; font-size: 14px; }
.main-nav a { opacity: .78; transition: opacity .2s ease; }
.main-nav a:hover { opacity: 1; }
.header-cta {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: .25s ease; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: end; overflow: hidden; color: white; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,15,15,.74), rgba(15,15,15,.22) 62%, rgba(15,15,15,.08)); }
.hero-shimmer {
  position: absolute;
  inset: -35% auto -35% -35%;
  width: 20%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 20% { left: -35%; opacity: 0; }
  36% { opacity: .75; }
  62%, 100% { left: 120%; opacity: 0; }
}
.hero-content { position: relative; z-index: 2; padding-bottom: 58px; }
.hero-kicker { margin: 0 0 18px; color: rgba(255,255,255,.7); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.hero h1 {
  max-width: 900px;
  margin: 0;
  font: 600 clamp(50px, 7vw, 98px)/.98 "Playfair Display", Georgia, serif;
}
.hero-subtitle { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.78); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--dark); background: white; }
.button-dark { color: white; background: var(--dark); }
.button-ghost { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.scroll-hint {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: 36px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.scroll-hint i { width: 1px; height: 50px; background: rgba(255,255,255,.48); animation: scrollline 1.7s ease-in-out infinite; }
@keyframes scrollline { 0%,100%{transform:scaleY(.35);transform-origin:top}50%{transform:scaleY(1);transform-origin:top} }

.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-index { margin: 0; color: var(--accent-dark); font-size: 13px; }
.statement-grid { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 50px; align-items: start; }
.statement h2, .section-heading h2, .designers h2, .contacts h2, .estimate-modal h2 {
  margin: 0;
  font: 600 clamp(40px, 5vw, 66px)/1.08 "Playfair Display", Georgia, serif;
}
.statement-copy { color: var(--muted); font-size: 18px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.metric { min-height: 220px; padding: 34px; display: flex; flex-direction: column; justify-content: end; background: var(--dark); }
.metric strong { font: 600 38px/1 "Playfair Display", Georgia, serif; }
.metric span { margin-top: 12px; color: rgba(255,255,255,.58); font-size: 13px; }

.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 55px; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); }

.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.service-row:hover { padding-left: 14px; background: rgba(255,255,255,.34); }
.service-row > span { color: var(--accent-dark); font-size: 12px; }
.service-row h3 { margin: 0; font-size: 25px; }
.service-row p { margin: 0; color: var(--muted); }
.service-row button { border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font-weight: 700; }

.portfolio-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.portfolio-filters button {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  cursor: pointer;
}
.portfolio-filters button.active { color: white; border-color: var(--dark); background: var(--dark); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 115px;
  gap: 20px;
}
.project {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d9d4cc;
  cursor: zoom-in;
  transition: opacity .35s ease, transform .35s ease;
}
.project-hero { grid-column: span 8; grid-row: span 6; }
.project-wide { grid-column: span 8; }
.project.hidden { display: none; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .35s ease; }
.project:hover img { transform: scale(1.045); filter: contrast(1.03) saturate(.94); }
.project figcaption {
  position: absolute;
  inset: auto 18px 18px;
  padding: 18px 20px;
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(22,22,22,.48);
  backdrop-filter: blur(12px);
}
.project figcaption span, .project figcaption strong { display: block; }
.project figcaption span { opacity: .72; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.project figcaption strong { margin-top: 5px; font-size: 17px; }

.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.process-list li:hover { padding-left: 12px; }
.process-list li > span { color: var(--accent-dark); font-size: 12px; }
.process-list h3 { margin: 0 0 8px; font-size: 24px; }
.process-list p { margin: 0; color: var(--muted); }

.designers-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: center; }
.designers .eyebrow { color: var(--accent); }
.designers p { color: rgba(255,255,255,.64); font-size: 17px; }
.designers .button { margin-top: 22px; }

.contacts-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.contacts-intro { color: var(--muted); }
.contact-list { margin-top: 44px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; background: var(--bg); }
.contact-list span { color: var(--muted); font-size: 13px; }

.contact-form {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}
.contact-form label, .estimate-modal label { display: grid; gap: 9px; margin-bottom: 20px; }
.contact-form label span, .estimate-modal label span { font-size: 13px; }
.contact-form input, .contact-form textarea, .contact-form select,
.estimate-modal input, .estimate-modal textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus,
.estimate-modal input:focus, .estimate-modal textarea:focus { border-color: var(--accent-dark); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.form-status { min-height: 22px; margin: 8px 0 0; color: var(--accent-dark); font-size: 13px; }

.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 25px; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }

.estimate-modal {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 35px 100px rgba(0,0,0,.3);
}
.estimate-modal::backdrop, .lightbox::backdrop { background: rgba(15,15,15,.76); backdrop-filter: blur(8px); }
.modal-content { padding: 52px; }
.modal-close, .lightbox-close {
  position: fixed;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: white;
  background: rgba(20,20,20,.62);
  cursor: pointer;
  font-size: 26px;
}
.estimate-modal .modal-close { position: sticky; float: right; margin: 14px 14px 0 0; color: var(--text); border-color: var(--line); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.estimate-modal fieldset { margin: 0 0 24px; padding: 0; border: 0; }
.estimate-modal legend { margin-bottom: 12px; font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice-grid label { margin: 0; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid span { min-height: 50px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.choice-grid input:checked + span { color: white; border-color: var(--dark); background: var(--dark); }
.file-field { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-md); }
.file-field input { border: 0; }
.file-field small { color: var(--muted); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 40px 80px; }
.lightbox-nav {
  position: fixed;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white;
  background: rgba(20,20,20,.58);
  cursor: pointer;
  font-size: 22px;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    position: fixed;
    display: flex;
    inset: 86px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 28px;
    color: var(--text);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-toggle.active span:nth-child(2){opacity:0}
  .menu-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .statement-grid { grid-template-columns: 60px 1fr; }
  .statement-copy { grid-column: 2; }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-row p, .service-row button { grid-column: 2; }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: auto; }
  .project, .project-hero, .project-wide { grid-column: auto; grid-row: auto; min-height: 430px; }
  .designers-grid, .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 82px 0; }
  .header-inner { min-height: 74px; }
  .main-nav.open { top: 74px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-content { padding-bottom: 90px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions { display: grid; }
  .scroll-hint { display: none; }
  .statement-grid { grid-template-columns: 1fr; gap: 20px; }
  .statement-copy { grid-column: auto; }
  .metrics-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .section-heading { display: grid; gap: 20px; margin-bottom: 36px; }
  .service-row { grid-template-columns: 42px 1fr; gap: 18px; }
  .project, .project-hero, .project-wide { min-height: 450px; }
  .process-list li { grid-template-columns: 50px 1fr; }
  .contact-list a { display: grid; gap: 4px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .modal-content { padding: 38px 22px; }
  .form-row, .choice-grid { grid-template-columns: 1fr; }
  .lightbox img { padding: 70px 10px; }
  .lightbox-nav { top: auto; bottom: 18px; transform: none; }
}

/* Minimal portfolio: photographs only */
.project figcaption { display: none !important; }
.project-hero img { object-position: center 18%; }

/* Premium refinement */
.statement-grid { grid-template-columns: 1fr 1fr; }
.hero-overlay { background: linear-gradient(90deg, rgba(12,12,12,.78), rgba(12,12,12,.28) 60%, rgba(12,12,12,.12)); }
.hero-intro > * { opacity: 0; transform: translateY(24px); animation: heroEnter .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-intro .hero-kicker { animation-delay: .25s; }
.hero-intro h1 { animation-delay: .38s; }
.hero-intro .hero-subtitle { animation-delay: .52s; }
.hero-intro .hero-actions { animation-delay: .66s; }
@keyframes heroEnter { to { opacity: 1; transform: translateY(0); } }

.portfolio-grid { align-items: start; }
.project { box-shadow: 0 12px 34px rgba(20,20,20,.08); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.3)); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.project:hover::after { opacity: 1; }
.project-zoom { position: absolute; z-index: 2; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: white; background: rgba(20,20,20,.32); backdrop-filter: blur(10px); font: 300 26px/1 Manrope, sans-serif; opacity: 0; transform: translateY(8px) scale(.92); transition: opacity .3s ease, transform .3s ease; }
.project:hover .project-zoom { opacity: 1; transform: translateY(0) scale(1); }
.project.project-collapsed { display: none; }
.portfolio-more { display: flex; justify-content: center; margin-top: 42px; }
.portfolio-more .button { min-width: 230px; }

.contact-list a { align-items: center; transition: transform .25s ease, background .25s ease; }
.contact-list a:hover { transform: translateX(5px); background: white; }
.contact-list span { display: inline-flex; align-items: center; gap: 10px; }
.contact-list span::before { content: attr(data-icon); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--dark); font-size: 13px; }

.site-footer { padding: 58px 0 30px; background: var(--dark); color: white; border-top: 0; }
.footer-premium { display: grid; grid-template-columns: 1.4fr .6fr .8fr; gap: 70px; align-items: start; }
.footer-brand { color: white; }
.footer-intro p { max-width: 440px; margin: 22px 0 0; color: rgba(255,255,255,.56); line-height: 1.7; }
.footer-links { display: grid; gap: 14px; }
.footer-links a { color: rgba(255,255,255,.78); transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: white; transform: translateX(4px); }
.footer-meta { color: rgba(255,255,255,.45); font-size: 13px; }
.footer-meta p { margin: 0 0 10px; }

@media (max-width: 900px) {
  .statement-grid { grid-template-columns: 1fr; }
  .footer-premium { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .hero-content { padding-bottom: 72px; }
  .project-zoom { opacity: 1; transform: none; width: 40px; height: 40px; }
  .footer-premium { grid-template-columns: 1fr; gap: 34px; }
  .footer-meta { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-intro > * { opacity: 1; transform: none; animation: none; }
}


/* Layout fixes: hero spacing and stable gallery */
.hero-content { padding-bottom: 58px; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  grid-auto-flow: row dense;
  align-items: stretch;
  gap: 20px;
}
.project, .project-hero, .project-wide {
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
}
.project-wide, .project-hero { grid-column: span 2; aspect-ratio: 16 / 10; }
.portfolio { overflow: clip; }
.portfolio-grid::after { content: ""; display: block; clear: both; }
@media (max-width: 900px) {
  .hero-content { padding-bottom: 46px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project, .project-hero, .project-wide { min-height: 0; aspect-ratio: 4 / 5; }
  .project-wide, .project-hero { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
  .hero-content { padding-bottom: 34px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .project, .project-hero, .project-wide { grid-column: auto; aspect-ratio: 4 / 5; min-height: 0; }
}

/* Final hero/header spacing fix: keep the title below the fixed logo on every screen */
.hero {
  align-items: stretch;
}
.hero-content {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 150px;
  padding-bottom: 48px;
}
@media (max-width: 900px) {
  .hero-content {
    padding-top: 138px;
    padding-bottom: 40px;
  }
}
@media (max-width: 620px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 40px; height: 40px; }
  .brand { gap: 10px; font-size: 11px; letter-spacing: .14em; }
  .hero-content {
    min-height: 100svh;
    padding-top: 128px;
    padding-bottom: 32px;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.02;
  }
}

/* Functional release */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.consent-field { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.consent-field input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--dark); }
.form-status { min-height: 24px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.form-status.success { color: #2f6e47; }
.form-status.error { color: #a63b32; }
button[disabled] { cursor: wait; opacity: .62; }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) { border-color: rgba(166,59,50,.7); }
.project:focus-visible { outline: 3px solid rgba(179,139,82,.75); outline-offset: 4px; }
.quick-contact { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: grid; gap: 10px; }
.quick-contact-link { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: white; background: rgba(31,30,28,.92); box-shadow: 0 10px 30px rgba(0,0,0,.2); font-weight: 700; backdrop-filter: blur(10px); transition: transform .2s ease, background .2s ease; }
.quick-contact-link:hover { transform: translateY(-3px); background: #b38b52; }
@media (min-width: 981px) { .quick-contact { display: none; } }
@media (max-width: 680px) {
  .quick-contact { right: 14px; bottom: 14px; }
  .quick-contact-link { width: 46px; height: 46px; }
  body.menu-open { overflow: hidden; }
}


/* Functional form, notifications and PWA */
.file-summary{margin-top:12px;font-size:.85rem;line-height:1.5;color:#666;word-break:break-word}
.file-summary.is-error{color:#a3382b}
.button[aria-busy="true"]{cursor:wait;opacity:.78}
.button[aria-busy="true"] .button-label::after{content:"";display:inline-block;width:14px;height:14px;margin-left:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:form-spin .7s linear infinite}
@keyframes form-spin{to{transform:rotate(360deg)}}
.toast{position:fixed;right:24px;bottom:24px;z-index:10000;max-width:min(420px,calc(100vw - 32px));padding:16px 20px;border-radius:14px;background:#1f1f1d;color:#fff;box-shadow:0 18px 55px rgba(0,0,0,.25);font-size:.95rem;line-height:1.45;opacity:0;transform:translateY(16px);pointer-events:none;transition:opacity .25s ease,transform .25s ease}
.toast.visible{opacity:1;transform:translateY(0)}
.toast.error{background:#7e2d25}.toast.success{background:#2f5d48}
.install-app{position:fixed;left:24px;bottom:24px;z-index:8000;border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:12px 18px;background:#1f1f1d;color:#fff;box-shadow:0 12px 36px rgba(0,0,0,.22);font:inherit;cursor:pointer}
.install-app[hidden]{display:none}
@media(max-width:700px){.toast{right:16px;bottom:88px}.install-app{left:16px;bottom:88px}.file-field{overflow:hidden}.file-field input[type=file]{max-width:100%}}
