/* ============================================================
   日日映像 — Japanese editorial minimalism
   Warm beige palette / off-white / generous whitespace
   ============================================================ */

:root {
  --paper: #faf6ee;
  --paper-2: #f2ecdd;
  --beige: #e8dcc6;
  --beige-soft: #efe6d6;
  --line: #e2d6c2;
  --ink: #322c24;
  --ink-soft: #6e6557;
  --ink-faint: #9b9183;
  --clay: #b07d57;
  --clay-deep: #98683f;
  --espresso: #463a2c;
  --noir: #0c0b09;
  --shadow-soft: 0 18px 48px -28px rgba(70, 58, 44, 0.45);
  --shadow-card: 0 24px 60px -34px rgba(70, 58, 44, 0.55);
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* Atmospheric grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

h1,
h2,
h3 {
  font-family: "Noto Serif TC", serif;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0;
}

p {
  margin: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 2.3em;
  border-radius: 999px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    background-color 0.45s var(--ease), color 0.45s var(--ease);
}

.btn-primary {
  background-color: var(--espresso);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: var(--clay-deep);
  box-shadow: var(--shadow-card);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--clay);
  color: var(--clay-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem clamp(1.4rem, 5vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
}

/* Overlay variant — sits transparently on top of the hero */
.header-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
  color: var(--ink);
}

.header-overlay .brand-name {
  color: var(--ink);
}

.header-overlay .site-nav {
  color: var(--ink-soft);
}

.header-overlay .site-nav a:hover {
  color: var(--clay-deep);
}

.header-overlay .site-nav a::after {
  background: var(--clay);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e7b27e, var(--clay-deep));
  box-shadow: 0 0 0 4px rgba(176, 125, 87, 0.14);
}

.brand-name {
  font-family: "Noto Serif TC", serif;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 2.2rem;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  transition: color 0.4s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 0.4s var(--ease);
}

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

.site-nav a:hover::after {
  width: 100%;
}

/* ---------- Layout shells ---------- */
main {
  position: relative;
  z-index: 2;
}

section {
  padding: clamp(4.5rem, 11vw, 9rem) clamp(1.4rem, 6vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  margin-bottom: clamp(2.6rem, 6vw, 4.5rem);
  max-width: 40ch;
}

/* Decorative label (used on the thank-you page) */
.section-index {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 1.05rem;
  letter-spacing: 0.4em;
  color: var(--clay);
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
}

.section-lead {
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Hero (cinematic, warm, centered) ---------- */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: clamp(560px, 82svh, 900px);
  margin: 0;
  padding: clamp(6rem, 12vw, 9rem) clamp(1.4rem, 6vw, 4rem)
    clamp(3.5rem, 7vw, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--paper-2), var(--beige-soft) 55%, var(--paper));
  overflow: hidden;
}

/* Portfolio-highlight mosaic, drifting behind a soft warm overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  filter: grayscale(0.55) sepia(0.18) contrast(0.96) brightness(1.06);
  opacity: 0.42;
}

.hero-row {
  display: flex;
  gap: clamp(8px, 1.4vw, 16px);
  width: max-content;
  flex: 0 0 auto;
  will-change: transform;
}

.hero-row img {
  width: clamp(220px, 24vw, 360px);
  height: clamp(132px, 14vw, 210px);
  object-fit: cover;
  border-radius: 4px;
  display: block;
  flex: 0 0 auto;
}

.hero-row-a {
  animation: heroDriftA 64s linear infinite;
}

.hero-row-b {
  animation: heroDriftB 78s linear infinite;
}

@keyframes heroDriftA {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes heroDriftB {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      120% 90% at 50% 38%,
      rgba(250, 246, 238, 0.45),
      rgba(242, 236, 221, 0.82) 72%
    ),
    linear-gradient(
      180deg,
      rgba(250, 246, 238, 0.7),
      rgba(242, 236, 221, 0.55) 45%,
      var(--paper)
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 36ch;
  margin: 0 auto;
  color: var(--ink);
}

.hero-title {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.08em;
  color: var(--espresso);
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-sub {
  margin: 2.2rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 2.2;
  letter-spacing: 0.08em;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.8rem;
}

/* Sun glow (still used on the thank-you page) */
.sun {
  position: absolute;
  top: -6vw;
  right: -4vw;
  width: clamp(280px, 42vw, 620px);
  height: clamp(280px, 42vw, 620px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(231, 178, 126, 0.55),
    rgba(231, 178, 126, 0.18) 45%,
    rgba(231, 178, 126, 0) 70%
  );
  filter: blur(6px);
  z-index: 0;
  animation: sunrise 1.6s var(--ease) both;
}

@keyframes sunrise {
  from {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ---------- Form ---------- */
.form-section {
  background: linear-gradient(180deg, var(--beige-soft), var(--paper));
  max-width: none;
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-section > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.inquiry {
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 5vw, 3.4rem);
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-soft);
}

.form-group-title,
.choices legend {
  font-family: "Noto Serif TC", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.6rem;
  padding: 0;
  color: var(--ink);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.field-label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 400;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85em 1.1em;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-faint);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(176, 125, 87, 0.12);
}

.choices {
  border: 0;
  margin: 0;
  padding: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.9em 1.4em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  user-select: none;
}

.chip-row .chip {
  flex: 0 1 auto;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.chip:has(input:checked) {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.chip:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(176, 125, 87, 0.18);
}

/* ---------- Portfolio recommendation ---------- */
.portfolio {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--line);
  animation: fadeUp 0.7s var(--ease) both;
}

.portfolio-head {
  font-family: "Noto Serif TC", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: var(--clay-deep);
  margin-bottom: 1.4rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  animation: fadeUp 0.6s var(--ease) both;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--beige);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-thumb img {
  transform: scale(1.06);
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.4rem 1.5rem;
  flex: 1;
}

.work-title {
  font-family: "Noto Serif TC", serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.work-style {
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  flex: 1;
}

.work-watch {
  align-self: flex-start;
  margin-top: 0.7rem;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  color: var(--clay-deep);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.work-watch:hover {
  color: var(--ink);
  gap: 0.7rem;
}

/* ---------- Submit ---------- */
.btn-submit {
  align-self: center;
  margin-top: 0.5rem;
  padding-inline: 3.4em;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact-inner {
  max-width: 36ch;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.contact-desc {
  margin-top: 1.6rem;
  color: var(--ink-soft);
  line-height: 2.1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.6rem clamp(1.4rem, 6vw, 4rem);
  max-width: 1320px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Noto Serif TC", serif;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--clay-deep);
}

/* ---------- Floating LINE button ---------- */
.line-float {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  box-shadow: 0 16px 36px -14px rgba(70, 58, 44, 0.6);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
  animation: floatIn 0.8s var(--ease) 0.6s both;
}

.line-float:hover {
  transform: translateY(-4px);
  background: var(--clay-deep);
}

.line-float svg {
  flex-shrink: 0;
}

@keyframes floatIn {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Thank-you page ---------- */
.thanks {
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  position: relative;
}

.thanks-inner {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}

.thanks h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 1.8rem;
}

.thanks-text {
  color: var(--ink-soft);
  line-height: 2.1;
  margin-bottom: 2.6rem;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

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

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

  .line-float span {
    display: inline;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
