/* ==================================================
   01. Google Fonts
================================================== */

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


/* ==================================================
   02. CSS Variables
================================================== */

:root {
  /* Colors */
  --color-primary: #4f8f87;
  --color-primary-dark: #2f625c;
  --color-primary-light: #dff1ee;
  --color-accent: #f2b66d;

  --color-navy: #172554;
  --color-text: #233238;
  --color-text-soft: #66737a;
  --color-white: #ffffff;

  --color-background: #f7faf9;
  --color-background-alt: #edf5f3;
  --color-card: rgba(255, 255, 255, 0.88);
  --color-border: rgba(36, 76, 70, 0.12);

  /* Typography */
  --font-primary: "Noto Sans TC", sans-serif;
  --font-english: "Inter", sans-serif;

  /* Layout */
  --container-width: 1180px;
  --header-height: 78px;

  /* Radius */
  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 32px;
  --radius-round: 999px;

  /* Shadow */
  --shadow-small: 0 10px 30px rgba(27, 66, 61, 0.08);
  --shadow-medium: 0 24px 60px rgba(27, 66, 61, 0.12);

  /* Transition */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
}


/* ==================================================
   03. Reset
================================================== */

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

body {
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

p {
    text-align: justify;
    text-justify: inter-ideograph;
}

/* ==================================================
   04. Global Styles
================================================== */

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 143, 135, 0.14), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(242, 182, 109, 0.12), transparent 24%),
    var(--color-background);
  line-height: 1.8;
  overflow-x: hidden;
}

main {
  overflow: hidden;
}

.section-shell {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

section {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.section-kicker,
.eyebrow,
.project-label,
.panel-title {
  font-family: var(--font-english);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker,
.eyebrow,
.project-label,
.panel-title {
  color: var(--color-primary);
}

.section-kicker.light {
  color: rgba(255, 255, 255, 0.72);
}

section {
    scroll-margin-top: calc(var(--header-height) + 24px);
}


/* ==================================================
   05. Typography
================================================== */

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.25;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.05em;
}

h1 span {
  color: var(--color-primary);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--color-text-soft);
}


/* ==================================================
   06. Buttons
================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-round);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 12px 30px rgba(79, 143, 135, 0.24);
}

.button.primary:hover {
  background: var(--color-primary-dark);
}

.button.secondary {
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--color-border);
}

.button.secondary:hover {
  background: var(--color-white);
  border-color: rgba(79, 143, 135, 0.35);
}


/* ==================================================
   07. Header
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: var(--header-height);
  padding: 0 5vw;

  background: rgba(247, 250, 249, 0.82);
  border-bottom: 1px solid rgba(36, 76, 70, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--color-navy);
  font-family: var(--font-english);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;

  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

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

.site-nav .nav-cta {
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-primary);
  border-radius: var(--radius-round);
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-navy);
  font-size: 1.5rem;
  cursor: pointer;
}


/* ==================================================
   08. Hero Section
================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 80px;

  min-height: calc(100vh - var(--header-height));
  padding-top: 90px;
  padding-bottom: 100px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin-bottom: 18px;
}

.hello {
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-family: var(--font-english);
  font-size: 1rem;
  font-weight: 700;
}

.hero-description {
  max-width: 720px;
  margin-top: 28px;
  font-size: 1.02rem;
}

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

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
}

.quick-facts div {
  min-width: 125px;
  padding: 16px 18px;

  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
}

.quick-facts strong {
  display: block;
  margin-bottom: 4px;

  color: var(--color-primary-dark);
  font-family: var(--font-english);
  font-size: 1.55rem;
}

.quick-facts span {
  color: var(--color-text-soft);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
}

.portrait-frame {
  position: relative;

  display: grid;
  min-height: 560px;
  place-items: center;

  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(223, 241, 238, 0.92));
  border: 1px solid var(--color-border);
  border-radius: 46% 46% 38% 38% / 38% 38% 46% 46%;
  box-shadow: var(--shadow-medium);
}

.portrait-backdrop {
  position: absolute;
  inset: 12%;

  background: radial-gradient(circle, rgba(79, 143, 135, 0.24), transparent 68%);
  border-radius: 50%;
}

.profile-image {
  position: relative;
  z-index: 2;

  width: 78%;
  max-height: 510px;
  object-fit: cover;
  object-position: center;
  border-radius: 40% 40% 32% 32%;
}

.portrait-fallback {
  position: relative;
  z-index: 2;

  display: none;
  width: 220px;
  height: 220px;
  place-items: center;

  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;
  font-family: var(--font-english);
  font-size: 6rem;
  font-weight: 800;
}

.floating-label {
  position: absolute;
  z-index: 3;

  padding: 9px 14px;

  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(10px);

  font-family: var(--font-english);
  font-size: 0.75rem;
  font-weight: 700;
}

.label-one {
  top: 18%;
  left: 4%;
}

.label-two {
  top: 40%;
  right: 2%;
}

.label-three {
  right: 14%;
  bottom: 12%;
}

.quote-card {
  position: absolute;
  right: -26px;
  bottom: -34px;
  z-index: 4;

  max-width: 270px;
  padding: 22px;

  color: var(--color-white);
  background: var(--color-primary-dark);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-medium);
}

.quote-card span {
  display: block;

  color: var(--color-accent);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 0.8;
}

.quote-card p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}


/* ==================================================
   09. Skill Ticker
================================================== */

.ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  padding: 18px 24px;

  color: var(--color-white);
  background: var(--color-primary-dark);
  overflow-x: auto;

  font-family: var(--font-english);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker span {
  color: var(--color-accent);
}


/* ==================================================
   10. About Section
================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 80px;

  padding-top: 120px;
  padding-bottom: 120px;
}

.section-intro h2 {
  margin-top: 14px;
}

.section-intro > p:last-child {
  margin-top: 24px;
  max-width: 620px;
}

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

.value-card {
  padding: 28px;

  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);

  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 143, 135, 0.32);
  box-shadow: var(--shadow-medium);
}

.value-card > span {
  display: inline-block;
  margin-bottom: 24px;

  color: var(--color-primary);
  font-family: var(--font-english);
  font-size: 0.78rem;
  font-weight: 800;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.92rem;
}

/* ==================================================
   11. Innera Story Section
================================================== */

.innera-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 80px;

  padding-top: 120px;
  padding-bottom: 120px;
}

