/* JYMA ???? � site styles */
:root {
  --ink: #1a1614;
  --ink-soft: #4a433c;
  --paper: #f3efe8;
  --paper-deep: #e6e0d4;
  --foam: #faf8f4;
  --accent: #e85a3c;
  --accent-deep: #c4452b;
  --line: rgba(26, 22, 20, 0.12);
  --shadow: 0 18px 50px rgba(26, 22, 20, 0.12);
  --font-display: "Shippori Mincho", "Noto Serif TC", "Songti TC", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --max: 1120px;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 90, 60, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(70, 110, 140, 0.07), transparent 50%),
    linear-gradient(180deg, var(--foam) 0%, var(--paper) 40%, var(--paper-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-deep);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(250, 248, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.1rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-deep);
}

/* Layout */
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.section__lead {
  max-width: 38rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  font-size: 1.05rem;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn--on-dark:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 16, 14, 0.15) 0%, rgba(20, 16, 14, 0.55) 55%, rgba(20, 16, 14, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  animation: riseIn 1s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 0.35rem;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero__brand span {
  display: block;
  font-size: 0.38em;
  letter-spacing: 0.28em;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.hero__tag {
  display: inline-block;
  margin: 0.5rem 0 1.1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.hero__lead {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 1rem;
  animation: riseIn 0.8s var(--ease) both;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-soft);
}

/* Works */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 2.5rem;
}

.category-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.category-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.work-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.work-section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
}

.work-section p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #ddd;
  aspect-ratio: 1;
  animation: riseIn 0.7s var(--ease) both;
}

.gallery__item:nth-child(2) { animation-delay: 0.05s; }
.gallery__item:nth-child(3) { animation-delay: 0.1s; }
.gallery__item:nth-child(4) { animation-delay: 0.15s; }

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

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
}

/* About */
.prose {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.5rem 0 0;
}

.prose p {
  margin: 0;
  color: var(--ink-soft);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-split__visual {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  overflow: hidden;
  min-height: 28rem;
}

.about-split__visual img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-list a,
.contact-list strong {
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-note {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.map-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.map-panel__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 16rem;
  background: #ddd;
}

.map-panel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-panel__copy {
  padding: 1.25rem 1.5rem 1.5rem;
}

.map-panel__copy h2 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.map-panel__copy p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.map-panel__link {
  font-size: 0.9rem;
  color: var(--accent-deep);
  text-decoration: none;
}

.map-panel__link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 12, 10, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-split__visual {
    position: static;
    min-height: 18rem;
  }

  .about-split__visual img {
    min-height: 18rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(250, 248, 244, 0.97);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .hero {
    min-height: 78vh;
  }
}
