/* Sosen Creative Limited — internal website prototype
   Palette is the confirmed brand board only. Hero veins use Hot Orange and
   Orange (Wheel), not decorative gold outside the board. */

:root {
  --canvas: #100C0B;
  --night: #171614;
  --eerie: #1C1B17;
  --eerie-light: #282723;
  --hot: #EB4604;
  --wheel: #F77E0D;
  --moss: #99A57D;
  --white: #FFFFFF;

  --font-sans: "PingFang HK", "PingFang TC", "Hiragino Sans GB", "Noto Sans TC",
    "Microsoft JhengHei", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC",
    "Songti SC", "PMingLiU", Georgia, "Times New Roman", ui-serif, serif;

  --text: var(--white);
  --text-soft: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.52);
  --line: var(--eerie-light);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --page: min(1180px, calc(100% - 80px));
  --page-wide: min(1280px, calc(100% - 80px));
  --header-h: 76px;
}

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

html {
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(235, 70, 4, 0.07), transparent 52%),
    var(--canvas);
  color: var(--text);
}

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

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

a:hover {
  color: var(--wheel);
}

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

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

/* ---------- skip + type scale ---------- */

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 80;
  background: var(--hot);
  color: var(--white);
  padding: 8px 14px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--moss);
  text-transform: none;
}

.body-copy {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-soft);
}

.body-copy + .body-copy {
  margin-top: 1.15em;
}

.meta {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hot);
  color: var(--white);
  text-decoration: none;
  border: 0;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}

.btn:hover,
.btn:focus-visible {
  background: var(--wheel);
  color: var(--white);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--wheel);
  outline-offset: 3px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 12, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  width: var(--page-wide);
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo:hover {
  color: inherit;
  opacity: 0.86;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 22px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--hot);
}

.nav-panel .btn {
  flex: 0 0 auto;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(56% 48% at 50% 46%, rgba(235, 70, 4, 0.10), transparent 62%),
    radial-gradient(90% 70% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 70%),
    linear-gradient(180deg, #171614 0%, #100C0B 58%, #100C0B 100%);
}

.hero-veins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-veins .bloom {
  transform-origin: 960px 520px;
  animation: bloom-breathe 8s ease-in-out infinite;
}

.hero-veins .glow {
  fill: none;
  stroke: var(--hot);
  stroke-width: 6;
  stroke-linecap: round;
  opacity: 0.18;
  filter: blur(2px);
}

.hero-veins .core {
  fill: none;
  stroke: var(--wheel);
  stroke-width: 1.15;
  stroke-linecap: round;
  opacity: 0.72;
}

.hero-veins .pulse {
  fill: none;
  stroke: var(--wheel);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 140 420;
  animation: vein-flow 8s linear infinite;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(235, 70, 4, 0.40));
}

.hero-medallion {
  transform-origin: 960px 520px;
  animation: medal-breathe 8s ease-in-out infinite;
}

@keyframes bloom-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.045); }
}

@keyframes medal-breathe {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes vein-flow {
  to { stroke-dashoffset: -560; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  text-align: center;
  padding: 72px 0 96px;
}

.hero-identity {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--moss);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.hero-tagline span {
  display: block;
}

.hero-cta {
  margin-top: 40px;
}

.hero-hamster {
  position: absolute;
  right: max(24px, calc((100% - 1280px) / 2));
  bottom: 28px;
  z-index: 2;
  width: 88px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.75  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* ---------- layout bands ---------- */

.band {
  padding: 88px 0;
}

.band-tight {
  padding: 48px 0 28px;
}

.wrap {
  width: var(--page);
  margin: 0 auto;
}

.wrap-wide {
  width: var(--page-wide);
  margin: 0 auto;
}

.hairline {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.page-head {
  padding: 72px 0 40px;
}

.page-head .page-title + .lede,
.page-head .page-title + .body-copy,
.page-head .page-title + .meta {
  margin-top: 22px;
  max-width: 40em;
}

/* ---------- stance (home) ---------- */

.stance-list {
  display: grid;
  gap: 22px;
  max-width: 38em;
}

.stance-list p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--white);
}

.method-line {
  margin-top: 36px;
  max-width: 40em;
}

.method-line a {
  color: var(--white);
}

/* ---------- cases ---------- */

.cases {
  padding: 80px 0 40px;
}

.cases + .cases {
  padding-top: 48px;
}

.cases .section-title,
.cases .section-label + .section-title {
  margin-top: 0;
}

.cases-head {
  margin-bottom: 36px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
}

.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease);
}

a.case-card:hover {
  color: inherit;
  transform: translateY(-6px);
}

.case-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--eerie);
  border: 1px solid var(--line);
  overflow: hidden;
}

.case-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.case-card::after {
  content: "";
  display: block;
  height: 1px;
  width: 0;
  background: var(--hot);
  margin-top: 0;
  transition: width 0.4s var(--ease);
}

a.case-card:hover::after,
a.case-card:focus-visible::after {
  width: 100%;
}

.case-pending {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-pending span,
.pending-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--moss);
}

