/* The portfolio now presents two offers: the core website and an optional automation upgrade. */
.package-grid {
  grid-template-columns: repeat(2, 1fr);
}

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

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-privacy a {
  color: #aaa69e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

/* Keep the hero proof row and closing detail in separate layout space at every width. */
.hero-footer {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: 18px;
}

/* Quiet studio lighting behind the hero system—not a tech effect. */
.system-visual::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: 0;
  opacity: .72;
  background: radial-gradient(ellipse at 30% 35%, rgba(218, 159, 102, .15), transparent 22%), radial-gradient(ellipse at 75% 62%, rgba(165, 187, 186, .10), transparent 32%);
  filter: blur(18px);
  animation: studio-light 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.system-visual > * { z-index: 1; }

@keyframes studio-light {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero-accent-reveal { display: inline-block; overflow: hidden; margin: -.13em 0 -.08em; padding: .13em 0 .08em; vertical-align: bottom; }
.hero-accent-reveal > span { display: inline-block; animation: accent-reveal 1.1s .35s cubic-bezier(.2,.75,.2,1) both; }

@keyframes accent-reveal {
  from { opacity: 0; transform: translateY(108%); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* A measured line of proof between the introduction and the service offer. */
.proof-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(20px, 6vw, 95px) 84px;
  color: #777269;
  font: 500 9px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.proof-line i {
  flex: 1;
  min-width: 22px;
  height: 1px;
  overflow: hidden;
  background: rgba(21, 21, 19, .16);
}

.proof-line i::after {
  content: "";
  display: block;
  width: 34%;
  height: 100%;
  background: var(--accent);
  animation: proof-line-move 5.5s ease-in-out infinite;
}

@keyframes proof-line-move {
  0%, 100% { transform: translateX(-115%); }
  50% { transform: translateX(310%); }
}

.principles {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(50px, 9vw, 150px);
  padding: 0 clamp(20px, 8vw, 130px) 72px;
  overflow: hidden;
}

.principles + .services {
  position: relative;
  padding-top: 82px;
}

.principles + .services::before {
  content: "";
  position: absolute;
  top: 34px;
  left: clamp(20px, 6vw, 95px);
  right: clamp(20px, 6vw, 95px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(21, 21, 19, .16) 24%, rgba(21, 21, 19, .16));
}

.principles-intro h2 {
  margin: 0;
  font: 400 clamp(42px, 4.7vw, 70px)/.96 var(--serif);
  letter-spacing: -.045em;
}

.principles-intro h2 em { color: var(--accent); font-weight: 400; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { min-height: 280px; padding: 25px 22px 0; border-right: 1px solid var(--line); }
.principle:last-child { border-right: 0; }
.principle > span { color: var(--accent); font: 9px var(--mono); letter-spacing: .1em; }
.principle h3 { margin: 62px 0 18px; font: 400 clamp(27px, 2.5vw, 38px)/1 var(--serif); letter-spacing: -.04em; }
.principle p { margin: 0; color: #67635c; font-size: 12px; line-height: 1.7; }

/* Editorial photography and captioning remain secondary to the project itself. */
.project-visual::before { transition: opacity .5s ease; }
.project-photo { transform-origin: 68% 58%; }
.project-editorial-caption {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 17px;
  padding: 7px 9px;
  color: rgba(255,255,255,.9);
  background: rgba(17, 17, 15, .72);
  border: 1px solid rgba(255,255,255,.2);
  font: 500 7px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.75,.2,1);
}

.project-card[data-project-href]:hover .project-editorial-caption,
.project-card[data-project-href]:focus-within .project-editorial-caption { opacity: 1; transform: translateY(0); }

.demo-opening {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-content: center;
  gap: 8px;
  color: var(--ivory);
  background: rgba(14,14,13,.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}

.demo-opening.visible { opacity: 1; }
.demo-opening span { color: var(--accent); font: 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.demo-opening strong { font: 400 clamp(38px, 5vw, 68px)/.9 var(--serif); letter-spacing: -.04em; }
.demo-opening i { color: var(--accent); font-style: normal; font-size: 25px; }

.founder-note {
  display: flex;
  align-items: center;
  gap: 20px;
  width: fit-content;
  margin: 38px 0 5px;
  padding: 12px 0 12px 15px;
  border-left: 1px solid var(--accent);
}

.founder-signature { font: 400 31px/1 var(--serif); font-style: italic; letter-spacing: -.055em; }
.founder-note p { margin: 0 !important; color: #6e6961; font: 500 8px/1.55 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; }

.contact-guidance {
  min-height: 20px;
  margin: -5px 0 22px;
  padding-left: 13px;
  border-left: 1px solid var(--accent);
  color: #aaa69e;
  font: 400 14px/1.45 var(--serif);
  transition: opacity .25s ease;
}

/* Project images reveal slowly while headings remain reliably visible. */
.project-card.reveal .project-visual { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.2,.75,.2,1); }
.project-card.reveal.visible .project-visual { clip-path: inset(0 0 0 0); }
.project-card.reveal:nth-child(2) { transition-delay: .1s; }
.project-card.reveal:nth-child(3) { transition-delay: .2s; }
.principle.reveal:nth-child(2) { transition-delay: .1s; }
.principle.reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 900px) {
  .proof-line { padding: 0 25px 68px; }
  .principles { grid-template-columns: 1fr; gap: 42px; padding: 0 25px 64px; }
  .principles + .services { padding-top: 72px; }
  .principles + .services::before { top: 28px; left: 25px; right: 25px; }
  .principles-grid { max-width: 680px; }
}

@media (max-width: 620px) {
  .proof-line { gap: 9px; padding-bottom: 58px; font-size: 7px; letter-spacing: .08em; }
  .proof-line i { min-width: 12px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { min-height: 0; padding: 23px 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle:last-child { border-bottom: 0; }
  .principle h3 { margin: 32px 0 12px; }
  .founder-note { margin-top: 30px; }
  .project-editorial-caption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .system-visual::before,
  .hero-accent-reveal > span,
  .proof-line i::after { animation: none; }
  .project-card.reveal .project-visual { clip-path: none; transition: none; }
}

.project-photo {
  object-fit: cover;
  object-position: center;
  transition: transform .7s cubic-bezier(.2,.75,.2,1), filter .45s ease;
}

/* Project previews should feel like polished, touchable demo windows. */
.project-visual::after {
  content: "";
  position: absolute;
  width: 74%;
  height: 18%;
  bottom: 6%;
  left: 13%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  filter: blur(22px);
  transform: translateY(22px);
  z-index: 0;
  pointer-events: none;
}

.browser-mockup,
.phone-mockup {
  position: relative;
  z-index: 1;
  transition: transform .6s cubic-bezier(.2,.75,.2,1), box-shadow .45s ease;
}

.browser-mockup {
  outline: 1px solid rgba(255,255,255,.18);
  outline-offset: 3px;
}

.phone-mockup {
  outline: 1px solid rgba(255,255,255,.12);
  outline-offset: 3px;
}

.project-card[data-project-href] .project-visual {
  cursor: pointer;
}

.project-card[data-project-href]:hover .project-photo,
.project-card[data-project-href]:focus-within .project-photo {
  transform: scale(1.075);
}

.project-card[data-project-href]:hover .browser-mockup,
.project-card[data-project-href]:focus-within .browser-mockup {
  transform: rotate(-.5deg) translateY(-8px);
  box-shadow: 0 42px 76px rgba(0,0,0,.44);
}

.project-card[data-project-href]:hover .phone-mockup,
.project-card[data-project-href]:focus-within .phone-mockup {
  transform: rotate(5deg) translate(4px, -7px);
  box-shadow: 0 30px 45px rgba(0,0,0,.4);
}

.project-preview-cue {
  position: absolute;
  z-index: 4;
  top: 9%;
  right: 10%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px 9px 8px;
  color: #f5f1e9;
  background: rgba(21, 21, 19, .88);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  font: 500 8px var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-10px, 8px);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}

.project-preview-cue i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: var(--accent);
  font: normal 13px/1 var(--sans);
  animation: preview-cursor 2.6s ease-in-out infinite;
}

.project-card[data-project-href]:hover .project-preview-cue,
.project-card[data-project-href]:focus-within .project-preview-cue {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes preview-cursor {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .project-photo,
  .browser-mockup,
  .phone-mockup,
  .project-preview-cue { transition: none; }
  .project-preview-cue i { animation: none; }
}

.project-workshop .project-visual {
  background: linear-gradient(135deg, #111d25, #314550 54%, #d39252);
}

.project-workshop .project-visual::before,
.project-restaurant .project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px);
}

.project-workshop .browser-mockup {
  border-color: #0e171d;
  box-shadow: 0 35px 65px rgba(0, 0, 0, .48);
}

.project-workshop .demo-site {
  background: #17242d;
  color: #f4eee2;
}

.project-workshop .mock-button {
  background: #d88d4a;
}

.project-workshop .project-photo {
  filter: saturate(.88) contrast(1.08);
}

.project-restaurant .project-visual {
  background: linear-gradient(135deg, #301916, #783329 58%, #c38448);
}

.project-restaurant .browser-mockup {
  border-color: #2d1713;
}

.project-restaurant .demo-site {
  background: #271713;
  color: #f5e8d6;
}

.project-restaurant .mock-button {
  background: #c66b42;
}

.project-restaurant .project-photo {
  filter: saturate(1.06) contrast(1.04);
}

.project-nails .project-visual {
  background: linear-gradient(135deg, #e4d7d0, #c7a49c 52%, #79575c);
}

.project-nails .browser-mockup {
  border-color: #5a4247;
}

.project-nails .demo-site {
  background: #f6ede8;
  color: #4c3036;
}

.project-nails .mock-button {
  background: #9a5f6b;
}

.project-nails .mock-image {
  background: radial-gradient(circle at 35% 28%, #f6dfd5 0 12%, transparent 13%), radial-gradient(circle at 58% 40%, #ba7482 0 15%, transparent 16%), radial-gradient(circle at 75% 72%, #69484f 0 17%, transparent 18%), linear-gradient(135deg, #eacbc5, #91626b);
  border-radius: 52% 0 0 0;
}

.project-card-static .project-visual {
  cursor: default;
}

.project-copy .project-outcome {
  margin: -12px 0 28px;
  padding: 14px 0 0 16px;
  border-left: 1px solid var(--accent);
  color: #d9d5cd;
  font: 400 18px/1.35 var(--serif);
}

.project-outcome span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font: 500 8px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-coming-soon {
  cursor: default;
  opacity: .62;
}

/* A focused signal that the work is made for familiar local-business needs. */
.industries {
  padding: 0 clamp(20px, 6vw, 95px) 120px;
}

.industries-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 410px);
  gap: 40px 50px;
  align-items: end;
  margin-bottom: 48px;
}

.industries-heading .kicker {
  grid-column: 1 / -1;
  margin: 0 0 -12px;
}

.industries-heading h2 {
  margin: 0;
  font: 400 clamp(42px, 4.7vw, 68px) / .95 var(--serif);
  letter-spacing: -.045em;
}

.industries-heading h2 em { color: var(--accent); font-weight: 400; }

.industries-heading > p:last-child {
  max-width: 410px;
  margin: 0;
  color: #68655e;
  line-height: 1.7;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.industry-tile {
  position: relative;
  min-height: 265px;
  padding: 26px 28px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #e9e5dc;
  transition: color .3s ease, transform .3s ease;
}

.industry-tile:last-child { border-right: 0; }
.industry-tile > span { color: #8b5742; font: 10px var(--mono); letter-spacing: .1em; }
.industry-tile > i { position: absolute; top: 25px; right: 27px; font-style: normal; font-size: 18px; transition: transform .3s ease; }
.industry-tile h3 { position: relative; z-index: 1; margin: 66px 0 17px; font: 400 clamp(31px, 3vw, 43px) / .86 var(--serif); letter-spacing: -.045em; }
.industry-tile p { position: relative; z-index: 1; max-width: 230px; margin: 0; color: #68655e; font-size: 12px; line-height: 1.65; transition: color .3s ease; }

.industry-tile::before {
  content: "";
  position: absolute;
  width: 190px;
  aspect-ratio: 1;
  right: -58px;
  bottom: -105px;
  border-radius: 50%;
  opacity: .45;
  transition: transform .55s cubic-bezier(.2,.75,.2,1);
}

.industry-auto { background: #dbe0df; }
.industry-auto::before { background: repeating-radial-gradient(circle, #405763 0 2px, transparent 3px 14px); }
.industry-restaurant { background: #e8d8c7; }
.industry-restaurant::before { background: radial-gradient(circle at 35% 35%, #a75038 0 14%, transparent 15%), repeating-radial-gradient(circle, #6b3327 0 1px, transparent 2px 14px); }
.industry-beauty { background: #e5d7d2; }
.industry-beauty::before { background: radial-gradient(circle at 35% 35%, #9c6570 0 18%, transparent 19%), radial-gradient(circle at 65% 60%, #f0e7de 0 27%, transparent 28%); }

.industry-tile:hover,
.industry-tile:focus-visible { color: var(--ivory); transform: translateY(-4px); }
.industry-auto:hover,.industry-auto:focus-visible { background: #263b43; }
.industry-restaurant:hover,.industry-restaurant:focus-visible { background: #6a3025; }
.industry-beauty:hover,.industry-beauty:focus-visible { background: #704951; }
.industry-tile:hover p,.industry-tile:focus-visible p { color: rgba(255,255,255,.76); }
.industry-tile:hover > span,.industry-tile:focus-visible > span { color: #e2a270; }
.industry-tile:hover > i,.industry-tile:focus-visible > i { transform: translate(4px,-4px); }
.industry-tile:hover::before,.industry-tile:focus-visible::before { transform: scale(1.2) translate(-12px,-9px); }

@media (max-width: 800px) {
  .industries { padding: 0 25px 90px; }
  .industries-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 35px; }
  .industries-heading .kicker { grid-column: auto; margin: 0; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-tile { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .industry-tile:last-child { border-bottom: 0; }
  .industry-tile h3 { margin-top: 42px; }
}

/* Section atmospheres: quiet full-bleed texture gives each major moment its own place. */
.manifesto,
.work,
.automation,
.process,
.about,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.manifesto > *,
.work > *,
.automation > *,
.process > *,
.about > *,
.contact > * {
  position: relative;
  z-index: 1;
}

/* Warm paper, kept almost imperceptible behind the opening statement. */
.manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .48;
  background:
    repeating-linear-gradient(8deg, transparent 0 5px, rgba(73, 58, 42, .025) 5px 6px),
    radial-gradient(circle at 12% 18%, rgba(181, 137, 92, .16), transparent 27%),
    radial-gradient(circle at 84% 72%, rgba(80, 69, 54, .09), transparent 32%);
}

/* Blueprint geometry supports the "built around business needs" idea. */
.work::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 49.8%, rgba(201,118,80,.18) 50%, transparent 50.2%);
  background-size: 72px 72px, 72px 72px, 420px 420px;
  background-position: -20px -10px, -20px -10px, 82% 10%;
}

/* Faint contour lines make the systems section feel mapped rather than decorative. */
.automation::before {
  content: "";
  position: absolute;
  width: min(760px, 72vw);
  aspect-ratio: 1;
  right: -18%;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  border-radius: 43% 57% 48% 52% / 54% 39% 61% 46%;
  opacity: .34;
  background:
    repeating-radial-gradient(ellipse at 52% 48%, transparent 0 28px, rgba(101, 87, 66, .14) 29px 30px, transparent 31px 48px);
  pointer-events: none;
}

/* A precise technical grid sits very low in the process background. */
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .42;
  background:
    linear-gradient(90deg, transparent 49.93%, rgba(255,255,255,.08) 50%, transparent 50.07%),
    repeating-linear-gradient(0deg, transparent 0 94px, rgba(255,255,255,.035) 95px 96px);
  background-size: 100% 100%, 100% 96px;
}

/* Soft architectural light lends the founder section depth without competing with the portrait. */
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .56;
  background:
    linear-gradient(116deg, transparent 0 61%, rgba(184, 145, 101, .12) 61.2% 66%, transparent 66.2%),
    linear-gradient(116deg, transparent 0 69%, rgba(37, 35, 29, .06) 69.2% 74%, transparent 74.2%),
    radial-gradient(ellipse at 88% 22%, rgba(212, 172, 119, .16), transparent 34%);
}

/* The final section has a dim, blurred studio glow instead of a literal image. */
.contact::before {
  content: "";
  position: absolute;
  width: min(820px, 80vw);
  height: 540px;
  right: -20%;
  bottom: -42%;
  z-index: 0;
  opacity: .48;
  filter: blur(18px);
  background:
    radial-gradient(circle at 32% 36%, rgba(201,118,80,.48), transparent 18%),
    radial-gradient(circle at 59% 52%, rgba(216, 201, 159, .16), transparent 24%),
    radial-gradient(circle at 72% 45%, rgba(112, 82, 54, .34), transparent 38%);
  pointer-events: none;
}

@media (max-width: 700px) {
  .work::before { background-size: 52px 52px, 52px 52px, 280px 280px; }
  .automation::before { width: 130vw; right: -48%; opacity: .23; }
  .contact::before { right: -50%; width: 130vw; opacity: .35; }
}
