/* ==================== PORTFOLIO HERO ==================== */
.portfolio-hero {
  min-height: 70vh;
  padding: 120px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.portfolio-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 60%, rgba(255,92,0,0.05) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}
.portfolio-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.portfolio-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 32px;
}
.portfolio-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
}
.portfolio-hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 56px auto 0;
  width: 100%;
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}
.h-stat {
  flex: 1;
  padding: 20px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.h-stat:last-child { border-right: none; }
.h-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.h-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ==================== PROJECTS ==================== */
.portfolio-projects {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.projects-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.project-row--reverse {
  direction: rtl;
}
.project-row--reverse > * {
  direction: ltr;
}
.project-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.pdetail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pdetail-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.pdetail-value {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.project-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Rug visuals */
.project-rug-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
}
.rug-shadow-lg {
  width: 200px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
  margin-top: -8px;
}
.rug-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rug-card--rect { width: 280px; }
.rug-card--square { width: 200px; }
.rug-card--organic { width: 260px; }
.rug-body {
  border: 12px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rug-body--charcoal { background: var(--bg); border-color: #333; width: 240px; height: 180px; }
.rug-body--black { background: var(--bg); border-color: #1a1a1a; width: 280px; height: 180px; }
.rug-body--natural { background: #f5f0e8; border-color: #d4c9b0; width: 180px; height: 180px; }
.rug-body--organic { width: 260px; height: 160px; background: linear-gradient(90deg, #e8e3d8 50%, var(--bg) 50%); border: none; }

/* Logo rug */
.rug-logo-rug {
  width: 80px;
  height: 80px;
  border: 6px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rug-logo-rug--cream { border-color: #d4c9b0; }
.rug-logo-tl {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: #d4c9b0;
}
.rug-logo-outline {
  position: absolute;
  inset: -16px;
  border: 1px dashed rgba(255,255,255,0.1);
}

/* Geometric rug */
.geometric-pattern {
  width: 100%;
  height: 100%;
  position: relative;
}
.geo-line {
  position: absolute;
  background: var(--accent);
  opacity: 0.8;
}
.geo-line--1 { width: 100%; height: 2px; top: 33%; }
.geo-line--2 { width: 100%; height: 2px; top: 66%; }
.geo-line--3 { width: 60%; height: 2px; top: 50%; left: 20%; }
.geo-circle {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Artist mark */
.artist-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: #8a9e8a;
  line-height: 1;
}

/* Organic collab */
.organic-left {
  width: 50%;
  height: 100%;
  background: #e8e3d8;
}
.organic-divider {
  width: 2px;
  height: 100%;
  background: var(--accent);
  opacity: 0.6;
}
.organic-right {
  width: 50%;
  height: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collab-x {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
}

/* ==================== INQUIRY FORM ==================== */
.portfolio-inquiry {
  padding: 120px var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.inquiry-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}
.inquiry-header {}
.inquiry-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.inquiry-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
}
.inquiry-form-wrap {}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field select option { background: var(--bg-2); }
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.field-error {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #ff4444;
  min-height: 16px;
}
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.submit-btn {
  background: var(--accent);
  color: var(--fg);
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}
.submit-btn:hover:not(:disabled) { opacity: 0.85; }
.submit-btn:active:not(:disabled) { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}
.form-success {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  background: rgba(255,92,0,0.08);
  border: 1px solid rgba(255,92,0,0.2);
  margin-top: 8px;
}
.form-success .success-icon {
  font-size: 1.5rem;
  color: var(--accent);
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.form-success p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.form-error {
  padding: 16px;
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.2);
  color: #ff6666;
  font-size: 0.875rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .portfolio-headline { font-size: clamp(3rem, 12vw, 5rem); }
  .portfolio-hero-stats { flex-direction: column; }
  .h-stat { border-right: none; border-bottom: 1px solid var(--border); }
  .h-stat:last-child { border-bottom: none; }
  .project-row { grid-template-columns: 1fr; gap: 40px; }
  .project-row--reverse { direction: ltr; }
  .inquiry-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row--two { grid-template-columns: 1fr; }
}

/* ==================== BRAND CONTEXT (IN THE WILD) ==================== */
.brand-context {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.brand-context-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand-context-header {
  margin-bottom: 56px;
}
.brand-context-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.context-card {
  background: var(--bg-3);
}
.context-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.context-caption {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.context-brand {
  color: var(--accent);
}
.brand-context-placeholder {
  grid-column: 1 / -1;
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-3);
  border: 1px dashed var(--border);
}
.placeholder-cta {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
}
.placeholder-note strong {
  color: var(--accent);
  font-weight: 400;
}

@media (max-width: 900px) {
  .brand-context-grid { grid-template-columns: 1fr; }
}