/* ===== Arcadyan Internship Site — responsive stylesheet ===== */
:root {
  --green: #8cc63f;
  --green-d: #5f9a1e;
  --blue: #1fa3dc;
  --yellow: #f2c418;
  --ink: #17231a;
  --ink-2: #4a5a4d;
  --bg: #ffffff;
  --bg-soft: #f2f7ec;
  --card: #ffffff;
  --line: #dfe8d6;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(23, 35, 26, .12);
  --header-h: 72px;
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.8; font-size: 17px; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
h1, h2, h3, .tagline, .quote { text-wrap: balance; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; transition: background .3s, box-shadow .3s, color .3s;
  color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}
.site-header.on-hero:not(.scrolled):not(.open) { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1240px, 100% - 40px); margin-inline: auto; }
.logo img { height: 34px; width: auto; transition: filter .3s; }
.site-header.on-hero:not(.scrolled):not(.open) .logo img { filter: brightness(0) invert(1); }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500;
  white-space: nowrap; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(140,198,63,.22); }
.nav a[aria-current="page"] { background: var(--green); color: #10200a; font-weight: 700; }
.menu-btn {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit;
  cursor: pointer; border-radius: 12px; position: relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, top .3s, opacity .3s;
}
.menu-btn span { top: 22px; }
.menu-btn span::before { left: 0; right: 0; top: -7px; }
.menu-btn span::after { left: 0; right: 0; top: 7px; }
.site-header.open .menu-btn span { background: transparent; }
.site-header.open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.site-header.open .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff;
  padding: calc(var(--header-h) + 30px) 0 90px;
  background: #0d1a10 url("../assets/arcadyan-building.jpg") center 30% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(8,20,12,.55), rgba(8,20,12,.2) 70%),
    linear-gradient(180deg, rgba(8,20,12,.65) 0%, rgba(8,20,12,.25) 40%, rgba(8,20,12,.85) 100%);
}
.hero-eyebrow { letter-spacing: .3em; font-size: 14px; color: var(--green); font-weight: 700; margin-bottom: 18px; text-transform: uppercase; }
.profile-card {
  width: min(560px, 100%); margin: 0 auto; padding: 38px 34px 34px; border-radius: 32px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.avatar {
  width: clamp(130px, 28vw, 190px); aspect-ratio: 1; border-radius: 50%; margin: 0 auto 22px; overflow: hidden;
  border: 5px solid rgba(255,255,255,.9); box-shadow: 0 0 0 6px rgba(140,198,63,.55), 0 14px 30px rgba(0,0,0,.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.profile-card h1 { font-size: clamp(28px, 6vw, 42px); margin-bottom: .35em; letter-spacing: .02em; }
.profile-card p { margin: 0 0 .25em; font-size: clamp(15px, 3.6vw, 18px); color: rgba(255,255,255,.95); }
.profile-card .label { color: var(--green); font-weight: 700; margin-right: .3em; }
.tagline { margin: 38px auto 0; max-width: 760px; font-size: clamp(19px, 4.4vw, 28px); font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.tagline::before { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin: 0 auto 20px; background: linear-gradient(90deg, var(--green), var(--blue), var(--yellow)); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid transparent; transition: transform .2s, background .2s, box-shadow .2s; cursor: pointer;
}
.btn-primary { background: var(--green); color: #10200a; box-shadow: 0 10px 24px rgba(140,198,63,.4); }
.btn-primary:hover { transform: translateY(-2px); background: #9bd64c; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.8); border-radius: 20px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 56px); text-align: center; }
.kicker { color: var(--green-d); font-weight: 700; letter-spacing: .22em; font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 5vw, 40px); }
.section-head p { color: var(--ink-2); }

/* photo band w/ parallax (home) */
.band {
  position: relative; color: #fff; isolation: isolate; padding: clamp(70px, 10vw, 130px) 0;
  background: #17301a url("../assets/arcadyan-atrium.jpg") center / cover fixed no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,32,12,.9) 0%, rgba(10,32,12,.62) 55%, rgba(10,32,12,.25) 100%); }
.band-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(26px, 5vw, 40px); }
.band p { color: rgba(255,255,255,.92); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { padding: 22px 20px; border-radius: 18px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); text-align: center; }
.stat b { display: block; font-size: clamp(28px, 5vw, 40px); color: var(--green); line-height: 1.1; }
.stat span { font-size: 14px; color: rgba(255,255,255,.9); }

/* cards */
.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.nav-card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.nav-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(23,35,26,.2); }
.nav-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #dfe8d6; }
.nav-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.nav-card:hover .thumb img { transform: scale(1.08); }
.nav-card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.nav-card .num { color: var(--green-d); font-weight: 800; font-size: 13px; letter-spacing: .2em; }
.nav-card h3 { font-size: 20px; margin: 6px 0 8px; }
.nav-card p { color: var(--ink-2); font-size: 15px; line-height: 1.7; flex: 1; }
.nav-card .more { color: var(--green-d); font-weight: 700; font-size: 15px; }
.nav-card .more::after { content: " →"; transition: margin .2s; }
.nav-card:hover .more::after { margin-left: 6px; }

.panel { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.panel h3 { font-size: clamp(20px, 3.5vw, 26px); }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(140,198,63,.2); color: var(--green-d); font-size: 13px; font-weight: 700; margin-right: 6px; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; text-align: center;
  padding: calc(var(--header-h) + 70px) 0 80px;
  background: #17301a var(--bg-img, url("../assets/arcadyan-building.jpg")) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,24,12,.72), rgba(8,24,12,.55) 60%, rgba(8,24,12,.8)); }
.page-hero .kicker { color: var(--green); }
.page-hero h1 { font-size: clamp(30px, 6.5vw, 52px); margin-bottom: .3em; }
.page-hero p { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,.92); font-size: clamp(15px, 3.4vw, 18px); }

/* content blocks */
.prose h2, .block-title { font-size: clamp(22px, 4vw, 30px); position: relative; padding-left: 18px; margin-bottom: 18px; }
.block-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; border-radius: 6px; background: linear-gradient(var(--green), var(--blue)); }
.stack > * + * { margin-top: clamp(40px, 6vw, 70px); }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); }
.figure.photo img { object-fit: cover; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); text-align: center; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.two-col.top { align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 12px 16px 12px 46px; margin-bottom: 10px; background: var(--bg-soft); border-radius: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #10200a; font-weight: 800; font-size: 14px; display: grid; place-items: center; line-height: 1; }
.item-card { background: var(--bg-soft); border-radius: 16px; padding: 20px 22px; border-left: 5px solid var(--green); }
.item-card h5 { font-size: 17px; margin-bottom: .4em; }
.item-card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }

/* timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--green), var(--blue), var(--line)); border-radius: 3px; }
.timeline li { position: relative; padding: 0 0 30px; }
.timeline li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 5px solid var(--line); }
.timeline li.done::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px rgba(140,198,63,.25); }
.timeline h5 { font-size: 18px; margin-bottom: .3em; }
.timeline .now { font-size: 12px; background: var(--green); color: #10200a; padding: 2px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.timeline p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* progress ring */
.ring-wrap { text-align: center; }
.ring { --p: 0; position: relative; width: clamp(170px, 40vw, 220px); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--line) 0); display: grid; place-items: center; transition: --p 1.4s; }
.ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font-size: clamp(40px, 9vw, 54px); color: var(--green-d); line-height: 1; }
.ring-wrap p { margin: 0; color: var(--ink-2); font-weight: 700; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

/* quote */
.quote { text-align: center; max-width: 820px; margin: 0 auto; font-size: clamp(20px, 4.2vw, 30px); font-weight: 700; line-height: 1.6; position: relative; padding: 0 10px; }
.quote::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--green); font-family: Georgia, serif; }
.refl-card { position: relative; padding-top: 52px; }
.refl-card .idx { position: absolute; top: 18px; left: 28px; font-size: 38px; font-weight: 800; color: rgba(140,198,63,.45); line-height: 1; }
.refl-card h3 { font-size: 20px; }
.refl-card p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* footer */
.site-footer { background: #0f1b12; color: rgba(255,255,255,.8); padding: 40px 0; text-align: center; font-size: 14px; }
.site-footer img { height: 30px; margin: 0 auto 16px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer p { margin: 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .scroll-hint::after { animation: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 11px; font-size: 14px; }
  .band-grid { grid-template-columns: 1fr; }
  .band { background-attachment: scroll; }
  .band::before { background: linear-gradient(180deg, rgba(10,32,12,.85), rgba(10,32,12,.7)); }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: rgba(255,255,255,.98); color: var(--ink);
    max-height: 0; overflow: hidden; transition: max-height .35s ease; box-shadow: 0 20px 30px rgba(0,0,0,.12);
  }
  .site-header.open .nav { max-height: 440px; }
  .nav ul { flex-direction: column; padding: 12px 20px 22px; gap: 4px; }
  .nav a { padding: 14px 18px; font-size: 16px; border-radius: 12px; }
  .two-col, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .two-col.reverse .figure { order: -1; }
  .profile-card { padding: 30px 22px 28px; border-radius: 26px; }
  .hero { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .header-inner { width: calc(100% - 32px); }
  .logo img { height: 28px; }
  .btn { padding: 12px 22px; font-size: 15px; }
  .stats { gap: 12px; }
  .scroll-hint { display: none; }
}
@media print { .site-header, .scroll-hint { display: none; } .reveal { opacity: 1; transform: none; } }
