:root {
  --ink: #10202a;
  --muted: #5f6870;
  --paper: #f7f5ef;
  --white: #ffffff;
  --graphite: #20252b;
  --copper: #c47a43;
  --teal: #0d7c82;
  --sky: #d7eef5;
  --line: rgba(16, 32, 42, 0.14);
  --shadow: 0 24px 60px rgba(12, 24, 30, 0.18);
  --font-body: Montserrat, "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-heading: Oswald, Impact, "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(9, 16, 20, 0.72), rgba(9, 16, 20, 0.08));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(5, 12, 16, 0.36);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(14, 22, 26, 0.28);
  backdrop-filter: blur(12px);
}

.site-nav a {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  --hero-scroll: 0;
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 150px clamp(20px, 6vw, 84px) 96px;
  text-align: center;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background: #060b0f;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.02 + (var(--hero-scroll) * 0.14))) translate3d(0, calc(var(--hero-scroll) * -36px), 0);
  filter: saturate(1.08) contrast(1.05);
  will-change: transform;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 12, 16, 0.72), rgba(5, 12, 16, 0.16) 58%, rgba(5, 12, 16, 0.34)),
    linear-gradient(to top, rgba(5, 12, 16, 0.46), rgba(5, 12, 16, 0));
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.lens-section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 84px);
  background: linear-gradient(135deg, #f7f5ef 0%, #e8f3f2 52%, #f3eadf 100%);
}

.why-section,
.showcase-section {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 84px);
  text-align: center;
}

.why-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 20, 25, 0.96), rgba(20, 37, 44, 0.94)),
    url("assets/hero-estate-sunset.png") center / cover fixed;
}

.why-intro,
.showcase-section {
  max-width: 1180px;
  margin: 0 auto;
}

.why-intro {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.why-intro h2,
.showcase-copy h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.why-intro p,
.showcase-copy p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.75;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 40px auto 0;
}

.why-grid article {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.why-grid span {
  justify-content: center;
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--copper);
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.why-grid h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.why-grid p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.showcase-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  text-align: left;
}

.showcase-section {
  background: var(--paper);
}

.showcase-copy p {
  margin: 20px 0 28px;
  color: var(--muted);
}

.showcase-image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.section-grid > div {
  order: 2;
}

.section-grid .image-panel {
  order: 1;
}

.lens-section h2,
.contact-band h2,
.service-list h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-copy,
.contact-copy p,
.service-list p,
.contact-card p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.image-panel {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 6vw, 84px);
  color: var(--white);
  background: var(--graphite);
}

.contact-copy {
  max-width: 820px;
  margin: 0 auto;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-phone {
  display: inline-flex;
  margin-top: 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 84px);
  color: rgba(255, 255, 255, 0.7);
  background: #11171a;
  font-size: 0.92rem;
}

.subpage {
  min-height: 100vh;
  padding-top: 92px;
  background:
    linear-gradient(135deg, rgba(16, 32, 42, 0.92), rgba(13, 124, 130, 0.74)),
    url("assets/hero-estate-sunset.png") center / cover fixed;
}

.subpage::after {
  display: block;
  clear: both;
  content: "";
}

.subpage > section {
  width: min(100%, 1440px);
  margin-left: auto;
  margin-right: auto;
}

.page-hero {
  padding: clamp(72px, 8vw, 110px) clamp(24px, 4vw, 64px) clamp(42px, 6vw, 78px);
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.8rem, 7vw, 6.7rem);
}

.service-list,
.contact-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px) clamp(74px, 9vw, 120px);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 18px;
  text-align: center;
}

.service-list article,
.contact-form,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.service-list article {
  padding: 26px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--copper);
  font-weight: 900;
}

