@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+TC:wght@400;500;600;700;800&display=swap");

:root {
  --purple: #9b4da3;
  --purple-dark: #69336f;
  --teal: #40c6c2;
  --gold: #f3b43a;
  --ink: #241c29;
  --muted: #716875;
  --cream: #f7f3ee;
  --line: #ded6df;
  --white: #fff;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 229.5px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--purple); }
.nav-contact { border: 1px solid var(--purple); border-radius: 999px; color: var(--purple); padding: 8px 16px; }
.nav-contact:hover { background: var(--purple); color: #fff !important; }

.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before { content: ""; position: absolute; width: 460px; height: 460px; right: -170px; top: -240px; border-radius: 50%; background: linear-gradient(135deg, rgba(64,198,194,.28), rgba(155,77,163,.16), rgba(243,180,58,.24)); filter: blur(3px); }
.hero-accent { position: absolute; left: 0; bottom: 0; width: 9px; height: 70%; background: linear-gradient(var(--teal), var(--purple), var(--gold)); }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 80px; padding-block: 80px; }
.eyebrow { margin: 0 0 18px; color: var(--purple); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(46px, 5.7vw, 74px); line-height: 1.18; letter-spacing: -.05em; }
.hero h1 span { position: relative; display: inline-block; color: var(--purple); }
.hero h1 span::after { content: ""; position: absolute; left: 2px; right: 0; bottom: 4px; height: 8px; z-index: -1; background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: .38; }
.hero-lead { max-width: 640px; margin: 28px 0 34px; color: var(--muted); font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 26px rgba(155,77,163,.2); }
.button-primary:hover { background: var(--purple-dark); }
.button-outline { border-color: var(--line); background: rgba(255,255,255,.7); }
.button-outline:hover { border-color: var(--purple); color: var(--purple); }
.button-light { border-color: rgba(255,255,255,.5); color: #fff; }
.button-light:hover { background: #fff; color: var(--purple); }
.text-link { color: var(--purple); font-size: 14px; font-weight: 700; text-decoration: none; }

.hero-visual { position: relative; min-height: 470px; perspective: 900px; }
.plan { position: absolute; width: 74%; height: 340px; border: 1px solid rgba(155,77,163,.3); background: rgba(255,255,255,.9); box-shadow: 0 24px 55px rgba(67,43,70,.12); padding: 24px; transform: rotateY(-9deg) rotateZ(-3deg); }
.plan > span { position: absolute; right: 16px; top: 13px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.plan-back { right: 0; top: 4px; border-top: 5px solid var(--teal); opacity: .62; }
.plan-middle { right: 10%; top: 55px; border-top: 5px solid var(--gold); opacity: .78; }
.plan-front { left: 3%; bottom: 8px; z-index: 3; border-top: 5px solid var(--purple); }
.plan-grid { position: absolute; inset: 46px 24px 70px; background-image: linear-gradient(rgba(155,77,163,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(155,77,163,.13) 1px, transparent 1px); background-size: 24px 24px; }
.plan-grid::before { content: ""; position: absolute; width: 54%; height: 58%; left: 21%; top: 18%; border: 3px solid var(--purple); box-shadow: inset 0 0 0 12px rgba(155,77,163,.07); }
.plan-grid::after { content: ""; position: absolute; width: 34%; height: 30%; right: 4%; bottom: -2%; border: 2px solid var(--teal); }
.plan strong { position: absolute; left: 24px; bottom: 18px; color: var(--purple); font-family: var(--mono); font-size: 25px; }
.plan small { position: absolute; right: 24px; bottom: 24px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }

.section { padding-block: 110px; }
.intro-section { background: #fff; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: start; }
.intro-grid h2, .section-heading h2, .banner-grid h2, .contact-inner h2 { margin: 0; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.25; letter-spacing: -.04em; }
.intro-copy > p { margin: 0 0 28px; color: var(--muted); font-size: 17px; }
.section-heading { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 7vw, 90px); align-items: end; margin-bottom: 46px; }
.section-heading > p { justify-self: end; margin: 0; color: var(--muted); }

.services-section { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 380px; border: 1px solid var(--line); background: #fff; padding: 32px; transition: .25s ease; }
.service-card:hover { box-shadow: 0 22px 50px rgba(68,43,69,.1); transform: translateY(-5px); }
.service-card.featured { border-top: 5px solid var(--purple); padding-top: 28px; }
.service-number { position: absolute; right: 26px; top: 22px; color: #b6adb7; font-family: var(--mono); font-size: 12px; }
.service-icon { position: relative; width: 88px; height: 88px; margin: 36px 0 54px; }
.icon-lines { border: 1px solid var(--purple); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(155,77,163,.22) 9px 10px); }
.icon-lines::after { content: ""; position: absolute; width: 54px; height: 34px; right: -14px; bottom: -12px; border: 2px solid var(--gold); }
.icon-sheet { border: 2px solid var(--purple); }
.icon-sheet::before { content: ""; position: absolute; inset: 13px; border: 1px solid var(--teal); background-image: linear-gradient(rgba(155,77,163,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(155,77,163,.16) 1px, transparent 1px); background-size: 12px 12px; }
.icon-cube { border: 2px solid var(--purple); transform: rotate(30deg) skew(-8deg); }
.icon-cube::before { content: ""; position: absolute; inset: 17px; border: 2px solid var(--teal); }
.service-card h3 { margin: 0 0 12px; font-size: 23px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.selected-works { background: #fff; }
.selected-works .section-heading { grid-template-columns: 1fr auto; }
.selected-grid { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, 270px); gap: 18px; }
.selected-card { position: relative; overflow: hidden; margin: 0; background: var(--cream); }
.selected-card.selected-wide { grid-row: 1 / 3; }
.selected-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.selected-card:hover img { transform: scale(1.035); }
.selected-card figcaption { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; background: linear-gradient(transparent, rgba(22,13,25,.88)); color: #fff; padding: 60px 24px 22px; }
.selected-card figcaption span { color: rgba(255,255,255,.7); font-size: 11px; }
.selected-card figcaption strong { font-size: 18px; }

.archiai-banner { background: var(--purple); color: #fff; }
.archiai-banner .eyebrow { color: rgba(255,255,255,.7); }
.banner-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 100px; align-items: end; }
.banner-grid p { margin: 0 0 22px; color: rgba(255,255,255,.8); }
.contact-section { position: relative; overflow: hidden; background: var(--cream); text-align: center; }
.contact-section::before { content: "1M²"; position: absolute; left: 50%; top: 50%; color: rgba(155,77,163,.045); font-family: var(--mono); font-size: min(28vw, 340px); font-weight: 600; transform: translate(-50%, -50%); white-space: nowrap; }
.contact-inner { position: relative; z-index: 2; }
.contact-inner a { display: inline-block; margin-top: 28px; color: var(--purple); font-family: var(--mono); font-size: clamp(16px, 2vw, 22px); text-decoration: none; }

.site-footer { background: #211826; color: #eee8ef; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .55fr .8fr; gap: 58px; padding-bottom: 54px; }
.footer-logo { width: 207px; display: block; filter: none; }
.footer-brand p { margin: 14px 0 8px; color: #a79ba9; font-family: var(--mono); font-size: 11px; }
.footer-email { color: #eee8ef; font-family: var(--mono); font-size: 12px; text-decoration: none; }
.footer-email:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-social-link { width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid #766a78; border-radius: 50%; color: #d8ceda; font-family: Arial, sans-serif; font-size: 18px; font-weight: 800; line-height: 1; text-decoration: none; transition: .2s ease; }
.footer-social-link:hover { border-color: #1877f2; background: #1877f2; color: #fff; transform: translateY(-2px); }
.footer-social-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.footer-group { border-left: 1px solid rgba(255,255,255,.12); padding-left: 30px; }
.footer-group h2 { margin: 4px 0 18px; color: #988b9a; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
.footer-links a { color: #c9bdcb; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.related-brand { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; }
.related-brand span { color: #a79ba9; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.related-brand strong { font-size: 14px; }
.related-brand i { color: var(--teal); font-style: normal; }
.related-brand:hover strong { color: #82dedb; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; color: #988b9a; font-size: 11px; text-align: center; }

/* 作品集 */
.portfolio-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 100px 0 86px; }
.portfolio-hero::after { content: "PORTFOLIO"; position: absolute; right: -20px; bottom: -60px; color: rgba(255,255,255,.035); font-family: var(--mono); font-size: 140px; font-weight: 500; }
.portfolio-title { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: clamp(32px, 6vw, 90px); }
.portfolio-title h1 { margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: 1; letter-spacing: -.05em; }
.portfolio-title > p { justify-self: end; margin: 0; color: #bcb2bf; font-size: 17px; }
.breadcrumb { margin: 0 0 28px; color: #9a8e9d; font-family: var(--mono); font-size: 10px; }
.breadcrumb a { text-decoration: none; }
.works-section { padding: 96px 0; }
.works-section.alt { background: var(--cream); }
.category-heading { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.category-heading > span { color: var(--purple); font-family: var(--mono); font-size: 12px; }
.category-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.category-heading small { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
.works-grid.one-work { grid-template-columns: minmax(0, 570px); }
.work-card { width: 100%; border: 0; background: transparent; color: var(--ink); padding: 0; text-align: left; cursor: zoom-in; }
.work-image { position: relative; overflow: hidden; display: block; aspect-ratio: 16 / 9; background: #e9e3ea; }
.work-image::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--purple); font-family: var(--mono); font-size: 20px; opacity: 0; transform: translateY(6px); transition: .25s ease; }
.work-card:hover .work-image::after, .work-card:focus-visible .work-image::after { opacity: 1; transform: translateY(0); }
.work-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.work-card:hover img { transform: scale(1.03); }
.work-card strong { display: block; margin-top: 13px; font-size: 17px; }
.work-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(20,12,22,.94); padding: 60px 30px 30px; }
.lightbox figure { max-width: min(1100px, 94vw); max-height: 88vh; margin: 0; color: #fff; }
.lightbox img { display: block; max-height: 78vh; width: auto; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; text-align: center; }
.lightbox-close { position: absolute; right: 22px; top: 16px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: transparent; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: #fff; color: var(--purple); }
body.lightbox-open { overflow: hidden; }

@media (min-width: 921px) {
  .section-heading > p, .portfolio-title > p { white-space: nowrap; }
}

@media (max-width: 920px) {
  .header-inner { padding-block: 18px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-nav { width: 100%; overflow-x: auto; gap: 20px; padding-bottom: 4px; white-space: nowrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; padding-block: 62px; }
  .hero-visual { min-height: 450px; }
  .intro-grid, .section-heading, .banner-grid, .portfolio-title { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p, .portfolio-title > p { justify-self: start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 310px; }
  .service-icon { margin-bottom: 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-group { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1160px); }
  .brand img { width: 202.5px; }
  .site-nav { font-size: 13px; }
  .nav-contact { padding: 5px 12px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { min-height: 360px; }
  .plan { height: 270px; padding: 18px; }
  .plan-grid { inset: 38px 18px 60px; }
  .plan strong { left: 18px; }
  .plan small { right: 18px; }
  .section { padding-block: 76px; }
  .intro-grid h2, .section-heading h2, .banner-grid h2, .contact-inner h2 { font-size: 34px; }
  .selected-works .section-heading { grid-template-columns: 1fr; }
  .selected-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 280px); }
  .selected-card.selected-wide { grid-row: auto; }
  .portfolio-hero { padding: 70px 0; }
  .portfolio-title h1 { font-size: 54px; }
  .category-heading { grid-template-columns: 36px 1fr; }
  .category-heading small { grid-column: 2; }
  .works-section { padding: 70px 0; }
  .works-grid, .works-grid.one-work { grid-template-columns: 1fr; gap: 28px; }
  .lightbox { padding-inline: 16px; }
}
