:root {
  --bg: #f6f3ed;
  --paper: #fbf8f2;
  --line: #131313;
  --muted: #5c544d;
  --accent: #b51f1f;
  --accent-dark: #8f1818;
  --container: 1180px;
  --section-gap: 110px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--line);
  background:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.03), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(0,0,0,0.025), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(0,0,0,0.01)),
    var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image:
    linear-gradient(transparent 0, transparent 97%, rgba(0,0,0,0.2) 100%),
    linear-gradient(90deg, transparent 0, transparent 98%, rgba(0,0,0,0.12) 100%);
  background-size: 100% 7px, 9px 100%;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0 0;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url('images/icon-decor.png') center/contain no-repeat;
  transform: translateY(3px);
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--muted);
  font-size: 1.04rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246,243,237,0.86);
  border-bottom: 1px solid rgba(19,19,19,0.14);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  font-weight: 600;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

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

.nav-cta {
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-cta:hover,
.btn:hover,
.project-card:hover .project-link,
.contact-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(0,0,0,0.16);
  background: var(--accent-dark);
}

.hero {
  padding: 46px 0 0;
  position: relative;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.hero-art-wrap {
  position: relative;
  padding: 26px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.55));
  box-shadow: 12px 12px 0 rgba(0,0,0,0.12);
  overflow: hidden;
}

.hero-art-wrap::before,
.hero-art-wrap::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(19,19,19,0.14);
  border-radius: 18px;
  pointer-events: none;
}

.hero-art-wrap::after {
  inset: auto 18px 18px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.35;
  transform: rotate(-10deg);
}

.hero-art {
  position: relative;
  border-radius: 18px;
  background: var(--paper);
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-art img,
.about-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.12);
  mix-blend-mode: multiply;
}

.floating-card {
  position: absolute;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.12);
  padding: 14px 16px;
  max-width: 210px;
}

.floating-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.floating-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.card-1 { top: 28px; left: 24px; }
.card-2 { right: 24px; bottom: 26px; }

.hero-copy {
  position: relative;
  padding: 12px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
  color: var(--accent);
}

.hero-text {
  max-width: 610px;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.14);
}

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

.btn-secondary {
  background: var(--paper);
}

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

.hero-point {
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.08);
}

.hero-point strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-point span {
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.paper-panel {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.paper-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(19,19,19,0.18);
  border-radius: 16px;
  pointer-events: none;
}

.about-art {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.about-copy h3,
.contact-copy h3 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.about-copy p,
.contact-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(19,19,19,0.14);
}

.feature-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.feature-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url('images/icon-decor.png') center/contain no-repeat;
  margin-top: 4px;
  flex: 0 0 auto;
}

.services-grid,
.projects-grid,
.team-grid {
  display: grid;
  gap: 24px;
}

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

.service-card,
.project-card,
.team-card,
.step-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
}

.service-card {
  padding: 22px;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.project-card:hover,
.team-card:hover,
.step-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0 rgba(0,0,0,0.12);
}

.service-visual {
  aspect-ratio: 1.15 / 1;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 3rem;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}

.service-card h3,
.project-card h3,
.team-card h3,
.step-card h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1;
}

.service-card p,
.project-card p,
.team-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.service-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.62);
}

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

.project-thumb {
  position: relative;
  aspect-ratio: 1.18 / 0.82;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: var(--bg);
}

.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 0, transparent 96%, rgba(0,0,0,0.12) 100%);
  background-size: 100% 8px;
  opacity: 0.5;
}

.project-illustration {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
}

.project-body {
  padding: 22px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.step-card,
.team-card {
  padding: 20px;
}

.step-number {
  width: 52px;
  height: 52px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.25)), var(--bg);
  display: grid;
  place-items: center;
  font-size: 4.2rem;
  margin-bottom: 18px;
  filter: grayscale(1);
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card,
.contact-form {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 26px 0 0;
}

.contact-item {
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
}

.contact-item small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-item strong {
  font-size: 1rem;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  padding: 14px 16px;
  font: inherit;
  color: var(--line);
  outline: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(181,31,31,0.14);
  transform: translateY(-1px);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-submit {
  justify-self: start;
  min-height: 54px;
  padding: 0 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.footer {
  padding: 44px 0 60px;
}

.footer-line {
  border-top: 2px solid rgba(19,19,19,0.18);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.decor-line {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(19,19,19,0.25), transparent);
}

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

.blog-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 14px 14px 0 rgba(0,0,0,0.12);
}

.blog-date {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.62);
  margin-bottom: 14px;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.blog-list {
  display: grid;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.blog-list .blog-card {
  padding: 30px;
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

.blog-article-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-article-date {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255,255,255,0.62);
  margin-bottom: 20px;
}

.blog-article-title {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
}

.blog-article-content {
  font-size: 1.1rem;
  line-height: 1.7;
}

.blog-article-content h2 {
  margin: 48px 0 20px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  line-height: 1.2;
}

.blog-article-content h3 {
  margin: 36px 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1.2;
}

.blog-article-content p {
  margin: 0 0 20px;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.blog-article-content li {
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .hero-shell,
  .paper-grid,
  .contact-shell { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid,
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { min-height: 520px; }
  .blog-preview { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --section-gap: 88px; }

  .nav { display: none; }

  .hero-points,
  .form-row,
  .services-grid,
  .projects-grid,
  .process-grid,
  .team-grid { grid-template-columns: 1fr; }

  .hero-art { min-height: 420px; }
  .floating-card { position: static; margin-top: 14px; max-width: none; }
  .hero-art-wrap { padding-bottom: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn,
  .contact-submit { width: 100%; }
  .footer-line { flex-direction: column; align-items: flex-start; }
}