.innera-story-copy h2 {
  margin-top: 14px;
}

.innera-story-copy > p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 22px;
}

.innera-story-steps {
  position: relative;
  display: grid;
  gap: 18px;
}

/* 步驟之間的垂直線 */
.innera-story-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 31px;

  width: 1px;
  background: var(--color-border);
}

.story-step {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 64px 1fr;
  align-items:flex-start;
  gap: 20px;

  padding: 22px 24px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(12px);

  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    box-shadow var(--transition-normal);
}

.story-step h3{
    writing-mode: horizontal-tb;
    text-orientation: mixed;

    font-size: 1.2rem;
    margin-bottom: 10px;
}

.story-step:hover {
  transform: translateX(8px);
  border-color: rgba(79, 143, 135, 0.32);
  box-shadow: var(--shadow-medium);
}

.story-step > span {
  margin:0 auto 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  color: var(--color-white);
  background: var(--color-primary);
  border-radius: 50%;

  font-family: var(--font-english);
  font-size: 0.76rem;
  font-weight: 800;
}

.story-step h3 {
  margin-bottom: 6px;
}

.story-step p {
  font-size: 0.9rem;
  text-align: left;
}

/* ==================================================
   What Shapes Me Section
================================================== */

.shape-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 36px;
}

.shape-card {
    padding: 28px 24px;
    border: 1px solid rgba(28, 72, 64, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(28, 72, 64, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.shape-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(28, 72, 64, 0.14);
}

.shape-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;
    border-radius: 16px;
    background: rgba(111, 166, 151, 0.14);

    font-size: 26px;
}

.shape-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.4;
}

.shape-card p {
    margin: 0;
    color: #66736f;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-ideograph;
}

/* ==================================================
   12. Project Section
================================================== */

.project-section {
  padding-top: 120px;
  padding-bottom: 120px;

  color: var(--color-white);
  background:
    radial-gradient(circle at 80% 20%, rgba(79, 143, 135, 0.32), transparent 30%),
    #122f2c;
}

.project-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.project-heading h2 {
  margin-top: 14px;
  color: var(--color-white);
}

