:root {
  --ink: #121412;
  --muted: #5f665f;
  --paper: #f7f7f3;
  --white: #ffffff;
  --green: #007560;
  --mint: #a7d6bc;
  --soft-mint: #e8f4ee;
  --lavender: #c9b8ff;
  --yellow: #f3c96b;
  --line: rgba(0, 117, 96, 0.14);
  --section-space: 56px;
  --section-content-gap: 32px;
  --header-offset: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", "Noto Sans KR", "Noto Sans JP", sans-serif;
  transition: background-color 700ms ease;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body::before {
  background-image: linear-gradient(rgba(0, 117, 96, 0.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 117, 96, 0.085) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

main {
  display: flex;
  flex-direction: column;
}

#home {
  order: 1;
}

#portfolio {
  order: 2;
}

#focus {
  order: 3;
}

#services {
  order: 4;
}

#quality {
  order: 5;
}

#workflow {
  order: 6;
}

#contact {
  order: 7;
}

.filter-defs {
  pointer-events: none;
  position: absolute;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, border-color 220ms ease;
  z-index: 30;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(0, 117, 96, 0.12);
  box-shadow: 0 12px 34px rgba(18, 20, 18, 0.06);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  gap: 12px;
}

.brand > span:last-child {
  font-family: "Noto Sans KR", sans-serif;
  font-size: 23px;
  font-weight: 600;
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-flex;
  height: 42px;
  width: 42px;
}

.brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.nav {
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 24px;
  text-transform: uppercase;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-toggle span {
  background: var(--green);
  border-radius: 999px;
  display: block;
  height: 3px;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 25px;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav a {
  color: rgba(18, 20, 18, 0.72);
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.nav a::after {
  background: var(--green);
  bottom: -8px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--green);
  transform: translateY(-2px);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.section {
  overflow: hidden;
  position: relative;
  scroll-margin-top: 82px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1460px;
  padding: var(--section-space) clamp(20px, 5vw, 76px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.eyebrow {
  color: var(--green) !important;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

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

h1 {
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 30px;
  max-width: 820px;
}

h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 820px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-copy p:not(.eyebrow),
.section-copy p:not(.eyebrow),
.section-heading p,
.portfolio-head p:last-child,
.contact-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.76;
  max-width: 680px;
}

.section-heading .eyebrow {
  font-family: "Inter", "Noto Sans KR", sans-serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 900;
  line-height: normal;
  max-width: none;
}

.button {
  align-items: center;
  border: 2px solid var(--green);
  display: inline-flex;
  font-weight: 900;
  min-height: 52px;
  padding: 0 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  background: var(--green);
  box-shadow: 8px 8px 0 var(--mint);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(0, 117, 96, 0.16);
}

.hero {
  min-height: auto;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(56px, 7vw, 118px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  min-height: min(820px, 92svh);
  padding-top: clamp(98px, 9vw, 126px);
}

.portfolio-section > .section-inner {
  transition: opacity 350ms ease;
}

.portfolio-section:not(.is-scroll-revealed) > .section-inner {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-section > .section-inner {
    transition: none;
  }
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 em {
  font-size: 1em;
  font-style: normal;
}

.section-heading h2 span,
.section-heading p span,
.section-copy h2 span,
.section-copy p span,
.portfolio-head h2 span,
.portfolio-head > p:last-child span,
.contact-panel h2 span {
  display: block;
}

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

.direction-panel {
  display: grid;
  gap: 0;
}

.direction-item + .direction-item {
  margin-top: -8px;
}

.direction-item {
  --panel-shape: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  background: transparent;
  border: 0;
  box-shadow: none;
  isolation: isolate;
  min-height: clamp(190px, 16vw, 230px);
  position: relative;
}

.direction-item::before,
.direction-item::after {
  clip-path: var(--panel-shape);
  content: "";
  position: absolute;
}

.direction-item::before {
  background: var(--green);
  inset: 0;
  z-index: -2;
}

.direction-item::after {
  display: none;
}

.direction-content {
  background: var(--white);
  clip-path: var(--panel-shape);
  inset: 5px;
  padding: clamp(22px, 3vw, 38px);
  position: absolute;
}

.direction-item:nth-child(2) {
  --panel-shape: polygon(0 14%, 100% 0, 100% 100%, 0 88%);
}

.direction-item:nth-child(2) .direction-content {
  text-align: right;
}

.direction-item:nth-child(n + 2) .direction-content {
  padding-top: calc(clamp(22px, 3vw, 38px) + 12px);
}

.direction-item:nth-child(3) {
  --panel-shape: polygon(0 0, 100% 12%, 100% 100%, 0 100%);
}

.direction-item span {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.direction-item strong {
  display: block;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1;
  margin-bottom: 18px;
}

.direction-item p {
  color: var(--muted);
  margin: 0;
}

.primary-direction {
  background: transparent;
}

.focus-layout,
.quality-layout {
  align-items: center;
  display: grid;
  gap: clamp(52px, 7vw, 116px);
  grid-template-columns: 0.9fr 1.1fr;
}

.focus-layout {
  align-items: start;
  gap: var(--section-content-gap);
  grid-template-columns: 1fr;
}

.focus-layout .section-copy {
  max-width: 920px;
}

.focus-grid {
  display: grid;
  gap: clamp(14px, 1.5vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  margin-top: 0;
}

.focus-card,
.service-card,
.timeline-item,
.partner-logo,
.work-card,
.contact-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--green);
  border-radius: 14px;
}

.focus-card,
.service-card,
.timeline-item {
  padding: clamp(20px, 3vw, 34px);
}

.focus-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  column-gap: 18px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 176px;
  padding: 24px;
}

.focus-card h3 {
  font-size: clamp(20px, 1.55vw, 23px);
  grid-column: 2;
  margin-bottom: 8px;
}

.focus-card p {
  font-size: clamp(16px, 1.1vw, 17px);
  grid-column: 2;
}

.focus-icon {
  align-items: center;
  align-self: center;
  color: var(--green);
  display: inline-flex;
  grid-row: 1 / span 2;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.focus-icon svg {
  fill: none;
  height: 42px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 42px;
}

.service-card {
  padding: 22px;
}

.service-card span,
.timeline-item span {
  color: var(--green);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 24px;
}

.focus-card p,
.service-card p,
.timeline-item p {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.68;
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: var(--section-content-gap);
}

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

.service-card {
  align-content: center;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 166px;
  position: relative;
}

.service-icon {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--green);
  display: inline-flex;
  grid-row: span 2;
  height: 54px;
  justify-content: center;
  letter-spacing: 0;
  margin-right: 18px;
  min-width: 54px;
  padding: 4px;
}

.service-icon svg {
  fill: none;
  height: 44px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 44px;
}

.service-card > h3,
.service-card > p {
  grid-column: 2;
}

.service-card > span {
  font-size: 12px;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.58;
}

.focus-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.94);
}

.service-card {
  background: rgba(255, 255, 255, 0.94);
}

.quality-proof-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--green);
  border-radius: 18px;
  box-shadow: 18px 18px 0 rgba(0, 117, 96, 0.13);
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
}

.quality-proof-card::before {
  background: transparent;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.proof-head,
.proof-line {
  position: relative;
  z-index: 1;
}

.proof-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proof-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.proof-head strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.proof-line {
  align-items: center;
  border-top: 1px solid rgba(0, 117, 96, 0.22);
  display: grid;
  gap: 18px;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 78px;
  padding: 16px 0;
}

.proof-icon {
  align-items: center;
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green);
  color: var(--white);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.proof-line p {
  font-size: clamp(15px, 1.08vw, 18px);
  font-weight: 900;
  line-height: 1.48;
  margin: 0;
  min-width: 0;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.quality-points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}

.quality-points p {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  margin: 0;
  min-height: 112px;
  opacity: 0;
  padding: 16px 0 16px 22px;
  position: relative;
  transform: translateX(-18px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quality-points p::before {
  background: var(--green);
  content: "";
  height: 112px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
}

.quality-layout .section-copy.is-visible .quality-points p {
  opacity: 1;
  transform: translateX(0);
}

.quality-layout .section-copy.is-visible .quality-points p:nth-child(1) {
  transition-delay: 180ms;
}

.quality-layout .section-copy.is-visible .quality-points p:nth-child(2) {
  transition-delay: 360ms;
}

.quality-layout .section-copy.is-visible .quality-points p:nth-child(3) {
  transition-delay: 540ms;
}

.quality-proof-card.reveal {
  transition-delay: 920ms;
}

.quality-proof-card.reveal-left {
  transform: translateX(72px);
}

.quality-points strong,
.quality-points span {
  display: block;
}

.quality-points strong {
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 900;
  margin-bottom: 6px;
}

.quality-points span {
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  line-height: 1.72;
}

.portfolio-head {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr minmax(280px, 520px);
}

.portfolio-top {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
}

.portfolio-top .portfolio-head {
  display: block;
}

.portfolio-top .portfolio-head p:last-child {
  margin-top: 24px;
}

.portfolio-stats {
  display: grid;
  gap: 10px;
}

.portfolio-stat-variants {
  display: grid;
  gap: 14px;
}

.record-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--green);
  border-radius: 18px;
  box-shadow: 10px 10px 0 rgba(0, 117, 96, 0.12);
  padding: 22px 26px;
}

.record-panel > p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}

.record-row {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(84px, 1fr) auto;
  padding: 15px 0;
}

.record-row + .record-row {
  border-top: 1px solid rgba(0, 117, 96, 0.18);
}

.record-row strong {
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.record-row span {
  color: var(--green);
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 900;
}

.record-row div {
  text-align: right;
}

.record-row em {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  margin-top: 6px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 18px 20px;
}

.stat-card strong {
  display: block;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--green);
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.partner-flow {
  margin-top: clamp(20px, 4vh, 32px);
  overflow: hidden;
}

.flow-label {
  color: var(--green);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.partner-flow-shell {
  cursor: grab;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.partner-flow-shell.is-dragging {
  cursor: grabbing;
}

.partner-logo {
  --partner-image-height: 48px;
  position: relative;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  height: 58px;
  min-width: auto;
  padding: 0;
}

.partner-logo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: var(--partner-image-height);
  transform: translateY(-50%);
  box-sizing: border-box;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--white);
}

.partner-logo img {
  display: block;
  position: relative;
  clip-path: inset(2px round 999px);
  height: 48px;
  max-width: 190px;
  object-fit: contain;
  width: auto;
}

.gallery-stack {
  display: grid;
  gap: 18px;
  margin-top: clamp(22px, 4vh, 38px);
}

.gallery-shell {
  cursor: grab;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}

.gallery-shell.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 18px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  width: max-content;
}

.work-card {
  color: inherit;
  text-decoration: none;
  flex: 0 0 clamp(145px, 13vw, 200px);
  overflow: hidden;
  position: relative;
}

.work-cover {
  align-items: end;
  aspect-ratio: 3 / 4;
  color: var(--white);
  display: flex;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
  line-height: 0.95;
  padding: 18px;
  position: relative;
  transition: filter 220ms ease, transform 220ms ease;
}

.work-cover img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

.work-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.work-cover.is-unavailable {
  align-items: center;
  justify-content: center;
  background: var(--green);
  text-align: center;
}

.cover-fallback {
  font-size: 17px;
  line-height: 1.5;
}

.cover-fallback small {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.work-card.is-blurred .work-cover {
  filter: blur(3px);
  transform: scale(1.015);
}

.work-card.is-blurred:hover .work-cover,
.work-card.is-blurred:focus-within .work-cover {
  filter: blur(0);
  transform: scale(1);
}

.cover-one {
  background: var(--green);
}

.cover-two {
  background: #7d66cc;
}

.cover-three {
  background: #2f8f7d;
}

.cover-four {
  background: var(--yellow);
  color: var(--ink);
}

.cover-five {
  background: var(--ink);
}

.cover-six {
  background: #005849;
}

.cover-seven {
  background: #c9b8ff;
  color: var(--ink);
}

.cover-eight {
  background: #346d61;
}

.cover-nine {
  background: #f3c96b;
  color: var(--ink);
}

.cover-ten {
  background: #101510;
}

.work-meta {
  padding: 16px;
}

.work-meta strong,
.work-meta span {
  display: block;
}

.work-meta strong {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.35em;
  line-height: 1.45;
  font-size: 17px;
  margin-bottom: 8px;
}

.work-meta span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.gallery-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0 0;
}

.timeline {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 0;
  position: relative;
}

.workflow-section .section-inner {
  padding-bottom: var(--section-space);
  padding-top: var(--section-space);
}

.workflow-section .section-heading {
  margin-bottom: var(--section-content-gap);
}

.workflow-section .timeline-item {
  min-height: 200px;
  padding: 24px;
}

.timeline::before {
  display: none;
}

.timeline-item {
  border-radius: 18px;
  box-shadow: none;
  min-height: 236px;
  position: relative;
  z-index: 1;
}

.timeline-item:nth-child(even) {
  background: var(--soft-mint);
}

.timeline-item span {
  align-items: center;
  background: var(--green);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--green);
  color: var(--white);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin: -12px 0 24px;
  width: 42px;
}

.workflow-flow {
  display: none;
  height: 38px;
  left: calc((100% - 72px) / 14);
  pointer-events: none;
  position: absolute;
  right: calc((100% - 72px) / 14);
  z-index: 0;
}

.flow-dot,
.flow-line,
.flow-arrow {
  display: block;
  position: absolute;
}

.flow-dot {
  background: var(--green);
  border: 5px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green), 0 9px 0 rgba(0, 117, 96, 0.12);
  height: 30px;
  left: 0;
  opacity: 0;
  top: 4px;
  transform: translateX(-50%) scale(0.25);
  transition: opacity 160ms ease 120ms, transform 260ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
  width: 30px;
}

