:root {
  --white: #ffffff;
  --soft-white: #f7f8f8;
  --ink: #161718;
  --muted: #5e646b;
  --line: #dde1e5;
  --red: #d71920;
  --red-dark: #9f1016;
  --graphite: #24272b;
  --shadow: 0 18px 50px rgba(22, 23, 24, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--white);
}

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

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 225, 229, 0.8);
  backdrop-filter: blur(18px);
}

.admin-page {
  min-height: 100vh;
  background: #f3f4f5;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 430px;
}

.brand-logo {
  display: block;
  width: min(270px, 42vw);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-subtitle {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--red);
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 900;
  line-height: 0.95;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--red);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 24px rgba(215, 25, 32, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 128px clamp(20px, 7vw, 96px) 80px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 36%, rgba(255,255,255,0.26) 70%, rgba(255,255,255,0.08) 100%),
    linear-gradient(0deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0) 24%);
}

.hero-content {
  max-width: 720px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

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

.hero-copy {
  max-width: 620px;
  color: #34383d;
  font-size: clamp(17px, 2vw, 21px);
}

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

.section {
  padding: 92px clamp(20px, 7vw, 96px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1060px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats div {
  padding: 26px;
  background: var(--soft-white);
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
}

.stats span {
  color: var(--muted);
}

.studio-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.studio-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(22, 23, 24, 0.06);
}

.studio-gallery img,
.capability-gallery img,
.work-visual {
  display: block;
  width: 100%;
  object-fit: cover;
}

.studio-gallery img {
  height: 260px;
}

.studio-gallery figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-weight: 800;
}

.services-section {
  background: #f3f4f5;
}

.service-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.work-card,
.career-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(22, 23, 24, 0.06);
}

.service-card {
  min-height: 270px;
  padding: 28px;
}

.service-card.featured {
  color: var(--white);
  background: linear-gradient(145deg, var(--graphite), #111214);
  border-color: #111214;
}

.service-card span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--red);
  font-weight: 900;
}

.service-card.featured p,
.service-card.featured span {
  color: rgba(255, 255, 255, 0.82);
}

.features-section {
  background: var(--white);
}

.feature-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-panel {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-white);
}

.feature-panel h3 {
  margin-bottom: 22px;
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-tags span,
.brand-tags a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(215, 25, 32, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  line-height: 1.25;
}

.tuning-panel {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(255, 255, 255, 0.8)),
    var(--soft-white);
}

.water-panel {
  color: var(--white);
  background: linear-gradient(145deg, var(--graphite), #111214);
  border-color: #111214;
}

.water-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.capability-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.capability-gallery article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(22, 23, 24, 0.06);
}

.wide-capability {
  grid-column: 1 / -1;
}

.capability-gallery img {
  height: 230px;
}

.collage-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 300px;
  overflow: hidden;
  background: var(--white);
}

.collage-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-visual img:first-child {
  object-position: center 55%;
}

.collage-visual img:last-child {
  object-position: center 58%;
}

.capability-gallery h3,
.capability-gallery p {
  padding-inline: 24px;
}

.capability-gallery h3 {
  margin-top: 22px;
}

.capability-gallery p {
  padding-bottom: 24px;
}

.work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-card {
  overflow: hidden;
}

.work-card h3,
.work-card p {
  padding: 0 24px;
}

.work-card p {
  padding-bottom: 26px;
}

.work-visual {
  height: 230px;
  margin-bottom: 24px;
}

.finished-showcase {
  margin-top: 38px;
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}

.showcase-heading h3 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.showcase-heading p:last-child {
  max-width: 520px;
  margin-bottom: 0;
}

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

.finished-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 10px 32px rgba(22, 23, 24, 0.08);
}

.finished-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.finished-card:hover img {
  transform: scale(1.04);
}

.finished-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  content: "";
  background: linear-gradient(0deg, rgba(17, 18, 20, 0.78), rgba(17, 18, 20, 0));
}

.finished-card span,
.finished-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: var(--white);
  font-weight: 900;
}

.finished-card div span {
  position: static;
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.finished-card h4 {
  margin: 0;
  font-size: 28px;
}

.featured-finish {
  grid-row: span 2;
  min-height: 434px;
}

.upload-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 48px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.07), rgba(255, 255, 255, 0) 42%),
    #f3f4f5;
}

.admin-upload-section {
  min-height: calc(100vh - 86px);
  padding-top: 68px;
}

.upload-copy {
  position: sticky;
  top: 112px;
}

.upload-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.upload-points span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid rgba(215, 25, 32, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--red);
  background: var(--white);
  font-weight: 800;
}

.upload-panel {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.upload-dropzone {
  min-height: 190px;
  place-items: center;
  border: 1px dashed rgba(215, 25, 32, 0.5);
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(255, 255, 255, 0.9)),
    var(--soft-white);
  text-align: center;
  cursor: pointer;
}

.upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.upload-dropzone strong {
  font-size: 22px;
}

.upload-dropzone small {
  color: var(--muted);
  font-weight: 700;
}

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

.publish-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.publish-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-height: 112px;
}

.upload-preview img,
.preview-empty {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-white);
}

.upload-preview img {
  display: block;
  object-fit: cover;
}

.preview-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.careers-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 44px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.careers-section p {
  color: rgba(255, 255, 255, 0.72);
}

.career-panel {
  padding: 30px;
  color: var(--ink);
}

.career-panel ul {
  margin: 0 0 26px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 52px;
  align-items: start;
  background: var(--soft-white);
}

.social-block {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.social-block span {
  color: var(--ink);
  font-weight: 900;
}

.social-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a,
.footer-social a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
}

.social-links a {
  min-width: 118px;
  border: 1px solid rgba(215, 25, 32, 0.22);
  color: var(--red);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(22, 23, 24, 0.05);
}

.social-links a:hover {
  color: var(--white);
  background: var(--red);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: #34383d;
  font-weight: 700;
}

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

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px clamp(20px, 7vw, 96px);
  background: #111214;
}

.site-footer p,
.site-footer a,
.site-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer div,
.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact {
  font-style: normal;
  text-align: right;
}

.site-footer a {
  font-weight: 800;
  color: var(--white);
}

.footer-social {
  margin-top: 6px;
}

.footer-social a {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-social a:hover {
  border-color: rgba(215, 25, 32, 0.72);
  color: var(--white);
  background: var(--red);
}

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

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 70px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.76) 50%, rgba(255,255,255,0.25) 100%),
      linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 32%);
  }

  .about-grid,
  .contact-section,
  .careers-section,
  .upload-section,
  .feature-layout,
  .studio-gallery,
  .capability-gallery,
  .finished-grid {
    grid-template-columns: 1fr;
  }

  .showcase-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-finish {
    grid-row: auto;
    min-height: 360px;
  }

  .upload-copy {
    position: static;
  }

  .service-grid,
  .work-grid,
  .stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .service-grid,
  .feature-layout,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-gallery,
  .capability-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .featured-finish {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 420px;
  }

  .upload-section {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  .brand-logo {
    width: min(210px, 54vw);
    max-height: none;
  }

  .brand-subtitle {
    min-height: 37px;
    font-size: clamp(34px, 9vw, 40px);
  }

  .section {
    padding: 68px 18px;
  }

  .hero {
    min-height: 720px;
    padding: 60px 18px 54px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
  }

  .footer-contact {
    text-align: left;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .contact-form,
  .career-panel,
  .upload-panel {
    padding: 22px;
  }

  .upload-fields,
  .upload-preview {
    grid-template-columns: 1fr;
  }
}