.project-heading > p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.66);
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 70px;

  padding: 46px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-large);
  backdrop-filter: blur(18px);
}

.project-visual {
    position: relative;
    min-height: 580px;
}

.slider-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;

    object-fit: contain;
    border-radius: 12px;
}

.app-orbit {
  position: absolute;
  inset: 14%;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.app-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;

    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;

    transform: translate(-50%, -50%);

    color: var(--color-white);
    background: linear-gradient(145deg, #6aa79f, #315f59);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.phone-card {
  position: absolute;
  z-index: 2;

  width: min(270px, 70%);
  padding: 24px;

  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);

  color: var(--color-text);
}

.phone-card small {
  display: block;
  margin-bottom: 12px;

  color: var(--color-primary);
  font-family: var(--font-english);
  font-weight: 700;
}

.phone-card strong {
  display: block;
  color: var(--color-navy);
}

.slider-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;

    object-fit: contain;
    border-radius: 12px;
}

.phone-one {
    top: 4%;
    left: 2%;
    transform: rotate(-2deg);
}

.phone-two {
    right: 2%;
    bottom: 2%;
    transform: rotate(2deg);
}

.mood-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mood-row i {
  width: 24px;
  height: 24px;

  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.phone-card svg {
  width: 100%;
  margin-top: 16px;
}

.phone-card polyline {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 76px;
  margin-top: 18px;
  padding: 10px 12px 0;
  background: var(--color-background-alt);
  border-radius: var(--radius-small);
}

.insight-chart i {
  flex: 1;
  height: var(--height);
  background: linear-gradient(to top, var(--color-primary), #8ec7bf);
  border-radius: 6px 6px 2px 2px;
}

.project-content {
  align-self: center;
}

.project-content h3 {
  margin-top: 14px;
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.project-content > p:not(.project-label) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.68);
}

.project-points {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.project-points div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.project-points strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-white);
}

.project-points span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.project-tags,
.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags {
  margin-top: 28px;
}

.project-tags span,
.role-tags span {
  padding: 8px 12px;
  border-radius: var(--radius-round);
  font-size: 0.78rem;
  font-weight: 700;
}