.flow-line {
  background: var(--green);
  border-radius: 999px;
  height: 7px;
  left: 0;
  right: 26px;
  top: 15px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 560ms cubic-bezier(0.16, 1, 0.3, 1) 260ms;
}

.flow-arrow {
  background: var(--green);
  clip-path: polygon(0 0, 100% 50%, 0 100%, 24% 50%);
  height: 28px;
  opacity: 0;
  right: 0;
  top: 5px;
  transform: translateX(-12px);
  transition: opacity 160ms ease 780ms, transform 220ms cubic-bezier(0.16, 1, 0.3, 1) 780ms;
  width: 40px;
}

.timeline.is-flow-visible .flow-dot {
  animation: flow-dot-pass 1.4s ease forwards;
}

.timeline.is-flow-visible .flow-line {
  animation: flow-line-pass 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.timeline.is-flow-visible .flow-arrow {
  animation: flow-arrow-pass 1.4s ease forwards;
}

.contact-section {
  color: var(--white);
}

.contact-panel {
  color: var(--ink);
  margin: 0 auto;
  max-width: 960px;
  padding: clamp(34px, 7vw, 78px);
}

.contact-methods {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.contact-method {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--green);
  box-shadow: 8px 8px 0 rgba(0, 117, 96, 0.16);
  display: grid;
  gap: 18px;
  grid-template-columns: min-content minmax(0, 1fr);
  min-height: 94px;
  padding: 20px 24px;
  transition: transform 180ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(0, 117, 96, 0.16);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-method span {
  color: var(--green);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0;
  min-width: 42px;
}

.contact-method:hover span,
.contact-method:focus-visible span {
  color: var(--green);
}

.contact-method strong {
  display: block;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.contact-method[href^="mailto:"] strong {
  font-size: clamp(14px, 1.35vw, 20px);
}

.site-footer {
  background: #26332f;
  color: var(--white);
  padding: 42px 20px 38px;
  text-align: center;
}

.footer-social {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: center;
  margin-bottom: 26px;
}

.footer-icon {
  align-items: center;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  transition: color 180ms ease, transform 180ms ease;
  width: 32px;
}

.footer-icon svg {
  display: block;
  fill: none;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 26px;
}

.footer-icon[aria-label="X"] svg {
  fill: currentColor;
  stroke: none;
}

.footer-icon[aria-label="X"] svg path:nth-child(n + 2) {
  display: none;
}

.footer-icon:hover {
  color: var(--mint);
  transform: translateY(-2px);
}

.copy-toast {
  background: rgba(18, 20, 18, 0.92);
  border: 2px solid rgba(167, 214, 188, 0.86);
  box-shadow: 10px 10px 0 rgba(0, 117, 96, 0.22);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  left: 50%;
  opacity: 0;
  padding: 16px 20px;
  pointer-events: none;
  position: fixed;
  top: 50%;
  transform: translate(-50%, calc(-50% + 18px));
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
  z-index: 80;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.site-footer address,
.site-footer p {
  font-style: normal;
  line-height: 1.65;
  margin: 0;
}

.copyright {
  margin-top: 24px !important;
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  transform: translateX(-72px);
}

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

.reveal-left.is-visible {
  transform: translateX(0);
}

.replay-heading {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .replay-heading,
  .replay-heading.is-heading-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes float-frame {
  from {
    transform: rotate(var(--tilt, 0deg)) translate3d(-8px, 6px, 0);
  }

  to {
    transform: rotate(calc(var(--tilt, 0deg) + 0.8deg)) translate3d(8px, -12px, 0);
  }
}

@keyframes float-piece {
  from {
    transform: rotate(var(--tilt, 0deg)) translate3d(calc(var(--float-x, 12px) * -0.45), calc(var(--float-y, -10px) * -0.45), 0);
  }

  to {
    transform: rotate(calc(var(--tilt, 0deg) + 1.4deg)) translate3d(var(--float-x, 12px), var(--float-y, -10px), 0);
  }
}

@keyframes flow-dot-pass {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.25);
  }

  12%,
  76% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(18px) scale(0.35);
  }
}

@keyframes flow-line-pass {
  0%,
  14% {
    clip-path: inset(0 100% 0 0);
    transform: scaleX(1);
  }

  54%,
  76% {
    clip-path: inset(0 0 0 0);
    transform: scaleX(1);
  }

  100% {
    clip-path: inset(0 0 0 100%);
    transform: scaleX(1);
  }
}

@keyframes flow-arrow-pass {
  0%,
  48% {
    opacity: 0;
    transform: translateX(-12px);
  }

  58%,
  76% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateX(18px);
  }
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow-section .timeline-item {
    min-height: 190px;
    padding: 24px;
  }

  .timeline-item span {
    height: 36px;
    margin: -6px 0 18px;
    width: 36px;
  }

  .workflow-flow {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--green);
    box-shadow: 8px 8px 0 rgba(0, 117, 96, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0;
    left: 16px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: calc(100% + 1px);
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .nav a {
    padding: 13px 14px;
  }

  .nav a::after {
    bottom: 7px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .hero-inner,
  .quality-layout,
  .portfolio-top,
  .portfolio-head {
    grid-template-columns: 1fr;
  }

  .quality-layout > .section-copy {
    order: 1;
  }

  .quality-proof-card {
    order: 2;
  }

  .direction-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 981px) {
  .quality-layout > .section-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .quality-proof-card {
    grid-column: 2;
    grid-row: 1;
  }

  .portfolio-head h2 {
    font-size: clamp(34px, 3.25vw, 50px);
    max-width: none;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  :root {
    --section-content-gap: 24px;
    --section-space: 44px;
  }

  body::before {
    background-size: 42px 42px;
  }

  .site-header {
    padding: 10px 16px;
  }

  .section {
    scroll-margin-top: 64px;
  }

  .brand {
    font-size: 18px;
  }

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

  .section-inner {
    padding: var(--section-space) 18px;
  }

  .hero-inner {
    padding-top: 92px;
  }

  h1 {
    font-size: clamp(29px, 8.4vw, 39px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(29px, 8.4vw, 39px);
    line-height: 1.2;
  }

  .eyebrow {
    font-size: 15px;
  }

  .hero-copy p:not(.eyebrow),
  .section-copy p:not(.eyebrow),
  .section-heading p,
  .portfolio-head p:last-child,
  .contact-panel p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.7;
  }

  .direction-panel,
  .focus-grid,
  .service-grid,
  .timeline,
  .contact-methods {
    grid-template-columns: 1fr;
  }

  .focus-card {
    border-radius: 22px;
    column-gap: 14px;
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
    padding: 22px 18px;
  }

  .focus-icon {
    height: 46px;
    width: 46px;
  }

  .focus-icon svg {
    height: 36px;
    width: 36px;
  }

  .workflow-section .timeline-item {
    min-height: 0;
    padding: 22px 20px;
  }

  .contact-method {
    gap: 12px;
    grid-template-columns: min-content minmax(0, 1fr);
  }

  .service-card {
    min-height: auto;
  }

  .service-icon {
    grid-row: auto;
  }

  .quality-proof-card {
    border-radius: 14px;
    box-shadow: 8px 8px 0 rgba(0, 117, 96, 0.13);
    padding: 16px;
  }

  .proof-head {
    align-items: start;
    display: grid;
    gap: 4px;
  }

  .proof-line {
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 68px;
    padding: 13px 0;
  }

  .proof-icon {
    font-size: 12px;
    height: 38px;
    width: 38px;
  }

  .proof-line p {
    font-size: 15px;
  }

  .portfolio-stats {
    grid-template-columns: 1fr;
  }

  .record-row {
    gap: 12px;
    grid-template-columns: minmax(70px, 1fr) auto;
  }

  .partner-logo {
    --partner-image-height: 42px;
    height: 50px;
    min-width: auto;
    padding: 0;
  }

  .partner-logo img {
    height: 42px;
    max-width: 156px;
  }

  .work-card {
    flex-basis: 124px;
  }

  .work-cover {
    font-size: 21px;
    padding: 12px;
  }

  .work-meta {
    padding: 11px;
  }

  .work-meta strong {
    font-size: 13px;
  }

  .work-meta span {
    font-size: 11px;
  }
}