.service-list h2 {
  font-size: 1.36rem;
  line-height: 1.15;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(320px, 0.45fr);
  gap: 22px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 36px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.hidden-field {
  display: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.contact-card {
  padding: 30px;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.7rem;
}

.contact-card a {
  display: block;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-content {
  display: grid;
  gap: 18px;
  max-width: 980px;
  padding: 0 clamp(20px, 4vw, 44px) clamp(74px, 9vw, 120px);
}

.legal-content article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
}

.admin-main {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-login,
.admin-workspace {
  padding: 0 clamp(20px, 4vw, 44px) clamp(74px, 9vw, 120px);
}

.admin-card {
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.admin-card + .admin-card {
  margin-top: 20px;
}

.admin-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.admin-card p {
  color: var(--portfolio-muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--portfolio-text);
  font-weight: 850;
}

.admin-card input,
.admin-card select,
.admin-card textarea {
  width: 100%;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--portfolio-text);
  background: var(--portfolio-panel-2);
  font: inherit;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.admin-message,
.admin-empty {
  min-height: 1.4em;
  color: var(--copper);
  font-weight: 850;
}

.upload-list {
  display: grid;
  gap: 14px;
}

.upload-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 14px;
  background: var(--portfolio-panel-2);
}

.upload-item img {
  width: 140px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.upload-item h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.upload-actions {
  display: grid;
  gap: 8px;
}

.upload-actions button {
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.portfolio-page {
  --portfolio-bg: #080c10;
  --portfolio-panel: #101720;
  --portfolio-panel-2: #151e28;
  --portfolio-text: #edf5f7;
  --portfolio-muted: #9aabb5;
  --portfolio-border: rgba(255, 255, 255, 0.12);
  --portfolio-hover: rgba(39, 158, 166, 0.16);
  --portfolio-active: rgba(39, 158, 166, 0.26);
  color: var(--portfolio-text);
  background: var(--portfolio-bg);
}

.portfolio-page[data-theme="light"] {
  --portfolio-bg: #eef2f4;
  --portfolio-panel: #ffffff;
  --portfolio-panel-2: #f7f9fa;
  --portfolio-text: #132029;
  --portfolio-muted: #68747d;
  --portfolio-border: rgba(19, 32, 41, 0.14);
  --portfolio-hover: rgba(13, 124, 130, 0.1);
  --portfolio-active: rgba(13, 124, 130, 0.18);
}

.portfolio-header {
  background: rgba(7, 11, 15, 0.84);
  backdrop-filter: blur(16px);
}

.portfolio-main {
  min-height: 100vh;
  padding: 120px clamp(18px, 4vw, 54px) 54px;
  background:
    radial-gradient(circle at 18% 12%, rgba(13, 124, 130, 0.18), transparent 30%),
    linear-gradient(135deg, var(--portfolio-bg), var(--portfolio-bg));
}

.portfolio-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1420px;
  margin: 0 auto 24px;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  font-weight: 850;
}

.portfolio-title h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 0.94;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.toggle-track {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(13, 124, 130, 0.45);
}

.toggle-track span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.portfolio-page[data-theme="light"] .toggle-track span {
  transform: translateX(18px);
}

.explorer {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 360px;
  gap: 16px;
  max-width: 1420px;
  margin: 0 auto;
}

.explorer-sidebar,
.explorer-window,
.preview-pane {
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--portfolio-panel) 92%, transparent);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.explorer-sidebar {
  padding: 14px;
}

.sidebar-title {
  margin: 0 0 12px;
  color: var(--portfolio-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.folder-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 11px 10px;
  color: var(--portfolio-text);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.folder-button:hover,
.folder-button.active {
  background: var(--portfolio-active);
}

.folder-icon {
  position: relative;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  background: #d49a3a;
}

.folder-icon::before {
  position: absolute;
  top: -4px;
  left: 2px;
  width: 9px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: #e1b15a;
  content: "";
}

.explorer-window {
  min-width: 0;
  overflow: hidden;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--portfolio-border);
  background: var(--portfolio-panel-2);
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 4px;
  background: var(--portfolio-panel);
}

.view-button,
.tag-chip {
  border: 0;
  border-radius: 7px;
  color: var(--portfolio-muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.view-button {
  min-height: 34px;
  padding: 7px 10px;
}

.view-button.active,
.tag-chip.active {
  color: var(--portfolio-text);
  background: var(--portfolio-active);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--portfolio-border);
  background: color-mix(in srgb, var(--portfolio-panel-2) 82%, transparent);
}

.tag-chip {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--portfolio-border);
}

.window-controls {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

.window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--portfolio-muted);
}

.path-bar {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--portfolio-muted);
  background: var(--portfolio-panel);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-header,
.file-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(110px, 0.6fr) minmax(90px, 0.5fr) minmax(92px, 0.5fr) minmax(130px, 0.75fr);
  align-items: center;
  gap: 12px;
}

.file-header {
  padding: 12px 16px;
  color: var(--portfolio-muted);
  border-bottom: 1px solid var(--portfolio-border);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.file-list {
  min-height: 520px;
}

.file-list.is-refreshing .file-row {
  animation: folder-refresh 260ms ease both;
}

@keyframes folder-refresh {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--portfolio-border);
  padding: 12px 16px;
  color: var(--portfolio-text);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.file-row:hover {
  background: var(--portfolio-hover);
}

.file-row.active {
  background: var(--portfolio-active);
}

.file-list[data-view="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  padding: 14px;
}

.file-list[data-view="grid"] .file-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: start;
  min-height: 220px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
}

.file-list[data-view="grid"] .file-name {
  display: grid;
  gap: 10px;
}

.file-list[data-view="grid"] .file-name img {
  width: 100%;
  height: 132px;
}

.file-list[data-view="grid"] .file-row > span:not(.file-name) {
  font-size: 0.82rem;
  color: var(--portfolio-muted);
}

.file-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 850;
}

.file-name img {
  width: 54px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.file-row:hover .file-name img {
  transform: scale(1.06);
}

.file-name span,
.file-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tags {
  color: var(--portfolio-muted);
}

.empty-folder {
  display: grid;
  min-height: 320px;
  place-items: center;
  color: var(--portfolio-muted);
  font-weight: 850;
}

.preview-pane {
  overflow: hidden;
}

.preview-pane > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.preview-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: var(--portfolio-muted);
  font-weight: 850;
}

.preview-meta {
  padding: 22px;
}

.preview-meta h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
}