.project-tags span {
  color: #dff8f3;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}

.project-links a {
  color: var(--color-white);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  transition: color var(--transition-fast);
}

.project-links a:hover {
  color: var(--color-accent);
}


/* ==================================================
   13. Experience Section
================================================== */

.experience {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-intro.compact {
  margin-bottom: 48px;
}

.section-intro.compact h2 {
  margin-top: 12px;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 60px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline article {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;

  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.timeline article:last-child {
  border-bottom: 1px solid var(--color-border);
}

.timeline time {
  color: var(--color-primary);
  font-family: var(--font-english);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin-bottom: 6px;
}

.timeline span {
  color: var(--color-text-soft);
  font-size: 0.88rem;
}

.skills-panel {
  align-self: start;
  padding: 32px;

  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-small);
}

.panel-title {
  margin-bottom: 24px;
}

.skill-row {
  padding: 18px 0;
  border-top: 1px solid var(--color-border);
}

.skill-row span {
  display: block;
  margin-bottom: 6px;

  color: var(--color-navy);
  font-weight: 700;
}

.skill-row p {
  font-size: 0.88rem;
}

.role-tags {
  margin-top: 24px;
}

.role-tags span {
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}


/* ==================================================
   14. Contact Section
================================================== */

.contact {
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.contact h2 {
  max-width: 820px;
  margin: 16px auto 0;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  margin-top: 34px;
}

.contact-line a,
.contact-line span {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.contact-line a:hover {
  color: var(--color-primary-dark);
}

.print-button {
  margin-top: 30px;
}


/* ==================================================
   15. Footer
================================================== */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 5vw;

  color: rgba(255, 255, 255, 0.7);
  background: var(--color-primary-dark);

  font-family: var(--font-english);
  font-size: 0.8rem;
}

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


/* ==================================================
   16. Scroll Animation
================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


/* ==================================================
   17. Tablet Responsive
================================================== */

@media (max-width: 980px) {
  .site-header {
    padding-inline: 28px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 24px;
    left: 24px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    padding: 18px;

    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .menu-button {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 80px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 500px;
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   18. Mobile Responsive
================================================== */

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .section-shell {
    width: min(100% - 32px, var(--container-width));
  }

  .site-header {
    min-height: var(--header-height);
    padding-inline: 18px;
  }

  .brand {
    font-size: 0.74rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 78px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .quick-facts div {
    min-width: 0;
    padding: 14px 10px;
  }

  .quick-facts strong {
    font-size: 1.3rem;
  }

  .quick-facts span {
    font-size: 0.7rem;
  }

  .portrait-frame {
    min-height: 440px;
  }

  .quote-card {
    right: 12px;
    bottom: -30px;
    max-width: 230px;
  }

  .ticker {
    justify-content: flex-start;
  }

  .about,
  .project-section,
  .experience,
  .contact {
    padding-top: 86px;
    padding-bottom: 86px;
  }

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

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

  .shape-card {
    min-width: 0;
    padding: 20px 16px;
}

  .shape-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

  .shape-card h3 {
    font-size: 1.05rem;
}

  .shape-card p {
    font-size: 0.86rem;
    line-height: 1.7;
}

  .project-showcase {
    padding: 24px;
  }

  /* 手機版：故事區改上下排列 */
.innera-story {
    grid-template-columns: 1fr;
    gap: 40px;
}

/* 移除中間那條時間軸 */
.innera-story-steps::before {
    display: none;
}

/* 手機版：四張故事卡片維持 2 × 2 */
.innera-story-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* 手機版卡片 */
.story-step {
    position: relative;

    display: block;
    min-width: 0;
    min-height: 250px;
    padding: 92px 20px 24px;

    text-align: left;
}

/* 左上角編號圓圈 */
.story-step > span {
    position: absolute;
    top: 22px;
    left: 20px;

    display: grid;
    width: 58px;
    height: 58px;
    margin: 0;
    place-items: center;

    border-radius: 50%;
}

/* 包住標題和內文的 div */
.story-step > div {
    width: 100%;
    min-width: 0;
}

/* 標題改為正常橫排 */
.story-step h3 {
    margin: 0 0 12px;

    font-size: 1.1rem;
    line-height: 1.4;
    text-align: left;

    writing-mode: horizontal-tb;
    word-break: keep-all;
    overflow-wrap: normal;
}

/* 內文改為正常橫排 */
.story-step p {
    margin: 0;

    font-size: 0.84rem;
    line-height: 1.7;
    text-align: left;

    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* 手機版專案圖片展示 */
  .project-visual {
  display: grid;
  gap: 20px;

  min-height: auto;
  padding: 20px 0 36px;
}

/* 手機版不需要背景圓形軌道 */
  .app-orbit {
  display: none;
}

/* 取消桌機版的絕對定位 */
  .phone-card {
  position: relative;
  inset: auto;

  width: 100%;
  padding: 22px;

  transform: none;
  border-radius: 24px;
}

/* 第一張卡片 */
  .phone-one {
  top: auto;
  left: auto;
  transform: none;
}

/* App Logo */
  .app-icon {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;

  width: 82px;
  height: 82px;
  margin: -8px auto;
  place-self: center;

  transform: none;
  border-radius: 22px;
}

/* 第二張卡片 */
  .phone-two {
  right: auto;
  bottom: auto;
  transform: none;
}

/* 卡片圖片 */
  .slider-image,
  .trend-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 18px;

  object-fit: contain;
  border-radius: 14px;
}

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-line {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 22px 18px;
  }
}


/* ==================================================
   19. Print Style
================================================== */

@media print {
  .site-header,
  .ticker,
  .hero-actions,
  .print-button {
    display: none !important;
  }

  body {
    background: var(--color-white);
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .project-section {
    color: var(--color-text);
    background: var(--color-white);
  }

  .project-heading h2,
  .project-content h3,
  .project-points strong {
    color: var(--color-navy);
  }

  .project-heading > p,
  .project-content > p:not(.project-label),
  .project-points span {
    color: var(--color-text-soft);
  }

  .project-showcase {
    background: var(--color-background-alt);
    border-color: var(--color-border);
  }

  .project-tags span {
    color: var(--color-primary-dark);
    background: var(--color-primary-light);
    border-color: transparent;
  }

  .project-links a {
    color: var(--color-primary-dark);
  }

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