.case-card h3 {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.case-card .meta {
  margin-top: 6px;
}

/* secondary 陪襯 */

.companion {
  padding: 56px 0 96px;
}

.companion-box {
  max-width: 360px;
  margin-top: 18px;
}

.companion .case-frame {
  aspect-ratio: 3 / 2;
  max-height: 160px;
}

.companion .section-label {
  font-size: 11px;
}

.companion-box h3 {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- about / services typography blocks ---------- */

.prose-stack {
  display: grid;
  gap: 72px;
  max-width: 42em;
  padding-bottom: 96px;
}

.prose-block .section-label,
.prose-block .block-name {
  margin-bottom: 16px;
}

.block-name {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--white);
}

.levels {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 0;
  max-width: 42em;
}

.levels li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.levels li:last-child {
  border-bottom: 1px solid var(--line);
}

.levels .num {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--moss);
}

.levels h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.cta-row {
  margin: 56px 0 96px;
}

/* ---------- plusone ---------- */

.scope {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-soft);
}

.case-intro {
  max-width: 42em;
  margin: 36px 0 0;
}

.media-block {
  padding: 64px 0 16px;
}

.media-block .section-label {
  margin-bottom: 20px;
}

.logo-stage {
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 40px;
  max-width: 820px;
}

.logo-stage img {
  width: min(480px, 100%);
  height: auto;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.media-grid figure {
  margin: 0;
  background: var(--eerie);
  border: 1px solid var(--line);
}

.media-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.media-grid figcaption,
.logo-stage + .pending-caption,
.pending-caption {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--moss);
}

/* show bag photo a little more fully */
.media-grid figure:nth-child(4) img {
  object-position: 50% 70%;
}

.steps {
  padding: 72px 0 40px;
  display: grid;
  gap: 64px;
  max-width: 42em;
}

.step .num {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--moss);
}

.dialogue {
  margin: 28px 0 0;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialogue .dialogue-lead {
  margin-bottom: 18px;
  color: var(--text-faint);
  font-size: 14px;
}

.dialogue p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-soft);
}

.dialogue p:last-child {
  margin-bottom: 18px;
}

/* ---------- contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 96px;
}

.contact-aside .body-copy {
  max-width: 28em;
}

.mail-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--white);
  font-size: 17px;
}

.form-card {
  background: var(--eerie);
  border: 1px solid var(--eerie-light);
  padding: 36px 32px 32px;
}

.form-card label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--white);
}

.form-card .field {
  margin-bottom: 20px;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--eerie-light);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
}

.form-card select {
  background-image: linear-gradient(45deg, transparent 50%, var(--white) 50%),
    linear-gradient(135deg, var(--white) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.form-card input:hover,
.form-card select:hover,
.form-card textarea:hover,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
}

.field-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-faint);
}

.form-success {
  background: var(--eerie);
  border: 1px solid var(--eerie-light);
  padding: 36px 32px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--white);
}

.form-card[hidden],
.form-success[hidden] {
  display: none;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--night);
  padding: 56px 0 40px;
}

.footer-inner {
  width: var(--page-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 40px 48px;
  align-items: start;
}

.footer-brand .nav-logo img,
.footer-logo {
  height: 28px;
  width: auto;
}

.footer-name {
  margin-top: 18px;
  font-size: 14px;
  color: var(--white);
}

.footer-tagline {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 6px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-soft);
}

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

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  :root {
    --page: calc(100% - 40px);
    --page-wide: calc(100% - 40px);
    --header-h: 64px;
  }

  .nav-logo img {
    height: 26px;
  }

  .nav-toggle {
    display: block;
    z-index: 46;
  }

  .nav-panel {
    display: none;
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 84px 24px 32px;
    background: rgba(16, 12, 11, 0.97);
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  body.nav-open .nav-panel {
    display: flex;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links a {
    font-size: 22px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero-cta .btn {
    display: inline-flex;
    width: auto;
    padding: 11px 18px;
    white-space: nowrap;
  }

  .hero-inner {
    padding: 64px 0 120px;
    text-align: left;
  }

  .hero-hamster {
    width: 56px;
    right: 16px;
    bottom: 16px;
  }

  .case-grid,
  .media-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .band,
  .cases {
    padding: 64px 0 32px;
  }

  .page-head {
    padding: 48px 0 28px;
  }

  .form-card,
  .form-success {
    padding: 28px 20px;
  }

  .logo-stage {
    padding: 48px 24px;
  }

  .footer-inner {
    gap: 28px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

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

  .hero-veins .bloom,
  .hero-medallion,
  .hero-veins .pulse {
    animation: none;
  }

  .reveal,
  .reveal.is-in,
  a.case-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* helpers extracted from page markup */
.measure { max-width: 42em; }
.levels-title { margin-top: 72px; }
.cases-first { padding-top: 8px; }
.crumb {
  color: inherit;
  text-decoration: none;
}
.crumb:hover { color: var(--white); }
.page-title-follow { margin-top: 14px; }

::selection {
  background: var(--hot);
  color: var(--white);
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--night) inset;
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
}

/* Orange line sits on the image edge, not under the caption */
.case-card::after { display: none; }

.case-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--hot);
  transition: right 0.4s var(--ease);
}

a.case-card:hover .case-frame::after,
a.case-card:focus-visible .case-frame::after {
  right: 0;
}

html { color-scheme: dark; }