.preview-meta p {
  color: var(--portfolio-muted);
  line-height: 1.65;
}

.preview-tags,
.viewer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preview-tags span,
.viewer-tags span {
  border: 1px solid var(--portfolio-border);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--portfolio-text);
  background: var(--portfolio-active);
  font-size: 0.78rem;
  font-weight: 850;
}

.preview-meta dl {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.preview-meta div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--portfolio-border);
  padding-bottom: 9px;
}

.preview-meta dt {
  color: var(--portfolio-muted);
  font-weight: 850;
}

.preview-meta dd {
  margin: 0;
  font-weight: 850;
}

.viewer[hidden] {
  display: none;
}

.viewer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.viewer-stage {
  position: relative;
  background: #05080b;
}

.viewer-stage [hidden] {
  display: none;
}

.viewer-stage > img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #05080b;
}

.viewer-info {
  padding: 18px 22px 22px;
}

.viewer-dialog h2 {
  margin: 0;
  font-family: var(--font-heading);
}

.viewer-dialog p {
  margin-bottom: 0;
  color: var(--portfolio-muted);
}

.compare-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--portfolio-text);
  background: var(--portfolio-active);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.compare-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--copper);
}

.compare-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.viewer-close {
  position: absolute;
  top: 14px;
  right: 22px;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  background: #b42318;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.viewer-close:hover {
  background: #d92d20;
}

.viewer-nav {
  position: absolute;
  z-index: 3;
  top: 43%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(5, 8, 11, 0.72);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.viewer-prev {
  left: 12px;
}

.viewer-next {
  right: 12px;
}

.compare-viewer {
  position: relative;
  max-height: 72vh;
  overflow: hidden;
}

.compare-viewer > img,
.compare-after img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #05080b;
}

.compare-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-slider {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  bottom: 18px;
  width: 90%;
  accent-color: var(--copper);
}

.compare-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(5, 8, 11, 0.7);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-label.before {
  left: 14px;
}

.compare-label.after {
  right: 92px;
}

.filmstrip {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filmstrip-item {
  flex: 0 0 92px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.filmstrip-item.active {
  border-color: var(--copper);
}

.filmstrip-item img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.hover-preview[hidden] {
  display: none;
}

.hover-preview {
  position: fixed;
  z-index: 60;
  width: 240px;
  border: 1px solid var(--portfolio-border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--portfolio-text);
  background: var(--portfolio-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hover-preview img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.hover-preview span {
  display: block;
  padding: 10px;
  font-size: 0.84rem;
  font-weight: 850;
}

.viewer-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
  }

  .hero {
    min-height: 100vh;
    padding-top: 210px;
  }

  .section-grid,
  .contact-layout,
  .why-intro,
  .showcase-section {
    grid-template-columns: 1fr;
  }

  .contact-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-list,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer {
    grid-template-columns: 1fr;
  }

  .explorer-sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .sidebar-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .site-nav {
    gap: 4px;
    padding: 4px;
  }

  .site-nav a {
    padding: 9px 8px;
    font-size: 0.82rem;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-main {
    padding-top: 180px;
  }

  .portfolio-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .file-header {
    display: none;
  }

  .file-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .file-row > span:not(.file-name) {
    padding-left: 66px;
    color: var(--portfolio-muted);
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
    animation: none;
  }

  .hero-image {
    animation: none;
  }
}
