:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5b6871;
  --line: #d9e0e4;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #c45d32;
  --warm-soft: #f2c9a7;
  --blue: #2f5d8c;
  --cream: #fff8ea;
  --shadow: 0 22px 60px rgba(24, 32, 38, 0.12);
  --shadow-soft: 0 14px 34px rgba(24, 32, 38, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 201, 167, 0.32), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(15, 118, 110, 0.1), transparent 24rem),
    var(--paper);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 24%, rgba(196, 93, 50, 0.08), transparent 20rem),
    radial-gradient(circle at 78% 34%, rgba(47, 93, 140, 0.08), transparent 22rem);
  animation: gentleBackground 22s ease-in-out infinite alternate;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(196, 93, 50, 0.54);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

#main-content:focus {
  outline: none;
}

.text-nowrap {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(217, 224, 228, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.language-menu,
.hero-actions,
.hero-credentials,
.tag-row,
.project-topline,
.template-topline,
.profile-strip,
.site-footer,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.9rem;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  flex-wrap: wrap;
}

.header-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: clamp(14px, 3vw, 28px);
  flex-wrap: wrap;
}

.nav-links a,
.text-link,
.site-footer a {
  text-decoration: none;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

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

.language-menu {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(91, 104, 113, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.language-menu span {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-menu a {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.language-menu a.active {
  color: #fff;
  background: var(--accent-dark);
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 248, 234, 0.9), rgba(15, 118, 110, 0.1) 38%, rgba(196, 93, 50, 0.1) 72%, rgba(255, 255, 255, 0.78)),
    var(--paper);
  background-size: 140% 140%;
  animation: softGradientShift 18s ease-in-out infinite alternate;
}

.hero-copy {
  container-type: inline-size;
}

.eyebrow,
.section-kicker,
.panel-label,
.project-number,
.template-type {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-right: 0.48em;
  border-radius: 3px;
  background: rgba(196, 93, 50, 0.22);
  vertical-align: -0.06em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 14px 0 20px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-title {
  max-width: 18em;
  font-size: clamp(2.2rem, 5.2cqi, 4.2rem);
  line-height: 1.1;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: #34424a;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-credentials {
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 26px;
}

.credential-label {
  flex: 1 1 100%;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-credentials a {
  display: grid;
  gap: 2px;
  min-width: min(220px, 100%);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 79, 74, 0.24);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(11, 79, 74, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-credentials a:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 79, 74, 0.42);
  box-shadow: var(--shadow-soft);
}

.hero-credentials strong {
  line-height: 1.2;
}

.hero-credentials span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

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

.button.secondary {
  color: var(--accent-dark);
  border-color: rgba(11, 79, 74, 0.28);
  background: rgba(255, 255, 255, 0.58);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  position: relative;
  max-width: 440px;
  justify-self: end;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(24, 32, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro,
.activity,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.activity p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  margin-bottom: 30px;
}

.projects {
  background: linear-gradient(180deg, #fffdf8, #fff8ea);
  border-bottom: 1px solid var(--line);
}

.case-studies {
  background: linear-gradient(180deg, #f3f8f5, #fffdf8);
  border-bottom: 1px solid var(--line);
}

.case-studies-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
}

.case-studies-heading > p {
  margin: 0;
  color: var(--muted);
}

.case-study-list {
  display: grid;
  gap: 28px;
}

.case-study-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.case-study-card.reverse .case-study-copy {
  order: 2;
}

.case-study-card.reverse .case-study-media {
  order: 1;
}

.case-study-card h3 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.case-study-details {
  display: grid;
  gap: 12px;
  margin: 20px 0 6px;
}

.case-study-details > div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 12px;
}

.case-study-details dt {
  color: var(--accent-dark);
  font-weight: 800;
}

.case-study-details dd {
  margin: 0;
  color: var(--muted);
}

.case-study-media {
  margin: 0;
}

.case-study-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(24, 32, 38, 0.14);
}

.portrait-media {
  width: min(100%, 330px);
  justify-self: center;
}

.case-study-media figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.case-study-gallery {
  display: grid;
  gap: 18px;
}

.new-tab-hint {
  font-size: 0.75rem;
  font-weight: 600;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(24, 32, 38, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.featured-project {
  grid-column: 1 / -1;
  min-height: 0;
}

.featured-project .project-shot img {
  width: min(100%, 260px);
}

.project-card:hover,
.template-card:hover,
.feature-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 93, 50, 0.34);
  box-shadow: var(--shadow-soft);
}

.project-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.project-feature-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-feature-list li::marker {
  color: var(--accent);
}

.project-topline,
.template-topline {
  justify-content: space-between;
  gap: 12px;
}

.project-purpose {
  display: inline-flex;
  align-items: center;
  max-width: 72%;
  min-height: 28px;
  padding: 3px 10px;
  color: #7c351a;
  background: rgba(196, 93, 50, 0.12);
  border: 1px solid rgba(196, 93, 50, 0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid rgba(91, 104, 113, 0.25);
  border-radius: 999px;
  color: #40505a;
  background: #fbfaf6;
  font-size: 0.82rem;
  font-weight: 700;
}

.project-card .release-note {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.project-shot {
  margin: 18px 0 0;
}

.project-shot img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 36, 46, 0.18);
}

.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 18px;
}

.button.compact {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.92rem;
}

.text-link {
  margin-top: 18px;
  color: var(--accent-dark);
}

.project-links .text-link {
  margin-top: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link img {
  width: 18px;
  height: 18px;
}

.templates {
  background: linear-gradient(180deg, #f7faf7, #fffdf8);
  border-bottom: 1px solid var(--line);
}

.about-intro {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.trust-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(24, 32, 38, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.trust-card h3 {
  margin-top: 0;
}

.trust-card p,
.about-content p,
.about-content li {
  color: var(--muted);
}

.about-content {
  display: grid;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.about-content article {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.about-content h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.about-content ul {
  padding-left: 1.3rem;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.templates .section-heading p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(24, 32, 38, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.template-card p {
  margin: 0;
  color: var(--muted);
}

.template-card .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.price-badge.free {
  color: var(--accent-dark);
  background: rgba(15, 118, 110, 0.12);
}

.price-badge.paid {
  color: #7c351a;
  background: rgba(196, 93, 50, 0.16);
}

.paid-template {
  border-color: rgba(196, 93, 50, 0.35);
}

.profile-section {
  border-bottom: 1px solid var(--line);
}

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

.feature-panel {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 28px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-feature {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 246, 0.9));
}

.credential-badge {
  width: min(150px, 48vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.feature-panel strong {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.feature-panel span:last-child {
  color: var(--muted);
}

.activity,
.contact {
  align-items: center;
}

.activity .button,
.contact .button {
  justify-self: end;
}

.contact {
  background: #fffdf8;
}

.policy-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.1), rgba(196, 93, 50, 0.08) 48%, rgba(47, 93, 140, 0.1)),
    var(--paper);
}

.manual-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(196, 93, 50, 0.08) 48%, rgba(47, 93, 140, 0.1)),
    var(--paper);
}

.manual-hero h1 {
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.manual-device-shot {
  margin: 0;
  justify-self: center;
}

.manual-device-shot img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.policy-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.policy-content,
.manual-content {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.policy-content article,
.manual-panel {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-content h2,
.manual-panel h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.policy-content p,
.policy-content li,
.manual-panel p,
.manual-panel li {
  color: var(--muted);
}

.manual-steps,
.manual-checklist {
  display: grid;
  gap: 10px;
  padding-left: 1.35rem;
}

.manual-steps li::marker,
.manual-checklist li::marker {
  color: var(--accent);
  font-weight: 800;
}

.manual-note {
  padding: 14px 16px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
}

.manual-example {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-example span {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.manual-example code {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(24, 32, 38, 0.06);
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.version-history-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.version-history-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.version-history-item h3,
.version-history-item p,
.version-history-item dl {
  margin: 0;
}

.version-history-item h3 {
  color: var(--ink);
}

.version-date {
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.version-history-item dl {
  display: grid;
  grid-template-columns: minmax(110px, 0.24fr) minmax(0, 1fr);
  gap: 8px 16px;
}

.version-history-item dt {
  color: var(--ink);
  font-weight: 800;
}

.version-history-item dd {
  margin: 0;
  color: var(--muted);
}

.policy-updated {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #182026;
}

.footer-meta {
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.trademark-notice {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-links {
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: #fff;
}

.motion-ready .reveal-on-scroll,
.motion-ready .project-card,
.motion-ready .template-card,
.motion-ready .feature-panel {
  opacity: 0;
  transform: translateY(18px);
}

.motion-ready .reveal-on-scroll.is-visible,
.motion-ready .project-card.is-visible,
.motion-ready .template-card.is-visible,
.motion-ready .feature-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.motion-ready .project-card.is-visible,
.motion-ready .template-card.is-visible,
.motion-ready .feature-panel.is-visible {
  transition-delay: 70ms;
}

.motion-ready .project-card.is-visible:hover,
.motion-ready .template-card.is-visible:hover,
.motion-ready .feature-panel.is-visible:hover {
  transform: translateY(-5px);
}

@keyframes softGradientShift {
  from {
    background-position: 0% 45%;
  }

  to {
    background-position: 100% 55%;
  }
}

@keyframes gentleBackground {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, 18px, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    flex: 0 1 auto;
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero,
  .manual-hero,
  .intro,
  .activity,
  .contact,
  .case-studies-heading,
  .case-study-card {
    grid-template-columns: 1fr;
  }

  .case-study-card.reverse .case-study-copy,
  .case-study-card.reverse .case-study-media {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
    max-width: 360px;
  }

  .manual-device-shot {
    justify-self: start;
  }

  .project-grid,
  .template-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity .button,
  .contact .button {
    justify-self: start;
  }

  .version-history-item dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    min-height: 0;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .nav-links a {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 4px 6px;
    border: 1px solid rgba(91, 104, 113, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    text-align: center;
  }

  .header-actions {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    min-height: 0;
  }

  .language-menu {
    width: auto;
    max-width: 100%;
    overflow-x: auto;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .profile-strip {
    position: static;
    margin-top: 10px;
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
  }

  .project-grid,
  .template-grid,
  .profile-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .template-card {
    min-height: auto;
  }

  .case-study-card {
    padding: 22px;
    border-radius: 12px;
  }

  .case-study-details > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .new-tab-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .project-purpose {
    max-width: 78%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::before,
  .hero {
    animation: none;
  }

  .button,
  .hero-credentials a,
  .project-card,
  .template-card,
  .feature-panel {
    transition: none;
  }

  .button:hover,
  .hero-credentials a:hover,
  .project-card:hover,
  .template-card:hover,
  .feature-panel:hover {
    transform: none;
    box-shadow: none;
  }

  .motion-ready .reveal-on-scroll,
  .motion-ready .project-card,
  .motion-ready .template-card,
  .motion-ready .feature-panel {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    line-height: 1.55;
  }

  .site-header,
  .site-footer,
  .manual-actions {
    display: none;
  }

  .section {
    padding: 0;
  }

  .manual-hero {
    grid-template-columns: minmax(0, 1fr) 42mm;
    gap: 8mm;
    align-items: start;
    padding-bottom: 8mm;
    background: none;
  }

  .manual-hero h1 {
    max-width: none;
    margin: 3mm 0 4mm;
    font-size: 24pt;
  }

  .lead {
    max-width: none;
    font-size: 11pt;
  }

  .manual-device-shot {
    justify-self: end;
  }

  .manual-device-shot img {
    width: 42mm;
    max-height: 92mm;
    border-radius: 6px;
    box-shadow: none;
  }

  .manual-content {
    gap: 7mm;
    max-width: none;
  }

  .manual-panel {
    break-inside: avoid;
    padding-bottom: 6mm;
  }

  .manual-panel h2 {
    font-size: 15pt;
  }

  .manual-panel p,
  .manual-panel li {
    font-size: 10pt;
  }

  .manual-note,
  .manual-example {
    break-inside: avoid;
  }

  .manual-example code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
